Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/H1Gq5Q9el/H1Gq5Q9el.md +270 -0
- parse/train/H1Gq5Q9el/H1Gq5Q9el_middle.json +0 -0
- parse/train/H1lZJpVFvr/H1lZJpVFvr.md +336 -0
- parse/train/H1lZJpVFvr/H1lZJpVFvr_content_list.json +1677 -0
- parse/train/H1lZJpVFvr/H1lZJpVFvr_middle.json +0 -0
- parse/train/H1lZJpVFvr/H1lZJpVFvr_model.json +0 -0
- parse/train/H1xPR3NtPB/H1xPR3NtPB_middle.json +0 -0
- parse/train/H1xPR3NtPB/H1xPR3NtPB_model.json +0 -0
- parse/train/HJ0NvFzxl/HJ0NvFzxl.md +422 -0
- parse/train/HJ0NvFzxl/HJ0NvFzxl_content_list.json +0 -0
- parse/train/HJ0NvFzxl/HJ0NvFzxl_middle.json +0 -0
- parse/train/HJ0NvFzxl/HJ0NvFzxl_model.json +0 -0
- parse/train/Sklf1yrYDr/Sklf1yrYDr.md +408 -0
- parse/train/Sklf1yrYDr/Sklf1yrYDr_content_list.json +0 -0
- parse/train/Sklf1yrYDr/Sklf1yrYDr_middle.json +0 -0
- parse/train/Sklf1yrYDr/Sklf1yrYDr_model.json +0 -0
- parse/train/T4gXBOXoIUr/T4gXBOXoIUr.md +306 -0
- parse/train/T4gXBOXoIUr/T4gXBOXoIUr_content_list.json +1731 -0
- parse/train/T4gXBOXoIUr/T4gXBOXoIUr_middle.json +0 -0
- parse/train/T4gXBOXoIUr/T4gXBOXoIUr_model.json +0 -0
parse/train/H1Gq5Q9el/H1Gq5Q9el.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNSUPERVISED PRETRAINING FOR SEQUENCE TO SEQUENCE LEARNING
|
| 2 |
+
|
| 3 |
+
Prajit Ramachandran∗ University of Illinois at Urbana-Champaign prajitram@gmail.com
|
| 4 |
+
|
| 5 |
+
Peter J. Liu, Quoc V. Le Google Brain {peterjliu,qvl}@google.com
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
This work presents a general unsupervised learning method to improve the accuracy of sequence to sequence (seq2seq) models. In our method, the weights of the encoder and decoder of a seq2seq model are initialized with the pretrained weights of two language models and then fine-tuned with labeled data. We apply this method to challenging benchmarks in machine translation and abstractive summarization and find that it significantly improves the subsequent supervised models. Our main result is that the pretraining accelerates training and improves generalization of seq2seq models, achieving state-of-the-art results on the WMT English German task, surpassing a range of methods using both phrase-based machine translation and neural machine translation. Our method achieves an improvement of 1.3 BLEU from the previous best models on both WMT’14 and WMT’15 English German. On summarization, our method beats the supervised learning baseline.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Sequence to sequence (seq2seq) models (Sutskever et al., 2014; Cho et al., 2014; Kalchbrenner & Blunsom, 2013; Allen, 1987; Neco & Forcada, 1997) are extremely effective on a variety of ˜ tasks that require a mapping between a variable-length input sequence to a variable-length output sequence. The main weakness of sequence to sequence models, and deep networks in general, lies in the fact that they can easily overfit when the amount of supervised training data is small.
|
| 14 |
+
|
| 15 |
+
In this work, we propose a simple and effective technique for using unsupervised pretraining to improve seq2seq models. Our proposal is to initialize both encoder and decoder networks with pretrained weights of two language models. These pretrained weights are then fine-tuned with the labeled corpus.
|
| 16 |
+
|
| 17 |
+
We benchmark this method on machine translation for English German and abstractive summarization on CNN and Daily Mail articles. Our main result is that a seq2seq model, with pretraining, exceeds the strongest possible baseline in both neural machine translation and phrase-based machine translation. Our model obtains an improvement of 1.3 BLEU from the previous best models on both WMT’14 and WMT’15 English German. On abstractive summarization, our method achieves competitive results to the strongest baselines.
|
| 18 |
+
|
| 19 |
+
We also perform ablation study to understand the behaviors of the pretraining method. Our study confirms that among many other possible choices of using a language model in seq2seq with attention, the above proposal works best. Our study also shows that, for translation, the main gains come from the improved generalization due to the pretrained features, whereas for summarization the gains come from the improved optimization due to pretraining the encoder which has been unrolled for hundreds of timesteps. On both tasks, our proposed method always improves generalization on the test sets.
|
| 20 |
+
|
| 21 |
+
# 2 UNSUPERVISED PRETRAINING FOR SEQUENCE TO SEQUENCE LEARNING
|
| 22 |
+
|
| 23 |
+
In the following section, we will describe our basic unsupervised pretraining procedure for sequence to sequence learning and how to modify sequence to sequence learning to effectively make use of the pretrained weights. We then show several extensions to improve the basic model.
|
| 24 |
+
|
| 25 |
+
# 2.1 BASIC PROCEDURE
|
| 26 |
+
|
| 27 |
+
Given an input sequence $x _ { 1 } , x _ { 2 } , . . . , x _ { m }$ and an output sequence $y _ { n } , y _ { n - 1 } , . . . , y _ { 1 }$ , the objective of sequence to sequence learning is to maximize the likelihood $p ( y _ { n } , y _ { n - 1 } , . . . , y _ { 1 } | x _ { 1 } , x _ { 2 } , . . . , x _ { m } )$ . Common sequence to sequence learning methods decompose this objective as $\begin{array} { r } { p ( \boldsymbol { y } _ { n } , \boldsymbol { y } _ { n - 1 } , . . . , \dot { \boldsymbol { y } _ { 1 } } | \boldsymbol { x } _ { 1 } , \boldsymbol { x } _ { 2 } , . . . , \boldsymbol { x } _ { m } ) ^ { \flat } = \prod _ { t = 1 } ^ { n } p ( \boldsymbol { y } _ { t } | \overset { \sim } { \boldsymbol { y } _ { t - 1 } } , . . . , \boldsymbol { y } _ { 1 } ; \boldsymbol { x } _ { 1 } , \boldsymbol { x } _ { 2 } , . . . , \dot { \boldsymbol { x } } _ { m } ) . } \end{array}$ .
|
| 28 |
+
|
| 29 |
+
In sequence to sequence learning, an RNN encoder is used to represent $x _ { 1 } , . . . , x _ { m }$ as a hidden vector, which is given to an RNN decoder to produce the output sequence. Our method is based on the observation that without the encoder, the decoder essentially acts like a language model on $y$ ’s. Similarly, the encoder with an additional output layer also acts like a language model. Thus it is natural to use trained languages models to initialize the encoder and decoder.
|
| 30 |
+
|
| 31 |
+
Therefore, the basic procedure of our approach is to pretrain both the seq2seq encoder and decoder networks with language models, which can be trained on large amounts of unlabeled text data. This can be seen in Figure 1, where the parameters in the shaded boxes are pretrained. In the following we will describe the method in detail using machine translation as an example application.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
Figure 1: Pretrained sequence to sequence model. The red parameters are the encoder and the blue parameters are the decoder. All parameters in a shaded box are pretrained, either from the source side (light red) or target side (light blue) language model. Otherwise, they are randomly initialized.
|
| 35 |
+
|
| 36 |
+
First, two monolingual datasets are collected, one for the source side language, and one for the target side language. A language model $( L M )$ is trained on each dataset independently, giving an LM trained on the source side corpus and an LM trained on the target side corpus.
|
| 37 |
+
|
| 38 |
+
After two language models are trained, a multi-layer seq2seq model $M$ is constructed. The embedding and first LSTM layers of the encoder and decoder are initialized with the pretrained weights. To be even more efficient, the softmax of the decoder is initialized with the softmax of the pretrained target side LM.
|
| 39 |
+
|
| 40 |
+
# 2.2 IMPROVING THE MODEL
|
| 41 |
+
|
| 42 |
+
We also employ three additional methods to further improve the model above. The three methods are: a) Monolingual language modeling losses, b) Residual connections and c) Attention over multiple layers (see Figure 2).
|
| 43 |
+
|
| 44 |
+
Monolingual language modeling losses: After the seq2seq model $M$ is initialized with the two LMs, it is fine-tuned with a labeled dataset. To ensure that the model does not overfit the labeled data, we regularize the parameters that were pretrained by continuing to train with the monolingual language modeling losses. The seq2seq and language modeling losses are weighted equally.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Two improvements to the baseline model: (a) residual connection, and (b) attention over multiple layers.
|
| 48 |
+
|
| 49 |
+
Residual connections: As described, the input vector to the decoder softmax layer is a random vector because the high level (non-first) layers of the LSTM are randomly initialized. This slows down training and introduces random gradients to the pretrained parameters, reducing the effectiveness of pretraining. To circumvent this issue, we use a residual connection from the output of the first LSTM layer directly to the input of the softmax (see Figure 2-a).
|
| 50 |
+
|
| 51 |
+
Attention over multiple layers: In all our models, we use an attention mechanism (Bahdanau et al., 2015), where the model attends over both top and first layer (see Figure 2-b). More concretely, given a query vector $q _ { t }$ from the decoder, encoder states from the first layer $h _ { 1 } ^ { 1 } , \ldots , h _ { T } ^ { 1 }$ , and encoder states from the last layer $h _ { 1 } ^ { L } , \ldots , h _ { T } ^ { L }$ , we compute the attention context vector $c _ { t }$ as follows:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\alpha _ { i } = \frac { \exp ( q _ { t } \cdot h _ { i } ^ { N } ) } { \sum _ { j = 1 } ^ { T } \exp ( q _ { t } \cdot h _ { j } ^ { N } ) } \qquad c _ { t } ^ { 1 } = \sum _ { i = 1 } ^ { T } \alpha _ { i } h _ { i } ^ { 1 } \qquad c _ { t } ^ { N } = \sum _ { i = 1 } ^ { T } \alpha _ { i } h _ { i } ^ { N } \qquad c _ { t } = [ c _ { t } ^ { 1 } ; c _ { t } ^ { N } ]
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
Note that attention weights $\alpha _ { i }$ are only computed once using the top level encoder states.
|
| 58 |
+
|
| 59 |
+
We also experiment with passing the attention vector $c _ { t }$ as input into the next timestep (Luong et al., 2015b). Instead of passing $c$ into the first LSTM layer, we pass it as input to the second LSTM layer by concatenating it with the output of the first LSTM layer.
|
| 60 |
+
|
| 61 |
+
We use all three improvements in our experiments. However, in general we notice that the benefits of the attention modifications are minor in comparison with the benefits of the additional language modeling objectives and residual connections.
|
| 62 |
+
|
| 63 |
+
# 3 EXPERIMENTS
|
| 64 |
+
|
| 65 |
+
In the following section, we apply our approach to two important tasks in seq2seq learning: machine translation and abstractive summarization. On each task, we compare against the previous best systems. We also perform ablation experiments to understand the behavior of each component of our method.
|
| 66 |
+
|
| 67 |
+
# 3.1 MACHINE TRANSLATION
|
| 68 |
+
|
| 69 |
+
Dataset and Evaluation: For machine translation, we evaluate our method on the WMT English German task (Bojar et al., 2015). We used the WMT 14 training dataset, which is slightly smaller than the WMT 15 dataset. Because the dataset has some noisy examples, we used a language detection system to filter the training examples. Sentences pairs where either the source was not English or the target was not German were thrown away. This resulted in around 4 million training examples. Following Sennrich et al. (2015b), we use subword units (Sennrich et al., 2015a)
|
| 70 |
+
|
| 71 |
+
with 89500 merge operations, giving a vocabulary size around 90000. The validation set is the concatenated newstest2012 and newstest2013, and our test sets are newstest2014 and newstest2015. Evaluation on the validation set was with case-sensitive BLEU (Papineni et al., 2002) on tokenized text using multi-bleu.perl. Evaluation on the test sets was with case-sensitive BLEU on detokenized text using mteval-v13a.pl. The monolingual training datasets are the News Crawl English and German corpora, each of which has more than a billion tokens.
|
| 72 |
+
|
| 73 |
+
Experimental settings: The language models were trained in the same fashion as (Jozefowicz et al., 2016) We used a 1 layer 4096 dimensional LSTM with the hidden state projected down to 1024 units (Sak et al., 2014) and trained for one week on 32 Tesla K40 GPUs. Our seq2seq model was a 3 layer model, where the second and third layers each have 1000 hidden units. The monolingual objectives, residual connection, and the modified attention were all used. We used the Adam optimizer (Kingma & Ba, 2015) and train with asynchronous SGD on 16 GPUs for speed. We used a learning rate of 5e-5 which is multiplied by 0.8 every 50K steps after an initial 400K steps, gradient clipping with norm 5.0 (Pascanu et al., 2013), and dropout of 0.2 on non-recurrent connections (Zaremba et al., 2014). We used early stopping on validation set perplexity. A beam size of 10 was used for decoding. Our ensemble is constructed with the 5 best performing models on the validation set, which are trained with different hyperparameters.
|
| 74 |
+
|
| 75 |
+
Results: Table 1 shows the results of our method in comparison with other baselines. Our method achieves a new state-of-the-art for single model performance on both newstest2014 and newstest2015, significantly outperforming the competitive semi-supervised backtranslation technique (Sennrich et al., 2015b). Equally impressive is the fact that our best single model outperforms the previous state of the art ensemble of 4 models. Our ensemble of 5 models matches or exceeds the previous best ensemble of 12 models.
|
| 76 |
+
|
| 77 |
+
Table 1: English German performance on WMT test sets. Our pretrained model outperforms all other models. Note that the model without pretraining uses the LM objective.
|
| 78 |
+
|
| 79 |
+
<table><tr><td rowspan="2">System</td><td rowspan="2">ensemble?</td><td colspan="2">BLEU</td></tr><tr><td>newstest2014</td><td>newstest2015</td></tr><tr><td>Phrase Based MT(Williams et al., 2016)</td><td>1</td><td>21.9</td><td>23.7</td></tr><tr><td>Supervised NMT (Jean et al., 2015)</td><td>single</td><td>-</td><td>22.4</td></tr><tr><td>Edit Distance Transducer NMT (Stahlberg et al.,2016)</td><td>single</td><td>21.7</td><td>24.1</td></tr><tr><td>Edit Distance Transducer NMT (Stahlberg et al., 2016)</td><td>ensemble 8</td><td>22.9</td><td>25.7</td></tr><tr><td>Backtranslation (Sennrich et al.,2015b)</td><td>single</td><td>22.7</td><td>25.7</td></tr><tr><td>Backtranslation (Sennrich et al.,2015b)</td><td>ensemble 4</td><td>23.8</td><td>26.5</td></tr><tr><td>Backtranslation (Sennrich et al.,2015b)</td><td>ensemble 12</td><td>24.7</td><td>27.6</td></tr><tr><td>No pretraining</td><td>single</td><td>21.3</td><td>24.3</td></tr><tr><td>Pretrained seq2seq</td><td>single</td><td>24.0</td><td>27.0</td></tr><tr><td>Pretrained seq2seq</td><td>ensemble 5</td><td>24.7</td><td>28.1</td></tr></table>
|
| 80 |
+
|
| 81 |
+
Ablation study: In order to better understand the effects of pretraining, we conducted an ablation study by modifying the pretraining scheme. Figure 3 shows the drop in validation BLEU of various ablations compared with the full model. The full model uses LMs trained with monolingual data to initialize the encoder and decoder, in addition to the language modeling objective. In the following, we interpret the findings of the study. Note that some findings are specific to the translation task.
|
| 82 |
+
|
| 83 |
+
Given the results from the ablation study, we can make the following observations:
|
| 84 |
+
|
| 85 |
+
• Pretraining the decoder is better than pretraining the encoder: Only pretraining the encoder leads to a 1.6 BLEU point drop while only pretraining the decoder leads to a 1.0 BLEU point drop.
|
| 86 |
+
• Pretrain as much as possible because the benefits compound: given the drops of no pretraining at all $( - 2 . 0 )$ and only pretraining the encoder $( - 1 . 6 )$ , the additive estimate of the drop of only pretraining the decoder side is $- 2 . 0 - ( - 1 . 6 ) = - 0 . 4$ ; however the actual drop is $- 1 . 0$ which is a much larger drop than the additive estimate.
|
| 87 |
+
Pretraining the softmax is important: Pretraining only the embeddings and first LSTM layer gives a large drop of 1.6 BLEU points.
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Figure 3: English German ablation study measuring the difference in validation BLEU between various ablations and the full model. More negative is worse. The full model uses LMs trained with monolingual data to initialize the encoder and decoder, plus the language modeling objective.
|
| 91 |
+
|
| 92 |
+
• The language modeling objective is a strong regularizer: The drop in BLEU points of pretraining the entire model and not using the LM objective is as bad as using the LM objective without pretraining. Pretraining on a lot of unlabeled data is essential for learning to extract powerful features: If the model is initialized with LMs that are pretrained on the source part and target part of the parallel corpus, the drop in performance is as large as not pretraining at all. However, performance remains strong when pretrained on the large, non-news Wikipedia corpus.
|
| 93 |
+
|
| 94 |
+
To understand the contributions of unsupervised pretraining vs. supervised training, we track the performance of pretraining as a function of dataset size. For this, we trained a a model with and without pretraining on random subsets of the English German corpus. Both models use the additional LM objective. The results are summarized in Figure 4. When a $100 \%$ of the labeled data is used, the gap between the pretrained and no pretrain model is 2.0 BLEU points. However, that gap grows when less data is available. When trained on $20 \%$ of the labeled data, the gap becomes 3.8 BLEU points. This demonstrates that the pretrained models degrade less as the labeled dataset becomes smaller.
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 4: Validation performance of pretraining vs. no pretraining when trained on a subset of the entire labeled dataset for English German translation.
|
| 98 |
+
|
| 99 |
+
# 3.2 ABSTRACTIVE SUMMARIZATION
|
| 100 |
+
|
| 101 |
+
Dataset and Evaluation: For a low-resource abstractive summarization task, we use the CNN/Daily Mail corpus from (Hermann et al., 2015). Following Nallapati et al. (2016), we modify the data collection scripts to restore the bullet point summaries. The task is to predict the bullet point summaries from a news article. The dataset has fewer than 300K document-summary pairs. To compare against Nallapati et al. (2016), we used the anonymized corpus. However, for our ablation study, we used the non-anonymized corpus.1 We evaluate our system using full length ROUGE (Lin, 2004). For the anonymized corpus in particular, we considered each highlight as a separate sentence following Nallapati et al. (2016). In this setting, we used the English Gigaword corpus (Napoles et al., 2012) as our larger, unlabeled “monolingual” corpus, although all data used in this task is in English.
|
| 102 |
+
|
| 103 |
+
Experimental settings: We use subword units (Sennrich et al., 2015a) with 31500 merges, resulting in a vocabulary size of about 32000. We use up to the first 600 tokens of the document and predict the entire summary. Only one language model is trained and it is used to initialize both the encoder and decoder, since the source and target languages are the same. However, the encoder and decoder are not tied. The LM is a one-layer LSTM of size 1024 trained in a similar fashion to Jozefowicz et al. (2016). For the seq2seq model, we use the same settings as the machine translation experiments. The only differences are that we use a 2 layer model with the second layer having 1024 hidden units, and that the learning rate is multiplied by 0.8 every 30K steps after an initial 100K steps.
|
| 104 |
+
|
| 105 |
+
Results: Table 2 summarizes our results on the anonymized version of the corpus. Our pretrained model is only able to match the previous baseline seq2seq of Nallapati et al. (2016). However, our model is a unidirectional LSTM while they use a bidirectional LSTM. They also use a longer context of 800 tokens, whereas we used a context of 600 tokens due to GPU memory issues. Furthermore, they use pretrained word2vec (Mikolov et al., 2013) vectors to initialize their word embeddings. As we show in our ablation study, just pretraining the embeddings itself gives a large improvement.
|
| 106 |
+
|
| 107 |
+
Table 2: Results on the anonymized CNN/Daily Mail dataset.
|
| 108 |
+
|
| 109 |
+
<table><tr><td rowspan=1 colspan=1>System</td><td rowspan=1 colspan=1>ROUGE-1</td><td rowspan=1 colspan=1>ROUGE-2</td><td rowspan=1 colspan=1>ROUGE-L</td></tr><tr><td rowspan=1 colspan=1>Seq2seq + pretrained embeddings (Nallapati et al., 2016)+ temporal attention (Nallapati et al., 2016)</td><td rowspan=1 colspan=1>32.4935.46</td><td rowspan=1 colspan=1>11.8413.30</td><td rowspan=1 colspan=1>29.4732.65</td></tr><tr><td rowspan=1 colspan=1>Pretrained seq2seq</td><td rowspan=1 colspan=1>32.56</td><td rowspan=1 colspan=1>11.89</td><td rowspan=1 colspan=1>29.44</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Ablation study: We performed an ablation study similar to the one performed on the machine translation model. The results are reported in Figure 5. Here we report the drops on ROUGE-1, ROUGE-2, and ROUGE-L on the non-anonymized validation set.
|
| 112 |
+
|
| 113 |
+
Given the results from our ablation study, we can make the following observations:
|
| 114 |
+
|
| 115 |
+
• Pretraining improves optimization: in contrast with the machine translation model, it is more beneficial to only pretrain the encoder than only the decoder of the summarization model. One interpretation is that pretraining enables the gradient to flow much further back in time than randomly initialized weights. This may also explain why pretraining on the parallel corpus is no worse than pretraining on a larger monolingual corpus. • The language modeling objective is a strong regularizer: A model without the LM objective has a significant drop in ROUGE scores.
|
| 116 |
+
|
| 117 |
+
Human evaluation: As ROUGE may not be able to capture the quality of summarization, we also performed a small qualitative study to understand the human impression of the summaries produced by different models. We took 200 random documents and compared the performance of a pretrained and non-pretrained system. The document, gold summary, and the two system outputs were presented to a human evaluator who was asked to rate each system output on a scale of 1-5 with 5 being the best score. The system outputs were presented in random order and the evaluator did not know the identity of either output. The evaluator noted if there were repetitive phrases or sentences in either system outputs. Unwanted repetition was also noticed by Nallapati et al. (2016).
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 5: Summarization ablation study measuring the difference in validation ROUGE between various ablations and the full model. More negative is worse. The full model uses LMs trained with unlabeled data to initialize the encoder and decoder, plus the language modeling objective.
|
| 121 |
+
|
| 122 |
+
Table 3 and 4 show the results of the study. In both cases, the pretrained system outperforms the system without pretraining in a statistically significant manner. The better optimization enabled by pretraining improves the generated summaries and decreases unwanted repetition in the output.
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\frac { N P > P ~ \mid ~ N P = P ~ \mid ~ N P < P } { 2 9 }
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Table 3: The count of how often the no pretrain system $( N P )$ achieves a higher, equal, and lower score than the pretrained system $( P )$ in the side-by-side study where the human evaluator gave each system a score from 1-5. The sign statistical test gives a $\mathsf { p }$ -value of $< 0 . 0 0 0 1$ for rejecting the null hypothesis that there is no difference in the score obtained by either system.
|
| 129 |
+
|
| 130 |
+
<table><tr><td colspan="2"></td><td colspan="2">No pretrain</td></tr><tr><td colspan="2"></td><td>No repeats</td><td>Repeats</td></tr><tr><td rowspan="2">Pretrain</td><td>No repeats</td><td>67</td><td>65</td></tr><tr><td>Repeats</td><td>24</td><td>44</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Table 4: The count of how often the pretrain and no pretrain systems contain repeated phrases or sentences in their outputs in the side-by-side study. McNemar’s test gives a $\mathsf { p }$ -value of $< 0 . 0 0 0 1$ for rejecting the null hypothesis that the two systems repeat the same proportion of times. The pretrained system clearly repeats less than the system without pretraining.
|
| 133 |
+
|
| 134 |
+
# 4 RELATED WORK
|
| 135 |
+
|
| 136 |
+
Unsupervised pretraining has been intensively studied in the past years, most notably is the work by Dahl et al. (2012) who found that pretraining with deep belief networks improved feedforward acoustic models. More recent acoustic models have found pretraining unnecessary (Xiong et al.,
|
| 137 |
+
|
| 138 |
+
2016; Zhang et al., 2016; Chan et al., 2015), probably because the reconstruction objective of deep belief networks is too easy. In contrast, we find that pretraining language models by next step prediction significantly improves seq2seq on challenging real world datasets.
|
| 139 |
+
|
| 140 |
+
Despite its appeal, unsupervised learning is rarely shown to improve supervised training. Dai & Le (2015) was amongst the rare studies which showed the benefits of pretraining in a semi-supervised learning setting. Their method is similar to our method except that they did not have a decoder network and thus could not apply to seq2seq learning. Similarly, Zhang & Zong (2016) found it useful to add an additional task of sentence reordering of source-side monolingual data for neural machine translation. Various forms of transfer or multitask learning with seq2seq framework also have the flavors of our algorithm (Zoph et al., 2016; Luong et al., 2015a; Firat et al., 2016).
|
| 141 |
+
|
| 142 |
+
Perhaps most closely related to our method is the work by Gulcehre et al. (2015), who combined a language model with an already trained seq2seq model by fine-tuning additional deep output layers. Empirically, their method produces small improvements over the supervised baseline. We suspect that their method does not produce significant gains because (i) the models are trained independently of each other and are not fine-tuned (ii) the LM is combined with the seq2seq model after the last layer, wasting the benefit of the low level LM features, and (iii) only using the LM on the decoder side. Venugopalan et al. (2016) addressed (i) but still experienced minor improvements. Using pretrained GloVe embedding vectors (Pennington et al., 2014) had more impact.
|
| 143 |
+
|
| 144 |
+
Related to our approach in principle is the work by Chen et al. (2016) who proposed a two-term, theoretically motivated unsupervised objective for unpaired input-output samples. Though they did not apply their method to seq2seq learning, their framework can be modified to do so. In that case, the first term pushes the output to be highly probable under some scoring model, and the second term ensures that the output depends on the input. In the seq2seq setting, we interpret the first term as a pretrained language model scoring the output sequence. In our work, we fold the pretrained language model into the decoder. We believe that using the pretrained language model only for scoring is less efficient that using all the pretrained weights. Our use of labeled examples satisfies the second term. These connections provide a theoretical grounding for our work.
|
| 145 |
+
|
| 146 |
+
In our experiments, we benchmark our method on machine translation, where other unsupervised methods are shown to give promising results (Sennrich et al., 2015b; Cheng et al., 2016). In backtranslation (Sennrich et al., 2015b), the trained model is used to decode unlabeled data to yield extra labeled data. One can argue that this method may not have a natural analogue to other tasks such as summarization. We note that their technique is complementary to ours, and may lead to additional gains in machine translation. The method of using autoencoders in Cheng et al. (2016) is promising, though it can be argued that autoencoding is an easy objective and language modeling may force the unsupervised models to learn better features.
|
| 147 |
+
|
| 148 |
+
# 5 CONCLUSION
|
| 149 |
+
|
| 150 |
+
We presented a novel unsupervised pretraining method to improve sequence to sequence learning. The method can aid in both generalization and optimization. Our scheme involves pretraining two language models in the source and target domain, and initializing the embeddings, first LSTM layers, and softmax of a sequence to sequence model with the weights of the language models. Using our method, we achieved state-of-the-art machine translation results on both WMT’14 and WMT’15 English to German.
|
| 151 |
+
|
| 152 |
+
A key advantage of this technique is that it is flexible and can be applied to a large variety of tasks, such as summarization, where it surpasses the supervised learning baseline.
|
| 153 |
+
|
| 154 |
+
# ACKNOWLEDGMENTS
|
| 155 |
+
|
| 156 |
+
We thank George Dahl, Andrew Dai, Laurent Dinh, Stephan Gouws, Geoffrey Hinton, Rafal Jozefowicz, Pooya Khorrami, Phillip Louis, Ramesh Nallapati, Arvind Neelakantan, Xin Pan, Abi See, Rico Sennrich, Luke Vilnis, Yuan Yu and the Google Brain team for their help with the project.
|
| 157 |
+
|
| 158 |
+
# REFERENCES
|
| 159 |
+
|
| 160 |
+
Robert B. Allen. Several studies on natural language and back-propagation. IEEE First International Conference on Neural Networks, 1987.
|
| 161 |
+
|
| 162 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
|
| 163 |
+
|
| 164 |
+
Ondˇrej Bojar, Rajen Chatterjee, Christian Federmann, Barry Haddow, Matthias Huck, Chris Hokamp, Philipp Koehn, Varvara Logacheva, Christof Monz, Matteo Negri, Matt Post, Carolina Scarton, Lucia Specia, and Marco Turchi. Findings of the 2015 workshop on statistical machine translation. In Proceedings of the Tenth Workshop on Statistical Machine Translation, 2015.
|
| 165 |
+
|
| 166 |
+
William Chan, Navdeep Jaitly, Quoc V. Le, and Oriol Vinyals. Listen, attend and spell. arXiv preprint arXiv:1508.01211, 2015.
|
| 167 |
+
|
| 168 |
+
Jianshu Chen, Po-Sen Huang, Xiaodong He, Jianfeng Gao, and Li Deng. Unsupervised learning of predictors from unpaired input-output samples. abs/1606.04646, 2016.
|
| 169 |
+
|
| 170 |
+
Yong Cheng, Wei Xu, Zhongjun He, Wei He, Hua Wu, Maosong Sun, and Yang Liu. Semi-supervised learning for neural machine translation. arXiv preprint arXiv:1606.04596, 2016.
|
| 171 |
+
|
| 172 |
+
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 EMNLP, 2014.
|
| 173 |
+
|
| 174 |
+
G. E. Dahl, D. Yu, L. Deng, and A. Acero. Context-dependent pre-trained deep neural networks for largevocabulary speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 20(1): 30–42, 2012. ISSN 1558-7916.
|
| 175 |
+
|
| 176 |
+
Andrew M. Dai and Quoc V. Le. Semi-supervised sequence learning. In NIPS. 2015.
|
| 177 |
+
|
| 178 |
+
Orhan Firat, Baskaran Sankaran, Yaser Al-Onaizan, Fatos T. Yarman-Vural, and Kyunghyun Cho. Zeroresource translation with multi-lingual neural machine translation. arXiv preprint arXiv:1606.04164, 2016.
|
| 179 |
+
|
| 180 |
+
Caglar Gulcehre, Orhan Firat, Kelvin Xu, Kyunghyun Cho, Loic Barrault, Huei-Chi Lin, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. On using monolingual corpora in neural machine translation. arXiv preprint arXiv:1503.03535, 2015.
|
| 181 |
+
|
| 182 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In NIPS. 2015.
|
| 183 |
+
|
| 184 |
+
Sebastien Jean, Orhan Firat, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. Montreal neural ma- ´ chine translation systems for WMT’15. In Proceedings of the Tenth Workshop on Statistical Machine Translation, 2015.
|
| 185 |
+
|
| 186 |
+
Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
|
| 187 |
+
|
| 188 |
+
Nal Kalchbrenner and Phil Blunsom. Recurrent continuous translation models. In EMNLP, 2013.
|
| 189 |
+
|
| 190 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 191 |
+
|
| 192 |
+
Chin-Yew Lin. ROUGE: a package for automatic evaluation of summaries. In Proceedings of the Workshop on Text Summarization Branches Out (WAS 2004), 2004.
|
| 193 |
+
|
| 194 |
+
Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning. In ICLR, 2015a.
|
| 195 |
+
|
| 196 |
+
Minh-Thang Luong, Hieu Pham, and Christopher D. Manning. Effective approaches to attention-based neural machine translation. In EMNLP, 2015b.
|
| 197 |
+
|
| 198 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S. Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NIPS. 2013.
|
| 199 |
+
|
| 200 |
+
Ramesh Nallapati, Bing Xiang, and Bowen Zhou. Sequence-to-sequence RNNs for text summarization. arXiv preprint arXiv:1602.06023, 2016.
|
| 201 |
+
|
| 202 |
+
Courtney Napoles, Matthew Gormley, and Benjamin Van Durme. Annotated gigaword. In Proceedings of the Joint Workshop on Automatic Knowledge Base Construction and Web-scale Knowledge Extraction. ACL, 2012.
|
| 203 |
+
|
| 204 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. BLEU: A method for automatic evaluation of machine translation. In ACL, 2002.
|
| 205 |
+
|
| 206 |
+
Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. ICML, 2013.
|
| 207 |
+
|
| 208 |
+
Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In EMNLP, 2014.
|
| 209 |
+
|
| 210 |
+
Hasim Sak, Andrew W. Senior, and Franc¸oise Beaufays. Long short-term memory recurrent neural network architectures for large scale acoustic modeling. In INTERSPEECH, 2014.
|
| 211 |
+
|
| 212 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015a.
|
| 213 |
+
|
| 214 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. arXiv preprint arXiv:1511.06709, 2015b.
|
| 215 |
+
|
| 216 |
+
Felix Stahlberg, Eva Hasler, and Bill Byrne. The edit distance transducer in action: The university of cambridge english-german system at wmt16. In Proceedings of the First Conference on Machine Translation, pp. 377– 384, Berlin, Germany, August 2016. Association for Computational Linguistics. URL http://www. aclweb.org/anthology/W/W16/W16-2324.
|
| 217 |
+
|
| 218 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In NIPS. 2014.
|
| 219 |
+
|
| 220 |
+
Subhashini Venugopalan, Lisa Anne Hendricks, Raymond Mooney, and Kate Saenko. Improving LSTM-based video description with linguistic knowledge mined from text. arXiv preprint arXiv:1604.01729, 2016.
|
| 221 |
+
|
| 222 |
+
Philip Williams, Rico Sennrich, Maria Nadejde, Matthias Huck, Barry Haddow, and Ondˇrej Bojar. Edinburgh’s statistical machine translation systems for wmt16. In Proceedings of the First Conference on Machine Translation, pp. 399–410, Berlin, Germany, August 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/W/W16/W16-2327.
|
| 223 |
+
|
| 224 |
+
W. Xiong, Jasha Droppo, Xuedong Huang, Frank Seide, Mike Seltzer, Andreas Stolcke, Dong Yu, and Geoffrey Zweig. Achieving human parity in conversational speech recognition. abs/1610.05256, 2016.
|
| 225 |
+
|
| 226 |
+
Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
|
| 227 |
+
|
| 228 |
+
Jiajun Zhang and Chengqing Zong. Exploiting source-side monolingual data in neural machine translation. In EMNLP, 2016.
|
| 229 |
+
|
| 230 |
+
Yu Zhang, William Chan, and Navdeep Jaitly. Very deep convolutional networks for end-to-end speech recognition. abs/1610.03022, 2016. URL http://arxiv.org/abs/1610.03022.
|
| 231 |
+
|
| 232 |
+
Barret Zoph, Deniz Yuret, Jonathan May, and Kevin Knight. Transfer learning for low-resource neural machine translation. In EMNLP, 2016.
|
| 233 |
+
|
| 234 |
+
Ramon P. Neco and Mikel L. Forcada. Asynchronous translations with recurrent neural nets. ˜ Neural Networks, 1997.
|
| 235 |
+
|
| 236 |
+
# APPENDIX
|
| 237 |
+
|
| 238 |
+
SELECTED SUMMARIZATION OUTPUTS
|
| 239 |
+
|
| 240 |
+
Table 5: The pretrained model outputs a highly informative summary, while the no pretrain model outputs irrelevant details.
|
| 241 |
+
|
| 242 |
+
<table><tr><td>Source Document (cnn ) like phone booths and typewriters ,record stores are a vanishing breed -another victim</td></tr><tr><td>of the digital age .camelot music .virgin megastores .wherehouse music . tower records . all of them gone . corporate america has largely abandoned brick - and - mortar music retailing to a scattering of independent stores , many of them in scruffy urban neighborhoods . and that s not necessarily a bad thing . yes ,it s harder in the spotify era to find a place to go buy physical music . but many of the remaining record stores are succeeding - even thriving - by catering to a passionate core of customers and collectors .on saturday,,hundreds of music retailers will hold events to commemorate record store day,an annual celebration of ,well ,your neighborhood record store .many stores will host live performances ,drawings ,book signings ,special sales of rare or autographed vinyl and other happenings . some will even serve beer.to their diehard customers ,these places are more than mere stores : they are cultural institutions that celebrate music history(the entire duran duran oeuvre ,all in one place !),display artifacts(aretha franklin on vinyl!),and nurture the local music scene(hey,here s acd by your brother s metal band !). they also employ knowledgeable clerks who will be happy to debate the relative merits of blood on the tracks and blonde on blonde .or maybe ,like jack black in high fidelity, just mock your lousy taste in music . so</td></tr><tr><td>if you re a music geek ,drop by . but you might think twice before asking if they stock i just called to say i love you .</td></tr><tr><td>Ground Truth summary saturday is record store day,celebrated at music stores around the world .many stores will</td></tr><tr><td>host live performances ,drawings and special sales of rare vinyl .</td></tr><tr><td>No pretrain corporate america has largely abandoned brick - brick - mortar music . many of the remaining</td></tr><tr><td>record stores are succeeding - even thriving-by catering to a passionate core of customers . Pretrained hundreds of music retailers will hold events to commemorate record store day .many stores</td></tr></table>
|
| 243 |
+
|
| 244 |
+
Table 6: The pretrained model outputs a highly relevant summary but makes a mistake on the feline executioner’s name. The no pretrain model degenerates into irrelevant details and repeats itself.
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Source Document (cnn ) hey,look what i did . that smallboast on social media can trigger a whirlwind that</td></tr><tr><td>lindsey allegedly shot an arrow into the back of an orange tabby s head and posted a proud photo this week on facebook of herself smiling ,as she dangled its limp body by the arrow s shaft . lindsey added a comment,cnn affiliate kbtx reported . my first bow kill,lol . the only good feral tomcat is one with an arrow through it s head ! vet of the year award ... gladly accepted .callers rang the phones hot at washington county s animal clinic ,where lindsey worked ,to vent their outrage .web traffic crashed its website . high price of public shaming on the internet then an animal rescuer said that lindsey s prey was probably not a feral cat but the pet of an elderly couple ,who called him tiger . he had gone missing on wednesday , the same day that lindsey posted the photo of the slain cat.cnn has not been able to confirm the claim .as the firestorm grew ,lindsey wrote in the comments underneath her post : no i did not lose my job .lol .psshh .like someone would get rid of me .i m awesome ! that prediction was wrong. the clinic fired lindsey ,covered her name on its marquee with duct tape ,and publicly distanced itself from her actions .our goal now is to go on and try to fix our black eye and hope that people are reasonable and understand that those actions do nt anyway portray what we re for here at washington animal clinic ,said dr. bruce buenger . we put our heart and soul into this place .the clinic told wbtx that lindsey was not available for comment .cnn is reaching out to her . she removed her controversial post then eventually shut down her facebook page . callers also complained to the brenham police department and washington county animal control,as her facebook post went viral .the sheriff s office in austin county ,where the cat was apparently shot , is investigating ,and lindsey could face charges .its dispatchers were overloaded with calls,the sheriff posted on facebook .we are asking you to please take it easy on our dispatchers . as soon as the investigation is complete , we will post the relevant information here on this page ,the post read . animal rights activists are pushing for charges . animal cruelty must be taken seriously ,and the guilty parties should be punished to the fullest extent of the law ,said cat advocacy activist becky robinson .her organization,alley cat allies ,is offering a $ 7,5OO reward for evidence leading to the arrest and conviction of the person who shot the cat . but others stood up for lindsey . she s amazing</td></tr><tr><td>. she s caring ,said customer shannon stoddard . she s a good vet,so maybe her bad choice of posting something on facebook was not good .but i do nt think she should be judged for it .she dropped off balloons at the animal clinic for lindsey with a thank you note.cnn s jeremy grisham contributed to this report .</td></tr><tr><td>Ground Truth summary dr.kristen lindsey has since removed the post of her holding the dead cat by an arrow .her</td></tr><tr><td>employer fired her ; the sheriff s ofice is investigating.activist offers $7,5OO reward . No pretrain dr. kristen lindsey allegedly shot an arrow into the back of an orange orange tabby s head . it</td></tr><tr><td> s the only good good tomcat is one with an arrow through it s head ! vet vet of the year award</td></tr><tr><td>Pretrained lindsey lindsey ,a texas veterinarian , shot an arrow into the back of an orange tabby s head . she posted a photo of herself smiling ,as she dangled its limp body by the arrow s shaft . lindsey could face charges,the sheriff s department says .</td></tr><tr><td>Source Document eugenie bouchard s run of poor form continued as the top seed was beaten 6 - 3 ,6 - 1 by</td></tr><tr><td>american lauren davis in the second round at the family circle cup in charleston on wednesday . davis ,21, had lost her only career meeting with bouchard ,but was in control this time against the world no 7 . davis won nine of the final 11 games of the match and broke bouchard s serve twice in the final set to pull off the upset . eugenie bouchard fires down a serve during her second - round match at the family circle cup bouchard shows her frustrations during her straight - sets defeat by lauren davis on wednesday i ve never beaten here before , so i came out knowing i had nothing to lose ,said davis ,ranked 66th in the world .bouchard was a semi-finalist last year but had struggled in the lead - up to the charlston green - clay event ,losing three of her last five matches to lower - ranked opponents .davis used precise groundstrokes to keep bouchard on her heels throughout the second set.davis broke bouchard S serve to love to take a 3 -1 lead as the 21 - year - old canadian had a double fault, then sailed a forehand long to fall behind .two games later ,davis hit a backhand to send back bouchard s lO2mph serve for a winner down the left sideline and a 5-1 lead.davis hits a forehand on her way to an impressve win against the canadian top seed bouchard has struggled recently,this time slumping to her fourth defeat in six matches the match ended on bouchard s forehand into the net,davis waving to the cheering crowd.bouchard said</td></tr><tr><td>: as soon as it was over,definitely a bit of anger,but also kind of this confusion,slash , like quest to find what s wrong,like this kind of searching feeling that ,ok ,like i know something s off .i know something s not right .so i want to find it . i was definitely a little bit slow today ,overpowered .usually ,im the one dominating .so it was definitely, just ,i do nt know, just not good .</td></tr><tr><td>Ground Truth summary eugenie bouchard suffered her fourth defeat in six matches . the canadian top seed lost to lauren davis at the family circle cup . world no 66 davis won 6 - 3,6 - 1 in the second round in charleston .davis won nine of the final 11 games of the match to seal victory .click here</td></tr><tr><td>for all the latest news from charleston . No pretrain bouchard beat american lauren davis 6 - 3,6 - 1 in the second round of the family circle cup</td></tr><tr><td>in charleston on wednesday.bouchard had lost her only career meeting with bouchard but was in control this time against the world no 7 .bouchard won nine of the final 11 games of the match and broke bouchard s serve twice in the final set to pull off the upset .</td></tr><tr><td>Pretrained eugenie bouchard was beaten 6 - 3,6 -1 by american lauren davis in the second round . davis had lost her only career meeting with bouchard,but was in control this time against the</td></tr><tr><td>world no 7. davis hit a backhand to send back bouchard s 1O2mph serve for a winner down the left sideline .</td></tr></table>
|
| 247 |
+
|
| 248 |
+
Table 7: Both models output a relevant summary, but the no pretrain model uses the same name to refer to both players.
|
| 249 |
+
|
| 250 |
+
Table 8: A failure case. The pretrained model outputs irrelevant details while the no pretrain model successfully summarizes the document.
|
| 251 |
+
|
| 252 |
+
<table><tr><td>Source Document (cnn) mike rowe is coming to a river near you .sometimes , you hear about a person who</td></tr><tr><td>makes you feel good about humanity ,but bad about yourself ,rowe says .on thursday s episode of somebody s got ta do it , rowe meets up with chad pregracke ,the founder of living lands & waters ,who does just that . pregracke wants to clean up the nation s rivers one piece of detritus at a time . his quota ? always more . read mike rowe s facebook post on how to break our litter habit . since he founded the nonprofit in 1998 at the ripe age of 23 , pregracke and more than 87,OoO volunteers have collected 8.4 million pounds of trash from u.s. waterways .those efforts helped him earn the 2O13 cnn hero of the year award ,along with numerous other honors .wherever you are , no matter if there s a stream ,a creek ,a lake , whatever ,that needs to be cleaned up,you can do it . just organize it and do it, he told cnn s anderson cooper after his win . pregracke also gives rowe a tour of the 15O - foot, solar - powered barge that the living lands & waters staff calls home during lengthy cleanups . the part - home ,part - office,part - dumpster has seven bedrooms ,two bathrooms ,a classroom and a kitchen -and just happens to be made from a recycled strip club .according to the organization s latest annual report,pregracke has made it his mission in 2O15 to remove</td></tr><tr><td>500,00O more pounds of trash .if you d like to help achieve this goal, visit his website to learn how to help : livinglandsandwaters.org / get - involved / .</td></tr><tr><td>Ground Truth summary chad pregracke was the 2O13 cnn hero of the year. mike rowe visited pregracke for an episode</td></tr><tr><td>of somebody s got ta do it . No pretrain</td></tr><tr><td>rowe meets up with chad pregracke , founder of living lands & waters . pregracke and more</td></tr><tr><td>than 87,Ooo volunteers collected 8.4 million pounds of trash from u.s. waterways . Pretrained rowe is the founder of living lands & waters , who does just that . pregracke also gives rowe</td></tr></table>
|
| 253 |
+
|
| 254 |
+
# SELECTED ENGLISH GERMAN OUTPUTS
|
| 255 |
+
|
| 256 |
+
<table><tr><td rowspan=1 colspan=1>Source</td></tr><tr><td rowspan=1 colspan=1>Mayor Bloomberg told reporters that, because of that court order, the city had suspended thereopening of the public space and protesters were informed, however, that local laws do notallow them to re-install with camping shops and sleeping bags.</td></tr><tr><td rowspan=1 colspan=1>Ground Truth</td></tr><tr><td rowspan=1 colspan=1>Buirgermeister Bloomberg stellt vor der Presse Klar , das aufgrund dieser richterlichen Anord-nung die erneute Offnung des Platzes fir den Publikumsverkehr und die Demonstrantenaufgehoben worden sei .Die Demonstranten wies er darauf hin,dass die Stadtgesetze ihnennicht erlaubten,sich erneut mit Zelten und Schlafsäcken an diesem Ort einzurichten .</td></tr><tr><td rowspan=1 colspan=1>No pretrain</td></tr><tr><td rowspan=1 colspan=1>Der Burgermeister Bloomberg sagte den Reportern , dass die Stadt aufgrund dieser Gericht-sentscheidung die Wiedereroffnung des offentlichen Raumes und die Information derDemonstranten ausgesetzt habe,dass die lokalen Gesetze ihnen nicht erlauben ,mit denCampingplätzen und Schlafsäcken neu zu installieren .</td></tr><tr><td rowspan=1 colspan=1>Pretrained</td></tr><tr><td rowspan=1 colspan=1>Birgermeister Bloomberg erklärte gegenuber Journalisten ,dass die Stadt aufgrund dieserGerichtsentscheidung die Wiedereroffnung des offentlichen Raums ausgesetzt habe und dassdie Demonstranten daruber informiert wurden ,dass die ortlichen Gesetze es ihnen nichterlauben wuirden , sich mit Campingplätzen und Schlafsälen neu zu installieren .</td></tr></table>
|
| 257 |
+
|
| 258 |
+
Table 9: The no pretrain model makes a complete mistranslation when outputting ”und die Information der Demonstranten ausgesetzt habe”. That translates to ”the reopening of the public space and the information [noun] of the protesters were suspended”, instead of informing the protesters. Furthermore, it wrongly separated the two sentences, so the first sentence has extra words and the second sentence is left without a subject. The pretrained model does not make any of these mistakes. However, both models make a vocabulary mistake of ”zu installieren”, which is typically only used to refer to installing software. A human evaluator fluent in both German and English said that the pretrained version was better.
|
| 259 |
+
|
| 260 |
+
<table><tr><td rowspan=1 colspan=1>Source</td></tr><tr><td rowspan=1 colspan=1>The low February temperatures, not only did they cause losses of millions for the agricultural sector, but they limited the possibilities of the state economy to grow,causing a contraction ofthe economic activity in general of 3.6 percent in the first half of the year, mainly supportedby the historic fall of 31.16 per cent in agriculture,which affected the dynamics of othereconomic sectors.</td></tr><tr><td rowspan=1 colspan=1>Ground Truth</td></tr><tr><td rowspan=1 colspan=1>Die niedrigen Temperaturen im Februar verursachten nicht nur Verluste in Millionenhohe inderLandwirtschaft,sondern steckten daruber hinaus dem Wachstum der Staatswirtschaftenge Grenzen und verursachten im ersten Vierteljahr einen allgemeinen Rückgang derWirtschaftstatigkeit um 3,6 Prozent Dieser geht hauptsächlich auf den historischen Abbauder landwirtschaftlichen Entwicklung um 31,16 Prozent zuruck,der sich bremsend auf weit-ere Wirtschaftssektoren auswirkte .</td></tr><tr><td rowspan=1 colspan=1>No pretrain</td></tr><tr><td rowspan=1 colspan=1>Die niedrigen Temperaturen im Februar fuhrten nicht nur zu Verlusten fur die Landwirtschaft,sondern sie beschränkten die Moglichkeiten der staatlichen Wirtschaft,wachsen zu wach-sen,wodurch die Wirtschaftstatigkeit insgesamt von 3,6 Prozent in der ersten Halfte desJahres ,hauptsächlich durch den historischen Rückgang von 31.16 % in der Landwirtschaft ,beeinflusst wurde,was die Dynamik anderer Wirtschaftssektoren betraf .</td></tr><tr><td rowspan=1 colspan=1>Pretrained</td></tr><tr><td rowspan=1 colspan=1>Die niedrigen Temperaturen im Februar fuhrten nicht nur zu Verlusten von Millionen fur denAgrarsektor,sondern beschränkten die Moglichkeiten der Staatswirtschaft, zu wachsen, waszu einer Schrumpfung der Wirtschaftstatigkeit im Allgemeinen von 3,6 Prozent in der erstenHalfte des Jahres fuhrte,hauptsächlich durch den historischen Einbruch von 316 Prozent inder Landwirtschaft,der die Dynamik anderer Wirtschaftsbereiche beeinflusst hatte .</td></tr></table>
|
| 261 |
+
|
| 262 |
+
Table 10: The human evaluator noted that the pretrained version is better, as it correctly captures the meaning and sentence structure of the middle. The no pretrain model does not misses translating the word ”million”, repeats itself in ”wachsen zu wachsen”, and puts the verb ”beeinflusst wurde” is an unnatural position. However, the pretrained model makes a mistake in the percentage $3 1 6 \%$ instead of $3 1 . 1 6 \%$ ).
|
| 263 |
+
|
| 264 |
+
Table 11: An example where the English source is poorly worded. Both models output poor translations, but the evaluator noted that the pretrained version is still better than the no pretrain version. Interestingly, both models mistranslate ”radical” as ”radikalislamistisches”, which means ”radical Islam”, which is probably a bias in the training data.
|
| 265 |
+
|
| 266 |
+
<table><tr><td rowspan=1 colspan=1>Source</td></tr><tr><td rowspan=1 colspan=1>To facilitate the inception of the Second World War, they allowed bankers and politiciansto create a latent conflict situation by saddling Germany with huge war reparations, therebymaking a radicalist example of the impoverished masses,it remained only to introduce asuffciently convincing culprit and a leader with a simple solution, while also creating a multi-racial Czechoslovakia with a strong German minority to play,and indeed did, the role of afifth colony, once the war had been ignited.</td></tr><tr><td rowspan=1 colspan=1>Ground Truth</td></tr><tr><td rowspan=1 colspan=1>Um den Zweiten Weltkrieg einfacher entfachen zu konnen ,lieBen die Banker durch diePolitik eine latente Konfliktsituation schaffen ,indem sie Deutschland mit gigantischenKriegsreparationen belegten ; dadurch schufen sie die Voraussetzung verarmter Massen ,sodass sie den Deutschen nur noch einen ausreichend starken Fuhrer unterjubeln mussten,derdie Schuldigen benannte und einfache Losungen anbot ; ein weiterer Faktor war die Schaf-fung des Vielvolkerstaates Tschechoslowakei mit einer starken deutschen Minderheit,die dieFunktion einer fuinften Kolonne einnehmen sollte und auch einnahm ,um den Kriegsbrandzu entfachen.</td></tr><tr><td rowspan=1 colspan=1>No pretrain</td></tr><tr><td rowspan=1 colspan=1>Um die Grundung des Zweiten Weltkriegs zu erleichtern , ermoglichte es den Bankern undPolitikern ,eine latente Konfliktlage zu schaffen,indem sie Deutschland mit enormen Repa-rationsforderungen konfrontierte ,wodurch ein radikalislamistisches Beispiel der verarmtenMassen entstand ,es blieb nur ,einen ausreichend aussagekraftigen Schuldigen und einenFuhrer mit einer einfachen Losung zu etablieren ,während gleichzeitig eine multi-ethnischeTschechoslowakei mit einer starken deutschen Minderheit zu spielen war und tatsächlich dieRolle einer funften Kolonie war .</td></tr><tr><td rowspan=1 colspan=1>Pretrained</td></tr><tr><td rowspan=1 colspan=1>Um die Einfuhrung des Zweiten Weltkrieges zu erleichtern ,lieBen sie Banker und Politikereine latente Konfliktlage schaffen ,indem sie Deutschland mit riesigen Reparationszahlungenbelieferten,wodurch ein radikalislamistisches Beispiel der verarmten Massen entstand,esblieb nur,einen ausreichend üiberzeugenden Schuldigen und einen Fuhrer mit einer einfachenLosung zu präsentieren,während gleichzeitig eine multiethnische Tschechoslowakei miteiner starken deutschen Minderheit geschaffen wurde ,um zu spielen,und tatsächlich,dieRolle einer funften Kolonie,sobald der Krieg entfacht worden war .</td></tr></table>
|
| 267 |
+
|
| 268 |
+
Table 12: Another example where the English source is poorly worded. Both models get the structure right, but have a variety of problematic translations. Both models miss the meaning of ”total vote count”. They both also translate ”electoral boxes” poorly - the no pretrain model calls it ”electoral paperwork” while the pretrained model calls it ”ballots”. These failures may be because of the poorly worded English source. The human evaluator found them both equally poor.
|
| 269 |
+
|
| 270 |
+
<table><tr><td rowspan=1 colspan=1>Source</td></tr><tr><td rowspan=1 colspan=1>The total vote count will also be done if at the end of the ordinary calculation is establishedthat the diference between the winner and the candidate placed on second position is equalto or less than one percentage point, as long as there is a request of the representative ofthe political party whose candidate came on the second position, case in which there will beexcluded the electoral boxes that have been considered during the partial recount.</td></tr><tr><td rowspan=1 colspan=1>Ground Truth</td></tr><tr><td rowspan=1 colspan=1>Die Stimmenauszählung kann auch in ihrer Gesamtheit erfolgen ,wenn nach Abschlussder ordentlichen Berechnung festgestelt wird,dass der Unterschied zwischen dem mut-maBlichen Gewinner und dem Kandidaten auf dem zweiten Platz gleich oder geringer als einProzent ist,vorausgesetzt es liegt ein ausdruicklicher Antrag von einem Vertreter der Partei ,deren Kandidat Zweiter geworden ist, vor .In diesem Fall wirden die Wahlpakete ,die einerteilweisen Auszahlung ausgesetzt wurden,ausgeschlossen .</td></tr><tr><td rowspan=1 colspan=1>No pretrain</td></tr><tr><td rowspan=1 colspan=1>Die gesamte Stimmenanzahl wird auch dann erreicht,wenn am Ende der ordentlichenBerechnung festgestellt wird ,dass der Unterschied zwischen dem Sieger und dem Kandi-daten,der auf der zweiten Position liegt ,gleich oder weniger als einen Prozentpunkt beträgt, Vorausgesetzt,dass der Vertreter der Partei,deren Kandidat auf der zweiten Position ist,derFall ist,in dem die Wahlunterlagen,die während der teilweisen Rückzahlung beruicksichtigtwurden,ausgeschlossen werden.</td></tr><tr><td rowspan=1 colspan=1>Pretrained</td></tr><tr><td rowspan=1 colspan=1>Die Gesamtzahl der Stimmzetel wird auch dann durchgefuhrt,wenn am Ende der or-dentlichen Berechnung festgestelt wird, dass der Unterschied zwischen dem Gewinner unddem auf den zweiten Platz platzierten Kandidaten gleich oder weniger als einen Prozent-punkt betragt,solange es einen Antrag des Vertreters der politischen Partei gibt,dessenKandidat auf die zweite Position kam,in dem es die Wahlzettel ausklammert,die währendder Teilzählung berüicksichtigt wurden .</td></tr></table>
|
parse/train/H1Gq5Q9el/H1Gq5Q9el_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lZJpVFvr/H1lZJpVFvr.md
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ROBUST LOCAL FEATURES FOR IMPROVING THE GENERALIZATION OF ADVERSARIAL TRAINING
|
| 2 |
+
|
| 3 |
+
Chuanbiao Song & Kun He $\mathbf { \mu } ^ { * } \mathbf { \& }$ Jiadong Lin School of Computer Science and Technology Huazhong University of Science and Technology Wuhan, 430074, China {cbsong,brooklet60,jdlin}@hust.edu.cn
|
| 4 |
+
|
| 5 |
+
Liwei Wang
|
| 6 |
+
School of Electronics Engineering
|
| 7 |
+
and Computer Sciences, Peking University
|
| 8 |
+
Peking, China
|
| 9 |
+
wanglw@cis.pku.edu.cn
|
| 10 |
+
|
| 11 |
+
John E. Hopcroft Department of Computer Science Cornell University, NY 14853, USA jeh@cs.cornell.edu
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Adversarial training has been demonstrated as one of the most effective methods for training robust models to defend against adversarial examples. However, adversarially trained models often lack adversarially robust generalization on unseen testing data. Recent works show that adversarially trained models are more biased towards global structure features. Instead, in this work, we would like to investigate the relationship between the generalization of adversarial training and the robust local features, as the robust local features generalize well for unseen shape variation. To learn the robust local features, we develop a Random Block Shuffle (RBS) transformation to break up the global structure features on normal adversarial examples. We continue to propose a new approach called Robust Local Features for Adversarial Training (RLFAT), which first learns the robust local features by adversarial training on the RBS-transformed adversarial examples, and then transfers the robust local features into the training of normal adversarial examples. To demonstrate the generality of our argument, we implement RLFAT in currently state-of-the-art adversarial training frameworks. Extensive experiments on STL-10, CIFAR-10 and CIFAR-100 show that RLFAT significantly improves both the adversarially robust generalization and the standard generalization of adversarial training. Additionally, we demonstrate that our models capture more local features of the object on the images, aligning better with human perception.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Deep learning has achieved a remarkable performance breakthrough on various challenging benchmarks in machine learning fields, such as image classification (Krizhevsky et al., 2012) and speech recognition (Hinton et al., 2012). However, recent studies (Szegedy et al., 2014; Goodfellow et al., 2015) have revealed that deep neural network models are strikingly susceptible to adversarial examples, in which small perturbations around the input are sufficient to mislead the predictions of the target model. Moreover, such perturbations are almost imperceptible to humans and often transfer across diverse models to achieve black-box attacks (Papernot et al., 2017; Liu et al., 2017; Wang et al., 2019; Lin et al., 2020).
|
| 20 |
+
|
| 21 |
+
Though the emergence of adversarial examples has received significant attention and led to various defend approaches for developing robust models (Madry et al., 2018; Dhillon et al., 2018; Wang & Yu, 2019; Song et al., 2019; Zhang et al., 2019a), many proposed defense methods provide few benefits for the true robustness but mask the gradients on which most attacks rely (Carlini & Wagner, 2017a; Athalye et al., 2018; Uesato et al., 2018; Li et al., 2019). Currently, one of the best techniques to defend against adversarial attacks (Athalye et al., 2018; Li et al., 2019) is adversarial training (Madry et al., 2018; Zhang et al., 2019a), which improves the adversarial robustness by injecting adversarial examples into the training data.
|
| 22 |
+
|
| 23 |
+
Among substantial works of adversarial training, there still remains a big robust generalization gap between the training data and the testing data (Schmidt et al., 2018; Zhang et al., 2019b; Ding et al., 2019; Zhai et al., 2019). The robustness of adversarial training fails to generalize on unseen testing data. Recent works (Geirhos et al., 2019; Zhang & Zhu, 2019) further show that adversarially trained models capture more on global structure features but normally trained models are more biased towards local features. In intuition, global structure features tend to be robust against adversarial perturbations but hard to generalize for unseen shape variations, instead, local features generalize well for unseen shape variations but are hard to generalize on adversarial perturbation. It naturally raises an intriguing question for adversarial training:
|
| 24 |
+
|
| 25 |
+
For adversarial training, is it possible to learn the robust local features , which have better adversarially robust generalization and better standard generalization?
|
| 26 |
+
|
| 27 |
+
To address this question, we investigate the relationship between the generalization of adversarial training and the robust local features, and advocate for learning robust local features for adversarial training. Our main contributions are as follows:
|
| 28 |
+
|
| 29 |
+
• To our knowledge, this is the first work that sheds light on the relationship between adversarial training and robust local features. Specifically, we develop a Random Block Shuffle (RBS) transformation to study such relationship by breaking up the global structure features on normal adversarial examples.
|
| 30 |
+
• We propose a novel method called Robust Local Features for Adversarial Training (RLFAT), which first learns the robust local features, and then transfers the information of robust local features into the training on normal adversarial examples.
|
| 31 |
+
• To demonstrate the generality of our argument, we implement RLFAT in two currently stateof-the-art adversarial training frameworks, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a). Empirical results show consistent and substantial improvements for both adversarial robustness and standard accuracy on several standard datasets. Moreover, the salience maps of our models on images tend to align better with human perception.
|
| 32 |
+
|
| 33 |
+
# 2 PRELIMINARIES
|
| 34 |
+
|
| 35 |
+
In this section, we introduce some notations and provide a brief description on current advanced methods for adversarial attacks and adversarial training.
|
| 36 |
+
|
| 37 |
+
# 2.1 NOTATION
|
| 38 |
+
|
| 39 |
+
Let $F ( x )$ be a probabilistic classifier based on a neural network with the logits function $f ( x )$ and the probability distribution $p _ { F } ( \cdot | x )$ . Let $\mathcal { L } ( F ; x , y )$ be the cross entropy loss for image classification. The goal of the adversaries is to find an adversarial example $x ^ { \prime } \in \dot { \mathcal { B } } _ { \epsilon } ^ { p } ( x ) : = \{ x ^ { \prime } : \| x ^ { \prime } - x \| _ { p } \leq \epsilon \}$ in the $\ell _ { p }$ norm bounded perturbations, where $\epsilon$ denotes the magnitude of the perturbations. In this paper, we focus on $p = \infty$ to align with previous works.
|
| 40 |
+
|
| 41 |
+
# 2.2 ADVERSARIAL ATTACKS
|
| 42 |
+
|
| 43 |
+
Projected Gradient Descent. Projected Gradient Descent (PGD) (Madry et al., 2018) is a stronger iterative variant of Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2015), which iteratively solves the optimization problem $\begin{array} { r } { \operatorname* { m a x } _ { x ^ { \prime } : \| x ^ { \prime } - x \| _ { \infty } < \epsilon } \mathcal { L } \left( F ; x ^ { \prime } , y \right) } \end{array}$ with a step size $\alpha$ :
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\begin{array} { r l } & { \mathrel { \phantom { = } } x ^ { 0 } \sim \mathcal { U } \left( \mathcal { B } _ { \epsilon } ^ { \infty } ( x ) \right) , } \\ & { \mathrel { \phantom { = } } x ^ { t + 1 } = \Pi _ { \mathcal { B } _ { \epsilon } ^ { \infty } ( x ) } \left( x ^ { t } - \alpha \mathrm { s i g n } \left( \nabla _ { x } \mathcal { L } ( F ; x , y ) | _ { x ^ { t } } \right) \right) , } \end{array}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $\mathcal { U }$ denotes the uniform distribution, and $\Pi _ { B _ { \epsilon } ^ { \infty } ( x ) }$ indicates the projection of the set $B _ { \epsilon } ^ { \infty } ( x )$
|
| 50 |
+
|
| 51 |
+
Carlini-Wagner attack. Carlini-Wagner attack (CW) (2017b) is a sophisticated method to directly solve for the adversarial example $x ^ { a d \overline { { v } } }$ by using an auxiliary variable $w$ :
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
x ^ { a d v } = 0 . 5 \cdot \left( \operatorname { t a n h } ( w ) + 1 \right) .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
The objective function to optimize the auxiliary variable $w$ is defined as:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\operatorname* { m i n } _ { \boldsymbol { w } } \left\| \boldsymbol { x } ^ { a d v } - \boldsymbol { x } \right\| + c \cdot \mathcal { F } \left( \boldsymbol { x } ^ { a d v } \right) ,
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where ${ \mathcal { F } } ( x ^ { a d v } ) = \operatorname* { m a x } \left( f _ { y ^ { \mathrm { t r u e } } } ( x ^ { a d v } ) - \operatorname* { m a x } \left\{ f _ { i } ( x ^ { a d v } ) : i \neq y ^ { \mathrm { t r u e } } \right\} , - k \right)$ . The constant $k$ controls the confidence gap between the adversarial class and the true class.
|
| 64 |
+
|
| 65 |
+
N attack. $\mathcal { N }$ attack (Li et al., 2019) is a derivative-free black-box adversarial attack and it breaks many of the defense methods based on gradient masking. The basic idea is to learn a probability density distribution over a small region centered around the clean input, such that a sample drawn from this distribution is likely to be an adversarial example.
|
| 66 |
+
|
| 67 |
+
# 2.3 ADVERSARIAL TRAINING
|
| 68 |
+
|
| 69 |
+
Despite a wide range of defense methods, Athalye et al. (2018) and Li et al. (2019) have broken most previous defense methods (Dhillon et al., 2018; Buckman et al., 2018; Wang & Yu, 2019; Zhang et al., 2019a), and revealed that adversarial training remains one of the best defense method. The basic idea of adversarial training is to solve the min-max optimization problem, as shown in Eq. (4):
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\operatorname* { m i n } _ { F } \operatorname* { m a x } _ { x ^ { \prime } : \| x ^ { \prime } - x \| _ { \infty } < \epsilon } { \mathcal { L } } \left( F ; x ^ { \prime } , y \right) .
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Here we introduce two currently state-of-the-art adversarial training frameworks.
|
| 76 |
+
|
| 77 |
+
PGD adversarial training. PGD Adversarial Training (PGDAT) (Madry et al., 2018) leverages the PGD attack to generate adversarial examples, and trains only with the adversarial examples. The objective function is formalized as follows:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathcal { L } _ { \mathrm { P G D } } ( F ; x , y ) = \mathcal { L } ( F ; x _ { \mathrm { P G D } } ^ { \prime } , y ) ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $x _ { \mathrm { P G D } } ^ { \prime }$ is obtained via the PGD attack on the cross entropy $\mathcal { L } ( F ; x , y )$ .
|
| 84 |
+
|
| 85 |
+
TRADES. Zhang et al. (2019a) propose TRADES to specifically maximize the trade-off of adversarial training between adversarial robustness and standard accuracy by optimizing the following regularized surrogate loss:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { T R A D E S } } ( F ; x , y ) = \mathcal { L } ( F ; x , y ) + \lambda D _ { \mathrm { K L } } \left( ~ p _ { F } ( \cdot | x ) ~ \| ~ p _ { F } \left( \cdot | x _ { \mathrm { P G D } } ^ { \prime } [ x ] \right) ~ \right) ~ , } \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $x _ { \mathrm { P G D } } ^ { \prime } [ x ]$ is obtained via the PGD attack on the KL-divergence $D _ { \mathrm { K L } } \left( p _ { F } ( \cdot | x ) \parallel p _ { F } \left( \cdot | x ^ { \prime } \right) \right)$ , and $\lambda$ is a hyper-parameter to control the trade-off between adversarial robustness and standard accuracy.
|
| 92 |
+
|
| 93 |
+
# 3 ROBUST LOCAL FEATURES FOR ADVERSARIAL TRAINING
|
| 94 |
+
|
| 95 |
+
Unlike adversarially trained models, normally trained models are more biased towards the local features but vulnerable to adversarial examples (Geirhos et al., 2019). It indicates that, in contrast to global structural features, local features seems be more well-generalized but less robust against adversarial perturbation. Based on the basic observation, in this work, we focus on the learning of robust local features on adversarial training, and propose a novel form of adversarial training called RLFAT that learns the robust local features and transfers the robust local features into the training of normal adversarial examples. In this way, our adversarially trained models not only yield strong robustness against adversarial examples but also show great generalization on unseen testing data.
|
| 96 |
+
|
| 97 |
+
# 3.1 ROBUST LOCAL FEATURE LEARNING
|
| 98 |
+
|
| 99 |
+
It’s known that adversarial training tends to capture global structure features so as to increase invariance against adversarial perturbations (Zhang & Zhu, 2019; Ilyas et al., 2019). To advocate for the learning of robust local features during adversarial training, we propose a simple and straightforward image transformation called Random Block Shuffle (RBS) to break up the global structure features of the images, at the same time retaining the local features. Specifically, for an input image, we randomly split the target image into $k$ blocks horizontally and randomly shuffle the blocks, and then we perform the same split-shuffle operation vertically on the resulting image. As illustrated in Figure 1, RBS transformation can destroy the global structure features of the images to some extent and retain the local features of the images.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 1: Illustration of the RBS transformation for $k = 3$ . For a better understanding on the RBS transformation, we paint the split image blocks with different colors.
|
| 103 |
+
|
| 104 |
+
Then we apply the RBS transformation on adversarial training. Different from normal adversarial training, we use the RBS-transformed adversarial examples rather than normal adversarial examples as the adversarial information to encourage the models to learn robust local features. Note that we only use the RBS transformation as a tool to learn the robust local features during adversarial training and will not use RBS transformation in the inference phase. we refer to the form of adversarial training as RBS Adversarial Training (RBSAT).
|
| 105 |
+
|
| 106 |
+
To demonstrate the generality of our argument, we consider two currently state-of-the-art adversarial training frameworks, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a), to demonstrate the effectiveness of the robust local features.
|
| 107 |
+
|
| 108 |
+
We use the following loss function as the alternative to the objective function of PGDAT:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\mathcal { L } _ { \mathrm { P G D A T } } ^ { \mathrm { R L F L } } ( F ; x , y ) = \mathcal { L } ( F ; \mathrm { R B S } ( x _ { \mathrm { P G D } } ^ { \prime } ) , y ) ,
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
where RBS(·) denotes the RBS transformation; $x _ { \mathrm { P G D } } ^ { \prime }$ is obtained via the PGD attack on the cross entropy $\mathcal { L } ( \boldsymbol { F } ; \boldsymbol { x } , \boldsymbol { y } )$ .
|
| 115 |
+
|
| 116 |
+
imilarly, we use the following loss function as the alternative to the objective function of TRADES:
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\mathcal { L } _ { \mathrm { T R A D E S } } ^ { \mathrm { R L F L } } ( F ; x , y ) = \mathcal { L } ( F ; x , y ) + \lambda D _ { \mathrm { K L } } \left[ p _ { F } ( \cdot | x ) \parallel p _ { F } \left( \cdot | \mathrm { R B S } \left( x _ { \mathrm { P G D } } ^ { \prime } [ x ] \right) \right) \right] ,
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
where $x _ { \mathrm { P G D } } ^ { \prime } [ x ]$ is obtained via the PGD attack on the KL-divergence $D _ { \mathrm { K L } } \left( p _ { F } ( \cdot | x ) \parallel p _ { F } \left( \cdot | x ^ { \prime } \right) \right)$ ).
|
| 123 |
+
|
| 124 |
+
# 3.2 ROBUST LOCAL FEATURE TRANSFER
|
| 125 |
+
|
| 126 |
+
Since the type of input images in the training phase and the inference phase is different (RBS transformed images for training, versus original images for inference), we consider to transfer the knowledge of the robust local features learned by RBSAT to the normal adversarial examples. Specifically, we present a knowledge transfer scheme, called Robust Local Feature Transfer (RLFT). The goal of RLFT is to learn the representation that minimizes the feature shift between the normal adversarial examples and the RBS-transformed adversarial examples.
|
| 127 |
+
|
| 128 |
+
In particular, we apply RLFT on the logit layer for high-level feature alignment. Formally, the objective functions of robust local feature transfer for PGDAT and TRADES are formalized as follows, respectively:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\mathcal { L } _ { \mathrm { P G D A T } } ^ { \mathrm { R L F T } } ( F ; x , y ) = \left\| f ( \mathrm { R B S } ( x _ { \mathrm { P G D } } ^ { \prime } ) ) - f ( x _ { \mathrm { P G D } } ^ { \prime } ) \right\| _ { 2 } ^ { 2 } ,
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { T R A D E S } } ^ { \mathrm { R L F T } } ( F ; x , y ) = \| f ( \mathrm { R B S } ( x _ { \mathrm { P G D } } ^ { \prime } [ x ] ) ) - f ( x _ { \mathrm { P G D } } ^ { \prime } [ x ] ) \| _ { 2 } ^ { 2 } , } \end{array}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
where $f ( \cdot )$ denotes the mapping of the logit layer, and $\left\| \cdot \right\| _ { 2 } ^ { 2 }$ denotes the squared Euclidean norm.
|
| 139 |
+
|
| 140 |
+
# 3.3 OVERALL OBJECTIVE FUNCTION
|
| 141 |
+
|
| 142 |
+
Since the quality of robust local feature transfer depends on the quality of the robust local features learned by RBSAT, we integrate RBSAT and RLFT into an end-to-end training framework, which we refer to as RLFAT (Robust Local Features for Adversarial Training). The general training process of RLFAT is summarized in Algorithm 1. Note that the computational cost of RBS transformation (line 7) is negligible in the total computational cost.
|
| 143 |
+
|
| 144 |
+
# Algorithm 1 Robust Local Features for Adversarial Training (RLFAT).
|
| 145 |
+
|
| 146 |
+
1: Randomly initialize network $F ( x )$ ;
|
| 147 |
+
2: Number of iterations $t \gets 0$ ;
|
| 148 |
+
3: repeat
|
| 149 |
+
4: $t \gets t + 1$ ;
|
| 150 |
+
5: Read a minibatch of data $\{ x _ { 1 } , . . . , x _ { m } \}$ from the training set;
|
| 151 |
+
6: Generate the normal adversarial examples $\{ x _ { 1 } ^ { a d v } , . . . , x _ { m } ^ { \tilde { a } d v } \}$
|
| 152 |
+
7: 1Obtain the RBS-transformed adversarial examples $\{ \mathrm { R B S } ( x _ { 1 } ^ { a d v } ) , . . . , \mathrm { R B S } ( x _ { m } ^ { a d v } ) \}$ ;
|
| 153 |
+
8: Calculate the overall loss following Eq. (10).
|
| 154 |
+
9: Update the parameters of network $F$ through back propagation;
|
| 155 |
+
|
| 156 |
+
10: until the training converges.
|
| 157 |
+
|
| 158 |
+
We implement RLFAT in two currently state-of-the-art adversarial training frameworks, PGDAT and TRADES, and have new objective functions to learn the robust and well-generalized feature representations, which we call RLF $\mathrm { \Delta ^ { \prime } A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ :
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\begin{array} { r l } & { \mathcal { L } _ { \mathrm { R L F A T } _ { \mathrm { P } } } ( F ; x , y ) = \mathcal { L } _ { \mathrm { P G D A T } } ^ { \mathrm { R L F L } } ( F ; x , y ) + \eta \mathcal { L } _ { \mathrm { P G D A T } } ^ { \mathrm { R L F T } } ( F ; x , y ) , } \\ & { } \\ & { \mathcal { L } _ { \mathrm { R L F A T } _ { \mathrm { T } } } ( F ; x , y ) = \mathcal { L } _ { \mathrm { T R A D E S } } ^ { \mathrm { R L F L } } ( F ; x , y ) + \eta \mathcal { L } _ { \mathrm { T R A D E S } } ^ { \mathrm { R L F T } } ( F ; x , y ) } \end{array}
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
where $\eta$ is a hyper-parameter to balance the two terms.
|
| 165 |
+
|
| 166 |
+
# 4 EXPERIMENTS
|
| 167 |
+
|
| 168 |
+
In this section, to validate the effectiveness of RLFAT, we empirically evaluate our two implementations, denoted as $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ , and show that our models make significant improvement on both robust accuracy and standard accuracy on standard benchmark datasets, which provides strong support for our main hypothesis. Codes are available online1.
|
| 169 |
+
|
| 170 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 171 |
+
|
| 172 |
+
Baselines. Since most previous defense methods provide few benefit in true adversarially robustness (Athalye et al., 2018; Li et al., 2019), we compare the proposed methods with state-of-theart adversarial training defenses, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a).
|
| 173 |
+
|
| 174 |
+
Adversarial setting. We consider two attack settings with the bounded $\ell _ { \infty }$ norm: the white-box attack setting and the black-box attack setting. For the white-box attack setting, we consider existing strongest white-box attacks: Projected Gradient Descent (PGD) (Madry et al., 2018) and CarliniWagner attack (CW) (Carlini & Wagner, 2017b). For the black-box attack setting, we perform the powerful black-box attack, $\mathcal { N }$ attack (Li et al., 2019), on a sample of 1,500 test inputs as it is timeconsuming.
|
| 175 |
+
|
| 176 |
+
Datasets. We compare the proposed methods with the baselines on widely used benchmark datasets, namely CIFAR-10 and CIFAR-100 (Krizhevsky & Hinton, 2009). Since adversarially robust generalization becomes increasingly hard for high dimensional data and little training data (Schmidt et al., 2018), we also consider one challenging dataset: STL-10 (Coates et al.), which contains 5, 000 training images, with $9 6 \times 9 6$ pixels per image.
|
| 177 |
+
|
| 178 |
+
Neural networks. For STL-10, the architecture we use is a wide ResNet 40-2 (Zagoruyko & Komodakis, 2016). For CIFAR-10 and CIFAR-100, we use a wide ResNet w32-10. For all datasets, we scale the input images to the range of $[ 0 , 1 ]$ .
|
| 179 |
+
|
| 180 |
+
Hyper-parameters. To avoid posting much concentrate on optimizing the hyper-parameters, for all datasets, we set the hyper-parameter $\lambda$ in TRADES as 6, set the hyper-parameter $\eta$ in RLFATP as 0.5, and set the hyper-parameter $\eta$ in $\mathrm { R L F A T _ { T } }$ as 1. For the training jobs of all our models, we set the hyper-parameters $k$ of the RBS transformation as 2. More details about the hyper-parameters are provided in Appendix A.
|
| 181 |
+
|
| 182 |
+
# 4.2 EVALUATION RESULTS
|
| 183 |
+
|
| 184 |
+
We first validate our main hypothesis: for adversarial training, is it possible to learn the robust local features that have better adversarially robust generalization and better standard generalization?
|
| 185 |
+
|
| 186 |
+
In Table 1, we compare the accuracy of $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ with the competing baselines on three standard datasets. The proposed methods lead to consistent and significant improvements on adversarial robustness as well as standard accuracy over the baseline models on all datasets. With the robust local features, $\mathrm { R L F A T _ { T } }$ achieves better adversarially robust generalization and better standard generalization than TRADES. RLFATP also works similarly, showing a significant improvement on the robustness against all attacks and standard accuracy than PGDAT.
|
| 187 |
+
|
| 188 |
+
Table 1: The classification accuracy $( \% )$ of defense methods under white-box and black-box attacks on STL-10, CIFAR-10 and CIFAR-100.
|
| 189 |
+
|
| 190 |
+
(a) STL-10. The magnitude of perturbation is 0.03 in $\ell _ { \infty }$ norm.
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>67.05</td><td>30.00</td><td>31.97</td><td>34.80</td></tr><tr><td>TRADES</td><td>65.24</td><td>38.99</td><td>38.35</td><td>42.07</td></tr><tr><td>RLFATp</td><td>71.47</td><td>38.42</td><td>38.42</td><td>44.80</td></tr><tr><td>RLFATT</td><td>72.38</td><td>43.36</td><td>39.31</td><td>48.13</td></tr></table>
|
| 193 |
+
|
| 194 |
+
(b) CIFAR-10. The magnitude of perturbation is 0.03 in $\ell _ { \infty }$ norm.
|
| 195 |
+
|
| 196 |
+
<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>82.96</td><td>46.19</td><td>46.41</td><td>46.67</td></tr><tr><td>TRADES</td><td>80.35</td><td>50.95</td><td>49.80</td><td>52.47</td></tr><tr><td>RLFATp</td><td>84.77</td><td>53.97</td><td>52.40</td><td>54.60</td></tr><tr><td>RLFATT</td><td>82.72</td><td>58.75</td><td>51.94</td><td>54.60</td></tr></table>
|
| 197 |
+
|
| 198 |
+
(c) CIFAR-100. The magnitude of perturbation is 0.03 in $\ell _ { \infty }$ norm.
|
| 199 |
+
|
| 200 |
+
<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>55.86</td><td>23.32</td><td>22.87</td><td>22.47</td></tr><tr><td>TRADES</td><td>52.13</td><td>27.26</td><td>24.66</td><td>25.13</td></tr><tr><td>RLFATp</td><td>56.70</td><td>31.99</td><td>29.04</td><td>32.53</td></tr><tr><td>RLFATT</td><td>58.96</td><td>31.63</td><td>27.54</td><td>30.86</td></tr></table>
|
| 201 |
+
|
| 202 |
+
The results demonstrate that, the robust local features can significantly improve both the adversarially robust generalization and the standard generalization over the state-of-the-art adversarial training frameworks, and strongly support our hypothesis. That is, for adversarial training, it is possible to learn the robust local features, which have better robust and standard generalization.
|
| 203 |
+
|
| 204 |
+
# 4.3 LOSS SENSITIVITY UNDER DISTRIBUTION SHIFT
|
| 205 |
+
|
| 206 |
+
Motivation. Ding et al. (2019) and Zhang et al. (2019b) found that the effectiveness of adversarial training is highly sensitive to the “semantic-loss” shift of the test data distribution, such as gamma mapping. To further investigate the performance of the proposed methods, we quantify the smoothness of the models under the distribution shifts of brightness perturbation and gamma mapping.
|
| 207 |
+
|
| 208 |
+
Loss sensitivity on brightness perturbation. To quantify the smoothness of models on the shift of the brightness perturbation, we propose to estimate the Lipschitz continuity constant $\ell _ { \mathcal { F } }$ by using the gradients of the loss function with respect to the brightness perturbation of the testing data. We adjust the brightness factor of images in the HSV (hue, saturation, value) color space, which we refer to as $x ^ { b } = \mathcal { V } ( x , \alpha )$ , where $\alpha$ denotes the magnitude of the brightness adjustment. The lower the value of $\ell _ { \mathcal { F } } ^ { b } ( \alpha )$ is, the smoother the loss function of the model is:
|
| 209 |
+
|
| 210 |
+
$$
|
| 211 |
+
\ell _ { \mathcal { F } } ^ { b } ( \alpha ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \| \nabla _ { x } \mathcal { L } ( F ; \mathcal { V } ( x _ { i } , \alpha ) , y _ { t r u e } ) \| _ { 2 }
|
| 212 |
+
$$
|
| 213 |
+
|
| 214 |
+
Loss sensitivity on gamma mapping. Gamma mapping (Szeliski, 2011) is a nonlinear elementwise operation used to adjust the exposure of images by applying $\tilde { x } ^ { ( \gamma ) } = x ^ { \gamma }$ on the original image $x$ . Similarly, we approximate the loss sensitivity under gamma mapping, by using the gradients of the loss function with respect to the gamma mapping of the testing data. A smaller value indicates a smoother loss function.
|
| 215 |
+
|
| 216 |
+
$$
|
| 217 |
+
\ell _ { \mathcal { F } } ^ { g } ( \gamma ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \| \nabla _ { x } \mathcal { L } ( F ; x _ { i } ^ { \gamma } , y _ { t r u e } ) \| _ { 2 }
|
| 218 |
+
$$
|
| 219 |
+
|
| 220 |
+
Sensitivity analysis. The results for the loss sensitivity of the adversarially trained models under brightness perturbation are reported in Table 2a, where we adopt various magnitude of brightness adjustment on each testing data. In Table 2b, we report the loss sensitivity of adversarially trained models under various gamma mappings. We observe that RLFATT provides the smoothest model under the distribution shifts on all the three datasets. The results suggest that, as compared to PGDAT and TRADES, both $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ show lower gradients of the models on different data distributions, which we can directly attribute to the robust local features.
|
| 221 |
+
|
| 222 |
+
Table 2: The loss sensitivity of defense methods under different testing data distributions.
|
| 223 |
+
(a) Loss sensitivity on brightness perturbation for the adversarially trained models.
|
| 224 |
+
|
| 225 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="4">e(-0.15)/(0.15)</td></tr><tr><td>PGDAT</td><td>TRADES</td><td>RLFATp</td><td>RLFATT</td></tr><tr><td>STL-10</td><td>0.85/0.82</td><td>0.46 / 0.48</td><td>0.32 /0.34</td><td>0.22 / 0.23</td></tr><tr><td>CIFAR-10</td><td>1.41/1.36</td><td>0.88 /0.90</td><td>0.70 /0.71</td><td>0.54 / 0.56</td></tr><tr><td>CIFAR-100</td><td>3.93 /3.66</td><td>2.31/2.12</td><td>1.25 /1.31</td><td>1.00 / 0.98</td></tr></table>
|
| 226 |
+
|
| 227 |
+
(b) Loss sensitivity on gamma mapping for the adversarially trained models.
|
| 228 |
+
|
| 229 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="4">(0.8)/(1.2)</td></tr><tr><td>PGDAT</td><td>TRADES</td><td>RLFATp</td><td>RLFATT</td></tr><tr><td>STL-10</td><td>0.77 / 0.79</td><td>0.44/0.42</td><td>0.30 /0.29</td><td>0.21/ 0.19</td></tr><tr><td>CIFAR-10</td><td>1.27 / 1.20</td><td>0.84 /0.76</td><td>0.69 /0.62</td><td>0.54 / 0.48</td></tr><tr><td>CIFAR-100</td><td>2.82/2.80</td><td>1.78 / 1.76</td><td>1.09 / 1.01</td><td>0.95 / 0.88</td></tr></table>
|
| 230 |
+
|
| 231 |
+
# 4.4 ABLATION STUDIES
|
| 232 |
+
|
| 233 |
+
To further gain insights on the performance obtained by the robust local features, we perform ablation studies to dissect the impact of various components (robust local feature learning and robust local feature transfer). As shown in Figure 2, we conduct additional experiments for the ablation studies of $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ on STL-10, CIFAR-10 and CIFAR-100, where we report the standard accuracy over the clean data and the average robust accuracy over all the attacks for each model.
|
| 234 |
+
|
| 235 |
+
Does robust local feature learning help? We first analyze that as compared to adversarial training on normal adversarial examples, whether adversarial training on RBS-transformed adversarial examples produces better generalization and more robust features. As shown in Figure 2, we observe that Robust Local Features Learning (RLFL) exhibits stable improvements on both standard accuracy and robust accuracy for $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ , providing strong support for our hypothesis.
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 2: Ablation studies for $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ to investigate the impact of Robust Local Feature Learning (RLFL) and Robust Local Feature Transfer (RLFT).
|
| 239 |
+
|
| 240 |
+
Does robust local feature transfer help? We further add Robust Local Feature Transfer (RLFT), the second term in Eq. (10), to get the overall loss of RLFAT. The robust accuracy further increases on all datasets for RLFATP and RLFATT. The standard accuracy further increases also, except for $\mathrm { R L F A T _ { P } }$ on CIFAR-100, but it is still clearly higher than the baseline model PGDAT. It indicates that transferring the robust local features into the training of normal adversarial examples does help promote the standard accuracy and robust accuracy in most cases.
|
| 241 |
+
|
| 242 |
+
# 4.5 VISUALIZING THE SALIENCE MAPS
|
| 243 |
+
|
| 244 |
+
We would like to investigate the features of the input images that the models are mostly focused on. Following the work of Zhang & Zhu (2019), we generate the salience maps using SmoothGrad (Smilkov et al., 2017) on STL-10 dataset. The key idea of SmoothGrad is to average the gradients of class activation with respect to noisy copies of an input image. As illustrated in Figure 3, all the adversarially trained models basically capture the global structure features of the object on the images. As compared to PGDAT and TRADES, both $\mathrm { R L F A T _ { P } }$ and $\mathrm { R L F A T _ { T } }$ capture more local feature information of the object, aligning better with human perception. Note that the images are correctly classified by all these models. For more visualization results, see Appendix B.
|
| 245 |
+
|
| 246 |
+
# 5 CONCLUSION AND FUTURE WORK
|
| 247 |
+
|
| 248 |
+
Differs to existing adversarially trained models that are more biased towards the global structure features of the images, in this work, we hypothesize that robust local features can improve the generalization of adversarial training. To validate this hypothesis, we propose a new stream of adversarial training approach called Robust Local Features for Adversarial Training (RLFAT) and implement it in currently state-of-the-art adversarial training frameworks, PGDAT and TRADES. We provide strong empirical support for our hypothesis and show that the proposed methods based on RLFAT not only yield better standard generalization but also promote the adversarially robust generalization. Furthermore, we show that the salience maps of our models on images tend to align better with human perception, uncovering certain unexpected benefit of the robust local features for adversarial training.
|
| 249 |
+
|
| 250 |
+
Our findings open a new avenue for improving adversarial training, whereas there are still a lot to explore along this avenue. First, is it possible to explicitly disentangle the robust local features from the perspective of feature disentanglement? What is the best way to leverage the robust local features? Second, from a methodological standpoint, the discovered relationship may also serve as an inspiration for new adversarial defenses, where not only the robust local features but also the global information is taken into account, as the global information is useful for some tasks. These questions are worth investigation in future work, and we hope that our observations on the benefit of robust local features will inspire more future development.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 3: Salience maps of the four models on sampled images. For each group of images, we have the original image, and the salience maps of the four models sequentially.
|
| 254 |
+
|
| 255 |
+
# ACKNOWLEDGMENTS
|
| 256 |
+
|
| 257 |
+
This work is supported by the Fundamental Research Funds for the Central Universities (2019kfyXKJC021) and Microsoft Research Asia.
|
| 258 |
+
|
| 259 |
+
# REFERENCES
|
| 260 |
+
|
| 261 |
+
Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, pp. 274–283, 2018.
|
| 262 |
+
|
| 263 |
+
Jacob Buckman, Aurko Roy, Colin Raffel, and Ian J. Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 264 |
+
|
| 265 |
+
Nicholas Carlini and David A. Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec@CCS 2017, pp. 3–14, 2017a.
|
| 266 |
+
|
| 267 |
+
Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy, SP 2017, pp. 39–57, 2017b.
|
| 268 |
+
|
| 269 |
+
Adam Coates, Andrew Y. Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011.
|
| 270 |
+
|
| 271 |
+
Guneet S. Dhillon, Kamyar Azizzadenesheli, Zachary C. Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 272 |
+
|
| 273 |
+
Gavin Weiguang Ding, Kry Yik Chau Lui, Xiaomeng Jin, Luyu Wang, and Ruitong Huang. On the sensitivity of adversarial robustness to input data distributions. In 7th International Conference on Learning Representations, ICLR 2019, 2019.
|
| 274 |
+
|
| 275 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In 7th International Conference on Learning Representations, ICLR 2019, 2019.
|
| 276 |
+
|
| 277 |
+
Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In 3rd International Conference on Learning Representations, ICLR 2015, 2015.
|
| 278 |
+
|
| 279 |
+
Geoffrey Hinton, Li Deng, Dong Yu, George Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Brian Kingsbury, et al. Deep neural networks for acoustic modeling in speech recognition. IEEE Signal processing magazine, 29, 2012.
|
| 280 |
+
|
| 281 |
+
Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. CoRR, abs/1905.02175, 2019.
|
| 282 |
+
|
| 283 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 284 |
+
|
| 285 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012, pp. 1106–1114, 2012.
|
| 286 |
+
|
| 287 |
+
Yandong Li, Lijun Li, Liqiang Wang, Tong Zhang, and Boqing Gong. NATTACK: learning the distributions of adversarial examples for an improved black-box attack on deep neural networks. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 3866– 3876, 2019.
|
| 288 |
+
|
| 289 |
+
Jiadong Lin, Chuanbiao Song, Kun He, Liwei Wang, and John E. Hopcroft. Nesterov accelerated gradient and scale invariance for adversarial attacks. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJlHwkBYDH.
|
| 290 |
+
|
| 291 |
+
Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings, 2017.
|
| 292 |
+
|
| 293 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 294 |
+
|
| 295 |
+
Nicolas Papernot, Patrick D. McDaniel, Ian J. Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, AsiaCCS 2017, pp. 506– 519, 2017.
|
| 296 |
+
|
| 297 |
+
Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, pp. 5019–5031, 2018.
|
| 298 |
+
|
| 299 |
+
Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda B. Viegas, and Martin Wattenberg. Smooth- ´ grad: removing noise by adding noise. CoRR, abs/1706.03825, 2017.
|
| 300 |
+
|
| 301 |
+
Chuanbiao Song, Kun He, Liwei Wang, and John E. Hopcroft. Improving the generalization of adversarial training with domain adaptation. In 7th International Conference on Learning Representations, ICLR 2019, 2019.
|
| 302 |
+
|
| 303 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In 2nd International Conference on Learning Representations, ICLR 2014, 2014.
|
| 304 |
+
|
| 305 |
+
Richard Szeliski. Computer Vision - Algorithms and Applications. Texts in Computer Science. Springer, 2011.
|
| 306 |
+
|
| 307 |
+
Jonathan Uesato, Brendan O’Donoghue, Pushmeet Kohli, and Aaron van den Oord. Adversarial ¨ risk and the dangers of evaluating against weak attacks. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, pp. 5032–5041, 2018.
|
| 308 |
+
|
| 309 |
+
Huaxia Wang and Chun-Nam Yu. A direct approach to robust deep learning using adversarial networks. In 7th International Conference on Learning Representations, ICLR 2019, 2019.
|
| 310 |
+
|
| 311 |
+
Xiaosen Wang, Kun He, and John E. Hopcroft. AT-GAN: A generative attack model for adversarial transferring on generative adversarial nets. CoRR, abs/1904.07793, 2019.
|
| 312 |
+
|
| 313 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Proceedings of the British Machine Vision Conference 2016, BMVC, 2016.
|
| 314 |
+
|
| 315 |
+
Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John E. Hopcroft, and Liwei Wang. Adversarially robust generalization just requires more unlabeled data. CoRR, abs/1906.00555, 2019.
|
| 316 |
+
|
| 317 |
+
Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan. Theoretically principled trade-off between robustness and accuracy. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 7472–7482, 2019a.
|
| 318 |
+
|
| 319 |
+
Huan Zhang, Hongge Chen, Zhao Song, Duane S. Boning, Inderjit S. Dhillon, and Cho-Jui Hsieh. The limitations of adversarial training and the blind-spot attack. In 7th International Conference on Learning Representations, ICLR 2019, 2019b.
|
| 320 |
+
|
| 321 |
+
Tianyuan Zhang and Zhanxing Zhu. Interpreting adversarially trained convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 7502–7511, 2019.
|
| 322 |
+
|
| 323 |
+
# A HYPER-PARAMETER SETTING
|
| 324 |
+
|
| 325 |
+
Here we show the details of the training hyper-parameters and the attack hyper-parameters for the experiments.
|
| 326 |
+
|
| 327 |
+
Training Hyper-parameters. For all training jobs, we use the Adam optimizer with a learning rate of 0.001 and a batch size of 32. For CIFAR-10 and CIFAR-100, we run 79,800 steps for training. For STL-10, we run 29,700 steps for training. For STL-10 and CIFAR-100, the adversarial examples are generated with step size 0.0075, 7 iterations, and $\epsilon = 0 . 0 3$ . For CIFAR-10, the adversarial examples are generated with step size 0.0075, 10 iterations, and $\epsilon = 0 . 0 3$ .
|
| 328 |
+
|
| 329 |
+
Attack Hyper-parameters. For the PGD attack, we use the same attack parameters as those of the training process. For the CW attack, we use PGD to minimize its loss function with a high confidence parameter $k = 5 0$ ) following the work of Madry et al. (2018). For the $\mathcal { N }$ attack, we set the maximum number of optimization iterations to $T = 2 0 0$ , $b = 3 0 0$ for the sample size, the variance of the isotropic Gaussian $\sigma ^ { 2 } = 0 . 0 1$ , and the learning rate $\eta = 0 . 0 0 8$ .
|
| 330 |
+
|
| 331 |
+
# B MORE FEATURE VISUALIZATION
|
| 332 |
+
|
| 333 |
+
We provide more salience maps of the adversarially trained models on sampled images in Figure 4.
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
Figure 4: More Salience maps of the four models. For each group of images, we have the original image, and the salience maps of the four models sequentially.
|
parse/train/H1lZJpVFvr/H1lZJpVFvr_content_list.json
ADDED
|
@@ -0,0 +1,1677 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ROBUST LOCAL FEATURES FOR IMPROVING THE GENERALIZATION OF ADVERSARIAL TRAINING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
800,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chuanbiao Song & Kun He $\\mathbf { \\mu } ^ { * } \\mathbf { \\& }$ Jiadong Lin School of Computer Science and Technology Huazhong University of Science and Technology Wuhan, 430074, China {cbsong,brooklet60,jdlin}@hust.edu.cn ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
542,
|
| 21 |
+
239
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Liwei Wang \nSchool of Electronics Engineering \nand Computer Sciences, Peking University \nPeking, China \nwanglw@cis.pku.edu.cn ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
562,
|
| 30 |
+
170,
|
| 31 |
+
843,
|
| 32 |
+
239
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "John E. Hopcroft Department of Computer Science Cornell University, NY 14853, USA jeh@cs.cornell.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
261,
|
| 42 |
+
423,
|
| 43 |
+
316
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
353,
|
| 54 |
+
544,
|
| 55 |
+
368
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Adversarial training has been demonstrated as one of the most effective methods for training robust models to defend against adversarial examples. However, adversarially trained models often lack adversarially robust generalization on unseen testing data. Recent works show that adversarially trained models are more biased towards global structure features. Instead, in this work, we would like to investigate the relationship between the generalization of adversarial training and the robust local features, as the robust local features generalize well for unseen shape variation. To learn the robust local features, we develop a Random Block Shuffle (RBS) transformation to break up the global structure features on normal adversarial examples. We continue to propose a new approach called Robust Local Features for Adversarial Training (RLFAT), which first learns the robust local features by adversarial training on the RBS-transformed adversarial examples, and then transfers the robust local features into the training of normal adversarial examples. To demonstrate the generality of our argument, we implement RLFAT in currently state-of-the-art adversarial training frameworks. Extensive experiments on STL-10, CIFAR-10 and CIFAR-100 show that RLFAT significantly improves both the adversarially robust generalization and the standard generalization of adversarial training. Additionally, we demonstrate that our models capture more local features of the object on the images, aligning better with human perception. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
386,
|
| 65 |
+
764,
|
| 66 |
+
650
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
678,
|
| 77 |
+
336,
|
| 78 |
+
694
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Deep learning has achieved a remarkable performance breakthrough on various challenging benchmarks in machine learning fields, such as image classification (Krizhevsky et al., 2012) and speech recognition (Hinton et al., 2012). However, recent studies (Szegedy et al., 2014; Goodfellow et al., 2015) have revealed that deep neural network models are strikingly susceptible to adversarial examples, in which small perturbations around the input are sufficient to mislead the predictions of the target model. Moreover, such perturbations are almost imperceptible to humans and often transfer across diverse models to achieve black-box attacks (Papernot et al., 2017; Liu et al., 2017; Wang et al., 2019; Lin et al., 2020). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
710,
|
| 88 |
+
825,
|
| 89 |
+
821
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Though the emergence of adversarial examples has received significant attention and led to various defend approaches for developing robust models (Madry et al., 2018; Dhillon et al., 2018; Wang & Yu, 2019; Song et al., 2019; Zhang et al., 2019a), many proposed defense methods provide few benefits for the true robustness but mask the gradients on which most attacks rely (Carlini & Wagner, 2017a; Athalye et al., 2018; Uesato et al., 2018; Li et al., 2019). Currently, one of the best techniques to defend against adversarial attacks (Athalye et al., 2018; Li et al., 2019) is adversarial training (Madry et al., 2018; Zhang et al., 2019a), which improves the adversarial robustness by injecting adversarial examples into the training data. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
829,
|
| 99 |
+
823,
|
| 100 |
+
898
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
146
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Among substantial works of adversarial training, there still remains a big robust generalization gap between the training data and the testing data (Schmidt et al., 2018; Zhang et al., 2019b; Ding et al., 2019; Zhai et al., 2019). The robustness of adversarial training fails to generalize on unseen testing data. Recent works (Geirhos et al., 2019; Zhang & Zhu, 2019) further show that adversarially trained models capture more on global structure features but normally trained models are more biased towards local features. In intuition, global structure features tend to be robust against adversarial perturbations but hard to generalize for unseen shape variations, instead, local features generalize well for unseen shape variations but are hard to generalize on adversarial perturbation. It naturally raises an intriguing question for adversarial training: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
152,
|
| 121 |
+
825,
|
| 122 |
+
279
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "For adversarial training, is it possible to learn the robust local features , which have better adversarially robust generalization and better standard generalization? ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
176,
|
| 131 |
+
285,
|
| 132 |
+
820,
|
| 133 |
+
313
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "To address this question, we investigate the relationship between the generalization of adversarial training and the robust local features, and advocate for learning robust local features for adversarial training. Our main contributions are as follows: ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
319,
|
| 143 |
+
825,
|
| 144 |
+
362
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "• To our knowledge, this is the first work that sheds light on the relationship between adversarial training and robust local features. Specifically, we develop a Random Block Shuffle (RBS) transformation to study such relationship by breaking up the global structure features on normal adversarial examples. \n• We propose a novel method called Robust Local Features for Adversarial Training (RLFAT), which first learns the robust local features, and then transfers the information of robust local features into the training on normal adversarial examples. \n• To demonstrate the generality of our argument, we implement RLFAT in two currently stateof-the-art adversarial training frameworks, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a). Empirical results show consistent and substantial improvements for both adversarial robustness and standard accuracy on several standard datasets. Moreover, the salience maps of our models on images tend to align better with human perception. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
179,
|
| 153 |
+
372,
|
| 154 |
+
825,
|
| 155 |
+
554
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 PRELIMINARIES ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
176,
|
| 165 |
+
578,
|
| 166 |
+
339,
|
| 167 |
+
594
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "In this section, we introduce some notations and provide a brief description on current advanced methods for adversarial attacks and adversarial training. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
612,
|
| 177 |
+
823,
|
| 178 |
+
640
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "2.1 NOTATION ",
|
| 185 |
+
"text_level": 1,
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
660,
|
| 189 |
+
287,
|
| 190 |
+
674
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Let $F ( x )$ be a probabilistic classifier based on a neural network with the logits function $f ( x )$ and the probability distribution $p _ { F } ( \\cdot | x )$ . Let $\\mathcal { L } ( F ; x , y )$ be the cross entropy loss for image classification. The goal of the adversaries is to find an adversarial example $x ^ { \\prime } \\in \\dot { \\mathcal { B } } _ { \\epsilon } ^ { p } ( x ) : = \\{ x ^ { \\prime } : \\| x ^ { \\prime } - x \\| _ { p } \\leq \\epsilon \\}$ in the $\\ell _ { p }$ norm bounded perturbations, where $\\epsilon$ denotes the magnitude of the perturbations. In this paper, we focus on $p = \\infty$ to align with previous works. ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
174,
|
| 199 |
+
688,
|
| 200 |
+
825,
|
| 201 |
+
757
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "2.2 ADVERSARIAL ATTACKS ",
|
| 208 |
+
"text_level": 1,
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
779,
|
| 212 |
+
387,
|
| 213 |
+
792
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "Projected Gradient Descent. Projected Gradient Descent (PGD) (Madry et al., 2018) is a stronger iterative variant of Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2015), which iteratively solves the optimization problem $\\begin{array} { r } { \\operatorname* { m a x } _ { x ^ { \\prime } : \\| x ^ { \\prime } - x \\| _ { \\infty } < \\epsilon } \\mathcal { L } \\left( F ; x ^ { \\prime } , y \\right) } \\end{array}$ with a step size $\\alpha$ : ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
805,
|
| 223 |
+
825,
|
| 224 |
+
849
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 1
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "equation",
|
| 230 |
+
"img_path": "images/eccad6509635090fcbd6d1d11158b0f042ab3c907435fa664395ed37e278aeb1.jpg",
|
| 231 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathrel { \\phantom { = } } x ^ { 0 } \\sim \\mathcal { U } \\left( \\mathcal { B } _ { \\epsilon } ^ { \\infty } ( x ) \\right) , } \\\\ & { \\mathrel { \\phantom { = } } x ^ { t + 1 } = \\Pi _ { \\mathcal { B } _ { \\epsilon } ^ { \\infty } ( x ) } \\left( x ^ { t } - \\alpha \\mathrm { s i g n } \\left( \\nabla _ { x } \\mathcal { L } ( F ; x , y ) | _ { x ^ { t } } \\right) \\right) , } \\end{array}\n$$",
|
| 232 |
+
"text_format": "latex",
|
| 233 |
+
"bbox": [
|
| 234 |
+
330,
|
| 235 |
+
858,
|
| 236 |
+
666,
|
| 237 |
+
901
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 1
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "where $\\mathcal { U }$ denotes the uniform distribution, and $\\Pi _ { B _ { \\epsilon } ^ { \\infty } ( x ) }$ indicates the projection of the set $B _ { \\epsilon } ^ { \\infty } ( x )$ ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
171,
|
| 246 |
+
909,
|
| 247 |
+
803,
|
| 248 |
+
926
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 1
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Carlini-Wagner attack. Carlini-Wagner attack (CW) (2017b) is a sophisticated method to directly solve for the adversarial example $x ^ { a d \\overline { { v } } }$ by using an auxiliary variable $w$ : ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
171,
|
| 257 |
+
103,
|
| 258 |
+
823,
|
| 259 |
+
132
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "equation",
|
| 265 |
+
"img_path": "images/817469dfc6d2ad3061b4dcac09c7467d1475f1ac70e3434b95e454231f32d6ee.jpg",
|
| 266 |
+
"text": "$$\nx ^ { a d v } = 0 . 5 \\cdot \\left( \\operatorname { t a n h } ( w ) + 1 \\right) .\n$$",
|
| 267 |
+
"text_format": "latex",
|
| 268 |
+
"bbox": [
|
| 269 |
+
401,
|
| 270 |
+
138,
|
| 271 |
+
596,
|
| 272 |
+
156
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "The objective function to optimize the auxiliary variable $w$ is defined as: ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
162,
|
| 282 |
+
648,
|
| 283 |
+
178
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "equation",
|
| 289 |
+
"img_path": "images/28c2c9a5afb82f35efff98a9dc192fe16856aa4ae1ef7c3594a1bf0b83b84611.jpg",
|
| 290 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\boldsymbol { w } } \\left\\| \\boldsymbol { x } ^ { a d v } - \\boldsymbol { x } \\right\\| + c \\cdot \\mathcal { F } \\left( \\boldsymbol { x } ^ { a d v } \\right) ,\n$$",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
388,
|
| 294 |
+
183,
|
| 295 |
+
609,
|
| 296 |
+
207
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where ${ \\mathcal { F } } ( x ^ { a d v } ) = \\operatorname* { m a x } \\left( f _ { y ^ { \\mathrm { t r u e } } } ( x ^ { a d v } ) - \\operatorname* { m a x } \\left\\{ f _ { i } ( x ^ { a d v } ) : i \\neq y ^ { \\mathrm { t r u e } } \\right\\} , - k \\right)$ . The constant $k$ controls the confidence gap between the adversarial class and the true class. ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
171,
|
| 305 |
+
213,
|
| 306 |
+
823,
|
| 307 |
+
244
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "N attack. $\\mathcal { N }$ attack (Li et al., 2019) is a derivative-free black-box adversarial attack and it breaks many of the defense methods based on gradient masking. The basic idea is to learn a probability density distribution over a small region centered around the clean input, such that a sample drawn from this distribution is likely to be an adversarial example. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
173,
|
| 316 |
+
250,
|
| 317 |
+
825,
|
| 318 |
+
308
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "2.3 ADVERSARIAL TRAINING ",
|
| 325 |
+
"text_level": 1,
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
323,
|
| 329 |
+
393,
|
| 330 |
+
338
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Despite a wide range of defense methods, Athalye et al. (2018) and Li et al. (2019) have broken most previous defense methods (Dhillon et al., 2018; Buckman et al., 2018; Wang & Yu, 2019; Zhang et al., 2019a), and revealed that adversarial training remains one of the best defense method. The basic idea of adversarial training is to solve the min-max optimization problem, as shown in Eq. (4): ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
348,
|
| 340 |
+
825,
|
| 341 |
+
417
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "equation",
|
| 347 |
+
"img_path": "images/935e52a661c4f623c547135c0f977a6c1992cec413200f4e9f65103c44995aa7.jpg",
|
| 348 |
+
"text": "$$\n\\operatorname* { m i n } _ { F } \\operatorname* { m a x } _ { x ^ { \\prime } : \\| x ^ { \\prime } - x \\| _ { \\infty } < \\epsilon } { \\mathcal { L } } \\left( F ; x ^ { \\prime } , y \\right) .\n$$",
|
| 349 |
+
"text_format": "latex",
|
| 350 |
+
"bbox": [
|
| 351 |
+
395,
|
| 352 |
+
416,
|
| 353 |
+
602,
|
| 354 |
+
444
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 2
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "Here we introduce two currently state-of-the-art adversarial training frameworks. ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
453,
|
| 364 |
+
702,
|
| 365 |
+
468
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 2
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "PGD adversarial training. PGD Adversarial Training (PGDAT) (Madry et al., 2018) leverages the PGD attack to generate adversarial examples, and trains only with the adversarial examples. The objective function is formalized as follows: ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
474,
|
| 375 |
+
825,
|
| 376 |
+
517
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "equation",
|
| 382 |
+
"img_path": "images/70ca81c2e923fd0068f6db06554f549cab8a1805e6513f414ce9878b3eff5ca6.jpg",
|
| 383 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { P G D } } ( F ; x , y ) = \\mathcal { L } ( F ; x _ { \\mathrm { P G D } } ^ { \\prime } , y ) ,\n$$",
|
| 384 |
+
"text_format": "latex",
|
| 385 |
+
"bbox": [
|
| 386 |
+
383,
|
| 387 |
+
523,
|
| 388 |
+
614,
|
| 389 |
+
541
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "where $x _ { \\mathrm { P G D } } ^ { \\prime }$ is obtained via the PGD attack on the cross entropy $\\mathcal { L } ( F ; x , y )$ . ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
546,
|
| 399 |
+
674,
|
| 400 |
+
563
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "TRADES. Zhang et al. (2019a) propose TRADES to specifically maximize the trade-off of adversarial training between adversarial robustness and standard accuracy by optimizing the following regularized surrogate loss: ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
174,
|
| 409 |
+
568,
|
| 410 |
+
825,
|
| 411 |
+
609
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 2
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/b9f2abfd2a78017dbbb4812abeee75f02964026d08b4994ffa5202df34e24249.jpg",
|
| 418 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { T R A D E S } } ( F ; x , y ) = \\mathcal { L } ( F ; x , y ) + \\lambda D _ { \\mathrm { K L } } \\left( ~ p _ { F } ( \\cdot | x ) ~ \\| ~ p _ { F } \\left( \\cdot | x _ { \\mathrm { P G D } } ^ { \\prime } [ x ] \\right) ~ \\right) ~ , } \\end{array}\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
256,
|
| 422 |
+
616,
|
| 423 |
+
740,
|
| 424 |
+
635
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 2
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "where $x _ { \\mathrm { P G D } } ^ { \\prime } [ x ]$ is obtained via the PGD attack on the KL-divergence $D _ { \\mathrm { K L } } \\left( p _ { F } ( \\cdot | x ) \\parallel p _ { F } \\left( \\cdot | x ^ { \\prime } \\right) \\right)$ , and $\\lambda$ is a hyper-parameter to control the trade-off between adversarial robustness and standard accuracy. ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
646,
|
| 434 |
+
825,
|
| 435 |
+
689
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 2
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "3 ROBUST LOCAL FEATURES FOR ADVERSARIAL TRAINING ",
|
| 442 |
+
"text_level": 1,
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
709,
|
| 446 |
+
689,
|
| 447 |
+
726
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 2
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "Unlike adversarially trained models, normally trained models are more biased towards the local features but vulnerable to adversarial examples (Geirhos et al., 2019). It indicates that, in contrast to global structural features, local features seems be more well-generalized but less robust against adversarial perturbation. Based on the basic observation, in this work, we focus on the learning of robust local features on adversarial training, and propose a novel form of adversarial training called RLFAT that learns the robust local features and transfers the robust local features into the training of normal adversarial examples. In this way, our adversarially trained models not only yield strong robustness against adversarial examples but also show great generalization on unseen testing data. ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
174,
|
| 456 |
+
741,
|
| 457 |
+
825,
|
| 458 |
+
853
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 2
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "3.1 ROBUST LOCAL FEATURE LEARNING ",
|
| 465 |
+
"text_level": 1,
|
| 466 |
+
"bbox": [
|
| 467 |
+
176,
|
| 468 |
+
869,
|
| 469 |
+
475,
|
| 470 |
+
883
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 2
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "It’s known that adversarial training tends to capture global structure features so as to increase invariance against adversarial perturbations (Zhang & Zhu, 2019; Ilyas et al., 2019). To advocate for the learning of robust local features during adversarial training, we propose a simple and straightforward image transformation called Random Block Shuffle (RBS) to break up the global structure features of the images, at the same time retaining the local features. Specifically, for an input image, we randomly split the target image into $k$ blocks horizontally and randomly shuffle the blocks, and then we perform the same split-shuffle operation vertically on the resulting image. As illustrated in Figure 1, RBS transformation can destroy the global structure features of the images to some extent and retain the local features of the images. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
895,
|
| 480 |
+
823,
|
| 481 |
+
924
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 2
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
103,
|
| 491 |
+
825,
|
| 492 |
+
202
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "image",
|
| 498 |
+
"img_path": "images/545bbbe8e3349378274f7a539c2931e5c170a20bd12f02755cf048bfddab598e.jpg",
|
| 499 |
+
"image_caption": [
|
| 500 |
+
"Figure 1: Illustration of the RBS transformation for $k = 3$ . For a better understanding on the RBS transformation, we paint the split image blocks with different colors. "
|
| 501 |
+
],
|
| 502 |
+
"image_footnote": [],
|
| 503 |
+
"bbox": [
|
| 504 |
+
181,
|
| 505 |
+
209,
|
| 506 |
+
828,
|
| 507 |
+
342
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "Then we apply the RBS transformation on adversarial training. Different from normal adversarial training, we use the RBS-transformed adversarial examples rather than normal adversarial examples as the adversarial information to encourage the models to learn robust local features. Note that we only use the RBS transformation as a tool to learn the robust local features during adversarial training and will not use RBS transformation in the inference phase. we refer to the form of adversarial training as RBS Adversarial Training (RBSAT). ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
396,
|
| 517 |
+
825,
|
| 518 |
+
481
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "To demonstrate the generality of our argument, we consider two currently state-of-the-art adversarial training frameworks, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a), to demonstrate the effectiveness of the robust local features. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
487,
|
| 528 |
+
825,
|
| 529 |
+
530
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "We use the following loss function as the alternative to the objective function of PGDAT: ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
169,
|
| 538 |
+
535,
|
| 539 |
+
754,
|
| 540 |
+
550
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 3
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "equation",
|
| 546 |
+
"img_path": "images/76592913e9d0e69e67c8c5818aa3286c8baaa25b0e8e02b0ba10a904cf363bf8.jpg",
|
| 547 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { P G D A T } } ^ { \\mathrm { R L F L } } ( F ; x , y ) = \\mathcal { L } ( F ; \\mathrm { R B S } ( x _ { \\mathrm { P G D } } ^ { \\prime } ) , y ) ,\n$$",
|
| 548 |
+
"text_format": "latex",
|
| 549 |
+
"bbox": [
|
| 550 |
+
351,
|
| 551 |
+
553,
|
| 552 |
+
643,
|
| 553 |
+
571
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "where RBS(·) denotes the RBS transformation; $x _ { \\mathrm { P G D } } ^ { \\prime }$ is obtained via the PGD attack on the cross entropy $\\mathcal { L } ( \\boldsymbol { F } ; \\boldsymbol { x } , \\boldsymbol { y } )$ . ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
176,
|
| 562 |
+
574,
|
| 563 |
+
823,
|
| 564 |
+
603
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "imilarly, we use the following loss function as the alternative to the objective function of TRADES: ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
189,
|
| 573 |
+
608,
|
| 574 |
+
820,
|
| 575 |
+
622
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "equation",
|
| 581 |
+
"img_path": "images/5a52b0b73ee93e7f4a91223331fe1ceeeea13f133e1d19c2e5bfa06fe7df0f67.jpg",
|
| 582 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { T R A D E S } } ^ { \\mathrm { R L F L } } ( F ; x , y ) = \\mathcal { L } ( F ; x , y ) + \\lambda D _ { \\mathrm { K L } } \\left[ p _ { F } ( \\cdot | x ) \\parallel p _ { F } \\left( \\cdot | \\mathrm { R B S } \\left( x _ { \\mathrm { P G D } } ^ { \\prime } [ x ] \\right) \\right) \\right] ,\n$$",
|
| 583 |
+
"text_format": "latex",
|
| 584 |
+
"bbox": [
|
| 585 |
+
233,
|
| 586 |
+
626,
|
| 587 |
+
759,
|
| 588 |
+
643
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 3
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "where $x _ { \\mathrm { P G D } } ^ { \\prime } [ x ]$ is obtained via the PGD attack on the KL-divergence $D _ { \\mathrm { K L } } \\left( p _ { F } ( \\cdot | x ) \\parallel p _ { F } \\left( \\cdot | x ^ { \\prime } \\right) \\right)$ ). ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
181,
|
| 597 |
+
651,
|
| 598 |
+
818,
|
| 599 |
+
667
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "3.2 ROBUST LOCAL FEATURE TRANSFER ",
|
| 606 |
+
"text_level": 1,
|
| 607 |
+
"bbox": [
|
| 608 |
+
176,
|
| 609 |
+
683,
|
| 610 |
+
473,
|
| 611 |
+
698
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 3
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Since the type of input images in the training phase and the inference phase is different (RBS transformed images for training, versus original images for inference), we consider to transfer the knowledge of the robust local features learned by RBSAT to the normal adversarial examples. Specifically, we present a knowledge transfer scheme, called Robust Local Feature Transfer (RLFT). The goal of RLFT is to learn the representation that minimizes the feature shift between the normal adversarial examples and the RBS-transformed adversarial examples. ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
173,
|
| 620 |
+
708,
|
| 621 |
+
825,
|
| 622 |
+
794
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 3
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "In particular, we apply RLFT on the logit layer for high-level feature alignment. Formally, the objective functions of robust local feature transfer for PGDAT and TRADES are formalized as follows, respectively: ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
799,
|
| 632 |
+
825,
|
| 633 |
+
842
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 3
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "equation",
|
| 639 |
+
"img_path": "images/353b0882ac6cfd3e081cd03a1913cec67579379acddd8d2a8c9ad3e761a7fbe9.jpg",
|
| 640 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { P G D A T } } ^ { \\mathrm { R L F T } } ( F ; x , y ) = \\left\\| f ( \\mathrm { R B S } ( x _ { \\mathrm { P G D } } ^ { \\prime } ) ) - f ( x _ { \\mathrm { P G D } } ^ { \\prime } ) \\right\\| _ { 2 } ^ { 2 } ,\n$$",
|
| 641 |
+
"text_format": "latex",
|
| 642 |
+
"bbox": [
|
| 643 |
+
295,
|
| 644 |
+
844,
|
| 645 |
+
655,
|
| 646 |
+
866
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 3
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "equation",
|
| 652 |
+
"img_path": "images/d108be011f2d3f7be3f137e0494c6121363806970c99c955f8c81864c3ec852d.jpg",
|
| 653 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { T R A D E S } } ^ { \\mathrm { R L F T } } ( F ; x , y ) = \\| f ( \\mathrm { R B S } ( x _ { \\mathrm { P G D } } ^ { \\prime } [ x ] ) ) - f ( x _ { \\mathrm { P G D } } ^ { \\prime } [ x ] ) \\| _ { 2 } ^ { 2 } , } \\end{array}\n$$",
|
| 654 |
+
"text_format": "latex",
|
| 655 |
+
"bbox": [
|
| 656 |
+
295,
|
| 657 |
+
883,
|
| 658 |
+
700,
|
| 659 |
+
904
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 3
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "where $f ( \\cdot )$ denotes the mapping of the logit layer, and $\\left\\| \\cdot \\right\\| _ { 2 } ^ { 2 }$ denotes the squared Euclidean norm. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
173,
|
| 668 |
+
907,
|
| 669 |
+
802,
|
| 670 |
+
926
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 3
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "3.3 OVERALL OBJECTIVE FUNCTION ",
|
| 677 |
+
"text_level": 1,
|
| 678 |
+
"bbox": [
|
| 679 |
+
176,
|
| 680 |
+
103,
|
| 681 |
+
444,
|
| 682 |
+
118
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 4
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Since the quality of robust local feature transfer depends on the quality of the robust local features learned by RBSAT, we integrate RBSAT and RLFT into an end-to-end training framework, which we refer to as RLFAT (Robust Local Features for Adversarial Training). The general training process of RLFAT is summarized in Algorithm 1. Note that the computational cost of RBS transformation (line 7) is negligible in the total computational cost. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
173,
|
| 691 |
+
130,
|
| 692 |
+
825,
|
| 693 |
+
199
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 4
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "Algorithm 1 Robust Local Features for Adversarial Training (RLFAT). ",
|
| 700 |
+
"text_level": 1,
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
215,
|
| 704 |
+
640,
|
| 705 |
+
231
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 4
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "1: Randomly initialize network $F ( x )$ ; \n2: Number of iterations $t \\gets 0$ ; \n3: repeat \n4: $t \\gets t + 1$ ; \n5: Read a minibatch of data $\\{ x _ { 1 } , . . . , x _ { m } \\}$ from the training set; \n6: Generate the normal adversarial examples $\\{ x _ { 1 } ^ { a d v } , . . . , x _ { m } ^ { \\tilde { a } d v } \\}$ \n7: 1Obtain the RBS-transformed adversarial examples $\\{ \\mathrm { R B S } ( x _ { 1 } ^ { a d v } ) , . . . , \\mathrm { R B S } ( x _ { m } ^ { a d v } ) \\}$ ; \n8: Calculate the overall loss following Eq. (10). \n9: Update the parameters of network $F$ through back propagation; ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
179,
|
| 714 |
+
234,
|
| 715 |
+
759,
|
| 716 |
+
364
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 4
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "10: until the training converges. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
176,
|
| 725 |
+
362,
|
| 726 |
+
388,
|
| 727 |
+
375
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 4
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "We implement RLFAT in two currently state-of-the-art adversarial training frameworks, PGDAT and TRADES, and have new objective functions to learn the robust and well-generalized feature representations, which we call RLF $\\mathrm { \\Delta ^ { \\prime } A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ : ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
176,
|
| 736 |
+
395,
|
| 737 |
+
823,
|
| 738 |
+
438
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 4
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "equation",
|
| 744 |
+
"img_path": "images/8845c627f5669e55a6b8bc85ac16f558ff292b706c0e67b77ee27a523c08f212.jpg",
|
| 745 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\mathrm { R L F A T } _ { \\mathrm { P } } } ( F ; x , y ) = \\mathcal { L } _ { \\mathrm { P G D A T } } ^ { \\mathrm { R L F L } } ( F ; x , y ) + \\eta \\mathcal { L } _ { \\mathrm { P G D A T } } ^ { \\mathrm { R L F T } } ( F ; x , y ) , } \\\\ & { } \\\\ & { \\mathcal { L } _ { \\mathrm { R L F A T } _ { \\mathrm { T } } } ( F ; x , y ) = \\mathcal { L } _ { \\mathrm { T R A D E S } } ^ { \\mathrm { R L F L } } ( F ; x , y ) + \\eta \\mathcal { L } _ { \\mathrm { T R A D E S } } ^ { \\mathrm { R L F T } } ( F ; x , y ) } \\end{array}\n$$",
|
| 746 |
+
"text_format": "latex",
|
| 747 |
+
"bbox": [
|
| 748 |
+
284,
|
| 749 |
+
443,
|
| 750 |
+
712,
|
| 751 |
+
505
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 4
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "where $\\eta$ is a hyper-parameter to balance the two terms. ",
|
| 758 |
+
"bbox": [
|
| 759 |
+
176,
|
| 760 |
+
508,
|
| 761 |
+
532,
|
| 762 |
+
523
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 4
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "4 EXPERIMENTS ",
|
| 769 |
+
"text_level": 1,
|
| 770 |
+
"bbox": [
|
| 771 |
+
176,
|
| 772 |
+
542,
|
| 773 |
+
351,
|
| 774 |
+
560
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 4
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "In this section, to validate the effectiveness of RLFAT, we empirically evaluate our two implementations, denoted as $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ , and show that our models make significant improvement on both robust accuracy and standard accuracy on standard benchmark datasets, which provides strong support for our main hypothesis. Codes are available online1. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
575,
|
| 784 |
+
825,
|
| 785 |
+
632
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 4
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "4.1 EXPERIMENTAL SETUP ",
|
| 792 |
+
"text_level": 1,
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
650,
|
| 796 |
+
374,
|
| 797 |
+
662
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 4
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Baselines. Since most previous defense methods provide few benefit in true adversarially robustness (Athalye et al., 2018; Li et al., 2019), we compare the proposed methods with state-of-theart adversarial training defenses, PGD Adversarial Training (PGDAT) (Madry et al., 2018) and TRADES (Zhang et al., 2019a). ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
675,
|
| 807 |
+
825,
|
| 808 |
+
732
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 4
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Adversarial setting. We consider two attack settings with the bounded $\\ell _ { \\infty }$ norm: the white-box attack setting and the black-box attack setting. For the white-box attack setting, we consider existing strongest white-box attacks: Projected Gradient Descent (PGD) (Madry et al., 2018) and CarliniWagner attack (CW) (Carlini & Wagner, 2017b). For the black-box attack setting, we perform the powerful black-box attack, $\\mathcal { N }$ attack (Li et al., 2019), on a sample of 1,500 test inputs as it is timeconsuming. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
738,
|
| 818 |
+
825,
|
| 819 |
+
821
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 4
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Datasets. We compare the proposed methods with the baselines on widely used benchmark datasets, namely CIFAR-10 and CIFAR-100 (Krizhevsky & Hinton, 2009). Since adversarially robust generalization becomes increasingly hard for high dimensional data and little training data (Schmidt et al., 2018), we also consider one challenging dataset: STL-10 (Coates et al.), which contains 5, 000 training images, with $9 6 \\times 9 6$ pixels per image. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
829,
|
| 829 |
+
823,
|
| 830 |
+
900
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 4
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Neural networks. For STL-10, the architecture we use is a wide ResNet 40-2 (Zagoruyko & Komodakis, 2016). For CIFAR-10 and CIFAR-100, we use a wide ResNet w32-10. For all datasets, we scale the input images to the range of $[ 0 , 1 ]$ . ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
176,
|
| 839 |
+
103,
|
| 840 |
+
823,
|
| 841 |
+
147
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 5
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "Hyper-parameters. To avoid posting much concentrate on optimizing the hyper-parameters, for all datasets, we set the hyper-parameter $\\lambda$ in TRADES as 6, set the hyper-parameter $\\eta$ in RLFATP as 0.5, and set the hyper-parameter $\\eta$ in $\\mathrm { R L F A T _ { T } }$ as 1. For the training jobs of all our models, we set the hyper-parameters $k$ of the RBS transformation as 2. More details about the hyper-parameters are provided in Appendix A. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
152,
|
| 851 |
+
825,
|
| 852 |
+
223
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 5
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "4.2 EVALUATION RESULTS ",
|
| 859 |
+
"text_level": 1,
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
241,
|
| 863 |
+
370,
|
| 864 |
+
255
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 5
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "We first validate our main hypothesis: for adversarial training, is it possible to learn the robust local features that have better adversarially robust generalization and better standard generalization? ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
266,
|
| 874 |
+
823,
|
| 875 |
+
295
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 5
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "In Table 1, we compare the accuracy of $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ with the competing baselines on three standard datasets. The proposed methods lead to consistent and significant improvements on adversarial robustness as well as standard accuracy over the baseline models on all datasets. With the robust local features, $\\mathrm { R L F A T _ { T } }$ achieves better adversarially robust generalization and better standard generalization than TRADES. RLFATP also works similarly, showing a significant improvement on the robustness against all attacks and standard accuracy than PGDAT. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
301,
|
| 885 |
+
825,
|
| 886 |
+
386
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 5
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Table 1: The classification accuracy $( \\% )$ of defense methods under white-box and black-box attacks on STL-10, CIFAR-10 and CIFAR-100. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
173,
|
| 895 |
+
400,
|
| 896 |
+
823,
|
| 897 |
+
428
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 5
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "table",
|
| 903 |
+
"img_path": "images/7e2edaff72c2e9a8c451b882378802fae559bacd8936b6836995c6184f0fb46a.jpg",
|
| 904 |
+
"table_caption": [
|
| 905 |
+
"(a) STL-10. The magnitude of perturbation is 0.03 in $\\ell _ { \\infty }$ norm. "
|
| 906 |
+
],
|
| 907 |
+
"table_footnote": [],
|
| 908 |
+
"table_body": "<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>67.05</td><td>30.00</td><td>31.97</td><td>34.80</td></tr><tr><td>TRADES</td><td>65.24</td><td>38.99</td><td>38.35</td><td>42.07</td></tr><tr><td>RLFATp</td><td>71.47</td><td>38.42</td><td>38.42</td><td>44.80</td></tr><tr><td>RLFATT</td><td>72.38</td><td>43.36</td><td>39.31</td><td>48.13</td></tr></table>",
|
| 909 |
+
"bbox": [
|
| 910 |
+
222,
|
| 911 |
+
459,
|
| 912 |
+
779,
|
| 913 |
+
537
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 5
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "table",
|
| 919 |
+
"img_path": "images/815c5bdf18ba6667057b920a716efb5c6de6c55d703d76806f9a429bf6cb7c1e.jpg",
|
| 920 |
+
"table_caption": [
|
| 921 |
+
"(b) CIFAR-10. The magnitude of perturbation is 0.03 in $\\ell _ { \\infty }$ norm. "
|
| 922 |
+
],
|
| 923 |
+
"table_footnote": [],
|
| 924 |
+
"table_body": "<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>82.96</td><td>46.19</td><td>46.41</td><td>46.67</td></tr><tr><td>TRADES</td><td>80.35</td><td>50.95</td><td>49.80</td><td>52.47</td></tr><tr><td>RLFATp</td><td>84.77</td><td>53.97</td><td>52.40</td><td>54.60</td></tr><tr><td>RLFATT</td><td>82.72</td><td>58.75</td><td>51.94</td><td>54.60</td></tr></table>",
|
| 925 |
+
"bbox": [
|
| 926 |
+
222,
|
| 927 |
+
569,
|
| 928 |
+
779,
|
| 929 |
+
646
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 5
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "table",
|
| 935 |
+
"img_path": "images/fb426b3107ba88229badef3b38f6458a66c2c6addef40e411a7ecc541c07e032.jpg",
|
| 936 |
+
"table_caption": [
|
| 937 |
+
"(c) CIFAR-100. The magnitude of perturbation is 0.03 in $\\ell _ { \\infty }$ norm. "
|
| 938 |
+
],
|
| 939 |
+
"table_footnote": [],
|
| 940 |
+
"table_body": "<table><tr><td>Defense</td><td>No attack</td><td>PGD</td><td>CW</td><td>Nattack</td></tr><tr><td>PGDAT</td><td>55.86</td><td>23.32</td><td>22.87</td><td>22.47</td></tr><tr><td>TRADES</td><td>52.13</td><td>27.26</td><td>24.66</td><td>25.13</td></tr><tr><td>RLFATp</td><td>56.70</td><td>31.99</td><td>29.04</td><td>32.53</td></tr><tr><td>RLFATT</td><td>58.96</td><td>31.63</td><td>27.54</td><td>30.86</td></tr></table>",
|
| 941 |
+
"bbox": [
|
| 942 |
+
222,
|
| 943 |
+
675,
|
| 944 |
+
779,
|
| 945 |
+
752
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 5
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "The results demonstrate that, the robust local features can significantly improve both the adversarially robust generalization and the standard generalization over the state-of-the-art adversarial training frameworks, and strongly support our hypothesis. That is, for adversarial training, it is possible to learn the robust local features, which have better robust and standard generalization. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
767,
|
| 955 |
+
825,
|
| 956 |
+
824
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 5
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "4.3 LOSS SENSITIVITY UNDER DISTRIBUTION SHIFT ",
|
| 963 |
+
"text_level": 1,
|
| 964 |
+
"bbox": [
|
| 965 |
+
178,
|
| 966 |
+
840,
|
| 967 |
+
549,
|
| 968 |
+
856
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 5
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Motivation. Ding et al. (2019) and Zhang et al. (2019b) found that the effectiveness of adversarial training is highly sensitive to the “semantic-loss” shift of the test data distribution, such as gamma mapping. To further investigate the performance of the proposed methods, we quantify the smoothness of the models under the distribution shifts of brightness perturbation and gamma mapping. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
174,
|
| 977 |
+
867,
|
| 978 |
+
823,
|
| 979 |
+
924
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 5
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Loss sensitivity on brightness perturbation. To quantify the smoothness of models on the shift of the brightness perturbation, we propose to estimate the Lipschitz continuity constant $\\ell _ { \\mathcal { F } }$ by using the gradients of the loss function with respect to the brightness perturbation of the testing data. We adjust the brightness factor of images in the HSV (hue, saturation, value) color space, which we refer to as $x ^ { b } = \\mathcal { V } ( x , \\alpha )$ , where $\\alpha$ denotes the magnitude of the brightness adjustment. The lower the value of $\\ell _ { \\mathcal { F } } ^ { b } ( \\alpha )$ is, the smoother the loss function of the model is: ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
173,
|
| 988 |
+
103,
|
| 989 |
+
825,
|
| 990 |
+
188
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 6
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "equation",
|
| 996 |
+
"img_path": "images/47d5e5262f8e95af982b46829621718d01cde4dc8b73bb7c535b7ae0dcb4252b.jpg",
|
| 997 |
+
"text": "$$\n\\ell _ { \\mathcal { F } } ^ { b } ( \\alpha ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\| \\nabla _ { x } \\mathcal { L } ( F ; \\mathcal { V } ( x _ { i } , \\alpha ) , y _ { t r u e } ) \\| _ { 2 }\n$$",
|
| 998 |
+
"text_format": "latex",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
348,
|
| 1001 |
+
194,
|
| 1002 |
+
648,
|
| 1003 |
+
236
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 6
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Loss sensitivity on gamma mapping. Gamma mapping (Szeliski, 2011) is a nonlinear elementwise operation used to adjust the exposure of images by applying $\\tilde { x } ^ { ( \\gamma ) } = x ^ { \\gamma }$ on the original image $x$ . Similarly, we approximate the loss sensitivity under gamma mapping, by using the gradients of the loss function with respect to the gamma mapping of the testing data. A smaller value indicates a smoother loss function. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
250,
|
| 1013 |
+
825,
|
| 1014 |
+
319
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 6
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "equation",
|
| 1020 |
+
"img_path": "images/cd58b6fa37396d80e498dde4e3633217274140a885d48d3831251b818de2c5d2.jpg",
|
| 1021 |
+
"text": "$$\n\\ell _ { \\mathcal { F } } ^ { g } ( \\gamma ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\| \\nabla _ { x } \\mathcal { L } ( F ; x _ { i } ^ { \\gamma } , y _ { t r u e } ) \\| _ { 2 }\n$$",
|
| 1022 |
+
"text_format": "latex",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
367,
|
| 1025 |
+
315,
|
| 1026 |
+
629,
|
| 1027 |
+
357
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Sensitivity analysis. The results for the loss sensitivity of the adversarially trained models under brightness perturbation are reported in Table 2a, where we adopt various magnitude of brightness adjustment on each testing data. In Table 2b, we report the loss sensitivity of adversarially trained models under various gamma mappings. We observe that RLFATT provides the smoothest model under the distribution shifts on all the three datasets. The results suggest that, as compared to PGDAT and TRADES, both $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ show lower gradients of the models on different data distributions, which we can directly attribute to the robust local features. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
366,
|
| 1037 |
+
825,
|
| 1038 |
+
465
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 6
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "table",
|
| 1044 |
+
"img_path": "images/3798d8ba9b0cad4c440191d5694c6fec43c45bb446cfe40b9a132188accce025.jpg",
|
| 1045 |
+
"table_caption": [
|
| 1046 |
+
"Table 2: The loss sensitivity of defense methods under different testing data distributions. ",
|
| 1047 |
+
"(a) Loss sensitivity on brightness perturbation for the adversarially trained models. "
|
| 1048 |
+
],
|
| 1049 |
+
"table_footnote": [],
|
| 1050 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"4\">e(-0.15)/(0.15)</td></tr><tr><td>PGDAT</td><td>TRADES</td><td>RLFATp</td><td>RLFATT</td></tr><tr><td>STL-10</td><td>0.85/0.82</td><td>0.46 / 0.48</td><td>0.32 /0.34</td><td>0.22 / 0.23</td></tr><tr><td>CIFAR-10</td><td>1.41/1.36</td><td>0.88 /0.90</td><td>0.70 /0.71</td><td>0.54 / 0.56</td></tr><tr><td>CIFAR-100</td><td>3.93 /3.66</td><td>2.31/2.12</td><td>1.25 /1.31</td><td>1.00 / 0.98</td></tr></table>",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
218,
|
| 1053 |
+
517,
|
| 1054 |
+
777,
|
| 1055 |
+
602
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 6
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "table",
|
| 1061 |
+
"img_path": "images/7b9a718e8bf20a98b42f5caf7ce660b8f9ff7df3f08eeece2f31bf610586d199.jpg",
|
| 1062 |
+
"table_caption": [
|
| 1063 |
+
"(b) Loss sensitivity on gamma mapping for the adversarially trained models. "
|
| 1064 |
+
],
|
| 1065 |
+
"table_footnote": [],
|
| 1066 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"4\">(0.8)/(1.2)</td></tr><tr><td>PGDAT</td><td>TRADES</td><td>RLFATp</td><td>RLFATT</td></tr><tr><td>STL-10</td><td>0.77 / 0.79</td><td>0.44/0.42</td><td>0.30 /0.29</td><td>0.21/ 0.19</td></tr><tr><td>CIFAR-10</td><td>1.27 / 1.20</td><td>0.84 /0.76</td><td>0.69 /0.62</td><td>0.54 / 0.48</td></tr><tr><td>CIFAR-100</td><td>2.82/2.80</td><td>1.78 / 1.76</td><td>1.09 / 1.01</td><td>0.95 / 0.88</td></tr></table>",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
220,
|
| 1069 |
+
631,
|
| 1070 |
+
776,
|
| 1071 |
+
714
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 6
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "4.4 ABLATION STUDIES ",
|
| 1078 |
+
"text_level": 1,
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
737,
|
| 1082 |
+
354,
|
| 1083 |
+
751
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 6
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "To further gain insights on the performance obtained by the robust local features, we perform ablation studies to dissect the impact of various components (robust local feature learning and robust local feature transfer). As shown in Figure 2, we conduct additional experiments for the ablation studies of $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ on STL-10, CIFAR-10 and CIFAR-100, where we report the standard accuracy over the clean data and the average robust accuracy over all the attacks for each model. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
762,
|
| 1093 |
+
825,
|
| 1094 |
+
847
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 6
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Does robust local feature learning help? We first analyze that as compared to adversarial training on normal adversarial examples, whether adversarial training on RBS-transformed adversarial examples produces better generalization and more robust features. As shown in Figure 2, we observe that Robust Local Features Learning (RLFL) exhibits stable improvements on both standard accuracy and robust accuracy for $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ , providing strong support for our hypothesis. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
853,
|
| 1104 |
+
825,
|
| 1105 |
+
924
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 6
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "image",
|
| 1111 |
+
"img_path": "images/84116789f1a34326fcff0ccd94cc1b1ee45dc493726c3fe6ce621fa768a52140.jpg",
|
| 1112 |
+
"image_caption": [
|
| 1113 |
+
"Figure 2: Ablation studies for $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ to investigate the impact of Robust Local Feature Learning (RLFL) and Robust Local Feature Transfer (RLFT). "
|
| 1114 |
+
],
|
| 1115 |
+
"image_footnote": [],
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
171,
|
| 1118 |
+
98,
|
| 1119 |
+
826,
|
| 1120 |
+
382
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 7
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Does robust local feature transfer help? We further add Robust Local Feature Transfer (RLFT), the second term in Eq. (10), to get the overall loss of RLFAT. The robust accuracy further increases on all datasets for RLFATP and RLFATT. The standard accuracy further increases also, except for $\\mathrm { R L F A T _ { P } }$ on CIFAR-100, but it is still clearly higher than the baseline model PGDAT. It indicates that transferring the robust local features into the training of normal adversarial examples does help promote the standard accuracy and robust accuracy in most cases. ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
174,
|
| 1129 |
+
440,
|
| 1130 |
+
825,
|
| 1131 |
+
523
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 7
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "4.5 VISUALIZING THE SALIENCE MAPS ",
|
| 1138 |
+
"text_level": 1,
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
178,
|
| 1141 |
+
542,
|
| 1142 |
+
460,
|
| 1143 |
+
556
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 7
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "We would like to investigate the features of the input images that the models are mostly focused on. Following the work of Zhang & Zhu (2019), we generate the salience maps using SmoothGrad (Smilkov et al., 2017) on STL-10 dataset. The key idea of SmoothGrad is to average the gradients of class activation with respect to noisy copies of an input image. As illustrated in Figure 3, all the adversarially trained models basically capture the global structure features of the object on the images. As compared to PGDAT and TRADES, both $\\mathrm { R L F A T _ { P } }$ and $\\mathrm { R L F A T _ { T } }$ capture more local feature information of the object, aligning better with human perception. Note that the images are correctly classified by all these models. For more visualization results, see Appendix B. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
174,
|
| 1152 |
+
569,
|
| 1153 |
+
825,
|
| 1154 |
+
681
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 7
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "5 CONCLUSION AND FUTURE WORK ",
|
| 1161 |
+
"text_level": 1,
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
176,
|
| 1164 |
+
703,
|
| 1165 |
+
493,
|
| 1166 |
+
718
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 7
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Differs to existing adversarially trained models that are more biased towards the global structure features of the images, in this work, we hypothesize that robust local features can improve the generalization of adversarial training. To validate this hypothesis, we propose a new stream of adversarial training approach called Robust Local Features for Adversarial Training (RLFAT) and implement it in currently state-of-the-art adversarial training frameworks, PGDAT and TRADES. We provide strong empirical support for our hypothesis and show that the proposed methods based on RLFAT not only yield better standard generalization but also promote the adversarially robust generalization. Furthermore, we show that the salience maps of our models on images tend to align better with human perception, uncovering certain unexpected benefit of the robust local features for adversarial training. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
734,
|
| 1176 |
+
825,
|
| 1177 |
+
875
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 7
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Our findings open a new avenue for improving adversarial training, whereas there are still a lot to explore along this avenue. First, is it possible to explicitly disentangle the robust local features from the perspective of feature disentanglement? What is the best way to leverage the robust local features? Second, from a methodological standpoint, the discovered relationship may also serve as an inspiration for new adversarial defenses, where not only the robust local features but also the global information is taken into account, as the global information is useful for some tasks. These questions are worth investigation in future work, and we hope that our observations on the benefit of robust local features will inspire more future development. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
176,
|
| 1186 |
+
882,
|
| 1187 |
+
823,
|
| 1188 |
+
924
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 7
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "image",
|
| 1194 |
+
"img_path": "images/23a16e8d2e9f01acf82aa7f4b470717d2eea4c8084747ef48724840b0873c42d.jpg",
|
| 1195 |
+
"image_caption": [
|
| 1196 |
+
"Figure 3: Salience maps of the four models on sampled images. For each group of images, we have the original image, and the salience maps of the four models sequentially. "
|
| 1197 |
+
],
|
| 1198 |
+
"image_footnote": [],
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
98,
|
| 1202 |
+
823,
|
| 1203 |
+
363
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 8
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
174,
|
| 1212 |
+
435,
|
| 1213 |
+
825,
|
| 1214 |
+
506
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 8
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1221 |
+
"text_level": 1,
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
176,
|
| 1224 |
+
523,
|
| 1225 |
+
326,
|
| 1226 |
+
536
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 8
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "This work is supported by the Fundamental Research Funds for the Central Universities (2019kfyXKJC021) and Microsoft Research Asia. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
174,
|
| 1235 |
+
547,
|
| 1236 |
+
825,
|
| 1237 |
+
575
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 8
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "REFERENCES ",
|
| 1244 |
+
"text_level": 1,
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
176,
|
| 1247 |
+
598,
|
| 1248 |
+
285,
|
| 1249 |
+
613
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 8
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, pp. 274–283, 2018. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
622,
|
| 1259 |
+
826,
|
| 1260 |
+
665
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 8
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Jacob Buckman, Aurko Roy, Colin Raffel, and Ian J. Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
173,
|
| 1269 |
+
676,
|
| 1270 |
+
821,
|
| 1271 |
+
719
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 8
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Nicholas Carlini and David A. Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec@CCS 2017, pp. 3–14, 2017a. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
173,
|
| 1280 |
+
731,
|
| 1281 |
+
826,
|
| 1282 |
+
773
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 8
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy, SP 2017, pp. 39–57, 2017b. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
173,
|
| 1291 |
+
786,
|
| 1292 |
+
823,
|
| 1293 |
+
815
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 8
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Adam Coates, Andrew Y. Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
176,
|
| 1302 |
+
827,
|
| 1303 |
+
821,
|
| 1304 |
+
869
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 8
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "Guneet S. Dhillon, Kamyar Azizzadenesheli, Zachary C. Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
174,
|
| 1313 |
+
881,
|
| 1314 |
+
823,
|
| 1315 |
+
924
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 8
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Gavin Weiguang Ding, Kry Yik Chau Lui, Xiaomeng Jin, Luyu Wang, and Ruitong Huang. On the sensitivity of adversarial robustness to input data distributions. In 7th International Conference on Learning Representations, ICLR 2019, 2019. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
176,
|
| 1324 |
+
103,
|
| 1325 |
+
823,
|
| 1326 |
+
146
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 9
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In 7th International Conference on Learning Representations, ICLR 2019, 2019. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
174,
|
| 1335 |
+
155,
|
| 1336 |
+
825,
|
| 1337 |
+
210
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 9
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In 3rd International Conference on Learning Representations, ICLR 2015, 2015. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
171,
|
| 1346 |
+
220,
|
| 1347 |
+
823,
|
| 1348 |
+
250
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 9
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "Geoffrey Hinton, Li Deng, Dong Yu, George Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Brian Kingsbury, et al. Deep neural networks for acoustic modeling in speech recognition. IEEE Signal processing magazine, 29, 2012. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
173,
|
| 1357 |
+
258,
|
| 1358 |
+
825,
|
| 1359 |
+
301
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 9
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "text",
|
| 1365 |
+
"text": "Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. CoRR, abs/1905.02175, 2019. ",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
173,
|
| 1368 |
+
310,
|
| 1369 |
+
823,
|
| 1370 |
+
340
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 9
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
173,
|
| 1379 |
+
348,
|
| 1380 |
+
823,
|
| 1381 |
+
377
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 9
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012, pp. 1106–1114, 2012. ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
174,
|
| 1390 |
+
386,
|
| 1391 |
+
825,
|
| 1392 |
+
430
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 9
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Yandong Li, Lijun Li, Liqiang Wang, Tong Zhang, and Boqing Gong. NATTACK: learning the distributions of adversarial examples for an improved black-box attack on deep neural networks. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 3866– 3876, 2019. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
176,
|
| 1401 |
+
438,
|
| 1402 |
+
825,
|
| 1403 |
+
494
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 9
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "Jiadong Lin, Chuanbiao Song, Kun He, Liwei Wang, and John E. Hopcroft. Nesterov accelerated gradient and scale invariance for adversarial attacks. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJlHwkBYDH. ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
173,
|
| 1412 |
+
503,
|
| 1413 |
+
823,
|
| 1414 |
+
546
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 9
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "text",
|
| 1420 |
+
"text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings, 2017. ",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
174,
|
| 1423 |
+
555,
|
| 1424 |
+
821,
|
| 1425 |
+
599
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 9
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
174,
|
| 1434 |
+
608,
|
| 1435 |
+
825,
|
| 1436 |
+
651
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 9
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "Nicolas Papernot, Patrick D. McDaniel, Ian J. Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, AsiaCCS 2017, pp. 506– 519, 2017. ",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
174,
|
| 1445 |
+
660,
|
| 1446 |
+
825,
|
| 1447 |
+
715
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 9
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "text",
|
| 1453 |
+
"text": "Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, pp. 5019–5031, 2018. ",
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
173,
|
| 1456 |
+
724,
|
| 1457 |
+
825,
|
| 1458 |
+
782
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 9
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda B. Viegas, and Martin Wattenberg. Smooth- ´ grad: removing noise by adding noise. CoRR, abs/1706.03825, 2017. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
169,
|
| 1467 |
+
791,
|
| 1468 |
+
823,
|
| 1469 |
+
820
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 9
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "Chuanbiao Song, Kun He, Liwei Wang, and John E. Hopcroft. Improving the generalization of adversarial training with domain adaptation. In 7th International Conference on Learning Representations, ICLR 2019, 2019. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
174,
|
| 1478 |
+
829,
|
| 1479 |
+
823,
|
| 1480 |
+
871
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 9
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In 2nd International Conference on Learning Representations, ICLR 2014, 2014. ",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
174,
|
| 1489 |
+
882,
|
| 1490 |
+
825,
|
| 1491 |
+
924
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 9
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Richard Szeliski. Computer Vision - Algorithms and Applications. Texts in Computer Science. Springer, 2011. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
171,
|
| 1500 |
+
103,
|
| 1501 |
+
823,
|
| 1502 |
+
132
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 10
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "Jonathan Uesato, Brendan O’Donoghue, Pushmeet Kohli, and Aaron van den Oord. Adversarial ¨ risk and the dangers of evaluating against weak attacks. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, pp. 5032–5041, 2018. ",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
174,
|
| 1511 |
+
141,
|
| 1512 |
+
823,
|
| 1513 |
+
184
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 10
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "Huaxia Wang and Chun-Nam Yu. A direct approach to robust deep learning using adversarial networks. In 7th International Conference on Learning Representations, ICLR 2019, 2019. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
171,
|
| 1522 |
+
193,
|
| 1523 |
+
823,
|
| 1524 |
+
222
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 10
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "Xiaosen Wang, Kun He, and John E. Hopcroft. AT-GAN: A generative attack model for adversarial transferring on generative adversarial nets. CoRR, abs/1904.07793, 2019. ",
|
| 1531 |
+
"bbox": [
|
| 1532 |
+
171,
|
| 1533 |
+
231,
|
| 1534 |
+
823,
|
| 1535 |
+
258
|
| 1536 |
+
],
|
| 1537 |
+
"page_idx": 10
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "text",
|
| 1541 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Proceedings of the British Machine Vision Conference 2016, BMVC, 2016. ",
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
173,
|
| 1544 |
+
267,
|
| 1545 |
+
823,
|
| 1546 |
+
296
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 10
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"text": "Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John E. Hopcroft, and Liwei Wang. Adversarially robust generalization just requires more unlabeled data. CoRR, abs/1906.00555, 2019. ",
|
| 1553 |
+
"bbox": [
|
| 1554 |
+
171,
|
| 1555 |
+
305,
|
| 1556 |
+
823,
|
| 1557 |
+
334
|
| 1558 |
+
],
|
| 1559 |
+
"page_idx": 10
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"text": "Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan. Theoretically principled trade-off between robustness and accuracy. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 7472–7482, 2019a. ",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
174,
|
| 1566 |
+
343,
|
| 1567 |
+
823,
|
| 1568 |
+
387
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 10
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"text": "Huan Zhang, Hongge Chen, Zhao Song, Duane S. Boning, Inderjit S. Dhillon, and Cho-Jui Hsieh. The limitations of adversarial training and the blind-spot attack. In 7th International Conference on Learning Representations, ICLR 2019, 2019b. ",
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
174,
|
| 1577 |
+
395,
|
| 1578 |
+
825,
|
| 1579 |
+
438
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 10
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "text",
|
| 1585 |
+
"text": "Tianyuan Zhang and Zhanxing Zhu. Interpreting adversarially trained convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, pp. 7502–7511, 2019. ",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
174,
|
| 1588 |
+
446,
|
| 1589 |
+
825,
|
| 1590 |
+
489
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 10
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "A HYPER-PARAMETER SETTING ",
|
| 1597 |
+
"text_level": 1,
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
176,
|
| 1600 |
+
102,
|
| 1601 |
+
457,
|
| 1602 |
+
118
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 11
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "Here we show the details of the training hyper-parameters and the attack hyper-parameters for the experiments. ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
173,
|
| 1611 |
+
133,
|
| 1612 |
+
823,
|
| 1613 |
+
161
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 11
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "Training Hyper-parameters. For all training jobs, we use the Adam optimizer with a learning rate of 0.001 and a batch size of 32. For CIFAR-10 and CIFAR-100, we run 79,800 steps for training. For STL-10, we run 29,700 steps for training. For STL-10 and CIFAR-100, the adversarial examples are generated with step size 0.0075, 7 iterations, and $\\epsilon = 0 . 0 3$ . For CIFAR-10, the adversarial examples are generated with step size 0.0075, 10 iterations, and $\\epsilon = 0 . 0 3$ . ",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
174,
|
| 1622 |
+
169,
|
| 1623 |
+
825,
|
| 1624 |
+
238
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 11
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "Attack Hyper-parameters. For the PGD attack, we use the same attack parameters as those of the training process. For the CW attack, we use PGD to minimize its loss function with a high confidence parameter $k = 5 0$ ) following the work of Madry et al. (2018). For the $\\mathcal { N }$ attack, we set the maximum number of optimization iterations to $T = 2 0 0$ , $b = 3 0 0$ for the sample size, the variance of the isotropic Gaussian $\\sigma ^ { 2 } = 0 . 0 1$ , and the learning rate $\\eta = 0 . 0 0 8$ . ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
173,
|
| 1633 |
+
246,
|
| 1634 |
+
825,
|
| 1635 |
+
315
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 11
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "B MORE FEATURE VISUALIZATION ",
|
| 1642 |
+
"text_level": 1,
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
176,
|
| 1645 |
+
335,
|
| 1646 |
+
483,
|
| 1647 |
+
352
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 11
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "We provide more salience maps of the adversarially trained models on sampled images in Figure 4. ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
173,
|
| 1656 |
+
367,
|
| 1657 |
+
821,
|
| 1658 |
+
382
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 11
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "image",
|
| 1664 |
+
"img_path": "images/b339bb269ade9b3a8f714984ff893ebffbb2fe065abe469c553f996d532c53d9.jpg",
|
| 1665 |
+
"image_caption": [
|
| 1666 |
+
"Figure 4: More Salience maps of the four models. For each group of images, we have the original image, and the salience maps of the four models sequentially. "
|
| 1667 |
+
],
|
| 1668 |
+
"image_footnote": [],
|
| 1669 |
+
"bbox": [
|
| 1670 |
+
173,
|
| 1671 |
+
393,
|
| 1672 |
+
823,
|
| 1673 |
+
862
|
| 1674 |
+
],
|
| 1675 |
+
"page_idx": 11
|
| 1676 |
+
}
|
| 1677 |
+
]
|
parse/train/H1lZJpVFvr/H1lZJpVFvr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lZJpVFvr/H1lZJpVFvr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1xPR3NtPB/H1xPR3NtPB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1xPR3NtPB/H1xPR3NtPB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJ0NvFzxl/HJ0NvFzxl.md
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING GRAPHICAL STATE TRANSITIONS
|
| 2 |
+
|
| 3 |
+
Daniel D. Johnson
|
| 4 |
+
Department of Computer Science
|
| 5 |
+
Harvey Mudd College
|
| 6 |
+
301 Platt Boulevard
|
| 7 |
+
ddjohnson@hmc.edu
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Graph-structured data is important in modeling relationships between multiple entities, and can be used to represent states of the world as well as many data structures. Li et al. (2016) describe a model known as a Gated Graph Sequence Neural Network (GGS-NN) that produces sequences from graph-structured input. In this work I introduce the Gated Graph Transformer Neural Network (GGTNN), an extension of GGS-NNs that uses graph-structured data as an intermediate representation. The model can learn to construct and modify graphs in sophisticated ways based on textual input, and also to use the graphs to produce a variety of outputs. For example, the model successfully learns to solve almost all of the bAbI tasks (Weston et al., 2016), and also discovers the rules governing graphical formulations of a simple cellular automaton and a family of Turing machines.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Many different types of data can be formulated using a graph structure. One form of data that lends itself to a graphical representation is data involving relationships (edges) between entities (nodes). Abstract maps of places and paths between them also have a natural graph representation, where places are nodes and paths are edges. In addition, many data structures can be expressed in graphical form, including linked lists and binary trees.
|
| 16 |
+
|
| 17 |
+
Substantial research has been done on producing output when given graph-structured input (Kashima et al., 2003; Shervashidze et al., 2011; Perozzi et al., 2014; Bruna et al., 2013; Duvenaud et al., 2015). Of particular relevance to this work are Graph Neural Networks (Gori et al., 2005; Scarselli et al., 2009), or GNNs, which extend recursive neural networks by assigning states to each node in a graph based on the states of adjacent nodes. Recently Li et al. (2016) have modified GNNs to use gated state updates and to produce output sequences. The resulting networks, called GG-NNs and GGS-NNs, are successful at solving a variety of tasks with graph-structured input.
|
| 18 |
+
|
| 19 |
+
The current work further builds upon GG-NNs and GGS-NNs by allowing graph-structured intermediate representations, as well as graph-structured outputs. This is accomplished using a more flexible graph definition, along with a set of graph transformations which take a graph and other information as input and produce a modified version of the graph. This work also introduces the Gated Graph Transformer Neural Network model (GGT-NN), which combines these transformations with a recurrent input model to incrementally construct a graph given natural language input, and can either produce a final graph representing its current state, or use the graph to produce a natural language output.
|
| 20 |
+
|
| 21 |
+
Extending GG-NNs in this way opens up a wide variety of applications. Since many types of data can be naturally expressed as a graph, it is possible to train a GGT-NN model to manipulate a meaningful graphical internal state. In this paper I demonstrate the GGT-NN model on the bAbI task dataset, which contains a set of stories about the state of the world. By encoding this state as a graph and providing these graphs to the model at training time, a GGT-NN model can be trained to construct the correct graph from the input sentences and then answer questions based on this internal graph. I also demonstrate that this architecture can learn complex update rules by training it to model a simple 1D cellular automaton and arbitrary 4-state Turing machines. This requires the network to learn how to transform its internal state based on the rules of each task.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Diagram of the differentiable encoding of a graphical structure, as described in section 3. On the left, the desired graph we wish to represent, in which there are 6 node types (shown as blue, purple, red, orange, green, and yellow) and two edge types (shown as blue/solid and red/dashed). Node 3 and the edge between nodes 6 and 7 have a low strength. On the right, depictions of the node and edge matrices: annotations, strengths, state, and connectivity correspond to $\mathbf { x } _ { v }$ , $s _ { v }$ , $\mathbf { h } _ { v }$ , and $\mathcal { C }$ , respectively. Saturation represents the value in each cell, where white represents 0, and fully saturated represents 1. Note that each node’s annotation only has a single nonzero entry, corresponding to each node having a single well-defined type, with the exception of node 3, which has an annotation that does not correspond to a single type. State vectors are shaded arbitrarily to indicate that they can store network-determined data. The edge connectivity matrix $\mathcal { C }$ is three dimensional, indicated by stacking the blue-edge cell on top of the red-edge cell for a given sourcedestination pair. Also notice the low strength for cell 3 in the strength vector and for the edge between node 6 and node 7 in the connectivity matrix.
|
| 25 |
+
|
| 26 |
+
# 2 BACKGROUND
|
| 27 |
+
|
| 28 |
+
# 2.1 GRU
|
| 29 |
+
|
| 30 |
+
Gated Recurrent Units (GRU) are a type of recurrent network cell introduced by Cho et al. (2014). Each unit uses a reset gate $r$ and an update gate $z$ , and updates according to
|
| 31 |
+
|
| 32 |
+
$$
|
| 33 |
+
\begin{array} { r l r l } & { \mathbf { r } ^ { ( t ) } = \sigma \left( \mathbf { W } _ { r } \mathbf { x } ^ { ( t ) } + \mathbf { U } _ { r } \mathbf { h } ^ { ( t - 1 ) } + \mathbf { b } _ { r } \right) \quad } & & { \mathbf { z } ^ { ( t ) } = \sigma \left( \mathbf { W } _ { z } \mathbf { x } ^ { ( t ) } + \mathbf { U } _ { z } \mathbf { h } ^ { ( t - 1 ) } + \mathbf { b } _ { z } \right) } \\ & { \widetilde { \mathbf { h } } ^ { ( t ) } = \phi \left( \mathbf { W } \mathbf { x } + \mathbf { U } \left( \mathbf { r } ^ { ( t ) } \odot \mathbf { h } ^ { ( t - 1 ) } \right) + \mathbf { b } \right) \quad } & & { \mathbf { h } ^ { ( t ) } = \mathbf { z } \odot \mathbf { h } ^ { ( t - 1 ) } + \left( 1 - \mathbf { z } \right) \odot \widetilde { \mathbf { h } } ^ { ( t ) } } \end{array}
|
| 34 |
+
$$
|
| 35 |
+
|
| 36 |
+
where $\sigma$ is the logistic sigmoid function, $\phi$ is an activation function (here tanh is used), $\mathbf { x } ^ { ( t ) }$ is the input vector at timestep $t$ , $\mathbf { h } ^ { ( t ) }$ is the hidden output vector at timestep $t$ , and ${ \bf W } , { \bf U } , { \bf W } _ { r } , { \bf U } _ { r } , { \bf W } _ { z }$ , $\mathbf { U } _ { z }$ , b, ${ \bf b } _ { r }$ and $\mathbf { b } _ { z }$ are learned weights and biases. Note that $\odot$ denotes elementwise multiplication.
|
| 37 |
+
|
| 38 |
+
# 2.2 GG-NN AND GGS-NN
|
| 39 |
+
|
| 40 |
+
The Gated Graph Neural Network (GG-NN) is a form of graphical neural network model described by Li et al. (2016). In a GG-NN, a graph $\mathcal { G } = ( \nu , \mathcal { E } )$ consists of a set $V$ of nodes $v$ with unique values and a set $\mathcal { E }$ of directed edges $e = ( v , v ^ { \prime } ) \in \mathcal { V } \times \mathcal { V }$ oriented from $v$ to $v ^ { \prime }$ . Each node has an annotation $\mathbf { x } _ { v } \in \mathbb { R } ^ { N }$ and a hidden state $\mathbf { h } _ { v } \in \mathbb { R } ^ { D }$ , and each edge has a type $y _ { e } \in \{ 1 , \cdots , M \}$ .
|
| 41 |
+
|
| 42 |
+
GG-NNs operate by first initializing the state $\mathbf { h } _ { v }$ of each node to correspond to the annotation $\mathbf { x } _ { v }$ . Then, a series of propagation steps occur. In each step, information is transferred between nodes across the edges, and the types of edge determine what information is sent. Each node sums the input it receives from all adjacent nodes, and uses that to update its own internal state, in the same manner as a GRU cell. Finally, the states of all nodes are used either to create a graph-level aggregate output, or to classify each individual node.
|
| 43 |
+
|
| 44 |
+
GGS-NNs extend GG-NNs by performing a large number of propagation-output cycles. At each stage, two versions of the GG-NN propagation process are run. The first is used to predict an output for that timestep, and the second is used to update the annotations of the nodes for the next timestep. This allows GGS-NNs to predict a sequence of outputs from a single graph.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Summary of the graph transformations. Input and output are represented as gray squares. a) Node addition $( \mathcal { T } _ { \mathrm { a d d } } )$ , where the input is used by a recurrent network (white box) to produce new nodes, of varying annotations and strengths. b) Node state update $( \mathcal { T } _ { \mathbf { h } } )$ , where each node receives input (dashed line) and updates its internal state. c) Edge update $( \mathcal { T } _ { \mathcal { C } } )$ , where each existing edge (colored) and potential edge (dashed) is added or removed according to the input and states of the adjacent nodes (depicted as solid arrows meeting at circles on each edge). d) Propagation $( \mathcal { T } _ { \mathrm { p r o p } } )$ , where nodes exchange information along the current edges, and update their states. e) Aggregation $( \mathcal { T } _ { \mathrm { r e p r } } )$ , where a single representation is created using an attention mechanism, by summing information from all nodes weighted by relevance (with weights shown by saturation of arrows).
|
| 48 |
+
|
| 49 |
+
# 3 DIFFERENTIABLE GRAPH TRANSFORMATIONS
|
| 50 |
+
|
| 51 |
+
In this section, I describe some modifications to the graph structure to make it fully differentiable, and then propose a set of transformations which can be applied to a graph structure in order to transform it. In particular, I redefine a graph $\mathcal { G } = ( \nu , \mathcal { C } ) \in \Gamma$ as a set $V$ of nodes $v$ , and a connectivity matrix $\mathcal { C } \in \mathbb { R } ^ { | \mathcal { V } | \times | \mathcal { V } | \times Y }$ , where $Y$ is the number of possible edge types. As before, each node has an annotation $\mathbf { x } _ { v } \in \mathbb { R } ^ { N }$ and a hidden state $\mathbf { h } _ { v } \in \mathbb { R } ^ { D }$ . However, there is an additional constraint that $\textstyle \sum _ { j = 1 } ^ { N } x _ { v , j } = 1$ . One can then interpret $x _ { v , j }$ as the level of belief that $v$ should have type $j$ out of $N$ possible node types. Each node also has a strength $s _ { v } \in [ 0 , 1 ]$ . This represents the level of belief that node $v$ should exist, where $s _ { v } = 1$ means the node exists, and $s _ { v } = 0$ indicates that the node should not exist and thus should be ignored.
|
| 52 |
+
|
| 53 |
+
Similarly, elements of $\mathcal { C }$ are constrained to the range $[ 0 , 1 ]$ , and thus one can interpret $\mathcal { C } _ { v , v ^ { \prime } , y }$ as the level of belief that there should be a directed edge of type $y$ from $v$ to $v ^ { \prime }$ . (Note that it is possible for there to be edges of multiple types between the same two nodes $v$ and $v ^ { \prime }$ , i.e. it is possible for $\mathcal { C } _ { v , v ^ { \prime } , y } = \mathcal { C } _ { v , v ^ { \prime } , y ^ { \prime } } = 1$ where $y \ne y ^ { \prime }$ .) Figure 1 shows the values of $\mathbf { x } _ { v }$ , $s _ { v }$ , $\mathbf { h } _ { v }$ , and $\mathcal { C }$ corresponding to a particular graphical structure.
|
| 54 |
+
|
| 55 |
+
There are five classes of graph transformation:
|
| 56 |
+
|
| 57 |
+
a) Node addition $( \mathcal { T } _ { \mathrm { a d d } } )$ , which modifies a graph by adding new nodes and assigning them annotations $\mathbf { x } _ { v }$ and strengths $s _ { v }$ based on an input vector.
|
| 58 |
+
b) Node state update $( \mathcal { T } _ { \mathbf { h } } )$ , which modifies the internal state of each node using an input vector (similar to a GRU update step). Optionally, different input can be given to nodes of each type, based on direct textual references to specific node types. This version is called a direct reference update $( \mathcal { T } _ { \mathbf { h } , \mathrm { d i r e c t } } )$ .
|
| 59 |
+
c) Edge update $( \mathcal { T } _ { \mathcal { C } } )$ , which modifies the edges between each pair of nodes based on the internal states of the two nodes and an external input vector.
|
| 60 |
+
d) Propagation $( \mathcal { T } _ { \mathrm { p r o p } } )$ , which allows nodes to trade information across the existing edges and then update their internal states based on the information received.
|
| 61 |
+
e) Aggregation $( \mathcal { T } _ { \mathrm { r e p r } } )$ , which uses an attention mechanism to select relevant nodes and then generates a graph-level output.
|
| 62 |
+
|
| 63 |
+
Each transformation has its own trainable parameters. Together, these transformations can be combined to process a graph in complex ways. An overview of these operations is shown in Figure 2. For details about the implementation of each of these transformations, see Appendix B.
|
| 64 |
+
|
| 65 |
+
# 4 GATED GRAPH TRANSFORMER NEURAL NETWORK (GGT-NN)
|
| 66 |
+
|
| 67 |
+
In this section I introduce the Gated Graph Transformer Neural Network (GGT-NN), which is constructed by combining a series of these transformations. Depending on the configuration of the transformations, a GGT-NN can take textual or graph-structured input, and produce textual or graphstructured output. Here I describe one particular GGT-NN configuration, designed to build and modify a graph based on a sequence of input sentences, and then produce an answer to a query.
|
| 68 |
+
|
| 69 |
+
<table><tr><td colspan="3">Algorithm1 Graph Transformation Pseudocode</td></tr><tr><td colspan="2">1:g↑α</td><td>11: G←Tada(G,[i(k) hgd])</td></tr><tr><td colspan="2">2:for k from 1 to K do</td><td>12: 9←Te(g,i(𝑘)</td></tr><tr><td>3:</td><td>9 ←Th(g,i(k))</td><td>13:end for</td></tr><tr><td>4:</td><td>if direct reference enabled then</td><td>14: 9 ← Tuery(G,iquery)</td></tr><tr><td>5:</td><td>9 ← Th,direct(G,D(𝑘))</td><td>15:if direct reference enabled then</td></tr><tr><td>6:</td><td>end if</td><td></td></tr><tr><td>7:</td><td>if intermediate propagation enabled then</td><td>17:end if</td></tr><tr><td>8:</td><td>9 ← Tprop(S)</td><td>18:9←T(G))</td></tr><tr><td>9:</td><td>end if</td><td>19: hswer ←Trper(G))</td></tr><tr><td>10:</td><td>hgd ←Trepr(9)</td><td>20: return foutput(hanswer)</td></tr></table>
|
| 70 |
+
|
| 71 |
+
When run, the model performs the following: For each sentence $k$ , each word is converted to a one-hot vector $\mathbf { w } _ { l } ^ { ( k ) }$ , and the sequence of words (of length $L$ ) is passed through a GRU layer to produce a sequence of partial-sentence representation vectors ${ \bf p } _ { l } ^ { ( k ) }$ . The full sentence representation vector $\mathbf { i } ^ { ( k ) }$ is initialized to the last partial representation vector $\mathbf { p } _ { L } ^ { ( k ) }$ . Furthermore, a direct-reference input matrix $\mathbf { D } ^ { ( k ) }$ is set to the sum of partial representation vectors corresponding to the words that directly reference a node type, .e. $\begin{array} { r } { \mathbf { D } _ { n } ^ { ( k ) } = \sum _ { l \in R _ { n } } \mathbf { p } _ { l } ^ { ( k ) } } \end{array}$ where $R _ { n }$ is the set of words in sentence $k$ $n$ . This acts like an attention mechanism, by accumulating the partial representation vectors for the words that directly reference each type, and masking out the vectors corresponding to other words.
|
| 72 |
+
|
| 73 |
+
Next, a series of graph transformations are applied, as depicted in Algorithm 1. Depending on the task, direct reference updates and per-sentence propagation can be enabled or disabled. The output function $f _ { \mathrm { o u t p u t } }$ will depend on the specific type of answer desired. If the answer is a single word, $f _ { \mathrm { o u t p u t } }$ can be a multilayer perceptron followed by a softmax operation. If the answer is a sequence of words, $f _ { \mathrm { o u t p u t } }$ can use a recurrent network (such as a GRU) to produce a sequence of outputs. Note that transformations with different superscripts $\mathcal { T } _ { \mathbf { h } }$ and $\mathcal { T } _ { \mathbf { h } } ^ { \mathrm { q u e r y } }$ , for instance) refer to similar transformations with different learned weights.
|
| 74 |
+
|
| 75 |
+
Since the processing of the input and all of the graph transformations are differentiable, at this point the network output can be compared with the correct output for that query and used to update the network parameters, including both the GRU parameters used when processing the input and the internal weights associated with each transformation.
|
| 76 |
+
|
| 77 |
+
# 4.1 SUPERVISION
|
| 78 |
+
|
| 79 |
+
As with many supervised models, one can evaluate the loss based on the likelihood of producing an incorrect answer, and then minimize the loss by backpropagation. However, based on initial experiments, the model appeared to require additional supervision to extract meaningful graphstructured data. To provide this additional supervision, I found it beneficial to provide the correct graph at each timestep and train the network to produce that graph. This occurs in two stages, first when new nodes are proposed, and then when edges are adjusted. For the edge adjustment, the edge loss between a correct edge matrix $\mathcal { C } ^ { * }$ and the computed edge matrix $\mathcal { C }$ is given by
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
{ \mathcal { L } } _ { \mathrm { e d g e } } = - { \mathcal { C } } ^ { * } \cdot \ln ( { \mathcal { C } } ) - ( 1 - { \mathcal { C } } ^ { * } ) \cdot \ln ( 1 - { \mathcal { C } } ) .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
The node adjustment is slightly more complex. Multiple nodes are added in each timestep, but the order of those nodes is arbitrary, and only their existence is important. Thus it should be possible for the network to determine the optimal ordering of the nodes. In fact, this is important because there is no guarantee that the nodes will be ordered consistently in the training data.
|
| 86 |
+
|
| 87 |
+
Vinyals et al. (2016) demonstrate a simple method for training a network to output unordered sets: the network produces a sequence of outputs, and these outputs are compared with the closest ordering of the training data, i.e., the ordering of the training data which would produce the smallest loss when compared with the network output. Vinyals et al. show that when using this method, the network arbitrarily chooses an ordering which may not be the optimal ordering for the task. However, in this case any ordering should be sufficient, and I found the arbitrary orderings selected in this way to work well in practice. In particular, letting s∗π(v) and $\mathbf { x } _ { \pi ( v ) } ^ { * }$ denote the correct strength and annotations of node $v$ under ordering $\pi$ , the loss becomes
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathcal { L } _ { \mathrm { n o d e } } = - \operatorname* { m a x } _ { \pi } \sum _ { v = | \mathcal { V } _ { \mathrm { o d d } } | + 1 } ^ { | \mathcal { V } _ { \mathrm { n e v } } | } s _ { \pi ( v ) } ^ { * } \ln ( s _ { v } ) + ( 1 - s _ { \pi ( v ) } ^ { * } ) \ln ( 1 - s _ { v } ) + \mathbf { x } _ { \pi ( v ) } ^ { * } \cdot \ln ( \mathbf { x } _ { v } ) .
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
At this point the correct values C∗, s∗π(v) a nd $\mathbf { x } _ { \pi ( v ) } ^ { * }$ are substituted into the graph for further processing. Note that only the edges and the new nodes are replaced by the supervision. The hidden states of all existing nodes are propagated without adjustment.
|
| 94 |
+
|
| 95 |
+
# 4.2 OTHER TRANSFORMATION CONFIGURATIONS
|
| 96 |
+
|
| 97 |
+
The structure described in Algorithm 1 is designed for question-answering tasks. However, due to the composability of the individual graph transformations, other configurations could be used to solve other tasks that operate on structured data.
|
| 98 |
+
|
| 99 |
+
For instance, if a task consists of tracking relationships between a fixed set of objects, one could construct a version of the model that does not use the new-nodes transformation $( \mathcal { T } _ { \mathrm { a d d } } )$ , but instead only modifies edges. If the task was to extract information from an existing graph, a structure similar to the GGS-NNs could be built by using only the propagation and aggregation transformations. If the task was to construct a graph based on textual input, the query processing steps could be omitted, and instead the final graph could be returned for processing. And if information should be gathered from a sequence of graphs instead of from a single graph, the query processing steps could be modified to run in parallel on the full sequence of graphs and extract information from each graph. This last modification is demonstrated in Appendix D.
|
| 100 |
+
|
| 101 |
+
# 5 EXPERIMENTS
|
| 102 |
+
|
| 103 |
+
# 5.1 BABI TASKS
|
| 104 |
+
|
| 105 |
+
I evaluated the GGT-NN model on the bAbI tasks, a set of simple natural-language tasks, where each task is structured as a sequence of sentences followed by a query (Weston et al., 2016). The generation procedure for the bAbI tasks includes a “Knowledge” object for each sentence, representing the current state of knowledge after that sentence. I exposed this knowledge object in graph format, and used this to train a GGT-NN in supervised mode. The knowledge object provides names for each node type, and direct reference was performed based on these names: if a word in the sentence matched a node type name, it was parsed as a direct reference to all nodes of that type. For details on this graphical format, see Appendix C.
|
| 106 |
+
|
| 107 |
+
# 5.1.1 ANALYSIS AND RESULTS
|
| 108 |
+
|
| 109 |
+
I trained two versions of the GGT-NN model for each task: one with and one without direct reference. Tasks 3 and 5, which involve a complex temporal component, were trained with intermediate propagation, whereas all of the other tasks were not because the structure of the tasks made such complexity unnecessary. Most task models were configured to output a single word, but task 19 (pathfinding) used a GRU to output multiple words, and task 8 (listing) was configured to output a strength for each possible word to allow multiple words to be selected without having to consider ordering.
|
| 110 |
+
|
| 111 |
+
Results are shown in Tables 1 and 2. The GGT-NN model was able to reach $9 5 \%$ accuracy in all but one of the tasks, and reached $100 \%$ accuracy in eleven of them (see Table 2). Additionally, for fourteen of the tasks, the model was able to reach $9 5 \%$ accuracy using 500 or fewer of the 1000 training examples (see Table 1).
|
| 112 |
+
|
| 113 |
+
The only task that the GGT-NN was unable to solve with $9 5 \%$ accuracy was task 17 (Positional Reasoning), for which the model was not able to attain a high accuracy. Task 17 has a larger number of possible entities than the other tasks: each entity consists of a color (chosen from five options) and a shape (chosen from four shapes), for a total of 20 unique entities that must be represented separately. Additionally, the stories are much shorter than those in other tasks (2 facts for each set of 8 questions). It is likely that these additional complexities caused the network performance to suffer.
|
| 114 |
+
|
| 115 |
+
Table 1: Number of training examples needed before the GGT-NN model could attain $\leq 5 \%$ error on each of the bAbI tasks. Experiments were run with 50, 100, 250, 500, and 1000 examples. “GGT-NN $^ +$ direct ref.” denotes the performance of the model with direct reference, and “GGTNN” denotes the performance of the model without direct reference. Dashes indicate that the model was unable to reach the desired accuracy with 1000 examples.
|
| 116 |
+
|
| 117 |
+
<table><tr><td>Task</td><td>CE-LNN rteeet CE-LNN</td><td>Task</td><td>CE-LNN aatteeat</td><td>CC-LNN</td></tr><tr><td></td><td></td><td>11-Basic Coreference</td><td>100</td><td>1000</td></tr><tr><td>1 - Single Supporting Fact 2 - Two Supporting Facts</td><td>100 1000 250</td><td>12 - Conjunction</td><td>500</td><td>1000</td></tr><tr><td>3 - Three Supporting Facts</td><td>= 1000</td><td>13 - Compound Coref.</td><td>100</td><td>1000</td></tr><tr><td>4 - Two Arg.Relations</td><td>1 1000 1000</td><td>14-Time Reasoning</td><td>1000</td><td>-</td></tr><tr><td>5 - Three Arg.Relations</td><td>500</td><td>15 -Basic Deduction</td><td>500</td><td>500</td></tr><tr><td>6 - Yes/No Questions</td><td>100 1</td><td>16 -Basic Induction</td><td>100</td><td>500</td></tr><tr><td>7 - Counting</td><td>250 =</td><td>17 -Positional Reasoning</td><td>-</td><td>1</td></tr><tr><td>8 -Lists/Sets</td><td>250 1000</td><td>18 - Size Reasoning</td><td>1000</td><td>=</td></tr><tr><td>9 - Simple Negation</td><td>250 1</td><td>19 -Path Finding</td><td>500</td><td>1</td></tr><tr><td>10 - Indefinite Knowledge</td><td>1000 1</td><td>20 -Agent's Motivations</td><td>250</td><td>250</td></tr></table>
|
| 118 |
+
|
| 119 |
+
<table><tr><td></td><td colspan="6">1,000 examples</td><td colspan="5">10,000 examples</td></tr><tr><td>Task</td><td>CECLNN pa teeeer</td><td>CE-LNN</td><td>JLST</td><td>NNLIN</td><td>NIANNN</td><td>Greee</td><td>WLN</td><td>*ANNNN JLN-I</td><td>ONG</td><td>+NNI</td><td>Jeeg</td></tr><tr><td></td><td>0</td><td>0.7</td><td>50.0</td><td>0</td><td>0</td><td>8</td><td>招</td><td></td><td>0</td><td>0</td><td>0</td></tr><tr><td>1234</td><td>0</td><td>5.7</td><td>80.0</td><td>0</td><td>8.3</td><td></td><td></td><td></td><td>0.4</td><td>0.3</td><td>0.1</td></tr><tr><td></td><td>1.3</td><td>12.0</td><td>80.0</td><td>0</td><td>40.3</td><td></td><td>3</td><td>2.1</td><td>1.8</td><td>1.1</td><td>4.1</td></tr><tr><td></td><td>1.2</td><td>2.2</td><td>39.0</td><td>0</td><td>2.8</td><td>1.4</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>5</td><td>1.6</td><td>10.9</td><td>30.0</td><td>2.0</td><td>13.1</td><td>4.6</td><td>0.8</td><td>0.8</td><td>0.8</td><td>0.5</td><td>0.3</td></tr><tr><td>6</td><td>0</td><td>7.7</td><td>52.0</td><td>0</td><td>7.6</td><td>30.0</td><td>17.1 1.5</td><td>0.1</td><td>0</td><td>0</td><td>0.2</td></tr><tr><td>7</td><td>0</td><td>5.6</td><td>51.0</td><td>15.0</td><td>17.3</td><td>22.3</td><td>17.8 60</td><td>2.0</td><td>0.6</td><td>2.4</td><td>0</td></tr><tr><td>8</td><td>0</td><td>3.3</td><td>55.0</td><td>9.0</td><td>10.0</td><td>19.2</td><td>13.8 1.7</td><td>0.9</td><td>0.3</td><td>0</td><td>0.5</td></tr><tr><td>9</td><td>0</td><td>11.6</td><td>36.0</td><td>0</td><td>13.2</td><td>31. 1.5</td><td>16.4 0.6</td><td>0.3</td><td>0.2</td><td>0</td><td>0.1</td></tr><tr><td>10</td><td>3.4</td><td>28.6</td><td>56.0</td><td>2.0</td><td>15.1</td><td>15.6</td><td>16.6 19.8</td><td>0</td><td>0.2</td><td>0</td><td>0.6</td></tr><tr><td>11</td><td>0</td><td>0.2</td><td>28.0</td><td>0</td><td>0.9</td><td>8.0</td><td>15.2</td><td>0</td><td>0</td><td>0</td><td>0.3</td></tr><tr><td>12</td><td>0.1</td><td>0.7</td><td>26.0</td><td>0</td><td>0.2</td><td>0.8</td><td>8.9 6.2</td><td>0</td><td>0</td><td>0.2</td><td>0</td></tr><tr><td>13</td><td>0</td><td>0.8</td><td>6.0</td><td>0</td><td>0.4</td><td>9.0</td><td>7.4 7.5</td><td>0</td><td>0</td><td>0</td><td>1 1.3</td></tr><tr><td>14</td><td>2.2</td><td>55.1</td><td>73.0</td><td>1.0</td><td>1.7</td><td>62.9</td><td>24.2 17.5</td><td>0.2</td><td>0.4</td><td>0.2</td><td>0</td></tr><tr><td>15</td><td>0.9</td><td>0</td><td>79.0</td><td>0</td><td>0</td><td>57. .8</td><td>47. 7.0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>16</td><td>0</td><td>0</td><td>77.0</td><td>0</td><td>1.3</td><td>53.2</td><td>49.6 3.6</td><td>51.</td><td>S</td><td></td><td>0.2</td></tr><tr><td>17</td><td>34</td><td>48.0</td><td>49.0</td><td>35.0</td><td>51.0</td><td></td><td></td><td></td><td></td><td></td><td>0.5</td></tr><tr><td>18</td><td></td><td>10.6</td><td>48.0</td><td>5.0</td><td>11.1</td><td>8.8</td><td></td><td>12</td><td></td><td></td><td>0.3</td></tr><tr><td>19</td><td>0</td><td>70.6</td><td>92.0</td><td>64.0</td><td>82.8</td><td>90.4</td><td>4.3</td><td>39.5 2.3</td><td>3.9</td><td>0</td><td>2.3</td></tr><tr><td>20</td><td>0</td><td>1.0</td><td>9.0</td><td>0</td><td>0</td><td>2.6</td><td>1.5</td><td>0</td><td>0 0</td><td>0</td><td>0</td></tr></table>
|
| 120 |
+
|
| 121 |
+
For comparison, accuracy on the bAbI tasks is also included for a simple sequence-to-sequence LSTM model and for a variety of existing state-of-the-art approaches (see Table 2): a simple sequence-to-sequence LSTM model, as implemented in Weston et al. (2016), a modified Memory Network model (MemNN, Weston et al., 2016), End-To-End Memory Network (MemN2N, Sukhbaatar et al., 2015), Recurrent Entity Network (EntNet, Henaff et al., 2016), Neural Turing Machine (NTM, Graves et al., 2014), Dynamic NTM (D-NTM, Gulcehre et al., 2016), a larger version of the MemN2N model with weight tying and nonlinearity $( \mathrm { M e m N } 2 \mathrm { N } ^ { \ast }$ , Sukhbaatar et al., 2015), Differentiable Neural Computer (DNC, Graves et al., 2016), and Dynamic Memory Network $\mathrm { ( D M N + }$ , Xiong et al., 2016). Although the GGT-NN model was trained using only 1,000 training examples, results using 10,000 examples have also been reproduced here for comparison. Also, it is important to note that the GGT-NN and MemNN models were trained with strong supervision: the GGT-NN model was trained with full graph information, and the MemNN model was trained with information on which sentences were relevant to the query. All other models were trained end-to-end without additional supervision.
|
| 122 |
+
|
| 123 |
+
Since the GGT-NN and MemNN models are both strongly supervised, it is interesting to note that each approach outperforms the other on a subset of the tasks. In particular, the GGT-NN model with direct reference attains a higher level of accuracy on the following tasks, with an improvement of $0 . 4 \substack { - 6 4 \% }$ depending on the task: task 5 $( 0 . 4 \% )$ , task 7 $( 1 5 \% )$ , task 8 $( 9 \% )$ , task 17 $( 0 . 5 \% )$ , task 18 $( 2 . 9 \% )$ , and task 19 $( 6 4 \% )$ . This may indicate that a graphical representation is superior to a list of sentence memories for solving these tasks. On the other hand, the MemNN model outperforms the GGT-NN model $( 0 . 1 \mathrm { - } 2 . 9 \%$ greater accuracy) on tasks 3, 4, 10, 12, 14, and 15.
|
| 124 |
+
|
| 125 |
+
Of particular interest is the performance on task 19, the pathfinding task, for which the GGT-NN model with direct reference performs better than all but one of the other models $( \mathrm { D M N } + )$ ), and shows a large improvement over the performance of the MemNN model. This is reasonable, since pathfinding is a task that is naturally suited to a graphical representation. The shortest path between two nodes can be easily found by sending information across all paths away from one of the nodes in a distributed fashion, which the GGT-NN model allows. Note that the preexisting GGS-NN model (discussed in Section 2.2) was also able to successfully learn the pathfinding task, but required the input to be preprocessed into graphical form even when evaluating the model, and thus could not be directly evaluated on the textual form of any of the bAbI tasks (Li et al., 2016). The current results demonstrate that the proposed GGT-NN model is able to solve the pathfinding task when given textual input.
|
| 126 |
+
|
| 127 |
+
Similarly, both variants of the GGT-NN model show improvement over many other models on task 16, the induction task. Solving the induction task requires being able to infer relationships based on similarities between entities. (One example from this task: Lily is a swan. Lily is white. Bernhard is green. Greg is a swan. What color is Greg? A:white.) In a graphical setting, this can be done by following a sequence of edges $( \mathrm { G r e g } \to \mathrm { s w a n } \to \mathrm { L i l y } \to $ white), and the performance of the GGT-NN model indicates that this task is particularly suited to such a representation.
|
| 128 |
+
|
| 129 |
+
In general, the GGT-NN model with direct reference performs better than the model without it. The model with direct reference reaches $9 5 \%$ accuracy on 19/20 of the bAbI tasks, while the model without direct reference reaches that level of accuracy on $9 / 2 0$ of the tasks (see Table 2). Additionally, when compared to the direct-reference model, the model without direct reference requires more training examples in order to reach the accuracy threshold (see Table 1). This indicates that, although the model can be used without direct reference, adding direct reference greatly improves the training of the model.
|
| 130 |
+
|
| 131 |
+
# 5.2 RULE DISCOVERY TASKS
|
| 132 |
+
|
| 133 |
+
To demonstrate the power of GGT-NN to model a wide variety of graph-based problems, I applied the GGT-NN to two additional tasks. In each task, a sequence of data structures were transformed into a graphical format, and the GGT-NN was tasked with predicting the data for the next timestep
|
| 134 |
+
|
| 135 |
+
Table 3: Accuracy of GGT-NN on the Rule 30 Automaton and Turing Machine tasks.
|
| 136 |
+
|
| 137 |
+
<table><tr><td></td><td>Original Task</td><td>Generalization:20</td><td>Generalization:30</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Automaton</td><td>100.0%</td><td>87.0%</td><td>69.5%</td></tr><tr><td>Turing</td><td>99.9%</td><td>90.4%</td><td>80.4%</td></tr></table>
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 3: Visualization of network performance on the Rule 30 Automaton task. Top node (purple) represents zero, bottom node (blue) represents 1, and middle nodes (green, orange, and red) represent individual cells. Blue edges indicate adjacent cells, and gold edges indicate the value of each cell. Three timesteps occur between each row.
|
| 141 |
+
|
| 142 |
+
based on the current timestep. No additional information was provided as textual input; instead, the network was tasked with learning the rules governing the evolution of the graph structure over time.
|
| 143 |
+
|
| 144 |
+
# 5.2.1 CELLULAR AUTOMATON TASK
|
| 145 |
+
|
| 146 |
+
The first task used was a 1-dimensional cellular automaton, specifically the binary cellular automaton known as Rule 30 (Wolfram, 2002). Rule 30 acts on an infinite set of cells, each with a binary state (either 0 or 1). At each timestep, each cell deterministically changes state based on its previous state and the states of its neighbors. In particular, the update rules are
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
{ \mathrm { C u r r e n t ~ n e i g h b o r h o o d } } { \left| \begin{array} { l } { 1 1 1 } \\ { ~ \mathbf { n e x t ~ v a l u e } } \end{array} \right| } { \begin{array} { l } { 1 1 1 } \\ { ~ \mathbf { 0 } ~ } \end{array} } { \left| \begin{array} { l } { ~ 1 \mathbf { 0 } ~ } \\ { ~ \mathbf { 0 } ~ } \end{array} \right| } { \begin{array} { l } { ~ \mathbf { 1 0 0 } ~ } \\ { ~ \mathbf { 1 } ~ } \end{array} } { \left| \begin{array} { l } { ~ 0 \mathbf { 1 } 1 } \\ { ~ \mathbf { 1 } ~ } \end{array} \right| } { \begin{array} { l } { ~ 0 \mathbf { 1 0 } ~ } \\ { ~ \mathbf { 1 } ~ } \end{array} } { \left| \begin{array} { l } { ~ 0 \mathbf { 0 } 1 } \\ { ~ \mathbf { 0 } ~ } \end{array} \right| }
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
Cell states can be converted into graphical format by treating the cells as a linked list. Each of the cells is represented by a node with edges connecting it to the cell’s neighbors, and a value edge is used to indicate whether the cell is 0 or 1. This format is described in more detail in Appendix C.
|
| 153 |
+
|
| 154 |
+
# 5.2.2 TURING MACHINES
|
| 155 |
+
|
| 156 |
+
The second task was simulating an arbitrary 2-symbol 4-state Turing machine. A Turing machine operates on an infinite tape of cells, each containing a symbol from a finite set of possible symbols. It has a head, which points at a particular cell and can read and write the symbol at that cell. It also has an internal state, from a finite set of states. At each timestep, based on the current state and the contents of the cell at the head, the machine writes a new symbol, changes the internal state, and can move the head left or right or leave it in place. The action of the machine depends on a finite set of rules, which specify the actions to take for each state-symbol combination. Note that the version of Turing machine used here has only 2 symbols, and requires that the initial contents of the tape be all 0 (the first symbol) except for finitely many 1s (the second symbol).
|
| 157 |
+
|
| 158 |
+
When converting a Turing machine to graphical format, the tape of the machine is modeled as a linked list of cells. Additionally, each state of the machine is denoted by a state node, and edges between these nodes encode the transition rules. There is also a head node, which connects both to the current cell and to the current state of the machine. See Appendix C for more details.
|
| 159 |
+
|
| 160 |
+
# 5.2.3 ANALYSIS AND RESULTS
|
| 161 |
+
|
| 162 |
+
The GGT-NN model was trained on 1000 examples of the Rule 30 automaton with different initial states, each of which simulated 7 timesteps of the automaton, and 20,000 examples of Turing machines with different rules and initial tape contents, each of which simulated 6 timesteps of the Turing machine. Performance was then evaluated on 1000 new examples generated with the same format. The models were evaluated by picking the most likely graph generated by the model, and comparing it with the correct graph. The percent accuracy denotes the fraction of the examples for which these two graphs were identical at all timesteps. In addition to evaluating the performance on identical tasks, the generalization ability of the models was also assessed. The same trained models were evaluated on versions of the task with 20 and 30 timesteps of simulation.
|
| 163 |
+
|
| 164 |
+
Results are shown in Table 3. The models successfully learned the assigned tasks, reaching high levels of accuracy for both tasks. Additionally, the models show the ability to generalize to large inputs, giving a perfect output in the majority of extended tasks. For visualization purposes, Figure 3 shows the model at various stages of training when evaluated starting with a single 1 cell.
|
| 165 |
+
|
| 166 |
+
# 6 COMPARISON WITH RELATED WORK
|
| 167 |
+
|
| 168 |
+
Many methods have been proposed for combining neural networks with graphs. These methods generally require the input to the network to be in graphical format. For instance, GNNs and GGS-NNs take a graph as input, and propagate information between nodes according to the graph structure (Gori et al., 2005; Scarselli et al., 2009; Li et al., 2016). Similarly, graph convolutional networks extract information from an existing graph structure by using approximations to spectral graph convolutions (Kipf & Welling, 2016). These methods are similar to GGT-NNs in that they all store information in the nodes of a graph and use edges to determine how information flows. However, they all use a graph with fixed structure, and can only accept graphical data. The GGT-NN model, on the other hand, allows the graph structure to be built and modified based on unstructured input.
|
| 169 |
+
|
| 170 |
+
Giles et al. (1992) describe a method for extracting a finite state machine from a trained recurrent neural network by quantizing the hidden states of the network, recording all possible state transitions, and using them to construct a minimal directed graph representing the state machine. This method, however, requires postprocessing of the network to extract the graph, and is limited to extracting graphs that represent state machines. Additionally, although the FSM extraction method described by Giles et al. (1992) and the GGT-NN model both produce graphs using neural networks, the goals are different: the FSM extraction method aims to learn a single graph that can classify sequences, whereas the GGT-NN model aims to learn a neural network that can manipulate graphs.
|
| 171 |
+
|
| 172 |
+
The lifted relational neural network (LRNN) is another approach to working with structured data (Sourek et al., 2015). LRNNs require the input to be formatted as a combination of weighted predicate logic statements, encompassing both general rules and specific known facts. For each training example, the statements are used to construct a “ground neural network”, with a connection pattern determined by the dependencies between the statements. LRNNs can learn to extract information by adjusting the weights of each statement, but require the rules to be composed by hand based on the task structure. Furthermore, unlike in GGT-NNs, a LRNN has no internal state associated with the objects it describes (which are instead represented by single neurons), and the relationships between objects cannot be constructed or modified by the network.
|
| 173 |
+
|
| 174 |
+
Multiple recent architectures have included differentiable internal states. Memory Networks, as described in Weston et al. (2014), and the fully differentiable end-to-end memory networks, described in Sukhbaatar et al. (2015), both utilize a differentiable long-term memory component, consisting of a set of memories that are produced by encoding the input sentences. To answer a query, an attention mechanism is used to select a subset of these memories, and the resulting memories are processed to produce the desired output. Differentiable Neural Computers (DNCs), described in Graves et al. (2016), interact with a fixed-size memory using a set of read and write “heads”, which can be moved within the memory either by searching for particular content or by following temporal “links of association” that track the order in which data was written.
|
| 175 |
+
|
| 176 |
+
Memory networks and DNCs share with the GGT-NN model the ability to iteratively construct an internal state based on textual input, and use that internal state to answer questions about the underlying structured data. However, in these models, the structure of the internal state is implicit: although the network can store and work with structured data, the actual memory consists of a set of vectors that cannot be easily interpreted, except by monitoring the network access patterns. The GGT-NN model, on the other hand, explicitly models the internal state as a graph with labeled nodes and edges. This allows the produced graph to be extracted, visualized, and potentially used in downstream applications that require graph-structured input.
|
| 177 |
+
|
| 178 |
+
Hierarchical Attentive Memory (HAM) is a memory-based architecture that consists of a binary tree built on top of an input sequence (Andrychowicz & Kurach, 2016). A recurrent controller accesses the HAM module by performing a top-down search through the tree, at each stage choosing to attend to either the left or right subtrees. Once this process reaches a leaf, the value of the leaf is provided to the controller to use in predicting the next output, and this leaf’s value can be updated with a new value. This architecture is especially suited toward sequence-based tasks, and has been shown to generalize to longer sequences very efficiently due to the tree structure. However, it is unclear whether a HAM module would work well with non-sequential structured data, since the tree structure is fixed by the network.
|
| 179 |
+
|
| 180 |
+
One advantage of the GGT-NN model over existing works is that it can process data in a distributed fashion. Each node independently processes its surroundings, which can be beneficial for complex tasks such as pathfinding on a graph. This is in contrast to memory networks, DNCs, and HAM modules, which are restricted to processing only a fixed number of locations in a given timestep. On the other hand, the distributed nature of the GGT-NN model means that it is less time and space efficient than these other networks. Since every node can communicate with every other node, the time and space required to run a GGT-NN step scales quadratically with the size of the input. A DNC or memory network, on the other hand, either scales linearly (since it attends to all stored data or memories) or is constant (if restricted to a fixed-size memory), and a HAM module scales logarithmically (due to the tree structure).
|
| 181 |
+
|
| 182 |
+
# 7 CONCLUSION
|
| 183 |
+
|
| 184 |
+
The results presented here show that GGT-NNs are able to successfully model a wide variety of tasks using graph-structured states and potentially could be useful in solving many other types of problems. The specific GGT-NN model described here can be used as-is for tasks consisting of a sequence of input sentences and graphs, optionally followed by a query. In addition, due to the modular nature of GGT-NNs, it is possible to reconfigure the order of the transformations to produce a model suitable for a different task.
|
| 185 |
+
|
| 186 |
+
The GGT-NN architecture has a few advantages over the architectures described in existing works. In contrast to other approaches to working with structured data, GGT-NNs are designed to work with unstructured input, and are able to modify a graphical structure based on the input. And in contrast to memory networks or DNCs, the internal state of the network is explicitly graph structured, and complex computations can be distributed across the nodes of the graph.
|
| 187 |
+
|
| 188 |
+
One downside of the current model is that the time and space required to train the model increase very quickly as the complexity of the task increases, which limits the model’s applicability. It would be very advantageous to develop optimizations that would allow the model to train faster and with smaller space requirements, such as using sparse edge connections, or only processing some subset of the nodes at each timestep. Another promising direction of future work is in reducing the level of supervision needed to obtain meaningful graphs, for example by combining a few examples that have full graph-level supervision with a larger set of examples that do not have graph-level information, or using additional regularization to enable the GGT-NN model to be trained without any graph information.
|
| 189 |
+
|
| 190 |
+
There are exciting potential uses for the GGT-NN model. One particularly interesting application would be using GGT-NNs to extract graph-structured information from unstructured textual descriptions. More generally, the graph transformations provided here may allow machine learning to interoperate more flexibly with other data sources and processes with structured inputs and outputs.
|
| 191 |
+
|
| 192 |
+
# ACKNOWLEDGMENTS
|
| 193 |
+
|
| 194 |
+
I would like to thank Harvey Mudd College for computing resources. I would also like to thank the developers of the Theano library, which I used to run my experiments. This work used the Extreme Science and Engineering Discovery Environment (XSEDE), which is supported by National Science Foundation grant number ACI-1053575.
|
| 195 |
+
|
| 196 |
+
# REFERENCES
|
| 197 |
+
|
| 198 |
+
Marcin Andrychowicz and Karol Kurach. Learning efficient algorithms with hierarchical attentive memory. arXiv preprint arXiv:1602.03218, 2016.
|
| 199 |
+
|
| 200 |
+
Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013.
|
| 201 |
+
|
| 202 |
+
Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014.
|
| 203 |
+
|
| 204 |
+
David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in Neural Information Processing Systems, pp. 2224–2232, 2015.
|
| 205 |
+
|
| 206 |
+
C Lee Giles, Clifford B Miller, Dong Chen, Hsing-Hen Chen, Guo-Zheng Sun, and Yee-Chun Lee. Learning and extracting finite state automata with second-order recurrent neural networks. Neural Computation, 4(3):393–405, 1992.
|
| 207 |
+
|
| 208 |
+
Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pp. 729–734. IEEE, 2005.
|
| 209 |
+
|
| 210 |
+
Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
|
| 211 |
+
|
| 212 |
+
Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016.
|
| 213 |
+
|
| 214 |
+
Caglar Gulcehre, Sarath Chandar, Kyunghyun Cho, and Yoshua Bengio. Dynamic neural turing machine with soft and hard addressing schemes. arXiv preprint arXiv:1607.00036, 2016.
|
| 215 |
+
|
| 216 |
+
Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016.
|
| 217 |
+
|
| 218 |
+
Hisashi Kashima, Koji Tsuda, and Akihiro Inokuchi. Marginalized kernels between labeled graphs. In ICML, volume 3, pp. 321–328, 2003.
|
| 219 |
+
|
| 220 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
|
| 221 |
+
|
| 222 |
+
Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. ICLR, 2016.
|
| 223 |
+
|
| 224 |
+
Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014.
|
| 225 |
+
|
| 226 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009.
|
| 227 |
+
|
| 228 |
+
Nino Shervashidze, Pascal Schweitzer, Erik Jan van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. Journal of Machine Learning Research, 12(Sep):2539– 2561, 2011.
|
| 229 |
+
|
| 230 |
+
Gustav Sourek, Vojtech Aschenbrenner, Filip Zelezny, and Ondrej Kuzelka. Lifted relational neural networks. arXiv preprint arXiv:1508.05128, 2015.
|
| 231 |
+
|
| 232 |
+
Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In Advances in neural information processing systems, pp. 2440–2448, 2015.
|
| 233 |
+
|
| 234 |
+
Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688.
|
| 235 |
+
|
| 236 |
+
John Towns, Timothy Cockerill, Maytal Dahan, Ian Foster, Kelly Gaither, Andrew Grimshaw, Victor Hazlewood, Scott Lathrop, Dave Lifka, Gregory D Peterson, et al. XSEDE: accelerating scientific discovery. Computing in Science & Engineering, 16(5):62–74, 2014.
|
| 237 |
+
|
| 238 |
+
Oriol Vinyals, Samy Bengio, and Manjunath Kudlur. Order matters: Sequence to sequence for sets. ICLR, 2016.
|
| 239 |
+
|
| 240 |
+
Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014.
|
| 241 |
+
|
| 242 |
+
Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merrienboer, Armand ¨ Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. ICLR, 2016.
|
| 243 |
+
|
| 244 |
+
Stephen Wolfram. A new kind of science, volume 5. Wolfram media Champaign, 2002.
|
| 245 |
+
|
| 246 |
+
Caiming Xiong, Stephen Merity, and Richard Socher. Dynamic memory networks for visual and textual question answering. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2397–2406, 2016.
|
| 247 |
+
|
| 248 |
+
# APPENDIX A BACKGROUND ON GG-NNS AND GGS-NNS
|
| 249 |
+
|
| 250 |
+
This section gives additional background on the implementation of GG-NNs and GGS-NNs, described by Li et al. (2016).
|
| 251 |
+
|
| 252 |
+
Recall from section 2.2 that GG-NNs represent a graph $\mathcal { G } = ( \nu , \mathcal { E } )$ as a set $V$ of nodes $v$ with unique values $1 , \ldots , | \nu |$ and a set $\mathcal { E }$ of directed edges $e = ( v , v ^ { \prime } ) \in \mathcal { V } \times \mathcal { V }$ oriented from $v$ to $v ^ { \prime }$ . Each node has an annotation $\mathbf { x } _ { v } \in \mathbb { R } ^ { N }$ and a hidden state $\mathbf { h } _ { v } \in \mathbb { R } ^ { D }$ . Additionally, each edge has a type $y _ { e } \in \{ 1 , \cdots , M \}$ .
|
| 253 |
+
|
| 254 |
+
Initially, $\mathbf { h } _ { v } ^ { ( 1 ) }$ is set to the annotation $\mathbf { x } _ { v }$ padded with zeros. Then nodes exchange information for some fixed number of timesteps $T$ according to the propagation model
|
| 255 |
+
|
| 256 |
+
$$
|
| 257 |
+
\begin{array} { r l r l } & { \mathbf { h } _ { v } ^ { ( 1 ) } = [ \mathbf { x } _ { v } ^ { \top } , \mathbf { 0 } ] ^ { \top } } & { \mathbf { a } _ { v } ^ { ( t ) } = \mathbf { A } _ { v : } ^ { \top } [ \mathbf { h } _ { 1 } ^ { ( t - 1 ) \top } \cdot \cdot \cdot \mathbf { h } _ { | \mathcal { V } | } ^ { ( t - 1 ) \top } ] ^ { \top } } \\ & { \mathbf { z } _ { v } ^ { ( t ) } = \sigma ( \mathbf { W } _ { z } \mathbf { a } _ { v } ^ { ( t ) } + \mathbf { U } \mathbf { h } _ { v } ^ { ( t - 1 ) } ) } & { \mathbf { r } _ { v } ^ { ( t ) } = \sigma ( \mathbf { W } _ { r } \mathbf { a } _ { v } ^ { ( t ) } + \mathbf { U } _ { r } \mathbf { h } _ { v } ^ { ( t - 1 ) } ) } \\ & { \mathbf { \widehat { h } } _ { v } ^ { ( t ) } = \operatorname { t a n h } ( \mathbf { W } \mathbf { a } _ { v } ^ { ( t ) } + \mathbf { U } \mathbf { ( r } _ { v } ^ { ( t ) } \odot \mathbf { h } _ { v } ^ { ( t - 1 ) } ) ) } & { \mathbf { h } _ { v } ^ { ( t ) } = \big ( 1 - \mathbf { z } _ { v } ^ { ( t ) } \big ) \odot \mathbf { h } _ { v } ^ { ( t - 1 ) } + \mathbf { z } _ { v } ^ { ( t ) } \odot \mathbf { \widehat { h } } _ { v } ^ { ( t ) } . } \end{array}
|
| 258 |
+
$$
|
| 259 |
+
|
| 260 |
+
Here $\mathbf { a } _ { v } ^ { ( t ) }$ represents the information received by each node from its neighbors in the graph, and the matrix $\mathbf { A } \in \mathbf { \bar { \mathbb { R } } } ^ { D | \mathcal { V } | \times 2 D | \mathcal { V } | }$ has a specific structure that determines how nodes communicate. The first half of $\mathbf { A }$ , denoted $\mathbf { A } ^ { ( o u t ) } \in \mathbb { R } ^ { \tilde { D } | \mathcal { V } | \times D | \mathcal { V } | }$ , corresponds to outgoing edges, whereas the second half $\mathbf { A } ^ { ( i n ) } \in \mathbb { R } ^ { D | \mathcal { V } | \times D | \mathcal { V } | }$ corresponds to incoming edges.
|
| 261 |
+
|
| 262 |
+
Each edge type corresponds to specific forward and backward propagation matrices $\mathbf { P } _ { y } , \mathbf { P } _ { y } ^ { \prime } \in \mathbb { R } ^ { \tilde { D } \times D }$ which determine how to propagate information across an edge of that type in each direction. The $D \times D$ -sized submatrix of $\mathbf { A } ^ { ( o u t ) }$ in position $i , j$ contains $\mathbf { P } _ { y }$ if an edge of type $y$ connects nodes $n _ { i }$ to $n _ { j }$ , or 0 if no such edge connects in that direction. Similarly, the $D \times D$ - sized submatrix of the matrix $\mathbf { A } ^ { ( i n ) }$ in position $i , j$ contains $\mathbf { P } _ { y } ^ { \prime }$ if an edge of type $y$ connects nodes $n _ { j }$ to $n _ { i }$ , or 0 if no such edge connects in that direction. $\mathbf { A } _ { v : } \in \mathbb { R } ^ { D \times 2 D | \mathcal { V } | }$ is the submatrix of $\mathbf { A }$ corresponding to node $v$ . Thus, multiplication by $\mathbf { A } _ { v }$ : in 1 is equivalent to taking the following sum:
|
| 263 |
+
|
| 264 |
+
$$
|
| 265 |
+
\mathbf { a } _ { v } ^ { ( t ) } = \sum _ { v ^ { \prime } \in \mathcal { V } } \left( \sum _ { y = 1 } ^ { M } s _ { \mathrm { e d g e } } ( v , v ^ { \prime } , y ) \odot \mathbf { P } _ { y } + s _ { \mathrm { e d g e } } ( v ^ { \prime } , v , y ) \odot \mathbf { P } _ { y } ^ { \prime } \right) \mathbf { h } _ { v ^ { \prime } } ^ { ( t - 1 ) }
|
| 266 |
+
$$
|
| 267 |
+
|
| 268 |
+
where $s _ { \mathrm { e d g e } } ( v , v ^ { \prime } , y )$ is 1 if $e = ( v , v ^ { \prime } ) \in \mathcal { E }$ and $y _ { e } = y$ , and 0 otherwise.
|
| 269 |
+
|
| 270 |
+
The output from a GG-NN is flexible depending on the task. For node selection tasks, a node score $o _ { v } \ = \ g ( \mathbf { h } _ { v } ^ { ( T ) } , \mathbf { x } _ { v } )$ is given for each node, and then a softmax operation is applied. Graph-level outputs are obtained by combining an attention mechanism $i$ and a node representation function $j$ , both implemented as neural networks, to produce the output representation
|
| 271 |
+
|
| 272 |
+
$$
|
| 273 |
+
\begin{array} { r } { \mathbf { h } _ { \mathcal { G } } = \operatorname { t a n h } \left( \sum _ { v \in \mathcal { V } } \sigma ( i \big ( \mathbf { h } _ { v } ^ { ( T ) } , \mathbf { x } _ { v } \big ) \big ) \odot \operatorname { t a n h } ( j \big ( \mathbf { h } _ { v } ^ { ( T ) } , \mathbf { x } _ { v } ) ) \right) } \end{array}
|
| 274 |
+
$$
|
| 275 |
+
|
| 276 |
+
Gated Graph Sequence Neural Networks (GGS-NN) are an extension of GG-NNs to sequential output o(1), $\mathbf { o } ^ { ( 1 ) } , \ldots , \mathbf { \bar { o } } ^ { ( K ) }$ . At each output step $k$ , the annotation matrix $\mathcal { X }$ is given by $\begin{array} { r l } { \bar { \chi } ^ { } ( k ) } & { { } = } \end{array}$ $[ \mathbf { x } _ { 1 } ^ { ( k ) } , \ldots , \mathbf { x } _ { | \mathcal { V } | } ^ { ( k ) } ] ^ { \top } \in \mathbb { R } ^ { | \mathcal { V } | \times L _ { \mathcal { V } } }$ . A GG-NN $\mathcal { F } _ { \mathbf { o } }$ is trained to predict an output sequence $\mathbf { o } ^ { ( k ) }$ from $\chi ( k )$ , and another GG-NN $\mathcal { F } _ { \mathbf { X } }$ is trained to predict $\chi ( k { + } 1 )$ from $\chi ^ { ( k ) }$ . Prediction of the output at each step is performed as in a normal GG-NN, and prediction of $\chi ( k { + } 1 )$ from the set of all final hidden states $\mathcal { H } ^ { ( k , T ) }$ (after $T$ propagation steps of $\mathcal { F } _ { \mathbf { X } }$ ) occurs according to the equation
|
| 277 |
+
|
| 278 |
+
$$
|
| 279 |
+
\begin{array} { r } { \mathbf { x } _ { v } ^ { ( k + 1 ) } = \sigma \left( j ( \mathbf { h } _ { v } ^ { ( k , T ) } , \mathbf { x } _ { v } ^ { ( k ) } ) \right) . } \end{array}
|
| 280 |
+
$$
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 4: Diagram of the operations performed for each class of transformation. Graph state is shown in the format given by Figure 1. Input and output are shown as gray boxes. Black dots represent concatenation, and $^ +$ and $\times$ represent addition and multiplication, respectively. $1 - \#$ represents taking the input value and subtracting it from 1. Note that for simplicity, operations are only shown for single nodes or edges, although the operations act on all nodes and edges in parallel. In particular, the propagation section focuses on information sent and received by the first node only. In that section the strengths of the edges in the connectivity matrix determine what information is sent to each of the other nodes. Light gray connections indicate the value zero, corresponding to situations where a given edge is not present.
|
| 284 |
+
|
| 285 |
+
# APPENDIX B GRAPH TRANSFORMATION DETAILS
|
| 286 |
+
|
| 287 |
+
In this section I describe in detail the implementations of each type of differentiable graph transformation.1 A diagram of the implementation of each transformation is shown in Figure 4. Note that it is natural to think of these transformations as operating on a single graphical state, and each modifying the state in place. However, in the technical descriptions of these transformations, the operations will be described as functions that take in an old graph and produce a new one, similarly to unrolling a recurrent network over time.
|
| 288 |
+
|
| 289 |
+
# B.1 NODE ADDITION
|
| 290 |
+
|
| 291 |
+
The node addition transformation $\mathcal { T } _ { \mathrm { a d d } } : \Gamma \times \mathbb { R } ^ { \alpha } \Gamma$ takes as input a graph $\mathcal { G }$ and an input vector $\mathbf { a } \in \mathbb { R } ^ { \alpha }$ , and produces a graph $\mathcal { G } ^ { \prime }$ with additional nodes. The annotation and strength of each new node is determined by a function $f _ { \mathrm { a d d } } : \mathbb { R } ^ { \alpha } \times \mathbb { R } ^ { \beta } \to \mathbb { R } \times \mathbb { R } ^ { N } \times \mathbb { R } ^ { \beta }$ , where $\alpha$ is the length of the input vector, $\beta$ is the length of the internal state vector, and as before $N$ is the number of node types. The new nodes are then produced according to
|
| 292 |
+
|
| 293 |
+
$$
|
| 294 |
+
\begin{array} { r } { \left( s _ { | V _ { \mathcal { G } } | + i } , \mathbf { x } _ { | V _ { \mathcal { G } } | + i } , \mathbf { h } _ { i } \right) = f _ { \mathrm { a d d } } ( \mathbf { a } , \mathbf { h } _ { i - 1 } ) , } \end{array}
|
| 295 |
+
$$
|
| 296 |
+
|
| 297 |
+
starting with $\mathbf { h } _ { 0 }$ initialized to some learned initial state, and recurrently computing $s _ { v }$ and $\mathbf { x } _ { v }$ for each new node, up to some maximum number of nodes. Based on initial experiments, I found that implementing $f _ { \mathrm { a d d } }$ as a GRU layer followed by 2 hidden tanh layers was effective, although other recurrent networks would likely be similarly effective. The node hidden states $\mathbf { h } _ { v }$ are initialized to zero. The recurrence should be computed as many times as the maximum number of nodes that might be produced. The recurrent function $f _ { \mathrm { a d d } }$ can learn to output $s _ { v } = 0$ for some nodes to create fewer nodes, if necessary.
|
| 298 |
+
|
| 299 |
+
Note that in order to use information from all of the existing nodes to produce the new nodes, the input to this transformation should include information provided by an aggregation transformation $\bar { \mathcal { T } _ { \mathrm { r e p r } } }$ , described in section B.5.
|
| 300 |
+
|
| 301 |
+
# B.2 NODE STATE UPDATE
|
| 302 |
+
|
| 303 |
+
The node state update transformation $\mathcal { T } _ { \mathbf { h } } : \Gamma \times \mathbb { R } ^ { \alpha } \Gamma$ takes as input a graph $\mathcal { G }$ and an input vector $\mathbf { a } \in \mathbb { R } ^ { \alpha }$ , and produces a graph $\mathcal { G } ^ { \prime }$ with updated node states. This is accomplished by performing a GRU-style update for each node, where the input is a concatenation of a and that node’s annotation vector $\mathbf { x } _ { v }$ and the state is the node’s hidden state, according to
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
\begin{array} { r l r l } & { \mathbf { r } _ { v } = \sigma \left( \mathbf { W } _ { r } [ \mathbf { a } \mathbf { x } _ { v } ] + \mathbf { U } _ { r } \mathbf { h } _ { v } + \mathbf { b } _ { r } \right) , } & & { \mathbf { z } _ { v } = \sigma \left( \mathbf { W } _ { z } [ \mathbf { a } \mathbf { x } _ { v } ] + \mathbf { U } _ { z } \mathbf { h } _ { v } + \mathbf { b } _ { z } \right) , } \\ & { \widetilde { \mathbf { h } } _ { v } ^ { \prime } = \operatorname { t a n h } \left( \mathbf { W } [ \mathbf { a } \mathbf { x } _ { v } ] + \mathbf { U } \left( \mathbf { r } \odot \mathbf { h } _ { v } \right) + \mathbf { b } \right) , } & & { \mathbf { h } _ { v } ^ { \prime } = \mathbf { z } _ { v } \odot \mathbf { h } _ { v } + \left( 1 - \mathbf { z } _ { v } \right) \odot \widetilde { \mathbf { h } } _ { v } ^ { \prime } } \end{array}
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
# B.2.1 DIRECT REFERENCE UPDATE
|
| 310 |
+
|
| 311 |
+
For some tasks, performance can be improved by providing information to nodes of a particular type only. For instance, if the input is a sentence, and one word of that sentence directly refers to a node type (e.g., if nodes of type 1 represent Mary, and Mary appears in the sentence), it can be helpful to allow all nodes of type 1 to perform an update using this information. To accomplish this, $\mathcal { T } _ { \mathbf { h } }$ can be modified to take node types into account. (This modification is denoted $\tau _ { \mathrm { h , d i r e c t } }$ .) Instead of a single vector $\mathbf { a } \in \mathbb { R } ^ { \alpha }$ , the direct-reference transformation takes in $\mathbf { A } \in \mathbb { R } ^ { N \times \alpha }$ , where $\mathbf { A } _ { n } \in \mathbb { R } ^ { \alpha }$ is the input vector for nodes with type $n$ . The update equations then become
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
\begin{array} { c c } { { \bf a } _ { v } = { \bf x } _ { v } { \bf A } } & { } \\ { { \bf r } _ { v } = \sigma \left( { \bf W } _ { r } [ { \bf a } _ { v } { \bf x } _ { v } ] + { \bf U } _ { r } { \bf h } _ { v } + { \bf b } _ { r } \right) , } & { { \bf z } _ { v } = \sigma \left( { \bf W } _ { z } [ { \bf a } _ { v } { \bf x } _ { v } ] + { \bf U } _ { z } { \bf h } _ { v } + { \bf b } _ { z } \right) , } \\ { { \bf \tilde { h } } _ { v } ^ { \prime } = \operatorname { t a n h } \left( { \bf W } [ { \bf a } _ { v } { \bf x } _ { v } ] + { \bf U } \left( { \bf r } \odot { \bf h } _ { v } \right) + { \bf b } \right) , } & { { \bf h } _ { v } ^ { \prime } = { \bf z } _ { v } \odot { \bf h } _ { v } + \left( 1 - { \bf z } _ { v } \right) \odot { \bf \tilde { h } } _ { v } ^ { \prime } } \end{array}
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
# B.3 EDGE UPDATE
|
| 318 |
+
|
| 319 |
+
The edge update transformation $\mathcal { T } _ { \mathcal { C } } : \Gamma \times \mathbb { R } ^ { \alpha } \Gamma$ takes a graph $\mathcal { G }$ and an input vector $\mathbf { a } \in \mathbb { R } ^ { \alpha }$ , and produces a graph $\mathcal { G } ^ { \prime }$ with updated edges. For each pair of nodes $( \boldsymbol { v } , \boldsymbol { v } ^ { \prime } )$ , the update equations are
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\begin{array} { r l } & { \mathbf { c } _ { v , v ^ { \prime } } = f _ { \mathrm { s e t } } ( \mathbf { a } , \mathbf { x } _ { v } , \mathbf { h } _ { v } , \mathbf { x } _ { v ^ { \prime } } , \mathbf { h } _ { v ^ { \prime } } ) } \\ & { \mathcal { C } _ { v , v ^ { \prime } } ^ { \prime } = ( 1 - \mathcal { C } _ { v , v ^ { \prime } } ) \odot \mathbf { c } _ { v , v ^ { \prime } } + \mathcal { C } _ { v , v ^ { \prime } } \odot ( 1 - \mathbf { r } _ { v , v ^ { \prime } } ) . } \end{array} \quad \begin{array} { r l } & { \mathbf { r } _ { v , v ^ { \prime } } = f _ { \mathrm { r e s e t } } ( \mathbf { a } , \mathbf { x } _ { v } , \mathbf { h } _ { v } , \mathbf { x } _ { v ^ { \prime } } , \mathbf { h } _ { v ^ { \prime } } ) } \\ & { } \end{array}
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
The functions $f _ { \mathrm { s e t } } , f _ { \mathrm { r e s e t } } ~ : ~ \mathbb { R } ^ { \alpha \times 2 N \times 2 D } \ ~ [ 0 , 1 ] ^ { Y }$ are implemented as neural networks. (In my experiments, I used a simple 2-layer fully connected network.) $\mathbf { c } _ { v , v ^ { \prime } , y }$ gives the level of belief in $[ 0 , 1 ]$ that an edge from $v$ to $v ^ { \prime }$ of type $y$ should be created if it does not exist, and $\mathbf { r } _ { v , v ^ { \prime } , y }$ gives the level of belief in $[ 0 , 1 ]$ that an edge from $v$ to $v ^ { \prime }$ of type $y$ should be removed if it does. Setting both to zero results in no change for that edge, and setting both to 1 toggles the edge state.
|
| 326 |
+
|
| 327 |
+
# B.4 PROPAGATION
|
| 328 |
+
|
| 329 |
+
The propagation transformation $\mathcal { T } _ { \mathrm { p r o p } } : \Gamma \to \Gamma$ takes a graph ${ \mathcal { G } } = { \mathcal { G } } ^ { ( 0 ) }$ and runs a series of $T$ propagation steps (as in GG-NN), returning the resulting graph $\mathcal { G } ^ { \prime } = \mathcal { G } ^ { ( T ) }$ . The GG-NN propagation step is extended to handle node and edge strengths, as well as to allow more processing to occur to
|
| 330 |
+
|
| 331 |
+
the information transferred across edges. The full propagation equations for step $t$ are
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
\begin{array} { r l } & { \mathbf { a } _ { v } ^ { ( t ) } = \displaystyle \sum _ { v ^ { \prime } \in \mathcal { V } } s _ { v ^ { \prime } } \displaystyle \sum _ { y = 1 } ^ { M } \mathcal { C } _ { v , v ^ { \prime } , y } \odot f _ { y } ^ { \mathrm { f w d } } ( \mathbf { x } _ { v ^ { \prime } } , \mathbf { h } _ { v ^ { \prime } } ^ { ( t - 1 ) } ) + \mathcal { C } _ { v ^ { \prime } , v , y } \odot f _ { y } ^ { \mathrm { f w d } } ( \mathbf { x } _ { v ^ { \prime } } , \mathbf { h } _ { v ^ { \prime } } ^ { ( t - 1 ) } ) } \\ & { \mathbf { z } _ { v } ^ { ( t ) } = \sigma ( \mathbf { W } _ { z } [ \mathbf { a } _ { v } ^ { ( t ) } \ \mathbf { x } _ { v } ] + \mathbf { U } \mathbf { h } _ { v } ^ { ( t - 1 ) } + \mathbf { b } _ { z } ) } \\ & { \mathbf { r } _ { v } ^ { ( t ) } = \sigma ( \mathbf { W } _ { r } [ \mathbf { a } _ { v } ^ { ( t ) } \ \mathbf { x } _ { v } ] + \mathbf { U } _ { r } \mathbf { h } _ { v } ^ { ( t - 1 ) } + \mathbf { b } _ { r } ) } \\ & { \mathbf { \widetilde { h } } _ { v } ^ { ( t ) } = \mathrm { t a n h } ( \mathbf { W } [ \mathbf { a } _ { v } ^ { ( t ) } \ \mathbf { x } _ { v } ] + \mathbf { U } ( \mathbf { r } _ { v } ^ { ( t ) } \odot \mathbf { h } _ { v } ^ { ( t - 1 ) } ) + \mathbf { b } _ { h } ) } \\ & { \mathbf { h } _ { v } ^ { ( t ) } = ( 1 - \mathbf { z } _ { v } ^ { ( t ) } ) \odot \mathbf { h } _ { v } ^ { ( t - 1 ) } + \mathbf { z } _ { v } ^ { ( t ) } \odot \mathbf { \widetilde { h } } _ { v } ^ { ( t ) } . } \end{array}
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
Equation 5 has been adjusted in the most significant manner (relative to Equation 2). In particular, $s _ { v ^ { \prime } }$ restricts propagation so that nodes with low strength send less information to adjacent nodes, $s _ { \mathrm { e d g e } }$ has been replaced with $\mathcal { C }$ to allow edges with fractional strength, and the propagation matrices $\mathbf { P } _ { y } , \mathbf { P } _ { z } ^ { \prime }$ have been replaced with arbitrary functions $f _ { y _ { . } } ^ { \mathrm { f w d } } , f _ { y } ^ { \mathrm { b w d } } : \mathbb { R } ^ { N } \times \mathbb { R } ^ { D } \mathbb { R } ^ { \alpha }$ , where $\alpha$ is the length of the vector a. I used a fully connected layer to implement each function in my experiments. Equations 6, 7, and 8 have also been modified slightly to add a bias term.
|
| 338 |
+
|
| 339 |
+
# B.5 AGGREGATION
|
| 340 |
+
|
| 341 |
+
The aggregation transformation $\mathcal { T } _ { \mathrm { r e p r } } : \Gamma \to \mathbb { R } ^ { \alpha }$ produces a graph-level representation vector from a graph. It functions very similarly to the output representation of a GG-NN (equation 3), combining an attention mechanism with a node representation function, but is modified slightly to take into account node strengths. As in GG-NN, both $i$ and $j$ are neural networks, and in practice a single fully connected layer appears to be adequate for both.
|
| 342 |
+
|
| 343 |
+
$$
|
| 344 |
+
\begin{array} { r } { \mathbf { h } _ { \mathcal { G } } = \operatorname { t a n h } \left( \sum _ { v \in \mathcal { V } } s _ { v } \sigma \big ( i \big ( \mathbf { h } _ { v } ^ { ( T ) } , \mathbf { x } _ { v } \big ) \big ) \odot \operatorname { t a n h } \big ( j \big ( \mathbf { h } _ { v } ^ { ( T ) } , \mathbf { x } _ { v } \big ) \big ) \right) . } \end{array}
|
| 345 |
+
$$
|
| 346 |
+
|
| 347 |
+
# APPENDIX C GRAPH FORMAT DETAILS
|
| 348 |
+
|
| 349 |
+
# C.1 BABI TASKS
|
| 350 |
+
|
| 351 |
+
The knowledge graph object used during generation of the bAbI tasks is structured as a dictionary relating entities to each other with specific relationship types. Entities are identified based on their names, and include people (John, Mary, Sandra), locations (bedroom, kitchen, garden), objects (football, apple, suitcase), animals (mouse, wolf, cat), and colors (white, yellow, green), depending on the particular task. Relationships between entities are also expressed as strings, and are directed: if John is holding the milk there is an “is in” relationship from “milk” to “John”; if Sandra is in the bedroom there is an “is in” relationship from “Sandra” to “bedroom”; if Lily is green there is a “has color” relationship from “Lily” to “green”, etc.
|
| 352 |
+
|
| 353 |
+
The transformation from the knowledge object to a graph is straightforward: each entity used is assigned to a new node type, and relationships between entities are represented as edges between the corresponding nodes. To avoid confusion from overloaded relationships (such as “is in” being used to represent an object being held by a person as well as a person being in a room), relation names are given a distinct edge type depending on the usage context. For instance, when a person is carrying an object, the generic “is in” relationship becomes an edge of type “gettable is in actor”.
|
| 354 |
+
|
| 355 |
+
Some of the graph representations had to be modified in order to ensure that they contained all of the necessary information. For instance, task 3 requires the network to remember where items were in the past, but the knowledge object only contained references to their current locations. In these cases, a linked list structure was added to the knowledge object to allow the history information to be represented in the graph.
|
| 356 |
+
|
| 357 |
+
In particular, each time an item changed locations, a new “record” node was added, with a “previous” edge to the previous history node and a “value” edge to the current location of the item. Each item then connected to the most recent history node using a “history-head” edge. This ensures that the history of each node is present in the graph.
|
| 358 |
+
|
| 359 |
+
1. John grabbed the milk.
|
| 360 |
+
2. John travelled to the bedroom.
|
| 361 |
+
3. Sandra took the football.
|
| 362 |
+
4. John went to the garden.
|
| 363 |
+
5. John let go of the milk.
|
| 364 |
+
6. Sandra let go of the football.
|
| 365 |
+
7. John got the football.
|
| 366 |
+
8. John grabbed the milk.
|
| 367 |
+
Where is the milk?
|
| 368 |
+
$\begin{array} { r l } & { \mathrm { 1 . ~ i n i t ~ 1 } } \\ & { \mathrm { 2 . ~ i n i t ~ 1 } } \\ & { \mathrm { 3 . ~ i n i t ~ 1 } } \\ & { \mathrm { 4 . ~ i n i t ~ 1 } } \\ & { \mathrm { 5 . ~ i n i t ~ 1 } } \\ & { \mathrm { 6 . ~ i n i t ~ 0 } } \\ & { \mathrm { 7 . ~ i n i t ~ 0 } } \\ & { \mathrm { 8 . ~ i n i t ~ 0 } } \\ & { \mathrm { 9 . ~ i n i t ~ 1 } } \\ & { \mathrm { 1 0 . ~ i n i t ~ 1 } } \end{array}$ 11. init 1
|
| 369 |
+
12. init 1
|
| 370 |
+
13. init 0
|
| 371 |
+
14. simulate
|
| 372 |
+
15. simulate
|
| 373 |
+
16. simulate
|
| 374 |
+
17. simulate
|
| 375 |
+
18. simulate
|
| 376 |
+
19. simulate
|
| 377 |
+
1 20. simulate
|
| 378 |
+
|
| 379 |
+

|
| 380 |
+
Figure 5: Diagram of one sample story from the bAbI dataset (Task 2), along with a graphical representation of the knowledge state after the italicized sentence.
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure 6: Diagram of one example from the automaton task, along with a graphical representation of the automaton state after the fourth simulate command (italicized).
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 7: Diagram of an example from the Turing machine task, with a graphical representation of the machine state after the second run command (italicized).
|
| 387 |
+
|
| 388 |
+
In a few of the tasks, specific entities had multi-word representations. While this works for normal input, it makes it difficult to do direct reference, since direct reference is checked on an individual word level. These tasks were modified slightly so that the entities are referred to with single words (e.g. “red square” instead of “red square”).
|
| 389 |
+
|
| 390 |
+
An example of a graph produced from the bAbI tasks is given in Figure 5.
|
| 391 |
+
|
| 392 |
+
# C.2 CELLULAR AUTOMATON
|
| 393 |
+
|
| 394 |
+
The cellular automaton task was mapped to graphical format as follows: Nodes have 5 types: zero, one, init-cell, left-cell, and right-cell. Edges have 2 types: value, and next-r. There is always exactly one “zero” node and one “one” node, and all of the cell nodes form a linked list, with a “value” edge connecting to either zero or one, and a “next-r” edge pointing to the next cell to the right (or no edge for the rightmost cell).
|
| 395 |
+
|
| 396 |
+
At the start of each training example, there are 13 timesteps with input of the form “init X” where X is 0 or 1. These timesteps indicate the first 13 initial cells. Afterward, there are 7 “simulate” inputs. At each of these timesteps, one new left-cell node is added on the left, one new right-cell node is added on the right, and then all cells update their value according to the Rule 30 update rules.
|
| 397 |
+
|
| 398 |
+
An example of the graphical format for the cellular automaton task is given in Figure 6.
|
| 399 |
+
|
| 400 |
+
# C.3 TURING MACHINE
|
| 401 |
+
|
| 402 |
+
For the Turing machine task, nodes were assigned to 8 types: state-A, state-B, state-C, state-D, head, cell, 0, and 1. Edges have 16 types: head-cell, next-left, head-state, value, and 12 types of the form rule-R-W-D, where R is the symbol read (0 or 1), W is the symbol written (0 or 1), and D is the direction to move afterward (Left, Right, or None). State nodes are connected with rule edges, which together specify the rules governing the Turing machine. Cell nodes are connected to adjacent cells with next-left edges, and to the symbol on the tape with value edges. Finally, the head node is connected to the current state with a head-state edge, and to the current cell of the head with a head-cell edge.
|
| 403 |
+
|
| 404 |
+
At the start of each training example, each of the rules for the Turing machine are given, in the form “rule state-X R W state-Y D”. Next, the initial state is given in the format “start state-X”, and the initial contents of the tape (of length 4) are given sequentially in the format “input symbol-X”, with the position for the head to start marked by “input symbol-X head”. Finally, there are 6 “run” inputs, after each of which the head node updates its edges and the cell at the head updates its value according to the rules of the Turing machine. If the head leaves the left or right of the tape, a new node is introduced there.
|
| 405 |
+
|
| 406 |
+
An example of the graphical format for the Turing machine task is given in Figure 7.
|
| 407 |
+
|
| 408 |
+
# APPENDIX D GRAPH SEQUENCE INPUT
|
| 409 |
+
|
| 410 |
+
The model described in Section 4 conditions the output of the model on the final graph produced by the network. This is ideal when the graph represents all of the necessary knowledge for solving the task. However, it may also be desirable for each graph to represent a subset of knowledge corresponding to a particular time, and for the output to be based on the sequence of graphs produced. For instance, in the third bAbI task (which requires reasoning about the temporal sequence of events) each graph could represent the state of the word at that particular time, instead of representing the full sequence of events prior to that time. In Appendix C, section C.1, I describe a transformation to the tasks which allows all information to be contained in the graph. But this adds complexity to the graphical structure. If it were possible for the model to take into account the full sequence of graphs, instead of just the final one, we could maintain the simplicity of the graph transformation.
|
| 411 |
+
|
| 412 |
+
To this end, I present an extension of the GGT-NN model that can produce output using the full graphical sequence. In the extended model, the graphical output of the network after each input sentence is saved for later use. Then, when processing the query, the same set of query transformations are applied to every intermediate graph, producing a sequence of representation vectors hanswer1 , . $\mathbf { h } _ { 1 } ^ { \mathrm { a n s w e r } } , \ldots , \mathbf { h } _ { K } ^ { \mathrm { a n s w e r } }$ , hanswer . These are then combined into a final summary representation vector hanswersummary using a recurrent network such as a GRU layer, from which the output can be produced. The modified pseudocode for this is shown in Algorithm 2.
|
| 413 |
+
|
| 414 |
+
Table 4: Performance of the sequence-extended GGT-NN on the two bAbI tasks with a temporal component.
|
| 415 |
+
|
| 416 |
+
<table><tr><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>Direct referenceAccuracy</td><td rowspan=1 colspan=1>No direct referenceAccuracy</td></tr><tr><td rowspan=1 colspan=1>3 - Three Supporting Facts5 - Three Arg. Relations</td><td rowspan=1 colspan=1>90.3%89.8%</td><td rowspan=1 colspan=1>65.4%74.2%</td></tr></table>
|
| 417 |
+
|
| 418 |
+
<table><tr><td colspan="2">Algorithm2 Sequence-Extended Pseudocode</td></tr><tr><td>9↑</td><td>Initialize G to an empty graph</td></tr><tr><td>for k from1 to K do</td><td>Process each sentence</td></tr><tr><td>9k ←Th(Sk-1,i(k))</td><td></td></tr><tr><td>if direct reference enabled then</td><td></td></tr><tr><td>9k ← Tiret(G,D(k))</td><td></td></tr><tr><td>end if</td><td></td></tr><tr><td>if intermediate propagation enabled then</td><td></td></tr><tr><td>9k←Tprop(Sk)</td><td></td></tr><tr><td>end if</td><td></td></tr><tr><td>h←Trepr(G)</td><td></td></tr><tr><td>9k←Tadd(Sk,[i(k) )hg])</td><td></td></tr><tr><td>9k ←Tc(Sk,i(k))</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td>hameary←0</td><td></td></tr><tr><td>for k from1 to K do</td><td>>Process the query for each graph</td></tr><tr><td>9 ←Tuery(, query)</td><td></td></tr><tr><td>if direct reference enabled then</td><td></td></tr><tr><td>t(9k,Dquery)</td><td></td></tr><tr><td>end if</td><td></td></tr><tr><td>Tpy(G) 9k←</td><td></td></tr><tr><td>←Trepery(G)</td><td></td></tr><tr><td>answer r,summeary)</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td>return fouput(hamary)</td><td></td></tr></table>
|
| 419 |
+
|
| 420 |
+
I evaluated the extended model on bAbI tasks 3 and 5, the two tasks which asked questions about a sequence of events. (Note that although Task 14 also involves a sequence of events, it uses a set of discrete named time periods and so is not applicable to this modification.) The model was trained on each of these tasks, without the extra record and history nodes used to store the sequence, instead simply using the sequence of graphs to encode the relevant information. Due to the simpler graphs produced, intermediate propagation was also disabled.
|
| 421 |
+
|
| 422 |
+
Results from training the model are shown in Table 4. The accuracy of the extended model appears to be slightly inferior to the original model in general, although the extended direct-reference model of task 5 performs slightly better than its original counterpart. One possible explanation for the inferiority of the extended model is that the increased amount of query processing made the model more likely to overfit on the training data. Even so, the extended model shows promise, and could be advantageous for modeling complex tasks for which preprocessing the graph would be impractical.
|
parse/train/HJ0NvFzxl/HJ0NvFzxl_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJ0NvFzxl/HJ0NvFzxl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJ0NvFzxl/HJ0NvFzxl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sklf1yrYDr/Sklf1yrYDr.md
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BATCHENSEMBLE: AN ALTERNATIVE APPROACH TOEFFICIENT ENSEMBLE AND LIFELONG LEARNING
|
| 2 |
+
|
| 3 |
+
Yeming $\mathbf { W e n } ^ { 1 , 2 , 3 * }$ , Dustin Tran3 & Jimmy $\mathbf { B a } ^ { 1 , 2 }$ 1University of Toronto, 2Vector Institute, 3Google Brain
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Ensembles, where multiple neural networks are trained individually and their predictions are averaged, have been shown to be widely successful for improving both the accuracy and predictive uncertainty of single neural networks. However, an ensemble’s cost for both training and testing increases linearly with the number of networks, which quickly becomes untenable.
|
| 8 |
+
|
| 9 |
+
In this paper, we propose BatchEnsemble1, an ensemble method whose computational and memory costs are significantly lower than typical ensembles. BatchEnsemble achieves this by defining each weight matrix to be the Hadamard product of a shared weight among all ensemble members and a rank-one matrix per member. Unlike ensembles, BatchEnsemble is not only parallelizable across devices, where one device trains one member, but also parallelizable within a device, where multiple ensemble members are updated simultaneously for a given mini-batch. Across CIFAR-10, CIFAR-100, WMT14 EN-DE/EN-FR translation, and out-of-distribution tasks, BatchEnsemble yields competitive accuracy and uncertainties as typical ensembles; the speedup at test time is 3X and memory reduction is 3X at an ensemble of size 4. We also apply BatchEnsemble to lifelong learning, where on Split-CIFAR-100, BatchEnsemble yields comparable performance to progressive neural networks while having a much lower computational and memory costs. We further show that BatchEnsemble can easily scale up to lifelong learning on Split-ImageNet which involves 100 sequential learning tasks.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Ensembling is one of the oldest tricks in machine learning literature (Hansen & Salamon, 1990). By combining the outputs of several models, an ensemble can achieve better performance than any of its members. Many researchers demonstrate that a good ensemble is one where the ensemble’s members are both accurate and make independent errors (Perrone & Cooper, 1992; Maclin & Opitz, 1999). In neural networks, SGD (Bottou, 2003) and its variants such as Adam (Kingma & Ba, 2014) are the most common optimization algorithm. The random noise from sampling mini-batches of data in SGD-like algorithms and random initialization of the deep neural networks, combined with the fact that there is a wide variety of local minima solutions in high dimensional optimization problem (Ge et al., 2015; Kawaguchi, 2016; Wen et al., 2019), results in the following observation: deep neural networks trained with different random seeds can converge to very different local minima although they share similar error rates. One of the consequence is that neural networks trained with different random seeds will usually not make all the same errors on the test set, i.e. they may disagree on a prediction given the same input even if the model has converged (Fort et al., 2019).
|
| 14 |
+
|
| 15 |
+
Ensembles of neural networks benefit from the above observation to achieve better performance by averaging or majority voting on the output of each ensemble member (Xie et al., 2013; Huang et al., 2017). It is shown that ensembles of models perform at least as well as its individual members and diverse ensemble members lead to better performance (Krogh & Vedelsby, 1995). More recently, Lakshminarayanan et al. (2017) showed that deep ensembles give reliable predictive uncertainty estimates while remaining simple and scalable. A further study confirms that deep ensembles generally
|
| 16 |
+
|
| 17 |
+
achieves the best performance on out-of-distribution uncertainty benchmarks (Ovadia et al., 2019;
|
| 18 |
+
Gustafsson et al., 2019) compared to other methods such as MC-dropout (Gal & Ghahramani, 2015).
|
| 19 |
+
|
| 20 |
+
Despite their success on benchmarks, ensembles are limited in practice due to their expensive computational and memory costs, which increase linearly with the ensemble size in both training and testing. Computation-wise, each ensemble member requires a separate neural network forward pass of its inputs. Memory-wise, each ensemble member requires an independent copy of neural network weights, each up to millions (sometimes billions) of parameters. This memory requirement also makes many tasks beyond supervised learning prohibitive. For example, in lifelong learning, a natural idea is to use a separate ensemble member for each task, adaptively growing the total number of parameters by creating a new independent set
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: The test time cost (blue) and memory cost of BatchEnsemble (orange) w.r.t the ensemble size. The result is relative to single model cost. Testing time cost and memory cost of naive ensemble are plotted in green.
|
| 24 |
+
|
| 25 |
+
of weights for each new task. No previous work achieves competitive performance on lifelong learning via ensemble methods, as memory is a major bottleneck.
|
| 26 |
+
|
| 27 |
+
Our contribution: In this paper, we aim to address the computational and memory bottleneck by building a more parameter efficient-ensemble method: BatchEnsemble. We achieve this goal by exploiting a novel ensemble weight generation mechanism: the weight of each ensemble member is generated by the Hadamard product between: a. one shared weight among all ensemble members. b. one rank-one matrix that varies among all members, which we refer to as fast weight in the following sections. Figure 1 compares testing and memory cost between BatchEnsemble and naive ensemble. Unlike typical ensembles, BatchEnsemble is mini-batch friendly, where it is not only parallelizable across devices like typical ensembles but also parallelizable within a device. Moreover, it incurs only minor memory overhead because a large number of weights are shared across ensemble members.
|
| 28 |
+
|
| 29 |
+
Empirically, we show that BatchEnsemble has the best trade-off among accuracy, running time, and memory on several deep learning architectures and learning tasks: CIFAR-10/100 classification with ResNet32 (He et al., 2016) and WMT14 EN-DE/EN-FR machine translation with Transformer (Vaswani et al., 2017). Additionally, we show that BatchEnsemble is effective in calibrated prediction on out-of-distribution datasets; and uncertainty evaluation on contextual bandits. Finally, we show that BatchEnsemble can be successfully applied in lifelong learning and scale up to 100 sequential learning tasks without catastrophic forgetting and the need of a memory buffer. Section 5 further provides diversity analysis as a tool to understand why BatchEnsemble works well in practice.
|
| 30 |
+
|
| 31 |
+
# 2 BACKGROUND
|
| 32 |
+
|
| 33 |
+
In this section, we describe relevant background about ensembles, uncertainty evaluation, and lifelong learning for our proposed method, BatchEnsemble.
|
| 34 |
+
|
| 35 |
+
# 2.1 ENSEMBLES FOR IMPROVED PERFORMANCE
|
| 36 |
+
|
| 37 |
+
Bagging, also called bootstrap aggregating, is an algorithm to improve the total generalization performance by combining several different models (Breiman, 1996). Strategies to combine those models such as averaging and majority voting are known as ensemble methods. It is shown that ensembles of models perform at least as well as each of its ensemble members (Krogh & Vedelsby, 1995). Moreover, ensembles achieve the best performance when each of their members makes independent errors (Goodfellow et al., 2015; Hansen & Salamon, 1990).
|
| 38 |
+
|
| 39 |
+
Related work on ensembles: Ensembles have been studied extensively for improving model performance (Hansen & Salamon, 1990; Perrone & Cooper, 1992; Dietterich, 2000; Maclin & Opitz, 1999). One major direction in ensemble research is how to reduce their cost at test time. Bucila et al. (2006) developed a method to compress large, complex ensembles into smaller and faster models which achieve faster test time prediction. Hinton et al. (2015) developed the above approach further by distilling the knowledge in an ensemble of models into one single neural network. Another major direction in ensemble research is how to reduce their cost at training time. Xie et al. (2013) forms ensembles by combining the output of networks within a number of training checkpoints, named Horizontal Voting Vertical Voting and Horizontal Stacked Ensemble. Additionally, models trained with different regularization and augmentation can be used as ensemble to achieve better performance in semi-supervised learning (Laine & Aila, 2017). More recently, Huang et al. (2017) proposed Snapshot ensemble, in which a single model is trained by cyclic learning rates (Loshchilov & Hutter, 2016; Smith, 2015) so that it is encouraged to visit multiple local minima. Those local minima solutions are then used as ensemble members. Garipov et al. (2018) proposed fast geometric ensemble where it finds modes that can be connected by simple curves, and each mode can taken as one ensemble member. The aforementioned works are complementary to BatchEnsemble, and one could potentially combine these techniques to achieve better performance. BatchEnsemble is efficient in both computation (including training and testing) and memory, along with a minimal change to the current training scheme such as learning rate schedule. For example, the need of cyclic learning rates in Snapshot Ensemble makes it incompatible to Transformer (Vaswani et al., 2017) which requires a warm-up and inverse square root learning rate.
|
| 40 |
+
|
| 41 |
+
Explicit ensembles are expensive so another line of work lies on what so-called “implicit” ensembles. For example, Dropout (Srivastava et al., 2014) can be interpreted as creating an exponential number of weight-sharing sub-networks, which are implicitly ensembled in test time prediction (Warde-Farley et al., 2014). MC-dropout can be used for uncertainty estimates (Gal & Ghahramani, 2015). Implicit ensemble methods are generally cost-free in training and testing.
|
| 42 |
+
|
| 43 |
+
# 2.2 ENSEMBLES FOR IMPROVED UNCERTAINTY
|
| 44 |
+
|
| 45 |
+
Several measures have been proposed to assess the quality of uncertainty estimates, such as calibration (Dawid, 1982; Degroot & Fienberg, 1983). Another important metric is the generalization of predictive uncertainty estimates to out-of-distribution datasets (Hendrycks & Dietterich, 2019). The contextual bandits task was recently proposed to evaluate the quality of predictive uncertainty, where maximizing reward is of direct interest (Riquelme et al., 2018); and which requires good uncertainty estimates in order to balance exploration and exploitation.
|
| 46 |
+
|
| 47 |
+
Although deep neural networks achieve state-of-the-art performance on a variety of tasks, their predictions are often poorly calibrated (Guo et al., 2017). Bayesian neural networks (Hinton & Neal, 1995), which posit a distribution over the weights rather than a point estimate, are often used for model uncertainty (Dusenberry et al., 2019). However, they require modifications to the traditional neural network training scheme. Deep ensembles have been proposed as a simple and scalable alternative, and have been shown to make well-calibrated uncertainty estimates (Lakshminarayanan et al., 2017). More recently, Ovadia et al. (2019) and Gustafsson et al. (2019) independently benchmarked existing methods for uncertainty modelling on a broad range of datasets and architectures, and observed that ensembles tend to outperform variational Bayesian neural networks in terms of both accuracy and uncertainty, particularly on OOD datasets. Fort et al. (2019) investigates the loss landscape and postulates that variational methods only capture local uncertainty whereas ensembles explore different global modes. It explains why deep ensembles generally perform better.
|
| 48 |
+
|
| 49 |
+
# 2.3 LIFELONG LEARNING
|
| 50 |
+
|
| 51 |
+
In lifelong learning, the model trains on a number of tasks in a sequential (online) order, without access to entire previous tasks’ data (Thrun, 1998; Zhao & Schmidhuber, 1996). One core difficulty of lifelong learning is “catastrophic forgetting”: neural networks tend to forget what it has learnt after training on the subsequent tasks (McCloskey, 1989; French, 1999). Previous work on alleviating catastrophic forgetting can be divided into two categories.
|
| 52 |
+
|
| 53 |
+
In the first category, updates on the current task are regularized so that the neural network does not forget previous tasks. Elastic weight consolidation (EWC) applies a penalty on the parameter update based on the distance between the parameters for the new and the old task using the Fisher information metric (Kirkpatrick et al., 2016). Other methods maintain a memory buffer that stores a number of data points from previous tasks. For example, gradient episodic memory approach penalizes the gradient on the current task so that it does not increase the loss of examples in the memory buffer (Lopez-Paz & Ranzato, 2017; Chaudhry et al., 2018). Another approach combines experience replay algorithms with lifelong learning (Rolnick et al., 2018; Riemer et al., 2018).
|
| 54 |
+
|
| 55 |
+
In the second category, one increases model capacity as new tasks are added. For example, progressive neural networks (PNN) copy the entire network for the previous task and add new hidden units when adopting to a new task (Rusu et al., 2016). This prevents forgetting on previous tasks by construction (the network on previous tasks remains the same). However, it leads to significant memory consumption when faced with a large number of lifelong learning tasks. Some following methods expand the model in a more parameter efficient way at the cost of introducing an extra learning task and not entirely preventing forgetting. Yoon et al. (2017) applies group sparsity regularization to efficiently expand model capacity; Xu & Zhu (2018) learns to search for the best architectural changes by carefully designed reinforcement learning strategies.
|
| 56 |
+
|
| 57 |
+
# 3 METHODS
|
| 58 |
+
|
| 59 |
+
As described above, ensembles suffer from expensive memory and computational costs. In this section, we introduce BatchEnsemble, an efficient way to ensemble deep neural networks.
|
| 60 |
+
|
| 61 |
+
# 3.1 BATCHENSEMBLE
|
| 62 |
+
|
| 63 |
+
In this section, we introduce how to ensemble neural networks in an efficient way. Let $W$ be the weights in a neural network layer. Denote the input dimension as $m$ and the output dimension as $n$ , i.e. $W \in \mathbb { R } ^ { m \times n }$ . For ensemble, assuming the ensemble size is $M$ and each ensemble member has weight matrix $\overline { { W } } _ { i }$ . Each ensemble member owns a tuple of trainable vectors $r _ { i }$ and $s _ { i }$ which share the same dimension as output and input $\mathbf { \xi } _ { n }$ and $m$ ) respectively, where $i$ ranges from 1 to $M$ . Our algorithm generates a family of ensemble weights $\overline { { W } } _ { i } ^ { \bullet }$ by the following:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\overline { { W } } _ { i } = W \circ F _ { i } , \mathrm { w h e r e } F _ { i } = s _ { i } r _ { i } ^ { \top } ,
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
For each training example in the mini-batch, it receives an ensemble weight $\overline { { W } } _ { i }$ by elementwise multiplying $W$ , which we refer to as “slow weights”, with a rank-one matrix $F _ { i }$ , which we refer to as “fast weights.” The subscript $i$ represents the selection of ensemble member. Since $W$ is shared across ensemble members, we term it as "shared weight" in the following paper. Figure 2 visualizes BatchEnsemble. Rather than modulating the weight matrices, one can also modulate the neural networks’ intermediate features, which achieves promising performance in visual reasoning tasks (Perez et al., 2017).
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
Figure 2: An illustration on how to generate the ensemble weights for two ensemble members.
|
| 73 |
+
|
| 74 |
+
Vectorization: We show how to make the above ensemble weight generation mechanism parallelizable within a device, i.e., where one computes a forward pass with respect to multiple ensemble members in parallel. This is achieved by manipulating the matrix computations for a mini-batch (Wen et al., 2018). Let $x$ denote the activations of the incoming neurons in a neural network layer. The next layer’s activations are given by:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r l } & { y _ { n } = \phi \left( \overline { { W } } _ { i } ^ { \top } x _ { n } \right) } \\ & { \quad = \phi \left( \left( W \circ s _ { i } r _ { i } ^ { \top } \right) ^ { \top } x _ { n } \right) } \\ & { \quad = \phi \left( \left( W ^ { \top } ( x _ { n } \circ s _ { i } ) \right) \circ r _ { i } \right) , } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\phi$ denotes the activation function and the subscript $n$ represents the index in the mini-batch. The output represents next layer’s activations from the $i ^ { t h }$ ensemble member. To vectorize these computations, we define matrices $R$ and $S$ whose rows consist of the vectors $r _ { i }$ and $s _ { i }$ for all examples in the mini-batch. The above equation is vectorized as:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
Y = \phi \left( ( ( X \circ S ) W ) \circ R \right) .
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $X$ is the mini-batch input. By computing Eqn. 5, we can obtain the next layer’s activations for each ensemble member in a mini-batch friendly way. This allows us to take full advantage of parallel accelerators to implement the ensemble efficiently. To match the input and the ensemble weight, we can divide the input mini-batch into $M$ sub-batches and each sub-batch receives ensemble weight $\overline { { W } } _ { i }$ , $i = \{ 1 , \ldots , M \}$ .
|
| 87 |
+
|
| 88 |
+
Ensembling During Testing: In our experiments, we take the average of predictions of each ensemble member. Suppose the test batch size is $B$ and there are $M$ ensemble members. To achieve an efficient implementation, one repeats the input mini-batch $M$ times, which leads to an effective batch size $B \cdot M$ . This enables all ensemble members to compute the output of the same $B$ input data points in a single forward pass. It eliminates the need to calculate the output of each ensemble member sequentially and therefore reduces the ensemble’s computational cost.
|
| 89 |
+
|
| 90 |
+
# 3.2 COMPUTATIONAL COST
|
| 91 |
+
|
| 92 |
+
The only extra computation in BatchEnsemble over a single neural network is the Hadamard product, which is cheap compared to matrix multiplication. Thus, BatchEnsemble incurs almost no additional computational overhead (Figure 1).2 One limitation of BatchEnsemble is that if we keep the minibatch size the same as single model training, each ensemble member gets only a portion of input data. In practice, the above issue can be remedied by increasing the batch size so that each ensemble member receives the same amount of data as ordinary single model training. Since BatchEnsemble is parallelizable within a device, increasing the batch size incurs almost no computational overhead in both training and testing stages on the hardware that can fully utilize large batch size. Moreover, when increasing the batch size reaches its diminishing return regime, BatchEnsemble can still take advantage from even larger batch size by increasing the ensemble size.
|
| 93 |
+
|
| 94 |
+
The only memory overhead in BatchEnsemble is the set of vectors, $\{ r _ { 1 } , \ldots , r _ { m } \}$ and $\{ s _ { 1 } , \ldots , s _ { m } \}$ , which are cheap to store compared to the weight matrices. By eliminating the need to store full weight matrices of each ensemble member, BatchEnsemble has almost no additional memory cost. For example, BatchEnsemble of ResNet-32 of size 4 incurs $1 0 \%$ more parameters while naive ensemble incurs 3X more.
|
| 95 |
+
|
| 96 |
+
# 3.3 BATCHENSEMBLE AS AN APPROACH TO LIFELONG LEARNING
|
| 97 |
+
|
| 98 |
+
The significant memory cost of ensemble methods limits its application to many real world learning scenarios such as multi-task learning and lifelong learning, where one might apply an independent copy of the model for each task. This is not the case with BatchEnsemble. Specifically, consider a total of $T$ tasks arriving in sequential order. Denote $D _ { t } = ( x _ { i } , y _ { i } , t )$ as the training data in task $t$ where $t \in \{ 1 , 2 , \ldots , T \}$ and $i$ is the index of the data point. Similarly, denote the test data set as $\mathcal { T } _ { t } = ( x _ { i } , y _ { i } , t )$ . At test time, we compute the average performance on $\mathcal { T } _ { t }$ across all tasks seen so far as the evaluation metric. To extend BatchEnsemble to lifelong learning, we compute the neural network prediction in task $t$ with weight $\overline { { W } } _ { t } = W \circ ( r _ { t } s _ { t } ^ { \top } )$ in task $t$ . In other words, each ensemble member is in charge of one lifelong learning task. For the training protocol, we train the shared weight $W$ and two fast weights $r _ { 1 } , s _ { 1 }$ on the first task,
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\operatorname* { m i n } _ { W , s _ { 1 } , r _ { 1 } } L _ { 1 } ( W , s _ { 1 } , r _ { 1 } ; D _ { 1 } ) ,
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $L _ { 1 }$ is the objective function in the first task such as cross-entropy in image classification. On a subsequent task $t$ , we only train the relevant fast weights $r _ { t } , s _ { t }$ .
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\operatorname* { m i n } _ { s _ { t } , r _ { t } } L _ { t } ( s _ { t } , r _ { t } ; D _ { t } ) .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
BatchEnsemble shares similar advantages as progressive neural networks (PNN): it entirely prevents catastrophic forgetting as the model for previously seen tasks remains the same. This removes the need of storing any data from previous task. In addition, BatchEnsemble has significantly less memory consumption than PNN as only fast weights are trained to adapt to a new task. Therefore, BatchEnsemble can easily scale to up to 100 tasks as we showed in Section 4.1 on split ImageNet. Another benefit of BatchEnsemble is that if future tasks arrive in parallel rather than sequential order, one can train on all the tasks at once (see Section 3.1). We are not aware of any other lifelong learning methods can achieve this.
|
| 111 |
+
|
| 112 |
+
Table 1: Computational and memory costs on Split-CIFAR100 on LeNet. Numbers are relative to vanilla neural network.
|
| 113 |
+
|
| 114 |
+
<table><tr><td></td><td>Vanilla</td><td>BatchE</td><td>DEN</td><td>PNN</td><td>RCL</td></tr><tr><td>Computational</td><td>1</td><td>1.11</td><td>9.58</td><td>1.12</td><td>26.41</td></tr><tr><td>Memory</td><td>1</td><td>1.10</td><td>5.31</td><td>4.16</td><td>2.52</td></tr></table>
|
| 115 |
+
|
| 116 |
+
Limitations: BatchEnsemble is one step toward toward a full lifelong learning agent that is both immune to catastrophic forgetting and parameter-efficient. On existing benchmarks like split-CIFAR and split-ImageNet, Section 4.1 shows that BatchEnsemble’s rank-1 perturbation per layer provides enough expressiveness for competitive state-of-the-art accuracies. However, one limitation of BatchEnsemble is that only rank-1 perturbations are fit to each lifelong learning task and thus the model’s expressiveness is a valid concern when each task is significantly varied. Another limitation is that the shared weight is only trained on the first task. This implies that only information learnt for the first task can transfer to subsequent tasks. There is no explicit transfer, for example, between the second and third tasks. One solution is to enable lateral connections to features extracted by the weights of previously learned tasks, as done in PNN. However, we found that no lateral connections were needed for Split-CIFAR100 and Split-ImageNet. Therefore we leave the above solution to future work to further improve BatchEnsemble for lifelong learning.
|
| 117 |
+
|
| 118 |
+
Computational cost compared to other methods: Dynamically expandable networks (Yoon et al., 2017) and reinforced continual learning (Xu & Zhu, 2018) are two recently proposed lifelong learning methods that achieve competitive performance. These two methods can be seen as an improved version progressive neural network (PNN) (Rusu et al., 2016) in terms of memory efficiency. As shown in Xu & Zhu (2018), all three methods result to similar accuracy measure in Split-CIFAR100 task. Therefore, among three evaluation metrics (accuracy, forgetting and cost), we only compare the accuracy of BatchEnsemble to PNN in Section 4.1 and compare the cost in this section. We first compute the cost relative to PNN on Split-CIFAR100 on LeNet and then compute the rest of the numbers base on what were reported in Xu & Zhu (2018). Notice that PNN has no much computational overhead on Split-CIFAR100 because the number of total tasks is limited to 10. Even on the simple setup above, BatchEnsemble gives the best computational and memory efficiency. BatchEnsemble leads to more lower costs on large lifelong learning tasks such as Split-ImageNet.
|
| 119 |
+
|
| 120 |
+
# 4 EXPERIMENTS
|
| 121 |
+
|
| 122 |
+
Section 4.1 first demonstrates BatchEnsemble’s effectiveness as an alternative approach to lifelong learning on Split-CIFAR and Split-ImageNet. Section 4.2 and Section 4.3 next evaluate BatchEnsemble on several benchmark datasets with common deep learning architectures, including image classification with ResNet (He et al., 2016) and neural machine translation with Transformer (Vaswani et al., 2017). Section 4.4 demonstrates that BatchEnsemble can be used for calibrated prediction. Finally, we showcase its applications in uncertainty modelling in Appendix C and Appendix D. Detailed description of datasets we used is in Appendix A. Implementation details are in Appendix B.
|
| 123 |
+
|
| 124 |
+
# 4.1 LIFELONG LEARNING
|
| 125 |
+
|
| 126 |
+
We showcase BatchEnsemble for lifelong learning on Split-CIFAR100 and Split-ImageNet. SplitCIFAR100 proposed in Rebuffi et al. (2016) is a harder lifelong learning task than MNIST permutations and MNIST rotations (Kirkpatrick et al., 2016), where one introduces a new set of classes upon the arrival of a new task. Each task consists of examples from a disjoint set of $1 0 0 / T$ classes assuming $T$ tasks in total. To show that BatchEnsemble is able to scale to 100 sequential tasks, we also build our own Split-ImageNet dataset which shares the same property as Split-CIFAR100 except more classes (and thus more tasks) and higher image resolutions are involved. More details about these two lifelong learning datasets are provided in Appendix A.
|
| 127 |
+
|
| 128 |
+
We consider $T = 2 0$ tasks on Split-CIFAR100, following the setup of Lopez-Paz & Ranzato (2017). We used ResNet-18 with slightly fewer number of filters across all convolutional layers. Note that for the purpose of making use of the task descriptor, we build a different final dense layer per task. We compare BatchEnsemble to progressive neural networks (PNN) (Rusu et al., 2016), vanilla neural networks, and elastic weight consolidation (EWC) on Split-CIFAR100. Xu & Zhu (2018) reported similar accuracies among DEN (Yoon et al., 2017), RCL (Xu & Zhu, 2018) and PNN. Therefore we compare accuracy only to PNN which has an official implementation and only compare computational and memory costs to DEN and RCL in Table 1.
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 3: Performance for lifelong learning. (a): Validation accuracy for each Split-ImageNet task. Standard deviation is computed over 5 random seeds. (b): BatchEnsemble and several other methods on Split-CIFAR100. BatchEnsemble achieves the best trade-off among Accuracy (↑), Forget (↓), and Time & Memory (↓) costs. VAN: Vanilla neural network. EWC: Elastic weight consolidation (Kirkpatrick et al., 2016). PNN: Progressive neural network (Rusu et al., 2016). BNTuned: Fine tuning Batch Norm layer per subsequent tasks. BatchE: BatchEnsemble. Upperbound: Individual ResNet-50 per task.
|
| 132 |
+
|
| 133 |
+
Figure 3b displays results on Split-CIFAR100 over three metrics including accuracy, forgetting, and cost. The accuracy measures the average validation accuracy over total 20 tasks after lifelong learning ends. Average forgetting over all tasks is also presented in Figure 3b. Forgetting on task $t$ is measured by the difference between accuracy of task $t$ right after training on it and at the end of lifelong learning. It measures the degree of catastrophic forgetting. As showed in Figure 3b, BatchEnsemble achieves comparable accuracy as PNN while having 4X speed-up and 50X less memory consumption. It also preserves the no-forgetting property of PNN. Therefore BatchEnsemble has the best trade-off among all compared methods.
|
| 134 |
+
|
| 135 |
+
For Split-ImageNet, we consider $T = 1 0 0$ tasks and apply ResNet-50 followed by a final linear classifier per task. The parameter overhead of BatchEnsemble on Split-ImageNet over 100 sequential tasks is $2 0 \%$ : the total number of parameters is 30M v.s. 25M (vanilla ResNet-50). PNN is not capable of learning 100 sequential tasks due to the significant memory consumption; other methods noted above have also not shown results at ImageNet scale. Therefore we adopt two of our baselines. The first baseline is “BN-Tuned”, which fine-tunes batch normalization parameters per task and which has previously shown strong performance for multi-task learning (Mudrakarta et al., 2018). To make a fair comparison, we augment the number of filters in BN-Tuned so that both methods have the same number of parameters. The second baseline is a naive ensemble which trains an individual ResNet-50 per task. This provides a rough upper bound on the BatchEnsemble’s expressiveness per task. Note BatchEnsemble and both baselines are immune to catastrophic forgetting. So we consider validation accuracy on each subsequent task as evaluation metric. Figure 3a shows that BatchEnsemble outperforms BN-Tuned consistently. This demonstrates that BatchEnsemble is a practical method for lifelong learning that scales to a large number of sequential tasks.
|
| 136 |
+
|
| 137 |
+
# 4.2 MACHINE TRANSLATION
|
| 138 |
+
|
| 139 |
+
In this section, we evaluate BatchEnsemble on the Transformer (Vaswani et al., 2017) and the large-scale machine translation tasks WMT14 EN-DE/EN-FR. We apply BatchEnsemble to all selfattention layers with an ensemble size of 4. The ensemble in a self-attention layer can be interpreted as each ensemble member keeps their own attention mechanism and makes independent decisions. We conduct our experiments on WMT16 English-German dataset and WMT14 English-French dataset with Transformer base (65M parameters) and Transformer big (213M parameters). We maintain exactly the same training scheme and hyper-parameters between single Transformer model and BatchEnsemble Transformer model.
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 4: Comparison between BatchEnsemble and single model on WMT English-German and English-French. Training stops after the model reaches targeted validation perplexity. BatchEnsemble gives a faster convergence by taking the advantage of multiple models. (a): Validation loss of WMT16 English-German task. (b): Validation loss of WMT14 English-French task. Big: Tranformer big model. Base: Transformer base model. BE: BatchEnsemble. Single: Single model.
|
| 143 |
+
|
| 144 |
+
As the result shown in Figure 4, BatchEnsemble achieves a much faster convergence than a single model. Big BatchEnsemble Transformer is roughly $1 . 5 \mathrm { X }$ faster than single big Transformer on WMT16 English-German. In addition, the BatchEnsemble Transformer also gives a lower validation perplexity than big Transformer (Table 2). This suggests that BatchEnsemble is promising for bigger Transformer models. We also compared BatchEnsemble to dropout ensemble (MC-drop in Table 2). Transformer single model itself uses dropout layers. We run multiple forward passes with different sampled dropout maskd during testing. The sample size is 16 which is already 16X more expensive than BatchEnsemble. As Table 2 showed, dropout ensemble doesn’t give better performance than single model. However, Appendix B shows that while BatchEnemble’s test BLEU score increases faster over the course of training, BatchEnsemble which gives lower validation loss does not achieve a better BLEU score over the single model.
|
| 145 |
+
|
| 146 |
+
Table 2: Perplexity on Newstest2013 with big Transformer. BatchEnsemble with ensemble size 4.
|
| 147 |
+
|
| 148 |
+
<table><tr><td colspan="2">Single</td><td>MC-drop</td><td>BatchE</td></tr><tr><td>EN-DE</td><td>4.30</td><td>4.30</td><td>4.26</td></tr><tr><td>EN-FR</td><td>2.76</td><td>2.77</td><td>2.74</td></tr></table>
|
| 149 |
+
|
| 150 |
+
# 4.3 CLASSIFICATION
|
| 151 |
+
|
| 152 |
+
We evaluate BatchEnsemble on classification tasks with CIFAR-10/100 dataset (Krizhevsky, 2009). We run our evaluation on ResNet32 (He et al., 2016). To achieve $1 0 0 \%$ training accuracy on CIFAR100, we use 4X more filters than the standard ResNet-32. In this section, we compare to MC-dropout (Gal & Ghahramani, 2015), which is also a memory efficient ensemble method. We add one more dense layer fol
|
| 153 |
+
|
| 154 |
+
Table 3: Validation accuracy on ResNet32. Ensemble with size 4. MC-drop stands for Dropout ensemble (Gal & Ghahramani, 2015).
|
| 155 |
+
|
| 156 |
+
<table><tr><td></td><td>Single</td><td>MC-drop</td><td>BatchE</td><td>NaiveE</td></tr><tr><td>C10</td><td>95.31</td><td>95.72</td><td>95.94</td><td>96.30</td></tr><tr><td>C100</td><td>78.32</td><td>78.89</td><td>80.32</td><td>81.02</td></tr></table>
|
| 157 |
+
|
| 158 |
+
lowed by dropout before the final linear classifier so that the number of parameters of MC-dropout are the same as BatchEnsemble. Most hyper-parameters are shared across the single model, BatchEnsemble, and MC-dropout. More details about hyper-parameters are in Appendix B. Note that we increase the training iterations for BatchEnsemble to reach its best performance because each ensemble member gets only a portion of input data.
|
| 159 |
+
|
| 160 |
+
We train both BatchEnsemble model and MC-dropout with 375 epochs on CIFAR-10/100, which is $5 0 \%$ more iterations than single model. Although the training duration is longer, BatchEnsemble is still significantly faster than training individual model sequentially. Another implementation that leads to the same performance is to increase the mini-batch size. For example, if we use 4X large minibatch size then there is no need to increase the training iterations. Table 3 shows that BatchEnsemble reaches better accuracy than single model and MC-dropout. We also calculate the accuracy of naive ensemble, whose members consist of individually trained single models. Its accuracy can be viewed as the upper bound of efficient ensembling methods. For fairness, we also compare BatchEnsemble to naive ensemble of small models in Appendix F.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 5: Calibration on CIFAR-10 corruptions: boxplots showing a comparison of ECE under all types of corruptions on CIFAR-10. Each box shows the quartiles summarizing the results across all types of skew while the error bars indicate the min and max across different skew types. Ensemble/BatchEnsemble: Naive/Batch ensemble of $4 { \mathrm { R e s N e t } } 3 2 { \mathrm { x } } 4$ models. Dropout-8: Dropout ensemble with sample size 8. BEDrop-8: BatchEnsemble of 4 models $^ +$ Dropout ensemble with sample size 8. A similar measurement can be found in Ovadia et al. (2019).
|
| 164 |
+
|
| 165 |
+
# 4.4 CALIBRATION ON CORRUPTED DATASET
|
| 166 |
+
|
| 167 |
+
In this section, we measure the calibrated prediction of BatchEnsemble on corrupted datasets. Other uncertainty modelling tasks such as contextual bandits are delegated to Appendix C and Appendix D.
|
| 168 |
+
|
| 169 |
+
Other than unseen classes, corruption is another type of out-of-distribution examples. It is common that the collected data is corrupted or mislabelled. Thus, measuring uncertainty modelling under corruption is practically meaningful. We want our model to preserve uncertainty or calibration in this case. In this section, we evaluate the calibration of different methods on recently proposed CIFAR-10 corruption dataset (Hendrycks & Dietterich, 2019). The dataset consists of over 30 types of corruptions to the images. Notice that the corrupted dataset is used as a testset without training on it. Given the predictions on CIFAR-10 corruption, we can compare accuracy and calibration measure such as ECE loss for single neural network, naive ensemnble, and BatchEnsemble. Ovadia et al. (2019) benchmarked a number of methods on CIFAR-10 corruption. Their results showed that naive ensemble achieves the best performance on both accuracy and ECE loss, outperforming other methods including dropout ensemble, temperature scaling and variational methods significantly. Dropout ensemble is the state-of-the-art memory efficient ensemble method.
|
| 170 |
+
|
| 171 |
+
The scope of this paper is on efficient ensembles. Thus, in this section, we mainly compare BatchEnsemble to dropout ensemble on CIFAR-10 corruption. Naive ensemble is also plotted as an upper bound of our method. As showed in Figure 5, BatchEnsemble and dropout ensemble achieve comparable accuracy on corrupted dataset on all skew intensities. Calibration is a more important metric than accuracy when the dataset is corrupted. We observed that BatchEnsemble achieves better average calibration than dropout as the skew intensity increases. Moreover, dropout ensemble requires multiple forward passes to get the best performance. Ovadia et al. (2019) used sample size 128 while we found no significant difference between sample size 128 and 8. Note that even for sample size is 8, it is 8X more expensive than BatchEnsemble in the testing time cost. Finally, we showed that combining BatchEnsemble and dropout ensemble leads to better accuracy and calibration. It is competitive to naive ensemble while keeping memory consumption efficient. It is also an evidence that BatchEnsemble is an orthogonal method to dropout ensemble; combining these two can potentially obtain better performance.
|
| 172 |
+
|
| 173 |
+
# 5 DIVERSITY ANALYSIS
|
| 174 |
+
|
| 175 |
+
As mentioned in Section 2, more diversity among ensembling members leads to better performance. Therefore, beyond accuracy and uncertainty metrics, we are particularly interested in how much diversity rank-1 perturbation provides. We compare BatchEnsemble to dropout ensemble and naive ensemble over the newly proposed diversity metric (Fort et al., 2019). The metric measures the disagreement among ensemble members on test set. We computed it over different amount of training data. See Appendix E for details on diversity metric and plots.
|
| 176 |
+
|
| 177 |
+
In this section, we give an intuitive explanation of why BatchEnsemble leads to more diverse members with fewer training data. If only limited training data is available, the parameters of the neural network would remain close to their initialization after convergence. In the extreme case where only one training data point is available, the optimization quickly converges and most of the parameters are not updated. This suggests that the diversity of initialization entirely determines the diversity of ensembling system. Naive ensemble has fully independent random initializations. BatchEnsemble has peudo-independent random initializations. In comparison, all ensemble members of dropout ensemble share the same initialized parameters. Therefore, both naive ensemble and BatchEnsemble significantly outperform dropout ensemble in diversity with limited training data.
|
| 178 |
+
|
| 179 |
+
More importantly, Figure 8 provides insightful advice on when BatchEnsemble achieves the best gain in practice. We observe that diversity of BatchEnsemble is comparable to naive ensemble when training data is limited. This explains why BatchEnsemble has higher gains on CIFAR-100 than CIFAR-10, because there are only 500 training points for each class on CIFAR-100 whereas 5000 on CIFAR-10. Thus, CIFAR-100 has more limited training data compared to CIFAR-10. Another implication is that BatchEnsemble can benefit more from heavily over-parameterized neural networks. The reason is that given the fixed amount of training data, increasing the number of parameters essentially converges to the case where the training data is limited. In practice, the best way to make full use of increasing computational power is to design deeper and wider neural networks. This suggests that BatchEnsemble benefits more from the development of computational power; because it has better gain on over-parameterized neural networks.
|
| 180 |
+
|
| 181 |
+
# 6 CONCLUSION
|
| 182 |
+
|
| 183 |
+
We introduced BatchEnsemble, an efficient method for ensembling and lifelong learning. BatchEnsemble can be used to improve the accuracy and uncertainty of any neural network like typical ensemble methods. More importantly, BatchEnsemble removes the computation and memory bottleneck of typical ensemble methods, enabling its successful application to not only faster ensembles but also lifelong learning on up to 100 tasks. We believe BatchEnsemble has great potential to improve in lifelong learning. Our work may serve as a starting point for a new research area.
|
| 184 |
+
|
| 185 |
+
# ACKNOWLEDGMENTS
|
| 186 |
+
|
| 187 |
+
YW was supported by University of Toronto Fellowship, Faculty of Arts And Science and Vector Scholarships in Artificial Intelligence (VSAI).
|
| 188 |
+
|
| 189 |
+
# REFERENCES
|
| 190 |
+
|
| 191 |
+
Léon Bottou. Stochastic learning. In Summer School on Machine Learning, pp. 146–168. Springer, 2003.
|
| 192 |
+
|
| 193 |
+
Leo Breiman. Bagging predictors. Machine Learning, 24:123–140, 1996.
|
| 194 |
+
|
| 195 |
+
Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906, 2017.
|
| 196 |
+
|
| 197 |
+
Cristian Bucila, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In KDD, 2006.
|
| 198 |
+
|
| 199 |
+
Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with A-GEM. ArXiv, abs/1812.00420, 2018.
|
| 200 |
+
|
| 201 |
+
A. Philip Dawid. The well-calibrated Bayesian. 1982.
|
| 202 |
+
|
| 203 |
+
Morris H. Degroot and Stephen E. Fienberg. The comparison and evaluation of forecasters. 1983.
|
| 204 |
+
|
| 205 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In CVPR 2009, 2009.
|
| 206 |
+
|
| 207 |
+
Thomas G. Dietterich. Ensemble methods in machine learning. In Multiple Classifier Systems, 2000.
|
| 208 |
+
|
| 209 |
+
Michael W Dusenberry, Dustin Tran, Edward Choi, Jonas Kemp, Jeremy Nixon, Ghassen Jerfel, Katherine Heller, and Andrew M Dai. Analyzing the role of model uncertainty for electronic health records. arXiv preprint arXiv:1906.03842, 2019.
|
| 210 |
+
|
| 211 |
+
Stanislav Fort, Huiyi Hu, and Balaji Lakshminarayanan. Deep ensembles: A loss landscape perspective. ArXiv, abs/1912.02757, 2019.
|
| 212 |
+
|
| 213 |
+
Robert M. French. Catastrophic forgetting in connectionist networks. Trends in Cognitive Sciences, 3:128–135, 1999.
|
| 214 |
+
|
| 215 |
+
Yarin Gal and Zoubin Ghahramani. Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. In ICML, 2015.
|
| 216 |
+
|
| 217 |
+
Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry P. Vetrov, and Andrew Gordon Wilson. Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs. In NeurIPS, 2018.
|
| 218 |
+
|
| 219 |
+
Rong Ge, Furong Huang, Chi Jin, and Yang Yuan. Escaping from saddle points—online stochastic gradient for tensor decomposition. In Conference on Learning Theory, pp. 797–842, 2015.
|
| 220 |
+
|
| 221 |
+
Ian J. Goodfellow, Yoshua Bengio, and Aaron C. Courville. Deep learning. Nature, 521:436–444, 2015.
|
| 222 |
+
|
| 223 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. In ICML, 2017.
|
| 224 |
+
|
| 225 |
+
Fredrik K. Gustafsson, Martin Danelljan, and Thomas B. Schön. Evaluating scalable Bayesian deep learning methods for robust computer vision. ArXiv, abs/1906.01620, 2019.
|
| 226 |
+
|
| 227 |
+
Lars Kai Hansen and Péter Salamon. Neural network ensembles. IEEE Trans. Pattern Anal. Mach. Intell., 12:993–1001, 1990.
|
| 228 |
+
|
| 229 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.
|
| 230 |
+
|
| 231 |
+
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=HJz6tiCqYm.
|
| 232 |
+
|
| 233 |
+
Geoffrey E. Hinton and Radford M. Neal. Bayesian learning for neural networks. 1995.
|
| 234 |
+
|
| 235 |
+
Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. CoRR, abs/1503.02531, 2015.
|
| 236 |
+
|
| 237 |
+
Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic depth. In ECCV, 2016.
|
| 238 |
+
|
| 239 |
+
Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E. Hopcroft, and Kilian Q. Weinberger. Snapshot Ensembles: Train 1, Get M for Free. CoRR, abs/1704.00109, 2017.
|
| 240 |
+
|
| 241 |
+
Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
|
| 242 |
+
|
| 243 |
+
Kenji Kawaguchi. Deep learning without poor local minima. In Advances in neural information processing systems, pp. 586–594, 2016.
|
| 244 |
+
|
| 245 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 246 |
+
|
| 247 |
+
James Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences of the United States of America, 114 13:3521–3526, 2016.
|
| 248 |
+
|
| 249 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
|
| 250 |
+
|
| 251 |
+
Anders Krogh and Jesper Vedelsby. Neural network ensembles, cross validation, and active learning. In Advances in neural information processing systems, pp. 231–238, 1995.
|
| 252 |
+
|
| 253 |
+
Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. CoRR, abs/1610.02242, 2017.
|
| 254 |
+
|
| 255 |
+
Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NIPS, 2017.
|
| 256 |
+
|
| 257 |
+
David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continuum learning. In NIPS, 2017.
|
| 258 |
+
|
| 259 |
+
Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with restarts. CoRR, abs/1608.03983, 2016.
|
| 260 |
+
|
| 261 |
+
Richard Maclin and David W. Opitz. Popular ensemble methods: An empirical study. J. Artif. Intell. Res., 11:169–198, 1999.
|
| 262 |
+
|
| 263 |
+
M. W. McCloskey. Catastrophic interference in connectionist networks: The sequential learning problem. 1989.
|
| 264 |
+
|
| 265 |
+
Pramod Kaushik Mudrakarta, Mark Sandler, Andrey Zhmoginov, and Andrew G. Howard. K for the price of 1: Parameter-efficient multi-task and transfer learning. ArXiv, abs/1810.10703, 2018.
|
| 266 |
+
|
| 267 |
+
Mahdi Pakdaman Naeini, Gregory F. Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using Bayesian binning. Proceedings of the ... AAAI Conference on Artificial Intelligence. AAAI Conference on Artificial Intelligence, 2015:2901–2907, 2015.
|
| 268 |
+
|
| 269 |
+
Yaniv Ovadia, Emily Fertig, Jie Ren, Zachary Nado, D. Sculley, Sebastian Nowozin, Joshua V. Dillon, Balaji Lakshminarayanan, and Jasper Snoek. Can you trust your model’s uncertainty? Evaluating predictive uncertainty under dataset shift. ArXiv, abs/1906.02530, 2019.
|
| 270 |
+
|
| 271 |
+
Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. FiLM: Visual reasoning with a general conditioning layer. In AAAI, 2017.
|
| 272 |
+
|
| 273 |
+
Michael P. Perrone and Leon N. Cooper. When networks disagree: Ensemble methods for hybrid neural networks. 1992.
|
| 274 |
+
|
| 275 |
+
Sylvestre-Alvise Rebuffi, Alexander I Kolesnikov, Georg Sperl, and Christoph H. Lampert. iCaRL: Incremental classifier and representation learning. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5533–5542, 2016.
|
| 276 |
+
|
| 277 |
+
Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. ArXiv, abs/1810.11910, 2018.
|
| 278 |
+
|
| 279 |
+
Carlos Riquelme, George Tucker, and Jasper Snoek. Deep Bayesian bandits showdown. 2018.
|
| 280 |
+
|
| 281 |
+
David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy P. Lillicrap, and Greg Wayne. Experience replay for continual learning. ArXiv, abs/1811.11682, 2018.
|
| 282 |
+
|
| 283 |
+
Alejandro Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. FitNets: Hints for thin deep nets. CoRR, abs/1412.6550, 2015.
|
| 284 |
+
|
| 285 |
+
Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. ArXiv, abs/1606.04671, 2016.
|
| 286 |
+
|
| 287 |
+
Leslie N. Smith. No more pesky learning rate guessing games. CoRR, abs/1506.01186, 2015.
|
| 288 |
+
|
| 289 |
+
Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan R. Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15:1929–1958, 2014.
|
| 290 |
+
|
| 291 |
+
Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. Highway networks. CoRR, abs/1505.00387, 2015.
|
| 292 |
+
|
| 293 |
+
Sebastian Thrun. Lifelong learning algorithms. In Learning to Learn, 1998.
|
| 294 |
+
|
| 295 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017.
|
| 296 |
+
|
| 297 |
+
David Warde-Farley, Ian J. Goodfellow, Aaron C. Courville, and Yoshua Bengio. An empirical analysis of dropout in piecewise linear networks. CoRR, abs/1312.6197, 2014.
|
| 298 |
+
|
| 299 |
+
Yeming Wen, Paul Vicol, Jimmy Ba, Dustin Tran, and Roger B. Grosse. Flipout: Efficient pseudoindependent weight perturbations on mini-batches. In International Conference on Learning Representations, 2018.
|
| 300 |
+
|
| 301 |
+
Yeming Wen, Kevin Luk, Maxime Gazeau, Guodong Zhang, Harris Chan, and Jimmy Ba. Interplay between optimization and generalization of stochastic gradient descent with covariance noise. ArXiv, abs/1902.08234, 2019.
|
| 302 |
+
|
| 303 |
+
Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Gregory S. Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016.
|
| 304 |
+
|
| 305 |
+
Jingjing Xie, Bing Xu, and Chuang Zhang. Horizontal and vertical ensemble with deep representation for classification. CoRR, abs/1306.2759, 2013.
|
| 306 |
+
|
| 307 |
+
Ju Xu and Zhanxing Zhu. Reinforced continual learning. In NeurIPS, 2018.
|
| 308 |
+
|
| 309 |
+
Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. ArXiv, abs/1708.01547, 2017.
|
| 310 |
+
|
| 311 |
+
Jian Hua Zhao and Jürgen Schmidhuber. Incremental self-improvement for life-time multi-agent reinforcement learning. 1996.
|
| 312 |
+
|
| 313 |
+
# A DATASET DETAILS
|
| 314 |
+
|
| 315 |
+
CIFAR: We consider two CIFAR datasets, CIFAR-10 and CIFAR-100 (Krizhevsky, 2009). Each consists of a training set of size 50K and a test set of size 10K. They are natural images with $3 2 \mathbf { x } 3 2$ pixels. In our experiments, we follow the standard data pre-processing schemes including zero-padding with 4 pixels on each sise, random crop and horizon flip (Romero et al., 2015; Huang et al., 2016; Srivastava et al., 2015).
|
| 316 |
+
|
| 317 |
+
WMT: In machine translation tasks, we consider the standard training datasets WMT16 EnglishGerman and WMT14 English-French. WMT16 English-German dataset consists of roughly 4.5M sentence pairs. We follow the same pre-processing schemes in (Vaswani et al., 2017).Source and target tokens are processed into 37K shared sub-word units based on byte-pair encoding (BPE) (Britz et al., 2017). Newstest2013 and Newstest2014 are used as validation set and test set respectively. WMT14 English-French consists of a much larger dataset sized at 36M sentences pairs. We split the tokens into a 32K word-piece vocabulary (Wu et al., 2016).
|
| 318 |
+
|
| 319 |
+
Split-CIFAR100: The dataset has the same set of images as CIFAR-100 dataset (Krizhevsky, 2009). It randomly splits the entire dataset into $\mathrm { T }$ tasks so each task consists of $1 0 0 / T$ classes of images. To leverage the task descriptor in the data, different final linear classifier is trained on top of feature extractor per task. This simplifies the task to be a $1 0 0 / T$ class classification problem in each task. i.e. random prediction has accuracy $T / 1 0 0$ . Notice that since we are not under the setting of single epoch training, standard data pre-processing including padding, random crop and random horizontal flip are applied to the training set.
|
| 320 |
+
|
| 321 |
+
Split-ImageNet: The dataset has the same set of images as ImageNet dataset (Deng et al., 2009). It randomly splits the entire dataset into $\mathrm { T }$ tasks so each task consists of $1 0 0 0 / T$ classes of images. Same as Split-CIFAR100, each task has its own final linear classifier. Data preprocessing (He et al., 2016) is applied to the training data.
|
| 322 |
+
|
| 323 |
+
# B IMPLEMENTATION DETAILS
|
| 324 |
+
|
| 325 |
+
In this section, we discuss some implementation details of BatchEnsemble.
|
| 326 |
+
|
| 327 |
+
Weight Decay: In the BatchEnsemble, the weight of each ensemble member is never explicitly calculated because we obtain the activations directly by computing Eqn. 5. To maintain the goal of no additional computational cost, we can instead regularize the mean weight $\overline { W }$ over ensemble members, which can be efficiently calculated as $\begin{array} { r } { \overline { { W } } = \frac { 1 } { B } W \circ S ^ { \top } R } \end{array}$ , where $W$ is the shared weight among ensemble members, $S$ and $R$ are the matrices in Eqn. 5. We can also only regularize the
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
Figure 6: BLEU on English-German task.
|
| 331 |
+
|
| 332 |
+
shared weight and leave the fast weights unregularized because it only accounts for a small portion of model parameters. In practice, we find the above two schemes work equally.
|
| 333 |
+
|
| 334 |
+
Diversity Encouragement: Additional loss term such as KL divergence among ensemble members can be added to encourage diversity. However, we find it sufficient for BatchEnsemble to have desired diversity by initializing the fast weight ( $s _ { i }$ and $r _ { i }$ in Eqn. 1) to be random sign vectors. Also note that the scheme that each ensemble member is trained with different sub-batch of input can encourage diversity as well. The diversity analysis is provided in Appendix G.
|
| 335 |
+
|
| 336 |
+
Machine Translation: The Transformer base is trained for 100K steps and the Transformer big is trained for 180K steps. The training steps of big model are shorter than Vaswani et al. (2017) because we terminate the training when it reaches the targeted perplexity on validation set. Experiments are run on 4 NVIDIA P100 GPUs. The BLEU score of Big Transformer on English-German task is in Figure 6. Although BatchEnsemble has lower perplexity as we showed in Section 4.2, we didn’t observe a better BLEU score. Noted that the BLEU score in Figure 6 is lower than what Vaswani et al. (2017) reported. It is because in order to correctly evaluate model performance at a given timestep, we didn’t use the averaging checkpoint trick. The dropout rate of Transformer base is 0.1 and 0.3 for
|
| 337 |
+
|
| 338 |
+
Transformer big on English-German while remaining 0.1 on English-French. For dropout ensemble, we ran a grid search between 0.05 and 0.3 in the testing time and report the best validation perplexity.
|
| 339 |
+
|
| 340 |
+
Classification: We train the model with mini-batch size 128. We also keep the standard learning rate schedule for ResNet. The learning rate decreases from 0.1 to 0.01, from 0.01 to 0.001 at halfway of training and $7 5 \%$ of training. The weight decay coefficient is set to be $1 0 ^ { - 4 }$ . We use an ensemble size of 4, which means each ensemble member receives 32 training examples if we maintain the mini-batch size of 128. It is because Batch Normalization (Ioffe & Szegedy, 2015) requires at least 32 examples to be effective on CIFAR dataset. As for the training budget, we train the single model for 250 epochs
|
| 341 |
+
|
| 342 |
+
# C PREDICTIVE UNCERTAINTY
|
| 343 |
+
|
| 344 |
+
In this section, we evaluate the predictive uncertainty of BatchEnsemble on out-of-distribution tasks and ECE loss.
|
| 345 |
+
|
| 346 |
+
(a) Histogram of the predictive entropy on test examples from known classes, CIFAR-10 (left) and unknown classes, CIFAR-100 (right).
|
| 347 |
+
|
| 348 |
+
Similar to Lakshminarayanan et al. (2017), we first evaluate BatchEnsemble on out-ofdistribution examples from unseen classes. It is known that deep neural network tends to make over-confident predictions even if the prediction is wrong or the input comes from unseen classes. Ensembles of models can give better uncertainty prediction when the test data is out of the distribution of training data. To measure the uncertainty on the prediction, we calculate the predictive entropy of Single neural network, naive ensemble and BatchEnsemble. The result is presented in Figure 7a. As we expected, single model produces over-confident predictions on unseen examples, whereas ensemble methods exhibit higher uncertainty on unseen classes, including both BatchEnsemble and naive ensemble. It suggests our ensemble weight generation mechanism doesn’t degrade uncertainty modelling.
|
| 349 |
+
|
| 350 |
+

|
| 351 |
+
|
| 352 |
+
(b) Expected Calibration Error. Ensemble of size 4. Lower ECE reflects better calibration.
|
| 353 |
+
|
| 354 |
+
<table><tr><td></td><td>Single</td><td>MC-drop</td><td>BatchE</td><td>NaiveE</td></tr><tr><td>C10</td><td>3.27</td><td>2.89</td><td>2.37</td><td>2.32</td></tr><tr><td>C100</td><td>9.28</td><td>8.99</td><td>8.89</td><td>6.82</td></tr></table>
|
| 355 |
+
|
| 356 |
+
We also calculate the Expected Calibration Error (Naeini et al., 2015) (ECE) of single model, naive ensemble and BatchEnsemble on both CIFAR-10 and CIFAR-100 in Table 7b. To calculate ECE, we group model predictions into $\mathbf { M }$ interval bins based on the predictive confidence (each bin has size $\mathbf { \frac { \partial T } { \partial \mathbf { u } } } )$ ). Let $B _ { m }$ denote the set of samples whose predictive probability falls into the interval $\textstyle \left( { \frac { m - 1 } { M } } , { \frac { m } { M } } \right]$ for $m \in \{ 1 , \ldots M \}$ . Let $\operatorname { a c c } ( B _ { m } )$ and conf $( B _ { m } )$ be the averaged accuracy and averaged confidence of the examples in the bin $B _ { m }$ . The ECE can de defined as the following,
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\mathrm { E C E } = \sum _ { m = 1 } ^ { M } \frac { | B _ { m } | } { n } | \mathrm { a c c } ( B _ { m } ) - \mathrm { c o n f } ( B _ { m } ) |
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
where $n$ is the number of samples. ECE as a criteria of model calibration, measures the difference in expectation between confidence and accuracy (Guo et al., 2017). It shows that BatchEnsemble makes more calibrated prediction compared to single neural networks.
|
| 363 |
+
|
| 364 |
+
# D UNCERTAINTY ON BANDITS
|
| 365 |
+
|
| 366 |
+
In this section, we conduct analysis beyond accuracy, where we show that BatchEnsemble can be used for uncertainty modelling in contextual bandits.
|
| 367 |
+
|
| 368 |
+
For uncertainty modelling, we evaluate our BatchEnsemble method on the recently proposed bandits benchmark (Riquelme et al., 2018). Bandit data comes from different empirical problems that highlight several aspects of decision making. No single algorithm can outperform every other algorithm on every bandit problem. Thus, average performance of the algorithm over different problems is used to evaluate the quality of uncertainty estimation. The key factor to achieve good performance in contextual bandits is to learn a reliable uncertainty model. In our experiment, Thompson sampling samples from the policy given by one of the ensemble members. The fact that Dropout which is an implicit ensemble method achieves competitive performance on bandits problem suggests that ensemble can be used as uncertainty modelling. Indeed, Table 4 shows that BatchEnsemble with an ensemble size 8 achieves the best mean value on the bandits task. Both BatchEnsemble with ensemble size 4 and 8 outperform Dropout in terms of average performance. We also evaluate BatchEnsemble on CIFAR-10 corrupted dataset (Hendrycks & Dietterich, 2019) in Appendix C. Figure 5 shows that BatchEnsemble achieves promising accuracy, uncertainty and cost trade-off among all methods we compared. Moreover, combining BatchEnsemble and dropout ensemble leads to better uncertainty prediction.
|
| 369 |
+
|
| 370 |
+
Table 4: Contextual bandits regret. Results are relative to the cumulative regret of the Uniform algorithm. We report the mean and standard error of the mean over 30 trials. Ensemble size with 4, 8. We remove the methods with mean rank greater than 10.
|
| 371 |
+
|
| 372 |
+
<table><tr><td></td><td>M.RANK</td><td>M.VALUE</td><td>MUSHROOM</td><td>STATLOG</td><td>FINANCIAL</td><td>JESTER</td><td>WHEEL</td></tr><tr><td>NaiveEnsemble4</td><td>5.30</td><td>34.64</td><td>13.44 ± 3.83</td><td>7.10 ± 1.15</td><td>11.31 ± 1.48</td><td>72.73 ± 6.32</td><td>68.63 ± 21.97</td></tr><tr><td>NaiveEnsemble8</td><td>6.50</td><td>34.91</td><td>13.59 ± 3.13</td><td>7.15 ± 0.98</td><td>11.64 ± 1.57</td><td>73.54 ± 6.14</td><td>68.65 ± 19.32</td></tr><tr><td>BatchEnsemble4</td><td>6.30</td><td>34.52</td><td>15.22 ± 5.21</td><td>11.53 ± 5.06</td><td>10.24 ± 2.66</td><td>72.65 ± 6.27</td><td>62.94 ± 26.12</td></tr><tr><td>BatchEnsemble8</td><td>5.70</td><td>33.95</td><td>13.48 ± 3.36</td><td>9.85 ± 3.67</td><td>13.17 ± 2.87</td><td>71.84 ± 6.47</td><td>61.41 ± 26.18</td></tr><tr><td>Dropout</td><td>8.20</td><td>36.73</td><td>15.05 ± 8.23</td><td>9.31 ± 3.19</td><td>13.53 ± 2.98</td><td>71.90 ± 6.31</td><td>73.86 ± 22.48</td></tr><tr><td>LinFullPost</td><td>9.40</td><td>49.60</td><td>97.42 ± 4.52</td><td>19.00 ±1.03</td><td>10.24 ± 0.92</td><td>78.40 ± 4.85</td><td>42.94 ± 12.68</td></tr><tr><td>MultitaskGP</td><td>5.90</td><td>34.59</td><td>12.87 ± 4.70</td><td>8.04 ± 3.77</td><td>8.50 ± 0.80</td><td>74.03 ± 5.96</td><td>69.52 ± 18.55</td></tr><tr><td>RMS</td><td>9.40</td><td>39.18</td><td>16.31 ± 6.13</td><td>10.44 ± 5.02</td><td>11.75 ± 2.64</td><td>73.38 ± 4.70</td><td>84.02 ± 24.67</td></tr><tr><td>Uniform</td><td>16.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td></tr></table>
|
| 373 |
+
|
| 374 |
+
# E DIVERSITY ANALYSIS
|
| 375 |
+
|
| 376 |
+
# E.1 DIVERSITY METRIC
|
| 377 |
+
|
| 378 |
+
Final performance metrics such as accuracy and uncertainty score we provided in Section 4 obscures many insights of our models. In this section, we provide visualization of some commonly used diversity metrics proposed in Fort et al. (2019). The diversity score used in the experiments below quantify the difference of two functions, by measuring fraction of the test data points on which their predictions disagree. This metric is 0 when two functions are making identical predictions, and 1 when they differ on every single example in the test set. We also normalize the diversity metric by the error rate to account for the case where random predictions provide the best diversity. There are other diversity metrics we can use such as the KL-divergence between the probability distributions. It doesn’t make significant difference in our experiments, so we chose the fraction of disagreement for simplicity. We compare BatchEnsemble to dropout ensemble and naive ensemble. For BatchEnsemble and naive ensemble, we first select a model as our base model. We calculated the diversity measure of other ensembling members against the base model. We also plotted the diversity of the base model as a reference, which is trivially zero. For dropout ensemble, we sample a number of dropout masks and take the prediction of the first dropout mask as the base model. The disagreement fraction of the rest dropout masks can be computed against the base model.
|
| 379 |
+
|
| 380 |
+
In Figure 8, we plotted the diversity measures of BatchEnsemble, dropout ensemble and naive ensemble. According to the ensembling theory 2, the more diversity among ensembling members leads to better total accuracy. As Table 3 showed, naive ensemble achieves the best accuracy and then followed by BatchEnsemble and dropout ensemble. Therefore, we expect the diversity measure of BatchEnsemble is in the middle of naive ensemble and dropout ensemble. Figure 8a confirms our hypothesis. Note that naive ensemble, which only differs from random initializations, is very effective at sampling diverse and accurate solutions. This is aligned to the observation in Fort et al. (2019). Notice that naive ensemble incurs 4X more memory cost and 3X more inference time than Rank-1 Net. Thus, we can conclude that BatchEnsemble achieves the best trade-off among accuracy, diversity and efficiency in all methods we compared. The diversity gap between naive ensemble and BatchEnsemble is due to the limited expressiveness of rank-1 perturbation. This provides scope for future research direction.
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure 8: Comparison among BatchEnsemble, naive ensemble and dropout ensemble over diversity metric. Each point in the plot represents a trained model where $\mathbf { X }$ -axis represents its accuracy on validation set and y-axis represents its diversity against the base model. The base model trivially has 0 diversity. We plot the diversity of models trained on different proportions of training data, respectively $1 0 0 \%$ , $5 0 \%$ , $2 0 \%$ and $1 0 \%$ .
|
| 384 |
+
|
| 385 |
+
# E.2 DIVERSITY METRIC ON PARTIAL TRAINING SET
|
| 386 |
+
|
| 387 |
+
There are two sources of uncertainty: aleatoric uncertainty and epistemic uncertainty. Epistemic uncertainty accounts for the uncertainty in the model we train. We focus more on epistemic uncertainty because the aleatoric uncertainty is difficult to measure. The simplest to magnify epistemic uncertainty is to reduce the number of training data points. Under this case, we want our model to be more uncertain to reflect the lack of training data. Ovadia et al. (2019) showed that more diversity among ensembling member leads to larger uncertainty score. There, under the case where only limited training data is provided, we hope that our ensembling method can produce more diverse member, compared to training on full dataset.
|
| 388 |
+
|
| 389 |
+
We repeated the experiments in Appendix E.1 with the exactly same diversity metric on models trained with proportional CIFAR-10 dataset. Figure 8b, Figure 8c and Figure 8d plotted the diversity measure with $5 \bar { 0 } \%$ , $2 0 \%$ , and $1 0 \%$ CIFAR-10 training data, respectively. The results showed that BatchEnsemble is on par with naive ensemble under limited training data. In Figure 8b, it shows that when we reduce the number of training data to a half, BatchEnsemble achieves comparable diversity to naive ensemble. It outperforms dropout ensemble by a significant margin. Figure 8c and Figure 8d confirm the conclusion under even fewer training data points. Given the fact that diversity reflects epistemic uncertainty, we want our model to have more diversity when only limited training data is available. However, Figure 8 showed that dropout ensemble has the same diversity on $1 0 0 \%$ , $5 0 \%$ , and $2 0 \%$ training data. This is a significant flaw of dropout ensemble. In conclusion, BatchEnsemble leads to much more diverse member than dropout ensemble under the case of limited training data. To supplement Figure 8, we provide the ensembling accuracy of BatchEnsemble, naive ensemble and dropout ensemble trained on proportional training set in Table 5.
|
| 390 |
+
|
| 391 |
+
Table 5: Validation accuracy on ResNet32 with proportional training data. Ensemble with size 4. MC-drop stands for dropout ensemble (Gal & Ghahramani, 2015). Single represents the accuracy of the base model in naive ensemble in Figure 8.
|
| 392 |
+
|
| 393 |
+
<table><tr><td></td><td>Single</td><td>MC-drop</td><td>BatchEnsemble</td><td>NaiveEnsemble</td></tr><tr><td>CIFAR-10</td><td>95.22</td><td>95.40</td><td>95.61</td><td>96.09</td></tr><tr><td>CIFAR-10 (50%)</td><td>92.20</td><td>92.43</td><td>92.93</td><td>93.01</td></tr><tr><td>CIFAR-10 (20%)</td><td>82.32</td><td>84.5</td><td>86.08</td><td>86.17</td></tr><tr><td>CIFAR-10 (10%)</td><td>69.37</td><td>71.3</td><td>76.75</td><td>76.77</td></tr></table>
|
| 394 |
+
|
| 395 |
+
# F COMPARISON TO NAIVE ENSEMBLE OF SMALL MODELS
|
| 396 |
+
|
| 397 |
+
In this section, we compare BatchEnsemble to naive ensemble of small models on CIFAR-10/100 dataset. To maintain the same memory consumption as BatchEnsemble, we trained 4 independent ResNet14x4 models and evaluate the naive ensemble on these 4 models. This setup of naive ensemble still has roughly $1 0 \%$ memory overhead to BatchEnsemble. The results are reported in Table 6. It shows that naive ensemble of small models achieves lower accuracy than BatchEnsemble. It illustrates that given the same memory budget, BatchEnsemble is a better choice over naive ensemble.
|
| 398 |
+
|
| 399 |
+
Table 6: Supplementary result to Table 3. NaiveSmall is naive ensemble of 4 ResNet14x4 models. Vanilla, MC-drop and BatchEnsemble are still ResNet32x4 as in Table 3.
|
| 400 |
+
|
| 401 |
+
<table><tr><td></td><td>Vanilla</td><td>MC-drop</td><td>BatchEnsemble</td><td>NaiveSmall</td></tr><tr><td>CIFAR10</td><td>95.31</td><td>95.72</td><td>95.94</td><td>95.59</td></tr><tr><td>CIFAR100</td><td>78.32</td><td>78.89</td><td>80.32</td><td>79.09</td></tr></table>
|
| 402 |
+
|
| 403 |
+
# G PREDICTIVE DIVERSITY
|
| 404 |
+
|
| 405 |
+
As we discussed in Section 2, ensemble benefits from the diversity among its members. We focus on the set of test examples on CIFAR-10 where single model makes confident incorrect predictions while ensemble model predicts correctly. We used the final models we reported in Section 4.3. In Figure 9, we randomly select examples from the above set and plot the prediction map of single model, each ensemble member and mean ensemble. As we can see, although some of the ensemble members make mistakes on thoes examples, the mean prediction takes the advantage of the model averaging and achieves better accuracy on CIFAR-10 classification task. We notice that BatchEnsemble preserves the diversity among ensemble members as naive ensemble.
|
| 406 |
+
|
| 407 |
+

|
| 408 |
+
Figure 9: Visualizing prediction diversity among BatchEnsemble (top row) and naive ensemble (bottom row) members on selected test examples on CIFAR-10. The y-axis label denotes mean prediction of ensemble (Mean), individual ensemble member prediction (from E1 to E4) and single model prediction (Single). Correct class is labelled as red. BatchEnsemble preserves the model diversity as naive ensemble.
|
parse/train/Sklf1yrYDr/Sklf1yrYDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sklf1yrYDr/Sklf1yrYDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sklf1yrYDr/Sklf1yrYDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/T4gXBOXoIUr/T4gXBOXoIUr.md
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CONTRASTIVE LEARNING OF MEDICAL VISUAL REPRESENTATIONS FROM PAIRED IMAGES AND TEXT
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Learning visual representations of medical images is core to medical image understanding but its progress has been held back by the small size of hand-labeled datasets. Existing work commonly relies on transferring weights from ImageNet pretraining, which is suboptimal due to drastically different image characteristics, or rule-based label extraction from the textual report data paired with medical images, which is inaccurate and hard to generalize. We propose an alternative unsupervised strategy to learn medical visual representations directly from the naturally occurring pairing of images and textual data. Our method of pretraining medical image encoders with the paired text data via a bidirectional contrastive objective between the two modalities is domain-agnostic, and requires no additional expert input. We test our method by transferring our pretrained weights to 4 medical image classification tasks and 2 zero-shot retrieval tasks, and show that our method leads to image representations that considerably outperform strong baselines in most settings. Notably, in all 4 classification tasks, our method requires only $10 \%$ as much labeled training data as an ImageNet initialized counterpart to achieve better or comparable performance, demonstrating superior data efficiency.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Medical image understanding has the potential to transform healthcare and has seen rapid progress with the use of deep neural architectures (Gulshan et al., 2016; Esteva et al., 2017; De Fauw et al., 2018; Rajpurkar et al., 2018b). Yet, with expert-level performance achieved only in some specialties and under some circumstances, medical image understanding remains a difficult task for the majority of specialties, mainly due to its challenging nature and the extreme scarcity of annotated data.
|
| 12 |
+
|
| 13 |
+
Existing work has followed two general approaches to obtain annotations for medical imaging tasks. The first approach has been using high-quality annotations created by medical experts (Abramoff et al., 2016; Gulshan et al., \` 2016; Shih et al., 2019; Wang & Wong, 2020). However, the high cost of this approach has resulted in datasets that are mostly orders of magnitude smaller than natural image datasets such as ImageNet (Russakovsky et al., 2015). To remedy this, existing work has relied heavily on transferring model weights from ImageNet pretraining (Wang et al., 2017; Esteva et al., 2017; Irvin et al., 2019). This approach is suboptimal because, as shown in Figure 1, medical image understanding often requires representations of very fine-grained visual features that are drastically different from those required for identifying objects in natural images. As a result, Raghu et al. (2019) found that ImageNet pretraining often provides little to no benefit compared to simple random initialization.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Two example chest radiograph images with different abnormality categories, along with sentences from their paired textual report and example views indicative of their characteristics.
|
| 17 |
+
|
| 18 |
+
A second popular approach is to use expert-crafted rules to extract labels from the textual reports accompanying the medical images. This approach has led to datasets of larger scale, since the text data paired with medical images are often produced naturally by medical experts in their routine workflow and abundant in a typical hospital’s IT systems. Nevertheless, this rule-based label extraction approach has two limitations: 1) the rules are often inaccurate and limited to a few major categories (Wang et al., 2017), leading to very inefficient use of the textual report data; 2) these rules are often domain-specific and sensitive to the style of the text, making cross-domain and cross-institution generalization difficult (Irvin et al., 2019).
|
| 19 |
+
|
| 20 |
+
In efforts to make more efficient use of unlabeled image data, several recent studies have shown promising results from contrastive representation learning from natural images (Chen et al., 2020a; He et al., 2020; Grill et al., 2020). However, as we will show, applying these image view-based contrastive methods to medical images provides only marginal benefits compared to ImageNet pretraining, a result mostly due to the high inter-class similarity of the medical images as in Figure 1.
|
| 21 |
+
|
| 22 |
+
In this work, we aim to improve visual representations of medical images by combining the benefits of both learning from abundant textual data and unsupervised statistical approaches. We present Contrastive VIsual Representation Learning from Text (ConVIRT), a framework for learning visual representations by exploiting the naturally occurring pairing of images and textual data. ConVIRT improves visual representations by maximizing the agreement between true image-text pairs versus random pairs via a bidirectional contrastive objective between the image and text modalities. We apply ConVIRT to the pretraining of medical image encoders, and show that it leads to higherquality in-domain image representations that capture the subtlety of visual features required for medical image understanding tasks.
|
| 23 |
+
|
| 24 |
+
Compared to existing methods, ConVIRT has the advantages of utilizing the paired text data in a way agnostic to the medical specialty and requiring no additional expert input. This allows us to evaluate ConVIRT by transferring our pretrained weights to 4 different medical image classification tasks covering 2 different specialties. We find that the resulting models outperform all baseline initialization approaches, including the standard ImageNet pretraining and several strong baselines that also utilize the paired text data. Most notably, in all 4 tasks, ConVIRT requires only $10 \%$ as much labeled training data as an ImageNet initialized counterpart to achieve better or comparable performance. We further evaluate ConVIRT on two new zero-shot retrieval tasks, an image-image and a text-image retrieval task, and also find it superior to all baselines. To facilitate future research, we will make our code and the collected retrieval datasets available.
|
| 25 |
+
|
| 26 |
+
# 2 METHOD
|
| 27 |
+
|
| 28 |
+
# 2.1 TASK DEFINITION
|
| 29 |
+
|
| 30 |
+
We start by giving a formal description of our representation learning setting. We assume paired input $\left( \mathbf { x } _ { v } , \mathbf { x } _ { u } \right)$ where $\mathbf { x } _ { v }$ represents one or a group of images, and $\mathbf { x } _ { u }$ represents a text sequence which describes the imaging information in $\mathbf { x } _ { v }$ . Our goal is to learn a parameterized image encoder function $f _ { v }$ , which maps an image to a fixed-dimensional vector. We are then interested in transferring the learned image encoder function $f _ { v }$ into downstream tasks, such as classification or image retrieval. In this work, we model the encoder function $f _ { v }$ as a convolutional neural network (CNN).
|
| 31 |
+
|
| 32 |
+
We note that paired image-text data $\left( \mathbf { x } _ { v } , \mathbf { x } _ { u } \right)$ naturally exists for many medical domains. Medical experts such as radiologists produce textual descriptions of images as part of their routine workflow, some of which are also made publicly available (Demner-Fushman et al., 2016; Johnson et al., 2019).
|
| 33 |
+
|
| 34 |
+
# 2.2 CONTRASTIVE VISUAL REPRESENTATION LEARNING FROM TEXT
|
| 35 |
+
|
| 36 |
+
An overview of our method, ConVIRT, for learning $f _ { v }$ is shown in Figure 2. At a high level, our method converts each input image $\mathbf { x } _ { v }$ and text $\mathbf { x } _ { u }$ into $d$ -dimensional vector representations $\mathbf { v }$ and u respectively, following a similar processing pipeline. For each input image $\mathbf { x } _ { v }$ , our method starts by drawing a random view $\tilde { \mathbf { x } } _ { v }$ from $\mathbf { x } _ { v }$ with a sampled transformation function $t _ { v } \sim \tau$ , where $\tau$ represents a family of stochastic image transformation functions described later. Next, the encoder function $f _ { v }$ transforms $\tilde { \mathbf { x } } _ { v }$ into a fixed-dimensional vector $\mathbf { h } _ { v }$ , followed by a non-linear projection function $g _ { v }$ which further transforms $\mathbf { h } _ { v }$ into vector $\mathbf { v }$ :
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\begin{array} { r } { \mathbf { v } = g _ { v } ( f _ { v } ( \tilde { \mathbf { x } } _ { v } ) ) , } \end{array}
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
where $\mathbf { v } \in \mathbb { R } ^ { d }$ . Similarly, for each text input $\mathbf { x } _ { u }$ , we obtain a span $\tilde { \mathbf { x } } _ { u }$ from it following a sampling function $t _ { u }$ , and then a text representation $\mathbf { u }$ with: $\mathbf { u } = g _ { u } ( f _ { u } ( \tilde { \mathbf { x } } _ { u } ) )$ , where $f _ { u }$ is a text encoder, $g _ { u }$ a projection, and $\mathbf { u } \in \mathbb { R } ^ { d }$ . The projection functions $g _ { v }$ and $g _ { u }$ project representations for both modalities from their encoder space to the same $d$ -dimensional space for contrastive learning.
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 2: Overview of our ConVIRT framework. The blue and green shades represent the image and text encoding pipelines, respectively. Our method relies on maximizing the agreement between the true image-text representation pairs with bidirectional losses $\ell ^ { ( v u ) }$ and $\ell ^ { ( u v ) }$ .
|
| 46 |
+
|
| 47 |
+
At training time, we sample a minibatch of $N$ input pairs $( \mathbf { x } _ { v } , \mathbf { x } _ { u } )$ from training data, and calculate their representation pairs $( \mathbf { v } , \mathbf { u } )$ . We use $( \mathbf { v } _ { i } , \mathbf { u } _ { i } )$ to denote the $i$ -th pair. The training objective of ConVIRT involves two loss functions. The first loss function is an image-to-text contrastive loss for the $i$ -th pair:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\ell _ { i } ^ { ( v u ) } = - \log \frac { \exp ( \langle { \bf v } _ { i } , { \bf u } _ { i } \rangle / \tau ) } { \sum _ { k = 1 } ^ { N } \exp ( \langle { \bf v } _ { i } , { \bf u } _ { k } \rangle / \tau ) } ,
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where $\left. \mathbf { v } _ { i } , \mathbf { u } _ { i } \right.$ represents the cosine similarity, i.e., $\langle \mathbf { v } , \mathbf { u } \rangle = \mathbf { v } ^ { \top } \mathbf { u } / \| \mathbf { v } \| \| \mathbf { u } \|$ ; and $\tau \in \mathbb { R } ^ { + }$ represents a temperature parameter. This loss takes the same form as the InfoNCE loss (Oord et al., 2018), and minimizing it leads to encoders that maximally preserve the mutual information between the true pairs under the representation functions. Intuitively, it is the log loss of an $N$ -way classifier that tries to predict $( \mathbf { v } _ { i } , \mathbf { u } _ { i } )$ as the true pair. Note that unlike previous work which use a contrastive loss between inputs of the same modality (Chen et al., 2020a; He et al., 2020), our image-to-text contrastive loss is asymmetric for each input modality. We therefore define a similar text-to-image contrastive loss as:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\ell _ { i } ^ { ( u v ) } = - \log \frac { \exp ( \langle { \bf u } _ { i } , { \bf v } _ { i } \rangle / \tau ) } { \sum _ { k = 1 } ^ { N } \exp ( \langle { \bf u } _ { i } , { \bf v } _ { k } \rangle / \tau ) } .
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Our final training loss is then computed as a weighted combination of the two losses averaged over all positive image-text pairs in each minibatch:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\mathcal { L } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \Big ( \lambda \ell _ { i } ^ { ( v u ) } + ( 1 - \lambda ) \ell _ { i } ^ { ( u v ) } \Big ) ,
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where $\lambda \in [ 0 , 1 ]$ is a scalar weight.
|
| 66 |
+
|
| 67 |
+
# 2.3 REALIZATION
|
| 68 |
+
|
| 69 |
+
We note that our ConVIRT framework defined above is agnostic to the specific choice of image and text encoders, transformations and projection functions. In this work, following previous work (Chen et al., 2020a), we model $g _ { v }$ and $g _ { u }$ as separate learnable single-hidden-layer neural networks, i.e., $g _ { v } ( \cdot ) = \mathbf { W } ^ { ( 2 ) } \sigma ( \mathbf { W } ^ { ( 1 ) } ( \cdot ) )$ where $\sigma$ is a ReLU non-linearity, and similarly for $g _ { u }$ .
|
| 70 |
+
|
| 71 |
+
For the image encoder $f _ { v }$ , we use the ResNet50 architecture (He et al., 2016) for all experiments, as it is the architecture of choice for much medical imaging work and is shown to achieve competitive performance. For the text encoder $f _ { u }$ , we use a BERT encoder (Devlin et al., 2019) followed by a max-pooling layer over all output vectors. We initialize our BERT encoder with the ClinicalBERT model (Alsentzer et al., 2019) pretrained on the MIMIC clinical notes, which achieved state-of-theart performance on a suite of clinical NLP tasks. At training time we allow the encoder to adapt to our contrastive task by freezing the embeddings and the first 6 layers of this BERT encoder and fine-tuning the last 6 layers.
|
| 72 |
+
|
| 73 |
+
For the image transformation family $\tau$ where $t _ { v }$ is sampled from, we use sequential applications of five random transformations: cropping, horizontal flipping, affine transformation, color jittering and Gaussian blur. Different from recent work on contrastive visual representation learning (Chen et al., 2020a;b), we only apply brightness and contrast adjustments in color jittering, due to the monochrome nature of the medical images. For the text transformation function $t _ { u }$ , we apply a simple uniform sampling of a sentence from the input document $\mathbf { x } _ { u }$ (i.e., $\tilde { \mathbf { x } } _ { u }$ is a randomly sampled sentence from $\mathbf { x } _ { u }$ for each minibatch). We did not use a more aggressive transformation mainly because sampling at the sentence level can preserve the semantic meaning of the sampled spans.
|
| 74 |
+
|
| 75 |
+
# 3 EXPERIMENTS
|
| 76 |
+
|
| 77 |
+
# 3.1 DATA FOR PRETRAINING
|
| 78 |
+
|
| 79 |
+
We test our ConVIRT framework by pretraining two separate image encoders covering different medical specialties using two separate paired image-text datasets:
|
| 80 |
+
|
| 81 |
+
• Chest image encoder: We use version 2 of the public MIMIC-CXR database (Johnson et al., 2019), which is a collection of chest radiograph images paired with their textual reports, and since its release has become a standard resource for studying multi-modal modeling of medical images. After preprocessing, this dataset contains a total of about $2 1 7 \mathrm { k }$ image-text pairs, with each pair containing an average of 1.7 images and 6.0 sentences. • Bony image encoder: We obtain a collection of musculoskeletal image-text pairs from the Rhode Island Hospital system. Following chest images, musculoskeletal images constitute the second most common type of radiograph images in a typical hospital. This dataset contains a total of $4 8 \mathrm { k }$ image-text pairs, with each pair containing an average of 2.5 images and 8.0 sentences.
|
| 82 |
+
|
| 83 |
+
We include model implementation and pretraining details in Appendix A.
|
| 84 |
+
|
| 85 |
+
# 3.2 EVALUATION TASKS & DATA
|
| 86 |
+
|
| 87 |
+
We evaluate our pretrained image encoders on three downstream medical imaging tasks: image classification, zero-shot image-image retrieval and zero-shot text-image retrieval.
|
| 88 |
+
|
| 89 |
+
Image Classification. We evaluate our pretrained image representations on four representative medical image classification tasks: 1) RSNA Pneumonia Detection (Wang et al., 2017; Shih et al., 2019), which involves binary classification of a chest radiograph image into either a pneumonia or a normal category; 2) CheXpert image classification (Irvin et al., 2019), which involves multi-label binary classification of a chest image for five individual labels, i.e., atelectasis, cardiomegaly, consolidation, edema and pleural effusion; 3) COVIDx image classification (Wang & Wong, 2020), which involves multi-class classification of a chest image into one of COVID19, non-COVID pneumonia or normal categories; and 4) MURA bony abnormality detection (Rajpurkar et al., 2018a), which involves binary classification of a musculoskeletal image into abnormal or normal. We report test accuracy for COVIDx given its balanced test set, and report the standard area under the receiver operating characteristic curve (AUC) metric for other tasks following previous work.
|
| 90 |
+
|
| 91 |
+
Following previous work (Henaff et al., 2020; Chen et al., 2020a; He et al., 2020), for all tasks, we ´ evaluate each pretrained image encoder under two individual settings: a linear classification setting, where the pretrained CNN weights are frozen and only a linear classification head is trained for the task; and a fine-tuning setting, where both the CNN weights and the linear head are fine-tuned. The two settings complement each other for evaluation purposes: while the linear setting directly evaluates the quality of the extracted image features with the pretrained CNN, the fine-tuning setting more closely resembles how the pretrained CNN weights are used in practical applications.
|
| 92 |
+
|
| 93 |
+
To further compare the data efficiency of different pretraining methods, for each setting we evaluate the image encoders with $1 \%$ , $10 \%$ and all training data, respectively (except for the COVIDx dataset where we omit the $1 \%$ setting due to the scarcity of data for some categories). To control the variance in results, for all settings and models, we report average results aggregated over 5 independent training runs. We include further dataset processing and model training details in Appendix B.
|
| 94 |
+
|
| 95 |
+
Zero-shot Image-image Retrieval. This evaluation is similar to the conventional content-based image retrieval setting in which we search for images of a particular category using a representative query image. For evaluation, a group of query images and a larger collection of candidate images, each with a categorical label, are given to a pretrained CNN encoder. We encode each query and candidate image with this encoder, and then for each query, rank all candidates by their cosine similarities to the query in descending order. Since a widely-used annotated benchmark for this setting is not available, we create our own dataset by re-using existing annotations in the CheXpert dataset (Irvin et al., 2019) and additional expert annotations from a board-certified radiologist. The resulting dataset covers 8 different chest abnormality categories, each with 10 expert-annotated query and 200 candidate images. We include the detailed collection and annotation procedure in Appendix C, and refer to this dataset as CheXpert $\mathbf { 8 \times 2 0 0 }$ Retrieval Dataset. We focus our evaluation on retrieval precision, and evaluate our models with Precision $@ k$ metrics where $k = 5 , 1 0 , 1 0 0$ .
|
| 96 |
+
|
| 97 |
+
Zero-shot Text-image Retrieval. This setting is similar to the image-image retrieval setting, but instead of using query images, we retrieve images of a particular category with textual queries. For this purpose, we ask a radiologist to write 5 diverse and representative textual descriptions for each of the 8 abnormality categories for the same CheXpert $8 \mathrm { x } 2 0 0$ candidate images (see Appendix D for details). At test time, for each query we encode its text with the learned text encoder $f _ { u }$ and then retrieve from candidate images in a similar way. This evaluation not only evaluates the quality of the learned image representations, but also the alignment between the text representations and the image representations. We again use Precision $@ k$ metrics where $k = 5 , 1 0 , 1 0 0$ .
|
| 98 |
+
|
| 99 |
+
# 3.3 BASELINE METHODS
|
| 100 |
+
|
| 101 |
+
We compare ConVIRT against the following standard or competitive initialization methods:
|
| 102 |
+
|
| 103 |
+
• Random Init.: For all tasks we initialize the ResNet50 with its default random initialization. • ImageNet Init.: We use CNN weights pretrained on ImageNet (Russakovsky et al., 2015), which remains a dominant initialization approach for medical imaging work (Raghu et al., 2019). Caption-LSTM: We initialize the CNN weights with ImageNet, and then pretrain it with an image captioning task using the standard CNN-LSTM with attention architecture (Xu et al., 2015). For the captioning task, we train the model to decode the paired textual report from the encoded image representations. Compared to the random or ImageNet initializations, this is an “in-domain” initialization baseline which uses the paired text data for representation learning. Caption-Transformer: In this initialization we replace the CNN-LSTM model in Caption-LSTM with a CNN-Transformer-based captioning model in Cornia et al. (2020), which recently achieves state-of-the-art results on the COCO image captioning benchmark (Lin et al., 2014). Contrastive-Binary: This baseline differs from our method by contrasting the paired image and text representations with a binary classification head, as is widely done in visual-linguistic pretraining work (Tan & Bansal, 2019; Su et al., 2020). For each input pair, we first project encoder outputs $\mathbf { h } _ { v }$ and $\mathbf { h } _ { u }$ into the same dimension with linear layers, concatenate them, and use a MLP network to predict a binary probability of whether the input is a real or a “fake” pair, which we train with a binary cross-entropy loss. During training, for each $( \mathbf { x } _ { v } , \mathbf { x } _ { u } )$ pair in the training set, we construct a “fake” pair by replacing $\mathbf { x } _ { u }$ with a randomly sampled one from the dataset. We expect that the binary classification task requires the encoder to learn reasonable representations of the input images, and therefore is a stronger in-domain initialization baseline.
|
| 104 |
+
|
| 105 |
+
For fair comparison, for all baselines that require paired image-text data, we use the same datasets as in our contrastive pretraining. For the captioning-based methods, we always use the model checkpoints that achieve the best CIDEr score (Vedantam et al., 2015) on a held-out validation set.
|
| 106 |
+
|
| 107 |
+
# 4 RESULTS
|
| 108 |
+
|
| 109 |
+
# 4.1 CLASSIFICATION TASKS
|
| 110 |
+
|
| 111 |
+
Linear Classification. We present all linear classification results for the medical imaging tasks in Table 1a. We find that compared to random initialization, ImageNet initialization provides markedly better representations, despite pretrained on a very different domain of images; in-domain image initialization methods that use paired image-text data further improve over ImageNet initialization in almost all settings. Among the in-domain initialization methods, our proposed ConVIRT pretraining achieves the best overall results in all settings. Notably, we find on three out of the four tasks, with only $1 \%$ training data ConVIRT is able to achieve classification results better than the default ImageNet initialization with $100 \%$ training data, highlighting the high quality of the learned representations from ConVIRT.
|
| 112 |
+
|
| 113 |
+
Table 1: Results for the medical image classification tasks: (a) linear classification; (b) fine-tuning setting. All results are averaged over 5 independent models. Best results for each setting are in boldface. COVIDx $1 \%$ setting is omitted due to the scarcity of labels in COVIDx.
|
| 114 |
+
|
| 115 |
+
<table><tr><td colspan="10">(a)</td></tr><tr><td></td><td colspan="3">RSNA (AUC)</td><td colspan="3">CheXpert (AUC)</td><td colspan="2">COVIDx (Accu.)</td><td colspan="3">MURA (AUC)</td></tr><tr><td>Method</td><td>1%</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td></tr><tr><td colspan="10">General initialization methods</td><td></td><td></td></tr><tr><td>Random Init.</td><td>55.0</td><td>67.3</td><td>72.3</td><td>58.2</td><td>63.7</td><td>66.2</td><td>69.2</td><td>73.5</td><td>50.9</td><td>56.8</td><td>62.0</td></tr><tr><td>ImageNet Init.</td><td>82.8</td><td>85.4</td><td>86.9</td><td>75.7</td><td>79.7</td><td>81.0</td><td>83.7</td><td>88.6</td><td>63.8</td><td>74.1</td><td>79.0</td></tr><tr><td colspan="10">In-domain initialization methods</td><td></td></tr><tr><td>Caption-Transformer</td><td>84.8</td><td>87.5</td><td>89.5</td><td>77.2</td><td>82.6</td><td>83.9</td><td>80.0</td><td>89.0</td><td>66.5</td><td>76.3</td><td>81.8</td></tr><tr><td>Caption-LSTM</td><td>89.8</td><td>90.8</td><td>91.3</td><td>85.2</td><td>85.3</td><td>86.2</td><td>84.5</td><td>91.7</td><td>75.2</td><td>81.5</td><td>84.1</td></tr><tr><td>Contrastive-Binary</td><td>88.9</td><td>90.5</td><td>90.8</td><td>84.5</td><td>85.6</td><td>85.8</td><td>80.5</td><td>90.8</td><td>76.8</td><td>81.7</td><td>85.3</td></tr><tr><td>ConVIRT (Ours)</td><td>90.7</td><td>91.7</td><td>92.1</td><td>85.9</td><td>86.8</td><td>87.3</td><td>85.9</td><td>91.7</td><td>81.2</td><td>85.1</td><td>87.6</td></tr><tr><td colspan="10"></td></tr><tr><td></td><td>RSNA (AUC)</td><td></td><td></td><td></td><td>(b) CheXpert (AUC)</td><td></td><td></td><td>COVIDx (Accu.)</td><td></td><td>MURA (AUC)</td><td></td></tr><tr><td colspan="10">Method</td></tr><tr><td>General initialization methods</td><td>1%</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td></tr><tr><td>Random Init.</td><td>71.9</td><td>82.2</td><td>88.5</td><td>70.4</td><td>81.1</td><td>85.8</td><td>75.4</td><td>87.7</td><td>56.8</td><td>61.6</td><td>79.1</td></tr><tr><td colspan="10">ImageNet Init.</td></tr><tr><td></td><td>83.1</td><td>87.3</td><td>90.8</td><td>80.1</td><td>84.8</td><td>87.6</td><td>84.4</td><td>90.3</td><td>72.1</td><td>81.8</td><td>87.0</td></tr><tr><td colspan="10">In-domain initialization methods</td></tr><tr><td>Caption-Transformer</td><td>86.3</td><td>89.2</td><td>92.1</td><td>81.5</td><td>86.4</td><td>88.2</td><td>88.3</td><td>92.3</td><td>75.2</td><td>83.2</td><td>87.6</td></tr><tr><td>Caption-LSTM</td><td>87.2</td><td>88.0</td><td>91.0</td><td>83.5</td><td>85.8</td><td>87.8</td><td>83.8</td><td>90.8</td><td>78.7</td><td>83.3</td><td>87.8</td></tr><tr><td>Contrastive-Binary</td><td>87.7</td><td>89.9</td><td>91.2</td><td>86.2</td><td>86.1</td><td>87.7</td><td>89.5</td><td>90.5</td><td>80.6</td><td>84.0</td><td>88.4</td></tr><tr><td>ConVIRT (Ours)</td><td>88.8</td><td>91.5</td><td>92.7</td><td>87.0</td><td>88.1</td><td>88.1</td><td>90.3</td><td>92.4</td><td>81.3</td><td>86.5</td><td>89.0</td></tr></table>
|
| 116 |
+
|
| 117 |
+
Fine-tuning. We show the fine-tuning evaluation results in Table 1b. Similar to the linear setting, we find that: 1) ImageNet initialization is again better than random initialization with smaller margins; 2) all in-domain initialization methods are better than the popular ImageNet initialization in most settings; and 3) our proposed ConVIRT pretraining again achieves the best overall results in 10 out of the 11 settings, with the exception of the CheXpert dataset with all training data used, where the result of ConVIRT is similar to that of the Caption-Transformer result. Most notably, on all datasets, with only $10 \%$ labeled training data ConVIRT achieves classification results that are better or close to the ImageNet initialization with $100 \%$ training data results.
|
| 118 |
+
|
| 119 |
+
We also notice that our conclusion of using ImageNet versus random initialization is different from Raghu et al. (2019): while they showed comparable results from the two strategies, we find that using ImageNet initialization is still superior than random initialization in most results, justifying its popularity. Upon closer examination, we conjecture that this is likely due to under-optimization of their models: while our ResNet50 with random initialization achieves an average AUC of 85.8 on the CheXpert dataset, their ResNet50 model only achieved 83.5 AUC on the same evaluation set.
|
| 120 |
+
|
| 121 |
+
# 4.2 RETRIEVAL TASKS
|
| 122 |
+
|
| 123 |
+
We present the zero-shot image-image and text-image retrieval results in Table 2. For the imageimage retrieval setting, we present additional results from fine-tuning our pretrained model on all CheXpert training data, and use them as “upper bounds” of the results obtained from the use of supervised labels. We find that: 1) using ImageNet pretrained CNN weights in a zero-shot image retrieval setting is only better than random guess by small margins; 2) all in-domain pretrained CNN weights achieve much better retrieval performance than ImageNet weights; and 3) our proposed ConVIRT pretraining achieves the best overall retrieval results on all metrics. We find that while Contrastive-Binary performs notably better than other baselines in the image-image retrieval setting, its text-image retrieval results are far from ConVIRT pretraining. We conjecture that the lack of an explicit similarity-based loss function in the Contrastive-Binary baseline results in misaligned representations in the image and text space, leading to poor results in text-image retrieval.
|
| 124 |
+
|
| 125 |
+
Table 2: Zero-shot image-image and text-image retrieval results on the CheXpert $8 \times 2 0 0$ datasets. Random shows results from a random guess; ConVIRT + CheXpert Supervised shows results from further fine-tuning the pretrained weights with supervised training data. Text-image retrieval results are not obtained for some methods due to the lack of text encoders.
|
| 126 |
+
|
| 127 |
+
<table><tr><td></td><td colspan="3"> Image-Image Retrieval</td><td colspan="3">Text-Image Retrieval</td></tr><tr><td>Method</td><td>Prec@5</td><td>Prec@10</td><td>Prec @50</td><td>Prec@5</td><td>Prec@10</td><td>Prec@50</td></tr><tr><td>Random</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td></tr><tr><td>ImageNet</td><td>14.8</td><td>14.4</td><td>15.0</td><td>1</td><td>1</td><td>1</td></tr><tr><td>In-domain initialization methods</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Caption-Transformer</td><td>29.8</td><td>28.0</td><td>23.0</td><td></td><td>1</td><td></td></tr><tr><td>Caption-LSTM</td><td>34.8</td><td>32.9</td><td>28.1</td><td></td><td>1</td><td></td></tr><tr><td>Contrastive-Binary</td><td>38.8</td><td>36.6</td><td>29.7</td><td>15.5</td><td>14.5</td><td>13.7</td></tr><tr><td>ConVIRT(Ours)</td><td>45.0</td><td>42.9</td><td>35.7</td><td>60.0</td><td> 57.5</td><td>48.8</td></tr><tr><td>Fine-tuned</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ConVIRT + CheXpert Supervised</td><td>56.8</td><td>56.3</td><td>48.9</td><td></td><td></td><td></td></tr></table>
|
| 128 |
+
|
| 129 |
+
To understand how well ConVIRT pretraining helps separate images from different abnormality categories in its encoding space, in Figure 3 we present t-SNE plots (Maaten & Hinton, 2008) of candidate images in the CheXpert 8x200 dataset for five selected categories, from the ImageNet pretrained CNN encoder and the ConVIRT pretrained encoder. It is worth noting that clustering images in our setting is much more challenging than that in the general object classification setting due to the high inter-class similarity of the medical images. Nevertheless we find that ConVIRT pretraining achieves a better clus
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 3: t-SNE visualizations of encoded image representations from different pretraining methods.
|
| 133 |
+
|
| 134 |
+
tering of the images in the t-SNE plots. On the other hand, the lack of clear separations between groups suggests room for further improvement.
|
| 135 |
+
|
| 136 |
+
# 5 ANALYSIS AND DISCUSSION
|
| 137 |
+
|
| 138 |
+
Comparisons to Image-only Contrastive Learning. ConVIRT shows superior results against baselines in evaluation, but an important question remains as to how it compares against existing image-only contrastive visual representation learning methods. We study this by running two popular such methods, SimCLR (Chen et al., 2020a) and MoCo v2 (Chen et al., 2020b), on the same collection of images that we used in our pretraining. We present the results in Table 3 and include model training details in Appendix E. We find that compared to ImageNet initial
|
| 139 |
+
|
| 140 |
+
Table 3: Comparisons of ConVIRT to imageonly unsupervised image representation learning approaches.
|
| 141 |
+
|
| 142 |
+
<table><tr><td>RSNA Linear Method (1%, AUC)</td><td>(1%,AUC)</td><td>r CheXpert Linear Image-Image (Prec@10)</td></tr><tr><td> ImageNet</td><td>82.8</td><td>75.7 14.4</td></tr><tr><td>SimCLR</td><td>86.3</td><td>77.4 17.6 81.3</td></tr><tr><td>MoCo v2</td><td>86.6</td><td>20.6</td></tr><tr><td>ConVIRT</td><td>90.7</td><td>85.9 42.9</td></tr></table>
|
| 143 |
+
|
| 144 |
+
ization, both contrastive methods lead to marginal to moderate improvements on the classification
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 4: Saliency maps on sampled images for 4 abnormality categories in the CheXpert dataset. For each image we present maps for ImageNet, SimCLR, MoCo v2 and our ConVIRT initializations. Ground truth regions that are indicative of the abnormalities are shown as red boxes in the images.
|
| 148 |
+
|
| 149 |
+
and retrieval tasks. However, our training strategy substantially outperforms both methods on all tasks, demonstrating its effective use of information from the paired text data.
|
| 150 |
+
|
| 151 |
+
To understand the representational difference that has led to this difference in performance, for all four initialization methods, we visualize in Figure 4 the saliency maps (Simonyan et al., 2014) corresponding to the correct class on sampled images from the CheXpert dataset. Models for all initialization methods are trained with $1 \%$ CheXpert training data under the linear classification setting (with pretrained CNN weights frozen). We find that ImageNet pretraining has led to models that focus on trivial visual features that are mostly irrelevant to the task, and that the model with ConVIRT pretrained weights has focused on much more relevant areas than those with SimCLR and MoCo v2 pretraining, suggesting more effective representation learning. For example, for atelectasis, while the ConVIRT model has correctly focused on the bottom of the lung regions, the SimCLR model has much more scattered focus and the MoCo model has incorrectly focused on the heart region.
|
| 152 |
+
|
| 153 |
+
Correlation Between Contrastive Loss and End Task Performance. To understand the relation between a model’s performance on the ConVIRT pretraining task and its performance on the downstream tasks, we ran an analysis where for every 5 epochs during the pretraining, we transferred the pretrained checkpoint to the downstream tasks and evaluate its performance. The pretraining was run for a total of 200 epochs, and 40 points were obtained with varying validation loss and end task results. Figure 5 presents the results of the models’ validation loss on the pretraining task, and its achieved performance on the RSNA $1 \%$ data linear evaluation and the two retrieval tasks. For all three tasks, we find a clear positive correlation between the pretraining performance and the end task performance. This corroborates that by learning with the ConVIRT objective, the image encoder learns gradually improved representations for the end tasks, and suggests that further improvement on the pretraining task may have positive impact on the end task performance.
|
| 154 |
+
|
| 155 |
+
Hyperparameter Analysis. We run experiments to study the impact of hyperparameters, and find that: 1) similar to previous work on image-only contrastive learning (Chen et al., 2020a), the pretraining results are most sensitive to the choice of the temperature value $\tau$ ; 2) unlike previous work, changing batch size does not lead to substantial change in the classification results; and 3) using linear projection heads instead of non-linear ones notably hurts the retrieval results. We include our detailed comparisons in Appendix F.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 5: (a) shows pretraining validation loss at different epochs; (b)-(d) shows correlation between the pretraining loss and the performance of three end tasks. For (a) the $\mathbf { X }$ -axis shows the training epoch number, and for (b)-(d) the $\mathbf { X }$ -axis shows the negative value of the pretraining loss (i.e., $- \mathcal { L } )$ on a held-out validation set.
|
| 159 |
+
|
| 160 |
+
# 6 RELATED WORK
|
| 161 |
+
|
| 162 |
+
Our work is most relevant to existing work on medical image classification, which we have covered in Section 1, and textual report generation from medical images (Wang et al., 2018; Jing et al., 2018; Liu et al., 2019). A dominant approach for initializing medical image encoders in this work has been using encoder weights pretrained on ImageNet, despite the drastic difference in image characteristics (Raghu et al., 2019). Instead, our work proposes an alternative in-domain pretraining strategy, and compares ImageNet pretraining with different pretraining approaches that also use the paired text data. To our knowledge our work represents the first systematic attempt in this direction.
|
| 163 |
+
|
| 164 |
+
Our work is inspired by the recent line of work on image view-based contrastive visual representation learning (Henaff et al., 2020; Chen et al., 2020a; He et al., 2020; Grill et al., 2020), but differs ´ from existing studies by the contrastive learning with text modality, which as we show in Section 5, is more effective in learning high-quality representations of medical images.
|
| 165 |
+
|
| 166 |
+
Another line of work related to ours is visual-linguistic representation learning (Lu et al., 2019; Tan & Bansal, 2019; Su et al., 2020). Among existing studies, Ilharco et al. (2020) and Gupta et al. (2020) used a cross-modality contrastive objective related to ours, but for the purpose of probing visual-linguistic models and learning phrase grounding, respectively. Our work differs from this line of work in several crucial ways: 1) existing work in visual-linguistic learning focused on learning visual representations from paired text via a binary contrastive prediction task, whereas we showed the superior performance of the new cross-modality NCE objectives in our setting; 2) existing work has primarily used object representations extracted from image segmentation models in their preprocessing steps, making them less applicable to medical image understanding tasks where anatomical segmentations are extremely hard to obtain; 3) while existing work has run evaluation primarily on visual-linguistic tasks such as visual question answering, we instead focus on evaluation with classification and retrieval tasks which are at the center of medical image understanding research.
|
| 167 |
+
|
| 168 |
+
# 7 CONCLUSION
|
| 169 |
+
|
| 170 |
+
We presented ConVIRT, an unsupervised method for learning medical visual representations from naturally occurring pairing of images and text. Our method relies on contrasting the image representations with the paired text data via a bidirectional objective between the two modalities. On 4 medical image classification tasks and 2 image retrieval tasks, ConVIRT outperformed other strong in-domain initialization methods that also use the text data, and led to representations with notably higher quality. Compared to ImageNet pretraining, ConVIRT is able to achieve the same level of classification accuracy with an order of magnitude less labeled data. We hope that our work can inspire future work that makes more efficient use of textual data for medical image understanding.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Michael David Abramoff, Yiyue Lou, Ali Erginay, Warren Clarida, Ryan Amelon, James C Folk, \` and Meindert Niemeijer. Improved automated detection of diabetic retinopathy on a publicly available dataset through integration of deep learning. Investigative Ophthalmology & Visual Science, 57(13):5200–5206, 2016.
|
| 175 |
+
|
| 176 |
+
Emily Alsentzer, John Murphy, William Boag, Wei-Hung Weng, Di Jindi, Tristan Naumann, and Matthew McDermott. Publicly available clinical BERT embeddings. In Proceedings of the 2nd Clinical Natural Language Processing Workshop, 2019.
|
| 177 |
+
|
| 178 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International Conference on Machine Learning (ICML), 2020a.
|
| 179 |
+
|
| 180 |
+
Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b.
|
| 181 |
+
|
| 182 |
+
Marcella Cornia, Matteo Stefanini, Lorenzo Baraldi, and Rita Cucchiara. Meshed-memory Transformer for image captioning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 183 |
+
|
| 184 |
+
Jeffrey De Fauw, Joseph R Ledsam, Bernardino Romera-Paredes, Stanislav Nikolov, Nenad Tomasev, Sam Blackwell, Harry Askham, Xavier Glorot, Brendan ODonoghue, Daniel Visentin, et al. Clinically applicable deep learning for diagnosis and referral in retinal disease. Nature Medicine, 24(9):1342–1350, 2018.
|
| 185 |
+
|
| 186 |
+
Dina Demner-Fushman, Marc D Kohli, Marc B Rosenman, Sonya E Shooshan, Laritza Rodriguez, Sameer Antani, George R Thoma, and Clement J McDonald. Preparing a collection of radiology examinations for distribution and retrieval. Journal of the American Medical Informatics Association, 23(2):304–310, 2016.
|
| 187 |
+
|
| 188 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019.
|
| 189 |
+
|
| 190 |
+
Andre Esteva, Brett Kuprel, Roberto A Novoa, Justin Ko, Susan M Swetter, Helen M Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639):115–118, 2017.
|
| 191 |
+
|
| 192 |
+
Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020.
|
| 193 |
+
|
| 194 |
+
Varun Gulshan, Lily Peng, Marc Coram, Martin C Stumpe, Derek Wu, Arunachalam Narayanaswamy, Subhashini Venugopalan, Kasumi Widner, Tom Madams, Jorge Cuadros, et al. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA, 316(22):2402–2410, 2016.
|
| 195 |
+
|
| 196 |
+
Tanmay Gupta, Arash Vahdat, Gal Chechik, Xiaodong Yang, Jan Kautz, and Derek Hoiem. Contrastive learning for weakly supervised phrase grounding. In Proceedings of the 16th European Conference on Computer Vision (ECCV), 2020.
|
| 197 |
+
|
| 198 |
+
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 (CVPR), 2016.
|
| 199 |
+
|
| 200 |
+
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, 2020.
|
| 201 |
+
|
| 202 |
+
Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning (ICML), 2020.
|
| 203 |
+
|
| 204 |
+
Gabriel Ilharco, Rowan Zellers, Ali Farhadi, and Hannaneh Hajishirzi. Probing text models for common ground with visual representations. arXiv preprint arXiv:2005.00619, 2020.
|
| 205 |
+
|
| 206 |
+
Jeremy Irvin, Pranav Rajpurkar, Michael Ko, Yifan Yu, Silviana Ciurea-Ilcus, Chris Chute, Henrik Marklund, Behzad Haghgoo, Robyn Ball, Katie Shpanskaya, et al. CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the AAAI Conference on Artificial Intelligence, 2019.
|
| 207 |
+
|
| 208 |
+
Baoyu Jing, Pengtao Xie, and Eric Xing. On the automatic generation of medical imaging reports. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), 2018.
|
| 209 |
+
|
| 210 |
+
Alistair EW Johnson, Tom J Pollard, Seth J Berkowitz, Nathaniel R Greenbaum, Matthew P Lungren, Chih-ying Deng, Roger G Mark, and Steven Horng. MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports. Scientific Data, 6, 2019.
|
| 211 |
+
|
| 212 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In The 2015 International Conference for Learning Representations, 2015.
|
| 213 |
+
|
| 214 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In ´ European Conference on Computer Vision (ECCV), 2014.
|
| 215 |
+
|
| 216 |
+
Guanxiong Liu, Tzu-Ming Harry Hsu, Matthew McDermott, Willie Boag, Wei-Hung Weng, Peter Szolovits, and Marzyeh Ghassemi. Clinically accurate chest X-ray report generation. In Machine Learning for Healthcare Conference, 2019.
|
| 217 |
+
|
| 218 |
+
Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, 2019.
|
| 219 |
+
|
| 220 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
|
| 221 |
+
|
| 222 |
+
Christopher D. Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David McClosky. The Stanford CoreNLP natural language processing toolkit. In Association for Computational Linguistics (ACL) System Demonstrations, 2014.
|
| 223 |
+
|
| 224 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 225 |
+
|
| 226 |
+
Maithra Raghu, Chiyuan Zhang, Jon Kleinberg, and Samy Bengio. Transfusion: Understanding transfer learning for medical imaging. In Advances in Neural Information Processing Systems, 2019.
|
| 227 |
+
|
| 228 |
+
Pranav Rajpurkar, Jeremy Irvin, Aarti Bagul, Daisy Ding, Tony Duan, Hershel Mehta, Brandon Yang, Kaylie Zhu, Dillon Laird, Robyn L Ball, et al. MURA: Large dataset for abnormality detection in musculoskeletal radiographs. In 1st Conference on Medical Imaging with Deep Learning (MIDL), 2018a.
|
| 229 |
+
|
| 230 |
+
Pranav Rajpurkar, Jeremy Irvin, Robyn L Ball, Kaylie Zhu, Brandon Yang, Hershel Mehta, Tony Duan, Daisy Ding, Aarti Bagul, Curtis P Langlotz, et al. Deep learning for chest radiograph diagnosis: A retrospective comparison of the CheXNeXt algorithm to practicing radiologists. PLoS Medicine, 15(11):e1002686, 2018b.
|
| 231 |
+
|
| 232 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
|
| 233 |
+
|
| 234 |
+
George Shih, Carol C Wu, Safwan S Halabi, Marc D Kohli, Luciano M Prevedello, Tessa S Cook, Arjun Sharma, Judith K Amorosa, Veronica Arteaga, Maya Galperin-Aizenberg, et al. Augmenting the National Institutes of Health chest radiograph dataset with expert annotations of possible pneumonia. Radiology: Artificial Intelligence, 1(1):e180041, 2019.
|
| 235 |
+
|
| 236 |
+
Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In ICLR Workshop, 2014.
|
| 237 |
+
|
| 238 |
+
Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. VL-BERT: Pretraining of generic visual-linguistic representations. In International Conference on Learning Representations (ICLR), 2020.
|
| 239 |
+
|
| 240 |
+
Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), 2019.
|
| 241 |
+
|
| 242 |
+
Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. CIDEr: Consensus-based image description evaluation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015.
|
| 243 |
+
|
| 244 |
+
Linda Wang and Alexander Wong. COVID-Net: A tailored deep convolutional neural network design for detection of COVID-19 cases from chest X-ray images. arXiv preprint arXiv:2003.09871, 2020.
|
| 245 |
+
|
| 246 |
+
Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, Mohammadhadi Bagheri, and Ronald M Summers. ChestX-ray8: Hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 247 |
+
|
| 248 |
+
Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, and Ronald M Summers. TieNet: Text-image embedding network for common thorax disease classification and reporting in chest X-rays. In Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR), 2018.
|
| 249 |
+
|
| 250 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rmi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. HuggingFace’s Transformers: Stateof-the-art natural language processing. arXiv preprint arXiv:1910.03771, 2019.
|
| 251 |
+
|
| 252 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning (ICML), 2015.
|
| 253 |
+
|
| 254 |
+
# A MODEL IMPLEMENTATION AND PRETRAINING DETAILS
|
| 255 |
+
|
| 256 |
+
Dataset Preprocessing. For the MIMIC-CXR chest radiograph dataset, we use the publicly available JPG version of it.1 For both the MIMIC-CXR chest dataset and the Rhode Island Hospital bone image datasets, we resize the image files to have a size of 256 on the larger side. For the textual radiology report data, we first tokenize all reports with the default English tokenizer in version 4.0.0 of the CoreNLP library (Manning et al., 2014). Next, we keep only the Findings and Impression sections and remove all other sections. We remove all image-text pairings from the dataset where the text section is empty or has less than 3 tokens. This preprocessing procedure gives us about $2 1 7 \mathrm { k }$ total image-text pairs for pretraining our chest image encoder and 48k total pairs for pretraining our bone image encoder.
|
| 257 |
+
|
| 258 |
+
Image and Text Encoders. For the image encoder, we use the standard ResNet50 implementation provided by the torchvision library. For the text encoder, we use the BERT base encoder offered by the Transformers library (Wolf et al., 2019) and initialize it with the ClinicalBERT model (Alsentzer et al., 2019) pretrained on the MIMIC clinical notes. We also experimented with training a specialized BERT encoder on a large collection of radiology notes but found that it made no substantial difference in the pretraining results. At pretraining time we freeze the embeddings and the first 6 layers of this BERT encoder, and only fine-tune the last 6 layers for our contrastive task.
|
| 259 |
+
|
| 260 |
+
Other Hyperparameters. For contrastive learning, we use projection layers with an output dimension $d = 5 1 2$ , a temperature value $\tau = 0 . 1$ , a loss weight $\lambda = 0 . 7 5$ . These hyperparameter settings are obtained by comparing the linear evaluation validation scores on the RSNA image classification task with the pretrained ResNet50 weights. For the image transformation family $\tau$ , we adopt the implementations offered by the torchvision library.2 We apply random cropping with a ratio sampled from [0.6, 1.0]; horizontal flipping with $p = 0 . 5$ ; affine transformation with a degree sampled from $[ - 2 0 , 2 0 ]$ , max horizontal and vertical translation fractions of 0.1, and a scaling factor sampled from [0.95, 1.05]; color jittering with brightness and contrast adjustment ratios sampled from [0.6, 1.4]; and Gaussian blur with $\sigma \in [ 0 . 1 , 3 . 0 ]$ . All images are resized to $2 2 4 \times 2 2 4$ after the transformation $t _ { v }$ is applied. Limited by computational resources, we arrive at these image transformation parameters via preliminary experiments rather than a systematic search.
|
| 261 |
+
|
| 262 |
+
Pretraining Details. At pretraining time, for each dataset, we randomly sample 5k image-text pairs to form a held-out validation set. We we use the Adam optimizer (Kingma & Ba, 2015) with an initial learning rate of 1e-4 and weight decay of 1e-6. We initialize the image encoder with ImageNet pretrained weights at the beginning of pretraining, and use a fixed batch size of 32. We calculate the validation loss every 5000 steps, and if the validation loss does not decrease after 5 straight evaluation runs, we anneal the learning rate by a factor of 0.5. We stop pretraining after 200 evaluation runs, and save the model checkpoint that achieves the lowest validation loss. For efficiency, we employ mixed-precision training, and for reference, the whole pretraining run on the MIMIC-CXR dataset took about 3 days on a single Titan RTX GPU card.
|
| 263 |
+
|
| 264 |
+
# B IMAGE CLASSIFICATION EXPERIMENTS
|
| 265 |
+
|
| 266 |
+
We prepared and used the 4 image classification datasets following the procedures below:
|
| 267 |
+
|
| 268 |
+
1. RSNA Pneumonia Detection (Wang et al., 2017; Shih et al., 2019): we used the original version of this dataset available at its Kaggle page,3 which contains 25184/1500/3000 annotated images in its training/validation/test sets, respectively.
|
| 269 |
+
|
| 270 |
+
2. CheXpert image classification (Irvin et al., 2019): we downloaded the original version of this dataset from its official website.4 Since the original expert-labeled test set of this dataset is hidden and not included as part of the release, we instead followed Raghu et al. (2019) and used the original expert-labeled validation set as our test set, and randomly sampled 5000 images from the original training set for validation purpose. The resulting dataset contains 218414/5000/234 images in each split.
|
| 271 |
+
|
| 272 |
+
3. COVIDx image classification (Wang & Wong, 2020): we prepared this dataset following the scripts provided by its authors.5 We used the version 4 of this dataset, the latest version at the time of this work. We additionally randomly sampled 300 images from the training set for validation, resulting in a dataset with 13598/300/300 images in each split.
|
| 273 |
+
|
| 274 |
+
4. MURA bony abnormality detection (Rajpurkar et al., 2018a): we downloaded the original version of this dataset from its website.6 Similar to the CheXpert dataset, we again used the original validation set as our test set, and randomly sampled $10 \%$ images from the training set for validation, resulting in a dataset with 33078/3730/3197 images in each split. Different from the other 3 datasets, the MURA dataset uses patient-level evaluation, meaning that the prediction results from different images of the same patient needs to be aggregated to produce a final prediction for the patient, which is then scored against the gold patient label. We therefore followed Rajpurkar et al. (2018a) and at test time aggregated result for a patient by averaging the predicted probabilities from multiple images.
|
| 275 |
+
|
| 276 |
+
Classification Model Training Details. For all models that require ImageNet pretrained initialization, we use the pretrained weights from torchvision, which achieves an ImageNet top-5 error rate of $7 . 1 3 \%$ . For all datasets, we first zero-pad the input image to be square, and then resize it to be $2 2 4 \times 2 2 4$ . For training, we use the Adam optimizer with an initial learning rate of 1e-3 for the COVIDx task and 1e-4 for the other three tasks. We additionally apply a weight decay of 1e-6 and a dropout before the last classification layer with $p = 0 . 2$ in all tasks. All classification models are trained with a batch size of 64. In the fine-tuning evaluation setting, we first “warmup” the classification head by freezing the CNN weights and only training the classification head with a learning rate of 1e-3 for 200 steps, after which we unfreeze the CNN weights and fine-tune the entire network together. Validation score is obtained after each epoch of training and we anneal the learning rate by a factor of 0.5 if the validation score is not improved after 3 epochs. The training is stopped after no validation improvement is observed for 10 straight epochs, at which point the model checkpoint with the highest validation score is evaluated on the test set.
|
| 277 |
+
|
| 278 |
+
# C IMAGE-IMAGE RETRIEVAL DATASET COLLECTION
|
| 279 |
+
|
| 280 |
+
We create the CheXpert $8 \times 2 0 0$ Retrieval Dataset with 8 different abnormality categories commonly found in Chest radiograph images, including atelectasis, cardiomegaly, edema, fracture, pleural effusion, pneumonia, pneumothorax and a special no finding category indicating that no obvious abnormality is found in the image. We create the dataset by reusing existing rule-labeled annotations in the CheXpert dataset (Irvin et al., 2019) and additional expert annotations. To create the candidate images for a category label $\ell$ , we go through all images in the CheXpert training set, and keep an image as a candidate image if only its label for $\ell$ is positive and all other categories negative. We only include images with this “exclusive positivity” as candidate images, mainly to avoid confounding results between categories in retrieval evaluation.
|
| 281 |
+
|
| 282 |
+
To create the query images for a category $\ell$ , we again first pre-select 50 exclusively positive images for this category in the CheXpert training set (with all candidate images excluded). Next, we ask a board-certified radiologist to examine each of the 50 images, and exclude images that: 1) might indicate additional abnormalities other than \`, 2) have uncommon color or contrast distortions in the image, or 3) are not well posed during the capture of the image. This procedure is mainly to avoid including query images that have uncommon features and may therefore bias the retrieval evaluation results. At the end, we aggregate the annotation results from the radiologist and keep 10 query images for each abnormality category.
|
| 283 |
+
|
| 284 |
+
# D TEXT-IMAGE RETRIEVAL DATASET COLLECTION
|
| 285 |
+
|
| 286 |
+
For the text-image retrieval dataset, we first reuse all candidate images from the CheXpert $8 \times 2 0 0$ image-image retrieval dataset described above, with 200 images for each of 8 categories. To create the textual queries for each abnormality category, we ask a board-certified radiologist to write at least 5 different sentences that he will use to describe this abnormality in radiology reporting. We additionally set the following requirements: 1) the sentences must describe the category with no ambiguity and must not include other categories; 2) the sentences must be diverse from each other; and 3) the sentences should not include very specific anatomic locations or rare clinical observations. At the end, we aggregate the results and keep 5 textual queries for each abnormality category. For reference, we present example textual queries in Table 4.
|
| 287 |
+
|
| 288 |
+
Table 4: Example textual queries for each of the 8 categories in the text-image retrieval task.
|
| 289 |
+
|
| 290 |
+
<table><tr><td>Image Category</td><td>Example Textual Query</td></tr><tr><td>Atelectasis</td><td>Platelike opacity likely represents atelectasis.</td></tr><tr><td>Cardiomegaly</td><td>The cardiac silhouette is enlarged.</td></tr><tr><td>Edema</td><td>The presence of hazy opacity suggests interstitial pulmonary edema.</td></tr><tr><td>Fracture</td><td>A cortical step off indicates the presence of a fracture.</td></tr><tr><td>Pleural Effusion</td><td>The pleural space is partially filled with fluid.</td></tr><tr><td>Pneumonia</td><td>A pulmonary opacity with ill defined borders likely represents pneumonia.</td></tr><tr><td>Pneumothorax</td><td>A medial pneumothorax is present adjacent to the heart.</td></tr><tr><td>No Finding</td><td>No clinically significant radiographic abnormalities.</td></tr></table>
|
| 291 |
+
|
| 292 |
+
# E EXPERIMENTS ON IMAGE-ONLY CONTRASTIVE LEARNING METHODS
|
| 293 |
+
|
| 294 |
+
We run experiments with two popular image-only contrastive visual representation learning methods: SimCLR (Chen et al., 2020a) and MoCo v2 (Chen et al., 2020b). For a fair comparison, in both experiments we use the exact same set of images from the MIMIC-CXR dataset that we use in the pretraining of our method and the baselines. Our settings for each method are:
|
| 295 |
+
|
| 296 |
+
• SimCLR: We use the open PyTorch implementation available at https://github.com/ sthalles/SimCLR. For image encoder we use ResNet50. We use cosine similarity in the loss function, set the temperature value to 0.1 and set the output dimension to 128. We use the default image augmentation functions in the paper except for the color jittering transformation where we set the saturation and hue adjustment to 0 due to the monochrome nature of our medical images. For training, we use the Adam optimizer with an initial learning rate of 3e-4 and weight decay of 1e-4. We set batch size to 128 and run training on a single GPU card for 100 epochs, as we find that increasing the batch size or number of epochs does not lead to improved results. We use the default settings for all other parameters.
|
| 297 |
+
|
| 298 |
+
• MoCo v2: We use the authors’ PyTorch implementation available at https://github.com/ facebookresearch/moco. For image encoder we use ResNet50. We follow the default MoCo v2 setting and use a temperature value of 0.07 and an output dimension of 128. Similarly, we adopt the default image augmentation functions except for the color jittering transformation where we set the saturation and hue adjustment to 0. For training, we use the SGD optimizer with a learning rate of 0.0075 and weight decay of 1e-4. We use a batch size of 64 and a queue size of 4096, and run parallel training on two GPU cards for 100 epochs, as we find that further increasing the batch size or number of epochs does not lead to improved results. During training, we anneal the learning rate by a factor of 0.1 at the 60th and 80th epochs.
|
| 299 |
+
|
| 300 |
+
# F HYPERPARAMETER ANALYSIS
|
| 301 |
+
|
| 302 |
+
Similar to previous work on unsupervised image representation learning (Chen et al., 2020a; He et al., 2020), we first find that the effectiveness of $\mathrm { C o n V I R T }$ pretraining is most sensitive to the temperature value $\tau$ . As shown in Table 5, using a temperature much lower than the ideal value $( \tau = 0 . 0 1 )$ hurts the retrieval results, and a temperature much larger $\tau = 1 \mathrm { \Delta }$ ) notably hurts the performance on all tasks. Unlike previous work, we find that using a smaller or larger batch size hurts the retrieval performance, but neither setup brings substantial impact to the classification results. Lastly, we find that replacing the non-linear projection heads in $g _ { v }$ and $g _ { u }$ with linear layers hurts the retrieval results moderately, suggesting worse representations. However, this is again not reflected notably in the RSNA classification results.
|
| 303 |
+
|
| 304 |
+
Table 5: Evaluation results with different hyperparameters, for the RSNA $1 \%$ data linear evaluation, image-image retrieval and text-image retrieval tasks. bs represents batch size and linear proj. represents using linear projection layers for $g _ { v }$ and $g _ { u }$ . Our default model uses $\tau = 0 . 1$ , ${ \mathfrak { b s } } = 3 2$ and non-linear projections.
|
| 305 |
+
|
| 306 |
+
<table><tr><td>Settings</td><td>RSNA Linear (1%, AUC)</td><td>Image-Image (Prec@10)</td><td>Text-Image (Prec@10)</td></tr><tr><td>ConVIRT (default)</td><td>90.7</td><td>42.9</td><td>57.5</td></tr><tr><td>T = 0.01</td><td>90.7</td><td>40.5</td><td>21.0</td></tr><tr><td>T=1</td><td>89.6</td><td>25.0</td><td>31.0</td></tr><tr><td>bs = 16</td><td>90.3</td><td>40.0</td><td>55.8</td></tr><tr><td>bs =128</td><td>90.3</td><td>39.3</td><td>50.3</td></tr><tr><td> linear proj.</td><td>90.6</td><td>40.8</td><td>55.8</td></tr></table>
|
parse/train/T4gXBOXoIUr/T4gXBOXoIUr_content_list.json
ADDED
|
@@ -0,0 +1,1731 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CONTRASTIVE LEARNING OF MEDICAL VISUAL REPRESENTATIONS FROM PAIRED IMAGES AND TEXT ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
813,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Learning visual representations of medical images is core to medical image understanding but its progress has been held back by the small size of hand-labeled datasets. Existing work commonly relies on transferring weights from ImageNet pretraining, which is suboptimal due to drastically different image characteristics, or rule-based label extraction from the textual report data paired with medical images, which is inaccurate and hard to generalize. We propose an alternative unsupervised strategy to learn medical visual representations directly from the naturally occurring pairing of images and textual data. Our method of pretraining medical image encoders with the paired text data via a bidirectional contrastive objective between the two modalities is domain-agnostic, and requires no additional expert input. We test our method by transferring our pretrained weights to 4 medical image classification tasks and 2 zero-shot retrieval tasks, and show that our method leads to image representations that considerably outperform strong baselines in most settings. Notably, in all 4 classification tasks, our method requires only $10 \\%$ as much labeled training data as an ImageNet initialized counterpart to achieve better or comparable performance, demonstrating superior data efficiency. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
489
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
516,
|
| 55 |
+
334,
|
| 56 |
+
532
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Medical image understanding has the potential to transform healthcare and has seen rapid progress with the use of deep neural architectures (Gulshan et al., 2016; Esteva et al., 2017; De Fauw et al., 2018; Rajpurkar et al., 2018b). Yet, with expert-level performance achieved only in some specialties and under some circumstances, medical image understanding remains a difficult task for the majority of specialties, mainly due to its challenging nature and the extreme scarcity of annotated data. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
547,
|
| 66 |
+
547,
|
| 67 |
+
672
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Existing work has followed two general approaches to obtain annotations for medical imaging tasks. The first approach has been using high-quality annotations created by medical experts (Abramoff et al., 2016; Gulshan et al., \\` 2016; Shih et al., 2019; Wang & Wong, 2020). However, the high cost of this approach has resulted in datasets that are mostly orders of magnitude smaller than natural image datasets such as ImageNet (Russakovsky et al., 2015). To remedy this, existing work has relied heavily on transferring model weights from ImageNet pretraining (Wang et al., 2017; Esteva et al., 2017; Irvin et al., 2019). This approach is suboptimal because, as shown in Figure 1, medical image understanding often requires representations of very fine-grained visual features that are drastically different from those required for identifying objects in natural images. As a result, Raghu et al. (2019) found that ImageNet pretraining often provides little to no benefit compared to simple random initialization. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
681,
|
| 77 |
+
549,
|
| 78 |
+
805
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/fd93c765bd58da6d8fed1129f74b53255e91c9f25b9d77c8d70ea6b4d0e69c57.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Two example chest radiograph images with different abnormality categories, along with sentences from their paired textual report and example views indicative of their characteristics. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
565,
|
| 91 |
+
554,
|
| 92 |
+
820,
|
| 93 |
+
702
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "",
|
| 100 |
+
"bbox": [
|
| 101 |
+
176,
|
| 102 |
+
805,
|
| 103 |
+
825,
|
| 104 |
+
875
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "A second popular approach is to use expert-crafted rules to extract labels from the textual reports accompanying the medical images. This approach has led to datasets of larger scale, since the text data paired with medical images are often produced naturally by medical experts in their routine workflow and abundant in a typical hospital’s IT systems. Nevertheless, this rule-based label extraction approach has two limitations: 1) the rules are often inaccurate and limited to a few major categories (Wang et al., 2017), leading to very inefficient use of the textual report data; 2) these rules are often domain-specific and sensitive to the style of the text, making cross-domain and cross-institution generalization difficult (Irvin et al., 2019). ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
176,
|
| 113 |
+
882,
|
| 114 |
+
823,
|
| 115 |
+
924
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
103,
|
| 125 |
+
823,
|
| 126 |
+
172
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "In efforts to make more efficient use of unlabeled image data, several recent studies have shown promising results from contrastive representation learning from natural images (Chen et al., 2020a; He et al., 2020; Grill et al., 2020). However, as we will show, applying these image view-based contrastive methods to medical images provides only marginal benefits compared to ImageNet pretraining, a result mostly due to the high inter-class similarity of the medical images as in Figure 1. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
180,
|
| 136 |
+
825,
|
| 137 |
+
251
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "In this work, we aim to improve visual representations of medical images by combining the benefits of both learning from abundant textual data and unsupervised statistical approaches. We present Contrastive VIsual Representation Learning from Text (ConVIRT), a framework for learning visual representations by exploiting the naturally occurring pairing of images and textual data. ConVIRT improves visual representations by maximizing the agreement between true image-text pairs versus random pairs via a bidirectional contrastive objective between the image and text modalities. We apply ConVIRT to the pretraining of medical image encoders, and show that it leads to higherquality in-domain image representations that capture the subtlety of visual features required for medical image understanding tasks. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
257,
|
| 147 |
+
825,
|
| 148 |
+
382
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Compared to existing methods, ConVIRT has the advantages of utilizing the paired text data in a way agnostic to the medical specialty and requiring no additional expert input. This allows us to evaluate ConVIRT by transferring our pretrained weights to 4 different medical image classification tasks covering 2 different specialties. We find that the resulting models outperform all baseline initialization approaches, including the standard ImageNet pretraining and several strong baselines that also utilize the paired text data. Most notably, in all 4 tasks, ConVIRT requires only $10 \\%$ as much labeled training data as an ImageNet initialized counterpart to achieve better or comparable performance. We further evaluate ConVIRT on two new zero-shot retrieval tasks, an image-image and a text-image retrieval task, and also find it superior to all baselines. To facilitate future research, we will make our code and the collected retrieval datasets available. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
388,
|
| 158 |
+
825,
|
| 159 |
+
527
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 METHOD ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
547,
|
| 170 |
+
282,
|
| 171 |
+
564
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 TASK DEFINITION ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
578,
|
| 182 |
+
339,
|
| 183 |
+
593
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "We start by giving a formal description of our representation learning setting. We assume paired input $\\left( \\mathbf { x } _ { v } , \\mathbf { x } _ { u } \\right)$ where $\\mathbf { x } _ { v }$ represents one or a group of images, and $\\mathbf { x } _ { u }$ represents a text sequence which describes the imaging information in $\\mathbf { x } _ { v }$ . Our goal is to learn a parameterized image encoder function $f _ { v }$ , which maps an image to a fixed-dimensional vector. We are then interested in transferring the learned image encoder function $f _ { v }$ into downstream tasks, such as classification or image retrieval. In this work, we model the encoder function $f _ { v }$ as a convolutional neural network (CNN). ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
603,
|
| 193 |
+
825,
|
| 194 |
+
688
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "We note that paired image-text data $\\left( \\mathbf { x } _ { v } , \\mathbf { x } _ { u } \\right)$ naturally exists for many medical domains. Medical experts such as radiologists produce textual descriptions of images as part of their routine workflow, some of which are also made publicly available (Demner-Fushman et al., 2016; Johnson et al., 2019). ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
694,
|
| 204 |
+
825,
|
| 205 |
+
737
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "2.2 CONTRASTIVE VISUAL REPRESENTATION LEARNING FROM TEXT ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
752,
|
| 216 |
+
668,
|
| 217 |
+
767
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "An overview of our method, ConVIRT, for learning $f _ { v }$ is shown in Figure 2. At a high level, our method converts each input image $\\mathbf { x } _ { v }$ and text $\\mathbf { x } _ { u }$ into $d$ -dimensional vector representations $\\mathbf { v }$ and u respectively, following a similar processing pipeline. For each input image $\\mathbf { x } _ { v }$ , our method starts by drawing a random view $\\tilde { \\mathbf { x } } _ { v }$ from $\\mathbf { x } _ { v }$ with a sampled transformation function $t _ { v } \\sim \\tau$ , where $\\tau$ represents a family of stochastic image transformation functions described later. Next, the encoder function $f _ { v }$ transforms $\\tilde { \\mathbf { x } } _ { v }$ into a fixed-dimensional vector $\\mathbf { h } _ { v }$ , followed by a non-linear projection function $g _ { v }$ which further transforms $\\mathbf { h } _ { v }$ into vector $\\mathbf { v }$ : ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
777,
|
| 227 |
+
825,
|
| 228 |
+
876
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/7536bae74ac706832d4847945e961f3338f9971f5caa53917b8e7b8ac1ac44f1.jpg",
|
| 235 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { v } = g _ { v } ( f _ { v } ( \\tilde { \\mathbf { x } } _ { v } ) ) , } \\end{array}\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
441,
|
| 239 |
+
877,
|
| 240 |
+
555,
|
| 241 |
+
895
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "where $\\mathbf { v } \\in \\mathbb { R } ^ { d }$ . Similarly, for each text input $\\mathbf { x } _ { u }$ , we obtain a span $\\tilde { \\mathbf { x } } _ { u }$ from it following a sampling function $t _ { u }$ , and then a text representation $\\mathbf { u }$ with: $\\mathbf { u } = g _ { u } ( f _ { u } ( \\tilde { \\mathbf { x } } _ { u } ) )$ , where $f _ { u }$ is a text encoder, $g _ { u }$ a projection, and $\\mathbf { u } \\in \\mathbb { R } ^ { d }$ . The projection functions $g _ { v }$ and $g _ { u }$ project representations for both modalities from their encoder space to the same $d$ -dimensional space for contrastive learning. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
895,
|
| 251 |
+
828,
|
| 252 |
+
924
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "image",
|
| 258 |
+
"img_path": "images/597326df4567d7ca02062d452b178ffd35be6dedc8e5729eb7f9fa9428df410b.jpg",
|
| 259 |
+
"image_caption": [
|
| 260 |
+
"Figure 2: Overview of our ConVIRT framework. The blue and green shades represent the image and text encoding pipelines, respectively. Our method relies on maximizing the agreement between the true image-text representation pairs with bidirectional losses $\\ell ^ { ( v u ) }$ and $\\ell ^ { ( u v ) }$ . "
|
| 261 |
+
],
|
| 262 |
+
"image_footnote": [],
|
| 263 |
+
"bbox": [
|
| 264 |
+
209,
|
| 265 |
+
89,
|
| 266 |
+
792,
|
| 267 |
+
238
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "",
|
| 274 |
+
"bbox": [
|
| 275 |
+
173,
|
| 276 |
+
315,
|
| 277 |
+
823,
|
| 278 |
+
345
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "At training time, we sample a minibatch of $N$ input pairs $( \\mathbf { x } _ { v } , \\mathbf { x } _ { u } )$ from training data, and calculate their representation pairs $( \\mathbf { v } , \\mathbf { u } )$ . We use $( \\mathbf { v } _ { i } , \\mathbf { u } _ { i } )$ to denote the $i$ -th pair. The training objective of ConVIRT involves two loss functions. The first loss function is an image-to-text contrastive loss for the $i$ -th pair: ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
173,
|
| 287 |
+
352,
|
| 288 |
+
825,
|
| 289 |
+
407
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "equation",
|
| 295 |
+
"img_path": "images/9a8ae5d7a14c6b5afbca6c3ebd323f08d7fd41651d13dbf9b962307dc7ff6e21.jpg",
|
| 296 |
+
"text": "$$\n\\ell _ { i } ^ { ( v u ) } = - \\log \\frac { \\exp ( \\langle { \\bf v } _ { i } , { \\bf u } _ { i } \\rangle / \\tau ) } { \\sum _ { k = 1 } ^ { N } \\exp ( \\langle { \\bf v } _ { i } , { \\bf u } _ { k } \\rangle / \\tau ) } ,\n$$",
|
| 297 |
+
"text_format": "latex",
|
| 298 |
+
"bbox": [
|
| 299 |
+
362,
|
| 300 |
+
407,
|
| 301 |
+
633,
|
| 302 |
+
445
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "where $\\left. \\mathbf { v } _ { i } , \\mathbf { u } _ { i } \\right.$ represents the cosine similarity, i.e., $\\langle \\mathbf { v } , \\mathbf { u } \\rangle = \\mathbf { v } ^ { \\top } \\mathbf { u } / \\| \\mathbf { v } \\| \\| \\mathbf { u } \\|$ ; and $\\tau \\in \\mathbb { R } ^ { + }$ represents a temperature parameter. This loss takes the same form as the InfoNCE loss (Oord et al., 2018), and minimizing it leads to encoders that maximally preserve the mutual information between the true pairs under the representation functions. Intuitively, it is the log loss of an $N$ -way classifier that tries to predict $( \\mathbf { v } _ { i } , \\mathbf { u } _ { i } )$ as the true pair. Note that unlike previous work which use a contrastive loss between inputs of the same modality (Chen et al., 2020a; He et al., 2020), our image-to-text contrastive loss is asymmetric for each input modality. We therefore define a similar text-to-image contrastive loss as: ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
449,
|
| 312 |
+
825,
|
| 313 |
+
561
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "equation",
|
| 319 |
+
"img_path": "images/d9e35c768a4ced1d91134a88f099afe686c9764ce2613fdd51c623ca50785248.jpg",
|
| 320 |
+
"text": "$$\n\\ell _ { i } ^ { ( u v ) } = - \\log \\frac { \\exp ( \\langle { \\bf u } _ { i } , { \\bf v } _ { i } \\rangle / \\tau ) } { \\sum _ { k = 1 } ^ { N } \\exp ( \\langle { \\bf u } _ { i } , { \\bf v } _ { k } \\rangle / \\tau ) } .\n$$",
|
| 321 |
+
"text_format": "latex",
|
| 322 |
+
"bbox": [
|
| 323 |
+
362,
|
| 324 |
+
559,
|
| 325 |
+
635,
|
| 326 |
+
597
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "Our final training loss is then computed as a weighted combination of the two losses averaged over all positive image-text pairs in each minibatch: ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
174,
|
| 335 |
+
601,
|
| 336 |
+
823,
|
| 337 |
+
628
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "equation",
|
| 343 |
+
"img_path": "images/c284069bece9bc85041daf2ff4d5a3f7c3843b91ec97c698c871e8f91d59bcb6.jpg",
|
| 344 |
+
"text": "$$\n\\mathcal { L } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\Big ( \\lambda \\ell _ { i } ^ { ( v u ) } + ( 1 - \\lambda ) \\ell _ { i } ^ { ( u v ) } \\Big ) ,\n$$",
|
| 345 |
+
"text_format": "latex",
|
| 346 |
+
"bbox": [
|
| 347 |
+
359,
|
| 348 |
+
637,
|
| 349 |
+
637,
|
| 350 |
+
681
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "where $\\lambda \\in [ 0 , 1 ]$ is a scalar weight. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
174,
|
| 359 |
+
688,
|
| 360 |
+
401,
|
| 361 |
+
704
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "2.3 REALIZATION ",
|
| 368 |
+
"text_level": 1,
|
| 369 |
+
"bbox": [
|
| 370 |
+
174,
|
| 371 |
+
722,
|
| 372 |
+
312,
|
| 373 |
+
736
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "We note that our ConVIRT framework defined above is agnostic to the specific choice of image and text encoders, transformations and projection functions. In this work, following previous work (Chen et al., 2020a), we model $g _ { v }$ and $g _ { u }$ as separate learnable single-hidden-layer neural networks, i.e., $g _ { v } ( \\cdot ) = \\mathbf { W } ^ { ( 2 ) } \\sigma ( \\mathbf { W } ^ { ( 1 ) } ( \\cdot ) )$ where $\\sigma$ is a ReLU non-linearity, and similarly for $g _ { u }$ . ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
173,
|
| 382 |
+
747,
|
| 383 |
+
825,
|
| 384 |
+
806
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 2
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "For the image encoder $f _ { v }$ , we use the ResNet50 architecture (He et al., 2016) for all experiments, as it is the architecture of choice for much medical imaging work and is shown to achieve competitive performance. For the text encoder $f _ { u }$ , we use a BERT encoder (Devlin et al., 2019) followed by a max-pooling layer over all output vectors. We initialize our BERT encoder with the ClinicalBERT model (Alsentzer et al., 2019) pretrained on the MIMIC clinical notes, which achieved state-of-theart performance on a suite of clinical NLP tasks. At training time we allow the encoder to adapt to our contrastive task by freezing the embeddings and the first 6 layers of this BERT encoder and fine-tuning the last 6 layers. ",
|
| 391 |
+
"bbox": [
|
| 392 |
+
173,
|
| 393 |
+
811,
|
| 394 |
+
825,
|
| 395 |
+
924
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 2
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "For the image transformation family $\\tau$ where $t _ { v }$ is sampled from, we use sequential applications of five random transformations: cropping, horizontal flipping, affine transformation, color jittering and Gaussian blur. Different from recent work on contrastive visual representation learning (Chen et al., 2020a;b), we only apply brightness and contrast adjustments in color jittering, due to the monochrome nature of the medical images. For the text transformation function $t _ { u }$ , we apply a simple uniform sampling of a sentence from the input document $\\mathbf { x } _ { u }$ (i.e., $\\tilde { \\mathbf { x } } _ { u }$ is a randomly sampled sentence from $\\mathbf { x } _ { u }$ for each minibatch). We did not use a more aggressive transformation mainly because sampling at the sentence level can preserve the semantic meaning of the sampled spans. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
103,
|
| 405 |
+
825,
|
| 406 |
+
215
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "3 EXPERIMENTS ",
|
| 413 |
+
"text_level": 1,
|
| 414 |
+
"bbox": [
|
| 415 |
+
176,
|
| 416 |
+
237,
|
| 417 |
+
326,
|
| 418 |
+
253
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "3.1 DATA FOR PRETRAINING ",
|
| 425 |
+
"text_level": 1,
|
| 426 |
+
"bbox": [
|
| 427 |
+
176,
|
| 428 |
+
270,
|
| 429 |
+
387,
|
| 430 |
+
285
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "We test our ConVIRT framework by pretraining two separate image encoders covering different medical specialties using two separate paired image-text datasets: ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
174,
|
| 439 |
+
297,
|
| 440 |
+
823,
|
| 441 |
+
325
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 3
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "• Chest image encoder: We use version 2 of the public MIMIC-CXR database (Johnson et al., 2019), which is a collection of chest radiograph images paired with their textual reports, and since its release has become a standard resource for studying multi-modal modeling of medical images. After preprocessing, this dataset contains a total of about $2 1 7 \\mathrm { k }$ image-text pairs, with each pair containing an average of 1.7 images and 6.0 sentences. • Bony image encoder: We obtain a collection of musculoskeletal image-text pairs from the Rhode Island Hospital system. Following chest images, musculoskeletal images constitute the second most common type of radiograph images in a typical hospital. This dataset contains a total of $4 8 \\mathrm { k }$ image-text pairs, with each pair containing an average of 2.5 images and 8.0 sentences. ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
173,
|
| 450 |
+
338,
|
| 451 |
+
825,
|
| 452 |
+
470
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 3
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "We include model implementation and pretraining details in Appendix A. ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
176,
|
| 461 |
+
483,
|
| 462 |
+
653,
|
| 463 |
+
497
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "3.2 EVALUATION TASKS & DATA ",
|
| 470 |
+
"text_level": 1,
|
| 471 |
+
"bbox": [
|
| 472 |
+
176,
|
| 473 |
+
517,
|
| 474 |
+
415,
|
| 475 |
+
531
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 3
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "We evaluate our pretrained image encoders on three downstream medical imaging tasks: image classification, zero-shot image-image retrieval and zero-shot text-image retrieval. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
544,
|
| 485 |
+
823,
|
| 486 |
+
571
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 3
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "Image Classification. We evaluate our pretrained image representations on four representative medical image classification tasks: 1) RSNA Pneumonia Detection (Wang et al., 2017; Shih et al., 2019), which involves binary classification of a chest radiograph image into either a pneumonia or a normal category; 2) CheXpert image classification (Irvin et al., 2019), which involves multi-label binary classification of a chest image for five individual labels, i.e., atelectasis, cardiomegaly, consolidation, edema and pleural effusion; 3) COVIDx image classification (Wang & Wong, 2020), which involves multi-class classification of a chest image into one of COVID19, non-COVID pneumonia or normal categories; and 4) MURA bony abnormality detection (Rajpurkar et al., 2018a), which involves binary classification of a musculoskeletal image into abnormal or normal. We report test accuracy for COVIDx given its balanced test set, and report the standard area under the receiver operating characteristic curve (AUC) metric for other tasks following previous work. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
589,
|
| 496 |
+
825,
|
| 497 |
+
742
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "Following previous work (Henaff et al., 2020; Chen et al., 2020a; He et al., 2020), for all tasks, we ´ evaluate each pretrained image encoder under two individual settings: a linear classification setting, where the pretrained CNN weights are frozen and only a linear classification head is trained for the task; and a fine-tuning setting, where both the CNN weights and the linear head are fine-tuned. The two settings complement each other for evaluation purposes: while the linear setting directly evaluates the quality of the extracted image features with the pretrained CNN, the fine-tuning setting more closely resembles how the pretrained CNN weights are used in practical applications. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
174,
|
| 506 |
+
750,
|
| 507 |
+
825,
|
| 508 |
+
847
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 3
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "To further compare the data efficiency of different pretraining methods, for each setting we evaluate the image encoders with $1 \\%$ , $10 \\%$ and all training data, respectively (except for the COVIDx dataset where we omit the $1 \\%$ setting due to the scarcity of data for some categories). To control the variance in results, for all settings and models, we report average results aggregated over 5 independent training runs. We include further dataset processing and model training details in Appendix B. ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
174,
|
| 517 |
+
854,
|
| 518 |
+
823,
|
| 519 |
+
924
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "Zero-shot Image-image Retrieval. This evaluation is similar to the conventional content-based image retrieval setting in which we search for images of a particular category using a representative query image. For evaluation, a group of query images and a larger collection of candidate images, each with a categorical label, are given to a pretrained CNN encoder. We encode each query and candidate image with this encoder, and then for each query, rank all candidates by their cosine similarities to the query in descending order. Since a widely-used annotated benchmark for this setting is not available, we create our own dataset by re-using existing annotations in the CheXpert dataset (Irvin et al., 2019) and additional expert annotations from a board-certified radiologist. The resulting dataset covers 8 different chest abnormality categories, each with 10 expert-annotated query and 200 candidate images. We include the detailed collection and annotation procedure in Appendix C, and refer to this dataset as CheXpert $\\mathbf { 8 \\times 2 0 0 }$ Retrieval Dataset. We focus our evaluation on retrieval precision, and evaluate our models with Precision $@ k$ metrics where $k = 5 , 1 0 , 1 0 0$ . ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
174,
|
| 528 |
+
103,
|
| 529 |
+
825,
|
| 530 |
+
270
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 4
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "Zero-shot Text-image Retrieval. This setting is similar to the image-image retrieval setting, but instead of using query images, we retrieve images of a particular category with textual queries. For this purpose, we ask a radiologist to write 5 diverse and representative textual descriptions for each of the 8 abnormality categories for the same CheXpert $8 \\mathrm { x } 2 0 0$ candidate images (see Appendix D for details). At test time, for each query we encode its text with the learned text encoder $f _ { u }$ and then retrieve from candidate images in a similar way. This evaluation not only evaluates the quality of the learned image representations, but also the alignment between the text representations and the image representations. We again use Precision $@ k$ metrics where $k = 5 , 1 0 , 1 0 0$ . ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
174,
|
| 539 |
+
286,
|
| 540 |
+
825,
|
| 541 |
+
398
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 4
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "3.3 BASELINE METHODS",
|
| 548 |
+
"text_level": 1,
|
| 549 |
+
"bbox": [
|
| 550 |
+
176,
|
| 551 |
+
416,
|
| 552 |
+
361,
|
| 553 |
+
431
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "We compare ConVIRT against the following standard or competitive initialization methods: ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
174,
|
| 562 |
+
443,
|
| 563 |
+
774,
|
| 564 |
+
458
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 4
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "• Random Init.: For all tasks we initialize the ResNet50 with its default random initialization. • ImageNet Init.: We use CNN weights pretrained on ImageNet (Russakovsky et al., 2015), which remains a dominant initialization approach for medical imaging work (Raghu et al., 2019). Caption-LSTM: We initialize the CNN weights with ImageNet, and then pretrain it with an image captioning task using the standard CNN-LSTM with attention architecture (Xu et al., 2015). For the captioning task, we train the model to decode the paired textual report from the encoded image representations. Compared to the random or ImageNet initializations, this is an “in-domain” initialization baseline which uses the paired text data for representation learning. Caption-Transformer: In this initialization we replace the CNN-LSTM model in Caption-LSTM with a CNN-Transformer-based captioning model in Cornia et al. (2020), which recently achieves state-of-the-art results on the COCO image captioning benchmark (Lin et al., 2014). Contrastive-Binary: This baseline differs from our method by contrasting the paired image and text representations with a binary classification head, as is widely done in visual-linguistic pretraining work (Tan & Bansal, 2019; Su et al., 2020). For each input pair, we first project encoder outputs $\\mathbf { h } _ { v }$ and $\\mathbf { h } _ { u }$ into the same dimension with linear layers, concatenate them, and use a MLP network to predict a binary probability of whether the input is a real or a “fake” pair, which we train with a binary cross-entropy loss. During training, for each $( \\mathbf { x } _ { v } , \\mathbf { x } _ { u } )$ pair in the training set, we construct a “fake” pair by replacing $\\mathbf { x } _ { u }$ with a randomly sampled one from the dataset. We expect that the binary classification task requires the encoder to learn reasonable representations of the input images, and therefore is a stronger in-domain initialization baseline. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
173,
|
| 573 |
+
468,
|
| 574 |
+
825,
|
| 575 |
+
761
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 4
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "For fair comparison, for all baselines that require paired image-text data, we use the same datasets as in our contrastive pretraining. For the captioning-based methods, we always use the model checkpoints that achieve the best CIDEr score (Vedantam et al., 2015) on a held-out validation set. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
772,
|
| 585 |
+
825,
|
| 586 |
+
814
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 4
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "4 RESULTS ",
|
| 593 |
+
"text_level": 1,
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
837,
|
| 597 |
+
281,
|
| 598 |
+
852
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4.1 CLASSIFICATION TASKS ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
868,
|
| 609 |
+
382,
|
| 610 |
+
883
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "Linear Classification. We present all linear classification results for the medical imaging tasks in Table 1a. We find that compared to random initialization, ImageNet initialization provides markedly better representations, despite pretrained on a very different domain of images; in-domain image initialization methods that use paired image-text data further improve over ImageNet initialization in almost all settings. Among the in-domain initialization methods, our proposed ConVIRT pretraining achieves the best overall results in all settings. Notably, we find on three out of the four tasks, with only $1 \\%$ training data ConVIRT is able to achieve classification results better than the default ImageNet initialization with $100 \\%$ training data, highlighting the high quality of the learned representations from ConVIRT. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
173,
|
| 619 |
+
895,
|
| 620 |
+
823,
|
| 621 |
+
924
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "table",
|
| 627 |
+
"img_path": "images/6a58d6e56065d9455dc9a30c32bb8b5fdcb3ac453b9a04fe13644f1ad3d8f040.jpg",
|
| 628 |
+
"table_caption": [
|
| 629 |
+
"Table 1: Results for the medical image classification tasks: (a) linear classification; (b) fine-tuning setting. All results are averaged over 5 independent models. Best results for each setting are in boldface. COVIDx $1 \\%$ setting is omitted due to the scarcity of labels in COVIDx. "
|
| 630 |
+
],
|
| 631 |
+
"table_footnote": [],
|
| 632 |
+
"table_body": "<table><tr><td colspan=\"10\">(a)</td></tr><tr><td></td><td colspan=\"3\">RSNA (AUC)</td><td colspan=\"3\">CheXpert (AUC)</td><td colspan=\"2\">COVIDx (Accu.)</td><td colspan=\"3\">MURA (AUC)</td></tr><tr><td>Method</td><td>1%</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td></tr><tr><td colspan=\"10\">General initialization methods</td><td></td><td></td></tr><tr><td>Random Init.</td><td>55.0</td><td>67.3</td><td>72.3</td><td>58.2</td><td>63.7</td><td>66.2</td><td>69.2</td><td>73.5</td><td>50.9</td><td>56.8</td><td>62.0</td></tr><tr><td>ImageNet Init.</td><td>82.8</td><td>85.4</td><td>86.9</td><td>75.7</td><td>79.7</td><td>81.0</td><td>83.7</td><td>88.6</td><td>63.8</td><td>74.1</td><td>79.0</td></tr><tr><td colspan=\"10\">In-domain initialization methods</td><td></td></tr><tr><td>Caption-Transformer</td><td>84.8</td><td>87.5</td><td>89.5</td><td>77.2</td><td>82.6</td><td>83.9</td><td>80.0</td><td>89.0</td><td>66.5</td><td>76.3</td><td>81.8</td></tr><tr><td>Caption-LSTM</td><td>89.8</td><td>90.8</td><td>91.3</td><td>85.2</td><td>85.3</td><td>86.2</td><td>84.5</td><td>91.7</td><td>75.2</td><td>81.5</td><td>84.1</td></tr><tr><td>Contrastive-Binary</td><td>88.9</td><td>90.5</td><td>90.8</td><td>84.5</td><td>85.6</td><td>85.8</td><td>80.5</td><td>90.8</td><td>76.8</td><td>81.7</td><td>85.3</td></tr><tr><td>ConVIRT (Ours)</td><td>90.7</td><td>91.7</td><td>92.1</td><td>85.9</td><td>86.8</td><td>87.3</td><td>85.9</td><td>91.7</td><td>81.2</td><td>85.1</td><td>87.6</td></tr><tr><td colspan=\"10\"></td></tr><tr><td></td><td>RSNA (AUC)</td><td></td><td></td><td></td><td>(b) CheXpert (AUC)</td><td></td><td></td><td>COVIDx (Accu.)</td><td></td><td>MURA (AUC)</td><td></td></tr><tr><td colspan=\"10\">Method</td></tr><tr><td>General initialization methods</td><td>1%</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td><td>10%</td><td>all</td><td>1%</td><td>10%</td><td>all</td></tr><tr><td>Random Init.</td><td>71.9</td><td>82.2</td><td>88.5</td><td>70.4</td><td>81.1</td><td>85.8</td><td>75.4</td><td>87.7</td><td>56.8</td><td>61.6</td><td>79.1</td></tr><tr><td colspan=\"10\">ImageNet Init.</td></tr><tr><td></td><td>83.1</td><td>87.3</td><td>90.8</td><td>80.1</td><td>84.8</td><td>87.6</td><td>84.4</td><td>90.3</td><td>72.1</td><td>81.8</td><td>87.0</td></tr><tr><td colspan=\"10\">In-domain initialization methods</td></tr><tr><td>Caption-Transformer</td><td>86.3</td><td>89.2</td><td>92.1</td><td>81.5</td><td>86.4</td><td>88.2</td><td>88.3</td><td>92.3</td><td>75.2</td><td>83.2</td><td>87.6</td></tr><tr><td>Caption-LSTM</td><td>87.2</td><td>88.0</td><td>91.0</td><td>83.5</td><td>85.8</td><td>87.8</td><td>83.8</td><td>90.8</td><td>78.7</td><td>83.3</td><td>87.8</td></tr><tr><td>Contrastive-Binary</td><td>87.7</td><td>89.9</td><td>91.2</td><td>86.2</td><td>86.1</td><td>87.7</td><td>89.5</td><td>90.5</td><td>80.6</td><td>84.0</td><td>88.4</td></tr><tr><td>ConVIRT (Ours)</td><td>88.8</td><td>91.5</td><td>92.7</td><td>87.0</td><td>88.1</td><td>88.1</td><td>90.3</td><td>92.4</td><td>81.3</td><td>86.5</td><td>89.0</td></tr></table>",
|
| 633 |
+
"bbox": [
|
| 634 |
+
176,
|
| 635 |
+
136,
|
| 636 |
+
821,
|
| 637 |
+
467
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "",
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
493,
|
| 647 |
+
825,
|
| 648 |
+
590
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 5
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Fine-tuning. We show the fine-tuning evaluation results in Table 1b. Similar to the linear setting, we find that: 1) ImageNet initialization is again better than random initialization with smaller margins; 2) all in-domain initialization methods are better than the popular ImageNet initialization in most settings; and 3) our proposed ConVIRT pretraining again achieves the best overall results in 10 out of the 11 settings, with the exception of the CheXpert dataset with all training data used, where the result of ConVIRT is similar to that of the Caption-Transformer result. Most notably, on all datasets, with only $10 \\%$ labeled training data ConVIRT achieves classification results that are better or close to the ImageNet initialization with $100 \\%$ training data results. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
607,
|
| 658 |
+
825,
|
| 659 |
+
719
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 5
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "We also notice that our conclusion of using ImageNet versus random initialization is different from Raghu et al. (2019): while they showed comparable results from the two strategies, we find that using ImageNet initialization is still superior than random initialization in most results, justifying its popularity. Upon closer examination, we conjecture that this is likely due to under-optimization of their models: while our ResNet50 with random initialization achieves an average AUC of 85.8 on the CheXpert dataset, their ResNet50 model only achieved 83.5 AUC on the same evaluation set. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
726,
|
| 669 |
+
825,
|
| 670 |
+
809
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "4.2 RETRIEVAL TASKS ",
|
| 677 |
+
"text_level": 1,
|
| 678 |
+
"bbox": [
|
| 679 |
+
176,
|
| 680 |
+
828,
|
| 681 |
+
344,
|
| 682 |
+
842
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "We present the zero-shot image-image and text-image retrieval results in Table 2. For the imageimage retrieval setting, we present additional results from fine-tuning our pretrained model on all CheXpert training data, and use them as “upper bounds” of the results obtained from the use of supervised labels. We find that: 1) using ImageNet pretrained CNN weights in a zero-shot image retrieval setting is only better than random guess by small margins; 2) all in-domain pretrained CNN weights achieve much better retrieval performance than ImageNet weights; and 3) our proposed ConVIRT pretraining achieves the best overall retrieval results on all metrics. We find that while Contrastive-Binary performs notably better than other baselines in the image-image retrieval setting, its text-image retrieval results are far from ConVIRT pretraining. We conjecture that the lack of an explicit similarity-based loss function in the Contrastive-Binary baseline results in misaligned representations in the image and text space, leading to poor results in text-image retrieval. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
854,
|
| 692 |
+
825,
|
| 693 |
+
924
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "table",
|
| 699 |
+
"img_path": "images/92a488f48e3ba71511bcd8c9fc798617439319390ff0d6385bbb11e958816e67.jpg",
|
| 700 |
+
"table_caption": [
|
| 701 |
+
"Table 2: Zero-shot image-image and text-image retrieval results on the CheXpert $8 \\times 2 0 0$ datasets. Random shows results from a random guess; ConVIRT + CheXpert Supervised shows results from further fine-tuning the pretrained weights with supervised training data. Text-image retrieval results are not obtained for some methods due to the lack of text encoders. "
|
| 702 |
+
],
|
| 703 |
+
"table_footnote": [],
|
| 704 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\"> Image-Image Retrieval</td><td colspan=\"3\">Text-Image Retrieval</td></tr><tr><td>Method</td><td>Prec@5</td><td>Prec@10</td><td>Prec @50</td><td>Prec@5</td><td>Prec@10</td><td>Prec@50</td></tr><tr><td>Random</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td><td>12.5</td></tr><tr><td>ImageNet</td><td>14.8</td><td>14.4</td><td>15.0</td><td>1</td><td>1</td><td>1</td></tr><tr><td>In-domain initialization methods</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Caption-Transformer</td><td>29.8</td><td>28.0</td><td>23.0</td><td></td><td>1</td><td></td></tr><tr><td>Caption-LSTM</td><td>34.8</td><td>32.9</td><td>28.1</td><td></td><td>1</td><td></td></tr><tr><td>Contrastive-Binary</td><td>38.8</td><td>36.6</td><td>29.7</td><td>15.5</td><td>14.5</td><td>13.7</td></tr><tr><td>ConVIRT(Ours)</td><td>45.0</td><td>42.9</td><td>35.7</td><td>60.0</td><td> 57.5</td><td>48.8</td></tr><tr><td>Fine-tuned</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ConVIRT + CheXpert Supervised</td><td>56.8</td><td>56.3</td><td>48.9</td><td></td><td></td><td></td></tr></table>",
|
| 705 |
+
"bbox": [
|
| 706 |
+
187,
|
| 707 |
+
150,
|
| 708 |
+
808,
|
| 709 |
+
318
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 6
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "",
|
| 716 |
+
"bbox": [
|
| 717 |
+
173,
|
| 718 |
+
354,
|
| 719 |
+
826,
|
| 720 |
+
439
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "To understand how well ConVIRT pretraining helps separate images from different abnormality categories in its encoding space, in Figure 3 we present t-SNE plots (Maaten & Hinton, 2008) of candidate images in the CheXpert 8x200 dataset for five selected categories, from the ImageNet pretrained CNN encoder and the ConVIRT pretrained encoder. It is worth noting that clustering images in our setting is much more challenging than that in the general object classification setting due to the high inter-class similarity of the medical images. Nevertheless we find that ConVIRT pretraining achieves a better clus",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
445,
|
| 730 |
+
470,
|
| 731 |
+
638
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "image",
|
| 737 |
+
"img_path": "images/a5873cd26f221e3ba37c5caa7ca052356a54e35ade633fa6de6a7effac4a611a.jpg",
|
| 738 |
+
"image_caption": [
|
| 739 |
+
"Figure 3: t-SNE visualizations of encoded image representations from different pretraining methods. "
|
| 740 |
+
],
|
| 741 |
+
"image_footnote": [],
|
| 742 |
+
"bbox": [
|
| 743 |
+
485,
|
| 744 |
+
450,
|
| 745 |
+
821,
|
| 746 |
+
593
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "tering of the images in the t-SNE plots. On the other hand, the lack of clear separations between groups suggests room for further improvement. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
171,
|
| 755 |
+
640,
|
| 756 |
+
823,
|
| 757 |
+
666
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "5 ANALYSIS AND DISCUSSION ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
694,
|
| 768 |
+
442,
|
| 769 |
+
710
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Comparisons to Image-only Contrastive Learning. ConVIRT shows superior results against baselines in evaluation, but an important question remains as to how it compares against existing image-only contrastive visual representation learning methods. We study this by running two popular such methods, SimCLR (Chen et al., 2020a) and MoCo v2 (Chen et al., 2020b), on the same collection of images that we used in our pretraining. We present the results in Table 3 and include model training details in Appendix E. We find that compared to ImageNet initial",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
731,
|
| 779 |
+
470,
|
| 780 |
+
910
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "table",
|
| 786 |
+
"img_path": "images/b508d2b4c6267b636590c809bedf194e39332dc596d172dfaa9d288dd859bfc9.jpg",
|
| 787 |
+
"table_caption": [
|
| 788 |
+
"Table 3: Comparisons of ConVIRT to imageonly unsupervised image representation learning approaches. "
|
| 789 |
+
],
|
| 790 |
+
"table_footnote": [
|
| 791 |
+
"ization, both contrastive methods lead to marginal to moderate improvements on the classification "
|
| 792 |
+
],
|
| 793 |
+
"table_body": "<table><tr><td>RSNA Linear Method (1%, AUC)</td><td>(1%,AUC)</td><td>r CheXpert Linear Image-Image (Prec@10)</td></tr><tr><td> ImageNet</td><td>82.8</td><td>75.7 14.4</td></tr><tr><td>SimCLR</td><td>86.3</td><td>77.4 17.6 81.3</td></tr><tr><td>MoCo v2</td><td>86.6</td><td>20.6</td></tr><tr><td>ConVIRT</td><td>90.7</td><td>85.9 42.9</td></tr></table>",
|
| 794 |
+
"bbox": [
|
| 795 |
+
485,
|
| 796 |
+
782,
|
| 797 |
+
826,
|
| 798 |
+
887
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 6
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "image",
|
| 804 |
+
"img_path": "images/dccbf6a127f3b58075349a46ccf4447bd6fae637b9ff71419e18a9ff2e635acc.jpg",
|
| 805 |
+
"image_caption": [
|
| 806 |
+
"Figure 4: Saliency maps on sampled images for 4 abnormality categories in the CheXpert dataset. For each image we present maps for ImageNet, SimCLR, MoCo v2 and our ConVIRT initializations. Ground truth regions that are indicative of the abnormalities are shown as red boxes in the images. "
|
| 807 |
+
],
|
| 808 |
+
"image_footnote": [],
|
| 809 |
+
"bbox": [
|
| 810 |
+
194,
|
| 811 |
+
98,
|
| 812 |
+
808,
|
| 813 |
+
443
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 7
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "and retrieval tasks. However, our training strategy substantially outperforms both methods on all tasks, demonstrating its effective use of information from the paired text data. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
523,
|
| 823 |
+
821,
|
| 824 |
+
551
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "To understand the representational difference that has led to this difference in performance, for all four initialization methods, we visualize in Figure 4 the saliency maps (Simonyan et al., 2014) corresponding to the correct class on sampled images from the CheXpert dataset. Models for all initialization methods are trained with $1 \\%$ CheXpert training data under the linear classification setting (with pretrained CNN weights frozen). We find that ImageNet pretraining has led to models that focus on trivial visual features that are mostly irrelevant to the task, and that the model with ConVIRT pretrained weights has focused on much more relevant areas than those with SimCLR and MoCo v2 pretraining, suggesting more effective representation learning. For example, for atelectasis, while the ConVIRT model has correctly focused on the bottom of the lung regions, the SimCLR model has much more scattered focus and the MoCo model has incorrectly focused on the heart region. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
559,
|
| 834 |
+
825,
|
| 835 |
+
698
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 7
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Correlation Between Contrastive Loss and End Task Performance. To understand the relation between a model’s performance on the ConVIRT pretraining task and its performance on the downstream tasks, we ran an analysis where for every 5 epochs during the pretraining, we transferred the pretrained checkpoint to the downstream tasks and evaluate its performance. The pretraining was run for a total of 200 epochs, and 40 points were obtained with varying validation loss and end task results. Figure 5 presents the results of the models’ validation loss on the pretraining task, and its achieved performance on the RSNA $1 \\%$ data linear evaluation and the two retrieval tasks. For all three tasks, we find a clear positive correlation between the pretraining performance and the end task performance. This corroborates that by learning with the ConVIRT objective, the image encoder learns gradually improved representations for the end tasks, and suggests that further improvement on the pretraining task may have positive impact on the end task performance. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
713,
|
| 845 |
+
825,
|
| 846 |
+
866
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Hyperparameter Analysis. We run experiments to study the impact of hyperparameters, and find that: 1) similar to previous work on image-only contrastive learning (Chen et al., 2020a), the pretraining results are most sensitive to the choice of the temperature value $\\tau$ ; 2) unlike previous work, changing batch size does not lead to substantial change in the classification results; and 3) using linear projection heads instead of non-linear ones notably hurts the retrieval results. We include our detailed comparisons in Appendix F. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
176,
|
| 855 |
+
882,
|
| 856 |
+
823,
|
| 857 |
+
924
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "image",
|
| 863 |
+
"img_path": "images/3d4a9febb985168506013d364451209ea06b6fa625f5eb89099a3ba3dd7423a1.jpg",
|
| 864 |
+
"image_caption": [
|
| 865 |
+
"Figure 5: (a) shows pretraining validation loss at different epochs; (b)-(d) shows correlation between the pretraining loss and the performance of three end tasks. For (a) the $\\mathbf { X }$ -axis shows the training epoch number, and for (b)-(d) the $\\mathbf { X }$ -axis shows the negative value of the pretraining loss (i.e., $- \\mathcal { L } )$ on a held-out validation set. "
|
| 866 |
+
],
|
| 867 |
+
"image_footnote": [],
|
| 868 |
+
"bbox": [
|
| 869 |
+
189,
|
| 870 |
+
99,
|
| 871 |
+
821,
|
| 872 |
+
244
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "",
|
| 879 |
+
"bbox": [
|
| 880 |
+
176,
|
| 881 |
+
332,
|
| 882 |
+
825,
|
| 883 |
+
375
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "6 RELATED WORK ",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
176,
|
| 893 |
+
393,
|
| 894 |
+
344,
|
| 895 |
+
410
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 8
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Our work is most relevant to existing work on medical image classification, which we have covered in Section 1, and textual report generation from medical images (Wang et al., 2018; Jing et al., 2018; Liu et al., 2019). A dominant approach for initializing medical image encoders in this work has been using encoder weights pretrained on ImageNet, despite the drastic difference in image characteristics (Raghu et al., 2019). Instead, our work proposes an alternative in-domain pretraining strategy, and compares ImageNet pretraining with different pretraining approaches that also use the paired text data. To our knowledge our work represents the first systematic attempt in this direction. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
425,
|
| 905 |
+
825,
|
| 906 |
+
523
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Our work is inspired by the recent line of work on image view-based contrastive visual representation learning (Henaff et al., 2020; Chen et al., 2020a; He et al., 2020; Grill et al., 2020), but differs ´ from existing studies by the contrastive learning with text modality, which as we show in Section 5, is more effective in learning high-quality representations of medical images. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
530,
|
| 916 |
+
825,
|
| 917 |
+
587
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Another line of work related to ours is visual-linguistic representation learning (Lu et al., 2019; Tan & Bansal, 2019; Su et al., 2020). Among existing studies, Ilharco et al. (2020) and Gupta et al. (2020) used a cross-modality contrastive objective related to ours, but for the purpose of probing visual-linguistic models and learning phrase grounding, respectively. Our work differs from this line of work in several crucial ways: 1) existing work in visual-linguistic learning focused on learning visual representations from paired text via a binary contrastive prediction task, whereas we showed the superior performance of the new cross-modality NCE objectives in our setting; 2) existing work has primarily used object representations extracted from image segmentation models in their preprocessing steps, making them less applicable to medical image understanding tasks where anatomical segmentations are extremely hard to obtain; 3) while existing work has run evaluation primarily on visual-linguistic tasks such as visual question answering, we instead focus on evaluation with classification and retrieval tasks which are at the center of medical image understanding research. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
593,
|
| 927 |
+
825,
|
| 928 |
+
760
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 8
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "7 CONCLUSION ",
|
| 935 |
+
"text_level": 1,
|
| 936 |
+
"bbox": [
|
| 937 |
+
176,
|
| 938 |
+
780,
|
| 939 |
+
318,
|
| 940 |
+
796
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "We presented ConVIRT, an unsupervised method for learning medical visual representations from naturally occurring pairing of images and text. Our method relies on contrasting the image representations with the paired text data via a bidirectional objective between the two modalities. On 4 medical image classification tasks and 2 image retrieval tasks, ConVIRT outperformed other strong in-domain initialization methods that also use the text data, and led to representations with notably higher quality. Compared to ImageNet pretraining, ConVIRT is able to achieve the same level of classification accuracy with an order of magnitude less labeled data. We hope that our work can inspire future work that makes more efficient use of textual data for medical image understanding. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
811,
|
| 950 |
+
825,
|
| 951 |
+
924
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "REFERENCES ",
|
| 958 |
+
"text_level": 1,
|
| 959 |
+
"bbox": [
|
| 960 |
+
176,
|
| 961 |
+
103,
|
| 962 |
+
285,
|
| 963 |
+
117
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 9
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Michael David Abramoff, Yiyue Lou, Ali Erginay, Warren Clarida, Ryan Amelon, James C Folk, \\` and Meindert Niemeijer. Improved automated detection of diabetic retinopathy on a publicly available dataset through integration of deep learning. Investigative Ophthalmology & Visual Science, 57(13):5200–5206, 2016. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
126,
|
| 973 |
+
825,
|
| 974 |
+
183
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Emily Alsentzer, John Murphy, William Boag, Wei-Hung Weng, Di Jindi, Tristan Naumann, and Matthew McDermott. Publicly available clinical BERT embeddings. In Proceedings of the 2nd Clinical Natural Language Processing Workshop, 2019. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
193,
|
| 984 |
+
823,
|
| 985 |
+
236
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 9
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International Conference on Machine Learning (ICML), 2020a. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
246,
|
| 995 |
+
826,
|
| 996 |
+
287
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 9
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
171,
|
| 1005 |
+
297,
|
| 1006 |
+
823,
|
| 1007 |
+
327
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 9
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Marcella Cornia, Matteo Stefanini, Lorenzo Baraldi, and Rita Cucchiara. Meshed-memory Transformer for image captioning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
337,
|
| 1017 |
+
825,
|
| 1018 |
+
380
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 9
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Jeffrey De Fauw, Joseph R Ledsam, Bernardino Romera-Paredes, Stanislav Nikolov, Nenad Tomasev, Sam Blackwell, Harry Askham, Xavier Glorot, Brendan ODonoghue, Daniel Visentin, et al. Clinically applicable deep learning for diagnosis and referral in retinal disease. Nature Medicine, 24(9):1342–1350, 2018. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
173,
|
| 1027 |
+
390,
|
| 1028 |
+
825,
|
| 1029 |
+
445
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 9
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Dina Demner-Fushman, Marc D Kohli, Marc B Rosenman, Sonya E Shooshan, Laritza Rodriguez, Sameer Antani, George R Thoma, and Clement J McDonald. Preparing a collection of radiology examinations for distribution and retrieval. Journal of the American Medical Informatics Association, 23(2):304–310, 2016. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
174,
|
| 1038 |
+
455,
|
| 1039 |
+
825,
|
| 1040 |
+
512
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 9
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
173,
|
| 1049 |
+
522,
|
| 1050 |
+
826,
|
| 1051 |
+
580
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 9
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Andre Esteva, Brett Kuprel, Roberto A Novoa, Justin Ko, Susan M Swetter, Helen M Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639):115–118, 2017. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
173,
|
| 1060 |
+
589,
|
| 1061 |
+
823,
|
| 1062 |
+
632
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 9
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
642,
|
| 1072 |
+
825,
|
| 1073 |
+
699
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Varun Gulshan, Lily Peng, Marc Coram, Martin C Stumpe, Derek Wu, Arunachalam Narayanaswamy, Subhashini Venugopalan, Kasumi Widner, Tom Madams, Jorge Cuadros, et al. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA, 316(22):2402–2410, 2016. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
709,
|
| 1083 |
+
825,
|
| 1084 |
+
765
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 9
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Tanmay Gupta, Arash Vahdat, Gal Chechik, Xiaodong Yang, Jan Kautz, and Derek Hoiem. Contrastive learning for weakly supervised phrase grounding. In Proceedings of the 16th European Conference on Computer Vision (ECCV), 2020. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
173,
|
| 1093 |
+
775,
|
| 1094 |
+
823,
|
| 1095 |
+
819
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 9
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"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 (CVPR), 2016. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
173,
|
| 1104 |
+
828,
|
| 1105 |
+
823,
|
| 1106 |
+
871
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 9
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"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, 2020. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
176,
|
| 1115 |
+
881,
|
| 1116 |
+
823,
|
| 1117 |
+
924
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 9
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning (ICML), 2020. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
176,
|
| 1126 |
+
103,
|
| 1127 |
+
823,
|
| 1128 |
+
146
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 10
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Gabriel Ilharco, Rowan Zellers, Ali Farhadi, and Hannaneh Hajishirzi. Probing text models for common ground with visual representations. arXiv preprint arXiv:2005.00619, 2020. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
156,
|
| 1138 |
+
823,
|
| 1139 |
+
185
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 10
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Jeremy Irvin, Pranav Rajpurkar, Michael Ko, Yifan Yu, Silviana Ciurea-Ilcus, Chris Chute, Henrik Marklund, Behzad Haghgoo, Robyn Ball, Katie Shpanskaya, et al. CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the AAAI Conference on Artificial Intelligence, 2019. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
173,
|
| 1148 |
+
194,
|
| 1149 |
+
825,
|
| 1150 |
+
251
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 10
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Baoyu Jing, Pengtao Xie, and Eric Xing. On the automatic generation of medical imaging reports. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), 2018. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
261,
|
| 1160 |
+
825,
|
| 1161 |
+
304
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 10
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Alistair EW Johnson, Tom J Pollard, Seth J Berkowitz, Nathaniel R Greenbaum, Matthew P Lungren, Chih-ying Deng, Roger G Mark, and Steven Horng. MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports. Scientific Data, 6, 2019. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
174,
|
| 1170 |
+
314,
|
| 1171 |
+
823,
|
| 1172 |
+
357
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 10
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In The 2015 International Conference for Learning Representations, 2015. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
171,
|
| 1181 |
+
367,
|
| 1182 |
+
823,
|
| 1183 |
+
396
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 10
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In ´ European Conference on Computer Vision (ECCV), 2014. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
174,
|
| 1192 |
+
405,
|
| 1193 |
+
825,
|
| 1194 |
+
449
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 10
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Guanxiong Liu, Tzu-Ming Harry Hsu, Matthew McDermott, Willie Boag, Wei-Hung Weng, Peter Szolovits, and Marzyeh Ghassemi. Clinically accurate chest X-ray report generation. In Machine Learning for Healthcare Conference, 2019. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
174,
|
| 1203 |
+
459,
|
| 1204 |
+
825,
|
| 1205 |
+
502
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 10
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, 2019. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
173,
|
| 1214 |
+
511,
|
| 1215 |
+
825,
|
| 1216 |
+
554
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 10
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
169,
|
| 1225 |
+
564,
|
| 1226 |
+
825,
|
| 1227 |
+
593
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 10
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Christopher D. Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David McClosky. The Stanford CoreNLP natural language processing toolkit. In Association for Computational Linguistics (ACL) System Demonstrations, 2014. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
176,
|
| 1236 |
+
603,
|
| 1237 |
+
825,
|
| 1238 |
+
646
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 10
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
169,
|
| 1247 |
+
656,
|
| 1248 |
+
821,
|
| 1249 |
+
685
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 10
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Maithra Raghu, Chiyuan Zhang, Jon Kleinberg, and Samy Bengio. Transfusion: Understanding transfer learning for medical imaging. In Advances in Neural Information Processing Systems, 2019. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
694,
|
| 1259 |
+
825,
|
| 1260 |
+
737
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 10
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Pranav Rajpurkar, Jeremy Irvin, Aarti Bagul, Daisy Ding, Tony Duan, Hershel Mehta, Brandon Yang, Kaylie Zhu, Dillon Laird, Robyn L Ball, et al. MURA: Large dataset for abnormality detection in musculoskeletal radiographs. In 1st Conference on Medical Imaging with Deep Learning (MIDL), 2018a. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
173,
|
| 1269 |
+
747,
|
| 1270 |
+
825,
|
| 1271 |
+
804
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 10
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Pranav Rajpurkar, Jeremy Irvin, Robyn L Ball, Kaylie Zhu, Brandon Yang, Hershel Mehta, Tony Duan, Daisy Ding, Aarti Bagul, Curtis P Langlotz, et al. Deep learning for chest radiograph diagnosis: A retrospective comparison of the CheXNeXt algorithm to practicing radiologists. PLoS Medicine, 15(11):e1002686, 2018b. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
174,
|
| 1280 |
+
814,
|
| 1281 |
+
825,
|
| 1282 |
+
871
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 10
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
176,
|
| 1291 |
+
882,
|
| 1292 |
+
823,
|
| 1293 |
+
924
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 10
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "George Shih, Carol C Wu, Safwan S Halabi, Marc D Kohli, Luciano M Prevedello, Tessa S Cook, Arjun Sharma, Judith K Amorosa, Veronica Arteaga, Maya Galperin-Aizenberg, et al. Augmenting the National Institutes of Health chest radiograph dataset with expert annotations of possible pneumonia. Radiology: Artificial Intelligence, 1(1):e180041, 2019. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
174,
|
| 1302 |
+
103,
|
| 1303 |
+
825,
|
| 1304 |
+
160
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 11
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In ICLR Workshop, 2014. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
173,
|
| 1313 |
+
169,
|
| 1314 |
+
823,
|
| 1315 |
+
196
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 11
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. VL-BERT: Pretraining of generic visual-linguistic representations. In International Conference on Learning Representations (ICLR), 2020. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
174,
|
| 1324 |
+
205,
|
| 1325 |
+
825,
|
| 1326 |
+
248
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 11
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), 2019. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
174,
|
| 1335 |
+
257,
|
| 1336 |
+
825,
|
| 1337 |
+
314
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 11
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. CIDEr: Consensus-based image description evaluation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
174,
|
| 1346 |
+
323,
|
| 1347 |
+
825,
|
| 1348 |
+
366
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 11
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "Linda Wang and Alexander Wong. COVID-Net: A tailored deep convolutional neural network design for detection of COVID-19 cases from chest X-ray images. arXiv preprint arXiv:2003.09871, 2020. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
173,
|
| 1357 |
+
375,
|
| 1358 |
+
825,
|
| 1359 |
+
417
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 11
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "text",
|
| 1365 |
+
"text": "Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, Mohammadhadi Bagheri, and Ronald M Summers. ChestX-ray8: Hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
173,
|
| 1368 |
+
426,
|
| 1369 |
+
825,
|
| 1370 |
+
483
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 11
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, and Ronald M Summers. TieNet: Text-image embedding network for common thorax disease classification and reporting in chest X-rays. In Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR), 2018. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
174,
|
| 1379 |
+
491,
|
| 1380 |
+
825,
|
| 1381 |
+
535
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 11
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rmi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. HuggingFace’s Transformers: Stateof-the-art natural language processing. arXiv preprint arXiv:1910.03771, 2019. ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
174,
|
| 1390 |
+
542,
|
| 1391 |
+
825,
|
| 1392 |
+
614
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 11
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning (ICML), 2015. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
174,
|
| 1401 |
+
622,
|
| 1402 |
+
825,
|
| 1403 |
+
666
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 11
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "A MODEL IMPLEMENTATION AND PRETRAINING DETAILS ",
|
| 1410 |
+
"text_level": 1,
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
176,
|
| 1413 |
+
102,
|
| 1414 |
+
671,
|
| 1415 |
+
118
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 12
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Dataset Preprocessing. For the MIMIC-CXR chest radiograph dataset, we use the publicly available JPG version of it.1 For both the MIMIC-CXR chest dataset and the Rhode Island Hospital bone image datasets, we resize the image files to have a size of 256 on the larger side. For the textual radiology report data, we first tokenize all reports with the default English tokenizer in version 4.0.0 of the CoreNLP library (Manning et al., 2014). Next, we keep only the Findings and Impression sections and remove all other sections. We remove all image-text pairings from the dataset where the text section is empty or has less than 3 tokens. This preprocessing procedure gives us about $2 1 7 \\mathrm { k }$ total image-text pairs for pretraining our chest image encoder and 48k total pairs for pretraining our bone image encoder. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
174,
|
| 1424 |
+
132,
|
| 1425 |
+
825,
|
| 1426 |
+
258
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 12
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Image and Text Encoders. For the image encoder, we use the standard ResNet50 implementation provided by the torchvision library. For the text encoder, we use the BERT base encoder offered by the Transformers library (Wolf et al., 2019) and initialize it with the ClinicalBERT model (Alsentzer et al., 2019) pretrained on the MIMIC clinical notes. We also experimented with training a specialized BERT encoder on a large collection of radiology notes but found that it made no substantial difference in the pretraining results. At pretraining time we freeze the embeddings and the first 6 layers of this BERT encoder, and only fine-tune the last 6 layers for our contrastive task. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
174,
|
| 1435 |
+
273,
|
| 1436 |
+
825,
|
| 1437 |
+
371
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 12
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Other Hyperparameters. For contrastive learning, we use projection layers with an output dimension $d = 5 1 2$ , a temperature value $\\tau = 0 . 1$ , a loss weight $\\lambda = 0 . 7 5$ . These hyperparameter settings are obtained by comparing the linear evaluation validation scores on the RSNA image classification task with the pretrained ResNet50 weights. For the image transformation family $\\tau$ , we adopt the implementations offered by the torchvision library.2 We apply random cropping with a ratio sampled from [0.6, 1.0]; horizontal flipping with $p = 0 . 5$ ; affine transformation with a degree sampled from $[ - 2 0 , 2 0 ]$ , max horizontal and vertical translation fractions of 0.1, and a scaling factor sampled from [0.95, 1.05]; color jittering with brightness and contrast adjustment ratios sampled from [0.6, 1.4]; and Gaussian blur with $\\sigma \\in [ 0 . 1 , 3 . 0 ]$ . All images are resized to $2 2 4 \\times 2 2 4$ after the transformation $t _ { v }$ is applied. Limited by computational resources, we arrive at these image transformation parameters via preliminary experiments rather than a systematic search. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
386,
|
| 1447 |
+
825,
|
| 1448 |
+
539
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 12
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "Pretraining Details. At pretraining time, for each dataset, we randomly sample 5k image-text pairs to form a held-out validation set. We we use the Adam optimizer (Kingma & Ba, 2015) with an initial learning rate of 1e-4 and weight decay of 1e-6. We initialize the image encoder with ImageNet pretrained weights at the beginning of pretraining, and use a fixed batch size of 32. We calculate the validation loss every 5000 steps, and if the validation loss does not decrease after 5 straight evaluation runs, we anneal the learning rate by a factor of 0.5. We stop pretraining after 200 evaluation runs, and save the model checkpoint that achieves the lowest validation loss. For efficiency, we employ mixed-precision training, and for reference, the whole pretraining run on the MIMIC-CXR dataset took about 3 days on a single Titan RTX GPU card. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
173,
|
| 1457 |
+
554,
|
| 1458 |
+
825,
|
| 1459 |
+
679
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 12
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "B IMAGE CLASSIFICATION EXPERIMENTS ",
|
| 1466 |
+
"text_level": 1,
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
174,
|
| 1469 |
+
699,
|
| 1470 |
+
537,
|
| 1471 |
+
715
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 12
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "We prepared and used the 4 image classification datasets following the procedures below: ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
173,
|
| 1480 |
+
729,
|
| 1481 |
+
758,
|
| 1482 |
+
744
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 12
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "1. RSNA Pneumonia Detection (Wang et al., 2017; Shih et al., 2019): we used the original version of this dataset available at its Kaggle page,3 which contains 25184/1500/3000 annotated images in its training/validation/test sets, respectively. ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
176,
|
| 1491 |
+
757,
|
| 1492 |
+
823,
|
| 1493 |
+
799
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 12
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "2. CheXpert image classification (Irvin et al., 2019): we downloaded the original version of this dataset from its official website.4 Since the original expert-labeled test set of this dataset is hidden and not included as part of the release, we instead followed Raghu et al. (2019) and used the original expert-labeled validation set as our test set, and randomly sampled 5000 images from the original training set for validation purpose. The resulting dataset contains 218414/5000/234 images in each split. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
176,
|
| 1502 |
+
803,
|
| 1503 |
+
823,
|
| 1504 |
+
859
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 12
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
186,
|
| 1513 |
+
103,
|
| 1514 |
+
823,
|
| 1515 |
+
132
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 13
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "3. COVIDx image classification (Wang & Wong, 2020): we prepared this dataset following the scripts provided by its authors.5 We used the version 4 of this dataset, the latest version at the time of this work. We additionally randomly sampled 300 images from the training set for validation, resulting in a dataset with 13598/300/300 images in each split. ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
176,
|
| 1524 |
+
136,
|
| 1525 |
+
823,
|
| 1526 |
+
190
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 13
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "4. MURA bony abnormality detection (Rajpurkar et al., 2018a): we downloaded the original version of this dataset from its website.6 Similar to the CheXpert dataset, we again used the original validation set as our test set, and randomly sampled $10 \\%$ images from the training set for validation, resulting in a dataset with 33078/3730/3197 images in each split. Different from the other 3 datasets, the MURA dataset uses patient-level evaluation, meaning that the prediction results from different images of the same patient needs to be aggregated to produce a final prediction for the patient, which is then scored against the gold patient label. We therefore followed Rajpurkar et al. (2018a) and at test time aggregated result for a patient by averaging the predicted probabilities from multiple images. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
173,
|
| 1535 |
+
195,
|
| 1536 |
+
825,
|
| 1537 |
+
320
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 13
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "Classification Model Training Details. For all models that require ImageNet pretrained initialization, we use the pretrained weights from torchvision, which achieves an ImageNet top-5 error rate of $7 . 1 3 \\%$ . For all datasets, we first zero-pad the input image to be square, and then resize it to be $2 2 4 \\times 2 2 4$ . For training, we use the Adam optimizer with an initial learning rate of 1e-3 for the COVIDx task and 1e-4 for the other three tasks. We additionally apply a weight decay of 1e-6 and a dropout before the last classification layer with $p = 0 . 2$ in all tasks. All classification models are trained with a batch size of 64. In the fine-tuning evaluation setting, we first “warmup” the classification head by freezing the CNN weights and only training the classification head with a learning rate of 1e-3 for 200 steps, after which we unfreeze the CNN weights and fine-tune the entire network together. Validation score is obtained after each epoch of training and we anneal the learning rate by a factor of 0.5 if the validation score is not improved after 3 epochs. The training is stopped after no validation improvement is observed for 10 straight epochs, at which point the model checkpoint with the highest validation score is evaluated on the test set. ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
174,
|
| 1546 |
+
335,
|
| 1547 |
+
825,
|
| 1548 |
+
515
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 13
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "C IMAGE-IMAGE RETRIEVAL DATASET COLLECTION ",
|
| 1555 |
+
"text_level": 1,
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
176,
|
| 1558 |
+
535,
|
| 1559 |
+
627,
|
| 1560 |
+
551
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 13
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "We create the CheXpert $8 \\times 2 0 0$ Retrieval Dataset with 8 different abnormality categories commonly found in Chest radiograph images, including atelectasis, cardiomegaly, edema, fracture, pleural effusion, pneumonia, pneumothorax and a special no finding category indicating that no obvious abnormality is found in the image. We create the dataset by reusing existing rule-labeled annotations in the CheXpert dataset (Irvin et al., 2019) and additional expert annotations. To create the candidate images for a category label $\\ell$ , we go through all images in the CheXpert training set, and keep an image as a candidate image if only its label for $\\ell$ is positive and all other categories negative. We only include images with this “exclusive positivity” as candidate images, mainly to avoid confounding results between categories in retrieval evaluation. ",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
174,
|
| 1569 |
+
565,
|
| 1570 |
+
825,
|
| 1571 |
+
690
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 13
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "To create the query images for a category $\\ell$ , we again first pre-select 50 exclusively positive images for this category in the CheXpert training set (with all candidate images excluded). Next, we ask a board-certified radiologist to examine each of the 50 images, and exclude images that: 1) might indicate additional abnormalities other than \\`, 2) have uncommon color or contrast distortions in the image, or 3) are not well posed during the capture of the image. This procedure is mainly to avoid including query images that have uncommon features and may therefore bias the retrieval evaluation results. At the end, we aggregate the annotation results from the radiologist and keep 10 query images for each abnormality category. ",
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
174,
|
| 1580 |
+
698,
|
| 1581 |
+
825,
|
| 1582 |
+
809
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 13
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "text",
|
| 1588 |
+
"text": "D TEXT-IMAGE RETRIEVAL DATASET COLLECTION ",
|
| 1589 |
+
"text_level": 1,
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
174,
|
| 1592 |
+
829,
|
| 1593 |
+
616,
|
| 1594 |
+
844
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 13
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "text",
|
| 1600 |
+
"text": "For the text-image retrieval dataset, we first reuse all candidate images from the CheXpert $8 \\times 2 0 0$ image-image retrieval dataset described above, with 200 images for each of 8 categories. To create the textual queries for each abnormality category, we ask a board-certified radiologist to write at least 5 different sentences that he will use to describe this abnormality in radiology reporting. We additionally set the following requirements: 1) the sentences must describe the category with no ambiguity and must not include other categories; 2) the sentences must be diverse from each other; and 3) the sentences should not include very specific anatomic locations or rare clinical observations. At the end, we aggregate the results and keep 5 textual queries for each abnormality category. For reference, we present example textual queries in Table 4. ",
|
| 1601 |
+
"bbox": [
|
| 1602 |
+
176,
|
| 1603 |
+
859,
|
| 1604 |
+
823,
|
| 1605 |
+
887
|
| 1606 |
+
],
|
| 1607 |
+
"page_idx": 13
|
| 1608 |
+
},
|
| 1609 |
+
{
|
| 1610 |
+
"type": "table",
|
| 1611 |
+
"img_path": "images/e32d378233ff1e45c3b81410bd729e5a6748b91742d17ab10728913368fbba82.jpg",
|
| 1612 |
+
"table_caption": [
|
| 1613 |
+
"Table 4: Example textual queries for each of the 8 categories in the text-image retrieval task. "
|
| 1614 |
+
],
|
| 1615 |
+
"table_footnote": [],
|
| 1616 |
+
"table_body": "<table><tr><td>Image Category</td><td>Example Textual Query</td></tr><tr><td>Atelectasis</td><td>Platelike opacity likely represents atelectasis.</td></tr><tr><td>Cardiomegaly</td><td>The cardiac silhouette is enlarged.</td></tr><tr><td>Edema</td><td>The presence of hazy opacity suggests interstitial pulmonary edema.</td></tr><tr><td>Fracture</td><td>A cortical step off indicates the presence of a fracture.</td></tr><tr><td>Pleural Effusion</td><td>The pleural space is partially filled with fluid.</td></tr><tr><td>Pneumonia</td><td>A pulmonary opacity with ill defined borders likely represents pneumonia.</td></tr><tr><td>Pneumothorax</td><td>A medial pneumothorax is present adjacent to the heart.</td></tr><tr><td>No Finding</td><td>No clinically significant radiographic abnormalities.</td></tr></table>",
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
181,
|
| 1619 |
+
133,
|
| 1620 |
+
813,
|
| 1621 |
+
273
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 14
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "",
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
173,
|
| 1630 |
+
305,
|
| 1631 |
+
825,
|
| 1632 |
+
402
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 14
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "E EXPERIMENTS ON IMAGE-ONLY CONTRASTIVE LEARNING METHODS ",
|
| 1639 |
+
"text_level": 1,
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
173,
|
| 1642 |
+
422,
|
| 1643 |
+
787,
|
| 1644 |
+
439
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 14
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "text",
|
| 1650 |
+
"text": "We run experiments with two popular image-only contrastive visual representation learning methods: SimCLR (Chen et al., 2020a) and MoCo v2 (Chen et al., 2020b). For a fair comparison, in both experiments we use the exact same set of images from the MIMIC-CXR dataset that we use in the pretraining of our method and the baselines. Our settings for each method are: ",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
174,
|
| 1653 |
+
454,
|
| 1654 |
+
825,
|
| 1655 |
+
508
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 14
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "• SimCLR: We use the open PyTorch implementation available at https://github.com/ sthalles/SimCLR. For image encoder we use ResNet50. We use cosine similarity in the loss function, set the temperature value to 0.1 and set the output dimension to 128. We use the default image augmentation functions in the paper except for the color jittering transformation where we set the saturation and hue adjustment to 0 due to the monochrome nature of our medical images. For training, we use the Adam optimizer with an initial learning rate of 3e-4 and weight decay of 1e-4. We set batch size to 128 and run training on a single GPU card for 100 epochs, as we find that increasing the batch size or number of epochs does not lead to improved results. We use the default settings for all other parameters. ",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
174,
|
| 1664 |
+
521,
|
| 1665 |
+
825,
|
| 1666 |
+
645
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 14
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "• MoCo v2: We use the authors’ PyTorch implementation available at https://github.com/ facebookresearch/moco. For image encoder we use ResNet50. We follow the default MoCo v2 setting and use a temperature value of 0.07 and an output dimension of 128. Similarly, we adopt the default image augmentation functions except for the color jittering transformation where we set the saturation and hue adjustment to 0. For training, we use the SGD optimizer with a learning rate of 0.0075 and weight decay of 1e-4. We use a batch size of 64 and a queue size of 4096, and run parallel training on two GPU cards for 100 epochs, as we find that further increasing the batch size or number of epochs does not lead to improved results. During training, we anneal the learning rate by a factor of 0.1 at the 60th and 80th epochs. ",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
174,
|
| 1675 |
+
650,
|
| 1676 |
+
825,
|
| 1677 |
+
775
|
| 1678 |
+
],
|
| 1679 |
+
"page_idx": 14
|
| 1680 |
+
},
|
| 1681 |
+
{
|
| 1682 |
+
"type": "text",
|
| 1683 |
+
"text": "F HYPERPARAMETER ANALYSIS ",
|
| 1684 |
+
"text_level": 1,
|
| 1685 |
+
"bbox": [
|
| 1686 |
+
176,
|
| 1687 |
+
795,
|
| 1688 |
+
459,
|
| 1689 |
+
810
|
| 1690 |
+
],
|
| 1691 |
+
"page_idx": 14
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "text",
|
| 1695 |
+
"text": "Similar to previous work on unsupervised image representation learning (Chen et al., 2020a; He et al., 2020), we first find that the effectiveness of $\\mathrm { C o n V I R T }$ pretraining is most sensitive to the temperature value $\\tau$ . As shown in Table 5, using a temperature much lower than the ideal value $( \\tau = 0 . 0 1 )$ hurts the retrieval results, and a temperature much larger $\\tau = 1 \\mathrm { \\Delta }$ ) notably hurts the performance on all tasks. Unlike previous work, we find that using a smaller or larger batch size hurts the retrieval performance, but neither setup brings substantial impact to the classification results. Lastly, we find that replacing the non-linear projection heads in $g _ { v }$ and $g _ { u }$ with linear layers hurts the retrieval results moderately, suggesting worse representations. However, this is again not reflected notably in the RSNA classification results. ",
|
| 1696 |
+
"bbox": [
|
| 1697 |
+
173,
|
| 1698 |
+
825,
|
| 1699 |
+
825,
|
| 1700 |
+
924
|
| 1701 |
+
],
|
| 1702 |
+
"page_idx": 14
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "table",
|
| 1706 |
+
"img_path": "images/7ee83c7838fd5eb240e992a6deba2890e0f1e7854badea78606e0995e7618aba.jpg",
|
| 1707 |
+
"table_caption": [
|
| 1708 |
+
"Table 5: Evaluation results with different hyperparameters, for the RSNA $1 \\%$ data linear evaluation, image-image retrieval and text-image retrieval tasks. bs represents batch size and linear proj. represents using linear projection layers for $g _ { v }$ and $g _ { u }$ . Our default model uses $\\tau = 0 . 1$ , ${ \\mathfrak { b s } } = 3 2$ and non-linear projections. "
|
| 1709 |
+
],
|
| 1710 |
+
"table_footnote": [],
|
| 1711 |
+
"table_body": "<table><tr><td>Settings</td><td>RSNA Linear (1%, AUC)</td><td>Image-Image (Prec@10)</td><td>Text-Image (Prec@10)</td></tr><tr><td>ConVIRT (default)</td><td>90.7</td><td>42.9</td><td>57.5</td></tr><tr><td>T = 0.01</td><td>90.7</td><td>40.5</td><td>21.0</td></tr><tr><td>T=1</td><td>89.6</td><td>25.0</td><td>31.0</td></tr><tr><td>bs = 16</td><td>90.3</td><td>40.0</td><td>55.8</td></tr><tr><td>bs =128</td><td>90.3</td><td>39.3</td><td>50.3</td></tr><tr><td> linear proj.</td><td>90.6</td><td>40.8</td><td>55.8</td></tr></table>",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
287,
|
| 1714 |
+
174,
|
| 1715 |
+
709,
|
| 1716 |
+
311
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 15
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "text",
|
| 1722 |
+
"text": "",
|
| 1723 |
+
"bbox": [
|
| 1724 |
+
171,
|
| 1725 |
+
343,
|
| 1726 |
+
825,
|
| 1727 |
+
371
|
| 1728 |
+
],
|
| 1729 |
+
"page_idx": 15
|
| 1730 |
+
}
|
| 1731 |
+
]
|
parse/train/T4gXBOXoIUr/T4gXBOXoIUr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/T4gXBOXoIUr/T4gXBOXoIUr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|