ZHANGYUXUAN-zR commited on
Commit
a00c1d9
·
verified ·
1 Parent(s): 07e0343

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/EMHoBG0avc1/EMHoBG0avc1.md +397 -0
  2. parse/train/EMHoBG0avc1/EMHoBG0avc1_content_list.json +0 -0
  3. parse/train/EMHoBG0avc1/EMHoBG0avc1_middle.json +0 -0
  4. parse/train/EMHoBG0avc1/EMHoBG0avc1_model.json +0 -0
  5. parse/train/SyjjD1WRb/SyjjD1WRb.md +299 -0
  6. parse/train/SyjjD1WRb/SyjjD1WRb_content_list.json +1318 -0
  7. parse/train/SyjjD1WRb/SyjjD1WRb_middle.json +0 -0
  8. parse/train/SyjjD1WRb/SyjjD1WRb_model.json +0 -0
  9. parse/train/SyxCqGbRZ/SyxCqGbRZ.md +178 -0
  10. parse/train/SyxCqGbRZ/SyxCqGbRZ_content_list.json +832 -0
  11. parse/train/SyxCqGbRZ/SyxCqGbRZ_middle.json +0 -0
  12. parse/train/SyxCqGbRZ/SyxCqGbRZ_model.json +0 -0
  13. parse/train/ak06J5jNR4/ak06J5jNR4.md +236 -0
  14. parse/train/ak06J5jNR4/ak06J5jNR4_content_list.json +1375 -0
  15. parse/train/ak06J5jNR4/ak06J5jNR4_middle.json +0 -0
  16. parse/train/ak06J5jNR4/ak06J5jNR4_model.json +0 -0
  17. parse/train/rJUYGxbCW/rJUYGxbCW.md +380 -0
  18. parse/train/rJUYGxbCW/rJUYGxbCW_content_list.json +1943 -0
  19. parse/train/rJUYGxbCW/rJUYGxbCW_middle.json +0 -0
  20. parse/train/rJUYGxbCW/rJUYGxbCW_model.json +0 -0
  21. vlm/dev/-ltZ1uw8ZE7/10.png +3 -0
  22. vlm/dev/-ltZ1uw8ZE7/2.png +3 -0
  23. vlm/dev/-ltZ1uw8ZE7/3.png +3 -0
  24. vlm/dev/-ltZ1uw8ZE7/6.png +3 -0
  25. vlm/dev/-ltZ1uw8ZE7/9.png +3 -0
  26. vlm/dev/0I3su3mkuL/0.png +3 -0
  27. vlm/dev/0I3su3mkuL/1.png +3 -0
  28. vlm/dev/0I3su3mkuL/10.png +3 -0
  29. vlm/dev/0I3su3mkuL/11.png +3 -0
  30. vlm/dev/0I3su3mkuL/12.png +3 -0
  31. vlm/dev/0I3su3mkuL/13.png +3 -0
  32. vlm/dev/0I3su3mkuL/14.png +3 -0
  33. vlm/dev/0I3su3mkuL/15.png +3 -0
  34. vlm/dev/0I3su3mkuL/16.png +3 -0
  35. vlm/dev/0I3su3mkuL/17.png +3 -0
  36. vlm/dev/0I3su3mkuL/18.png +3 -0
  37. vlm/dev/0I3su3mkuL/19.png +3 -0
  38. vlm/dev/0I3su3mkuL/2.png +3 -0
  39. vlm/dev/0I3su3mkuL/3.png +3 -0
  40. vlm/dev/0I3su3mkuL/4.png +3 -0
  41. vlm/dev/0I3su3mkuL/5.png +3 -0
  42. vlm/dev/0I3su3mkuL/6.png +3 -0
  43. vlm/dev/0I3su3mkuL/7.png +3 -0
  44. vlm/dev/0I3su3mkuL/8.png +3 -0
  45. vlm/dev/0I3su3mkuL/9.png +3 -0
  46. vlm/dev/0RDcd5Axok/0.png +3 -0
  47. vlm/dev/0RDcd5Axok/1.png +3 -0
  48. vlm/dev/0RDcd5Axok/10.png +3 -0
  49. vlm/dev/0RDcd5Axok/11.png +3 -0
  50. vlm/dev/0RDcd5Axok/12.png +3 -0
parse/train/EMHoBG0avc1/EMHoBG0avc1.md ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ANSWERING COMPLEX OPEN-DOMAIN QUESTIONS WITH MULTI-HOP DENSE RETRIEVAL
2
+
3
+ Wenhan Xiong1∗ Xiang Lorraine $\mathbf { L i } ^ { 2 * }$ Srinivasan Iyer‡ Jingfei Du‡
4
+
5
+ Patrick Lewis‡† William Wang1 Yashar Mehdad‡ Wen-tau Yih‡
6
+
7
+ Sebastian Riedel‡† Douwe Kiela‡ Barlas Oguz ˘ ‡
8
+
9
+ 1University of California, Santa Barbara
10
+ 2University of Massachusetts Amherst
11
+ ‡Facebook AI
12
+ †University College London
13
+ {xwhan, william}@cs.ucsb.edu, xiangl@cs.umass.edu,
14
+ {sviyer, jingfeidu, plewis, mehdad, scottyih, sriedel, dkiela, barlaso}@fb.com
15
+
16
+ # ABSTRACT
17
+
18
+ We propose a simple and efficient multi-hop dense retrieval approach for answering complex open-domain questions, which achieves state-of-the-art performance on two multi-hop datasets, HotpotQA and multi-evidence FEVER. Contrary to previous work, our method does not require access to any corpus-specific information, such as inter-document hyperlinks or human-annotated entity markers, and can be applied to any unstructured text corpus. Our system also yields a much better efficiency-accuracy trade-off, matching the best published accuracy on HotpotQA while being 10 times faster at inference time.1
19
+
20
+ # 1 INTRODUCTION
21
+
22
+ Open domain question answering is a challenging task where the answer to a given question needs to be extracted from a large pool of documents. The prevailing approach (Chen et al., 2017) tackles the problem in two stages. Given a question, a retriever first produces a list of $k$ candidate documents, and a reader then extracts the answer from this set. Until recently, retrieval models were dependent on traditional term-based information retrieval (IR) methods, which fail to capture the semantics of the question beyond lexical matching and remain a major performance bottleneck for the task. Recent work on dense retrieval methods instead uses pretrained encoders to cast the question and documents into dense representations in a vector space and relies on fast maximum inner-product search (MIPS) to complete the retrieval. These approaches (Lee et al., 2019; Guu et al., 2020; Karpukhin et al., 2020) have demonstrated significant retrieval improvements over traditional IR baselines.
23
+
24
+ However, such methods remain limited to simple questions, where the answer to the question is explicit in a single piece of text evidence. In contrast, complex questions typically involve aggregating information from multiple documents, requiring logical reasoning or sequential (multihop) processing in order to infer the answer (see Figure 1 for an example). Since the process for answering such questions might be sequential in nature, single-shot approaches to retrieval are insufficient. Instead, iterative methods are needed to recursively retrieve new information at each step, conditioned on the information already at hand. Beyond further expanding the scope of existing textual open-domain QA systems, answering more complex questions usually involves multi-hop reasoning, which poses unique challenges for existing neural-based AI systems. With its practical and research values, multi-hop QA has been extensively studied recently (Talmor & Berant, 2018; Yang et al., 2018; Welbl et al., 2018) and remains an active research area in NLP (Qi et al., 2019; Nie et al., 2019; Min et al., 2019; Zhao et al., 2020; Asai et al., 2020; Perez et al., 2020).
25
+
26
+ ![](images/73a454659944835a7feee1f943a32694c385501a6c775db95eb427eff5cb8d0f.jpg)
27
+ Figure 1: An overview of the multi-hop dense retrieval approach.
28
+
29
+ The main problem in answering multi-hop open-domain questions is that the search space grows exponentially with each retrieval hop. Most recent work tackles this issue by constructing a document graph utilizing either entity linking or existing hyperlink structure in the underlying Wikipedia corpus (Nie et al., 2019; Asai et al., 2020). The problem then becomes finding the best path in this graph, where the search space is bounded by the number of hyperlinks in each passage. However, such methods may not generalize to new domains, where entity linking might perform poorly, or where hyperlinks might not be as abundant as in Wikipedia. Moreover, efficiency remains a challenge despite using these data-dependent pruning heuristics, with the best model (Asai et al., 2020) needing hundreds of calls to large pretrained models to produce a single answer.
30
+
31
+ In contrast, we propose to employ dense retrieval to the multi-hop setting with a simple recursive framework. Our method iteratively encodes the question and previously retrieved documents as a query vector and retrieves the next relevant documents using efficient MIPS methods. With highquality, dense representations derived from strong pretrained encoders, our work first demonstrates that the sequence of documents that provide sufficient information to answer the multi-hop question can be accurately discovered from unstructured text, without the help of corpus-specific hyperlinks. When evaluated on two multi-hop benchmarks, HotpotQA (Yang et al., 2018) and a multi-evidence subset of FEVER (Thorne et al., 2018), our approach improves greatly over the traditional linkingbased retrieval methods. More importantly, the better retrieval results also lead to state-of-the-art downstream results on both datasets. On HotpotQA, we demonstrate a vastly improved efficiencyaccuracy trade-off achieved by our system: by limiting the amount of retrieved contexts fed into downstream models, our system can match the best published result while being $1 0 \mathrm { x }$ faster.
32
+
33
+ # 2 METHOD
34
+
35
+ # 2.1 PROBLEM DEFINITION
36
+
37
+ The retrieval task considered in this work can be described as follows (see also Figure 1). Given a multi-hop question $q$ and a large text corpus $\mathcal { C }$ , the retrieval module needs to retrieve a sequence of passages $\mathcal { P } _ { s e q } : \{ p _ { 1 } , p _ { 2 } , . . . , p _ { n } \}$ that provide sufficient information for answering $q$ . Practically, the retriever returns the $k$ best-scoring sequence candidates, ${ \{ \mathcal { P } _ { s e q } ^ { 1 } , \mathcal { P } _ { s e q } ^ { 2 } , . . . , \mathcal { P } _ { s e q } ^ { k } \} }$ $k \ll | \mathcal { C } | )$ , with the hope that at least one of them has the desired qualities. $k$ should be small enough for downstream modules to process in a reasonable time while maintaining adequate recall. In general, retrieval also needs to be efficient enough to handle real-world corpora containing millions of documents.
38
+
39
+ # 2.2 MULTI-HOP DENSE RETRIEVAL
40
+
41
+ Model Based on the sequential nature of the multi-hop retrieval problem, our system solves it in an iterative fashion. We model the probability of selecting a certain passage sequence as follows:
42
+
43
+ $$
44
+ P ( \mathcal P _ { s e q } | q ) = \prod _ { t = 1 } ^ { n } P ( p _ { t } | q , p _ { 1 } , . . . , p _ { t - 1 } ) ,
45
+ $$
46
+
47
+ where for $t = 1$ , we only condition on the original question for retrieval. At each retrieval step, we construct a new query representation based on previous results and the retrieval is implemented as maximum inner product search over the dense representations of the whole corpus:
48
+
49
+ Here $\langle \cdot , \cdot \rangle$ is the inner product between the query and passage vectors. $h ( \cdot )$ and and $g ( \cdot )$ are passage and query encoders that produce the dense representations. In order to reformulate the query representation to account for previous retrieval results at time step $t$ , we simply concatenate the question and the retrieved passages as the inputs to $g ( \cdot )$ . Note that our formulation for each retrieval step is similar to existing single-hop dense retrieval methods (Lee et al., 2019; Guu et al., 2020; Karpukhin et al., 2020) except that we add the query reformulation process conditioned on previous retrieval results. Additionally, instead of using a bi-encoder architecture with separately parameterized encoders for queries and passages, we use a shared RoBERTa-base (Liu et al., 2019) encoder for both $h ( \cdot )$ and $g ( \cdot )$ . In $\ S 3 . 1 . 3$ , we show this simple modification yields considerable improvements. Specifically, we apply layer normalization over the start token’s representations from RoBERTa to get the final dense query/passage vectors.
50
+
51
+ Training and Inference The retriever model is trained as in Karpukhin et al. (2020), where each input query (which at each step consists of a question and previously retrieved passages) is paired with a positive passage and $m$ negative passages to approximate the softmax over all passages. The positive passage is the gold annotated evidence at step $t$ . Negative passages are a combination of passages in the current batch which correspond to other questions (in-batch), and hard negatives which are false adversarial passages. In our experiments, we obtain hard negatives from TF-IDF retrieved passages and their linked pages in Wikipedia. We note that using hyperlinked pages as additional negatives is neither necessary nor critical for our approach. In fact we observe only a very small degradation in performance if we remove them from training (§3.1.3). In addition to in-batch negatives, we use a memory bank $( \mathcal { M } )$ mechanism (Wu et al., 2018) to further increase the number of negative examples for each question. The memory bank stores a large number of dense passage vectors. As we block the gradient back-propagation in the memory bank, its size $( | \mathcal { M } | \gg$ batch size) is less restricted by the GPU memory size. Specifically, after training to convergence with the shared encoder, we freeze a copy of the encoder as the new passage encoder and collect a bank of passage representations across multiple batches to serve as the set of negative passages. This simple extension results in further improvement in retrieval. $( \ S 3 . 1 . 3 )$ .
52
+
53
+ For inference, we first encode the whole corpus into an index of passage vectors. Given a question, we use beam search to obtain top- $k$ passage sequence candidates, where the candidates to beam search at each step are generated by MIPS using the query encoder at step $t$ , and the beams are scored by the sum of inner products as suggested by the probabilistic formulation discussed above. Such inference relies only on the dense passage index and the query representations, and does not need explicit graph construction using hyperlinks or entity linking. The top- $k$ sequences will then be fed into task-specific downstream modules to produce the desired outputs.
54
+
55
+ # 3 EXPERIMENTS
56
+
57
+ Datasets Our experiments focus on two datasets: HotpotQA and Multi-evidence FEVER. HotpotQA (Yang et al., 2018) includes 113k multi-hop questions. Unlike other multi-hop QA datasets (Zhang et al., 2018; Talmor & Berant, 2018; Welbl et al., 2018), where the information sources of the answers are knowledge bases, HotpotQA uses documents in Wikipedia. Thus, its questions are not restricted by the fixed KB schema and can cover more diverse topics. Each question in HotpotQA is also provided with ground truth support passages, which enables us to evaluate the intermediate retrieval performance. Multi-evidence FEVER includes 20k claims from the FEVER (Thorne et al., 2018) fact verification dataset, where the claims can only be verified using multiple documents. We use this dataset to validate the general applicability of our method.
58
+
59
+ Implementation Details All the experiments are conducted on a machine with 8 32GB V100 GPUs. Our code is based on Huggingface Transformers (Wolf et al., 2019). Our best retrieval results are predicted using the exact inner product search index (IndexFlatIP) in FAISS (Johnson et al., 2017).
60
+
61
+ Table 1: Retrieval performance in recall at $k$ retrieved passages and precision/recall/F1.
62
+
63
+ <table><tr><td rowspan="2">Method</td><td colspan="3">HotpotQA</td><td colspan="3">FEVER</td></tr><tr><td>R@2</td><td>R@10</td><td>R@20</td><td>Precision</td><td>Recall</td><td>F1</td></tr><tr><td>TF-IDF</td><td>10.3</td><td>29.1</td><td>36.8</td><td>14.9</td><td>28.2</td><td>19.5</td></tr><tr><td>TF-IDF+Linked</td><td>17.3</td><td>50.0</td><td>62.7</td><td>18.6</td><td>35.8</td><td>24.5</td></tr><tr><td>DrKIT</td><td>38.3</td><td>67.2</td><td>71.0</td><td>-</td><td>1</td><td>-</td></tr><tr><td>Entity Linking</td><td>1</td><td>1</td><td>1</td><td>30.6</td><td>53.8</td><td>39.0</td></tr><tr><td>MDR</td><td>65.9</td><td>77.5</td><td>80.2</td><td>45.7</td><td>69.1</td><td>55.0</td></tr></table>
64
+
65
+ Both datasets assume 2 hops, so we fix $n = 2$ for all experiments. Since HotpotQA does not provide the order of the passage sequences, as a heuristic, we consider the passage that includes the answer span as the final passage. 2 In $\ S 3 . 1 . 3$ , we show that the order of the passages is important for effective retriever training. The hyperparameters can be found in Appendix B.1.
66
+
67
+ # 3.1 EXPERIMENTS: RETRIEVAL
68
+
69
+ We evaluate our multi-hop dense retriever (MDR) in two different use cases: direct and reranking, where the former outputs the top- $k$ results directly using the retriever scores and the latter applies a task-specific reranking model to the initial results from MDR.
70
+
71
+ # 3.1.1 DIRECT
72
+
73
+ We first compare MDR with several efficient retrieval methods that can directly find the top- $k$ passage sequences from a large corpus, including TF-IDF, TF- $\mathrm { . I D F + }$ Linked, DrKIT and Entity Linking. TFIDF is the standard term-matching baseline, while TF-IDF $^ +$ Linked is a straightforward extension that also extracts the hyperlinked passages from TF-IDF passages, and then reranks both TF-IDF and hyperlinked passages with $\mathbf { B } \mathbf { M } 2 5 \mathbf { \Omega } ^ { 3 }$ scores. DrKIT (Dhingra et al., 2020) is a recently proposed dense retrieval approach, which builds a entity-level (mentions of entities) dense index for retrieval. It relies on hyperlinks to extract entity mentions and prunes the search space with a binary mask that restricts the next hop to using hyperlinked entities. On FEVER, we additionally consider an entity linking baseline (Hanselowski et al., 2018) that is commonly used in existing fact verification pipelines. This baseline first uses a constituency parser to extract potential entity mentions in the fact claim and then uses the MediaWiki API to search documents with titles that match the mentions.
74
+
75
+ Table 1 shows the performance of different retrieval methods. On HotpotQA the metric is recall at the top $k$ paragraphs4, while on FEVER the metrics are precision, recall and $\mathrm { F _ { 1 } }$ in order to be consistent with previous results. On both datasets, MDR substantially outperforms all baselines.
76
+
77
+ # 3.1.2 RERANKING
78
+
79
+ Reranking documents returned by efficient retrieval methods with a more sophisticated model is a common strategy for improving retrieval quality. For instance, state-of-the-art multi-hop QA systems usually augment traditional IR techniques with large pretrained language models to select a more compact but precise passage set. On HotpotQA, we test the effectiveness of MDR after a simple BERT-based reranking: each of the top $k$ passage sequences from MDR is first prepended with the original question and then fed into a BERT-like encoder that predicts relevant scores. We train this reranking model with a binary cross-entropy loss, with the target being whether the passage sequence cover both groundtruth passages. We empirically compare our approach with two other existing reranking-based retrieval methods: Semantic Retrieval (Nie et al., 2019) uses BERT at both passage-level and sentence-level to select context from the initial TF-IDF and hyperlinked passages; Graph Recurrent Retriever (Asai et al., 2020) learns to recursively select the best passage sequence on top of a hyperlinked passage graph, where each passage node is encoded with BERT.
80
+
81
+ Table 2 shows the reranking results. Following Asai et al. (2020), we use Answer Recall and Support Passage Exact Match $( S P E M ) ^ { 5 }$ as the evaluation metrics. Even without reranking, MDR is already better than Semantic Retrieval, which requires around 50 BERT encoding (where each encoding involves cross-attention over a concatenated question-passage pair). After we rerank the top-100 sequences from the dense retriever, our passage recall is better than the state-of-the-art Graph Recurrent Retriever, which uses BERT to process more than 500 passages. We do not compare the reranked results on FEVER, as most FEVER systems directly use BERT encoder to select the top evidence sentences from the retrieved documents, instead of the reranking the documents.
82
+
83
+ Table 2: HotpotQA reranked retrieval results (input passages for final answer prediction).
84
+
85
+ <table><tr><td>Method</td><td>SP EM</td><td>Ans Recall</td></tr><tr><td>Semantic Retrieval</td><td>63.9</td><td>77.9</td></tr><tr><td>Graph Rec Retriever</td><td>75.7</td><td>87.5</td></tr><tr><td>MDR (direct)</td><td>65.9</td><td>75.4</td></tr><tr><td>MDR (reranking)</td><td>81.2</td><td>88.2</td></tr></table>
86
+
87
+ Table 3: Retriever Model Ablation on HotpotQA retrieval. Single-hop here is equivalent to the DPR method (Karpukhin et al., 2020).
88
+
89
+ <table><tr><td>Retriever variants</td><td>R@2</td><td>R@10</td><td>R@20</td></tr><tr><td>Full Retrieval Model</td><td>65.9</td><td>77.5</td><td>80.2</td></tr><tr><td>- w/o linked negatives</td><td>64.6</td><td>76.8</td><td>79.6</td></tr><tr><td>- w/o memory bank</td><td>63.7</td><td>74.2</td><td>77.2</td></tr><tr><td>- w/o shared encoder</td><td>59.9</td><td>70.6</td><td>73.1</td></tr><tr><td>- w/o order</td><td>17.6</td><td>55.6</td><td>62.3</td></tr><tr><td>Single-hop</td><td>25.2</td><td>45.4</td><td>52.1</td></tr></table>
90
+
91
+ # 3.1.3 ANALYSIS
92
+
93
+ To understand the strengths and weaknesses of MDR, we conduct further analysis on HotpotQA dev.
94
+
95
+ Retrieval Error Analysis HotpotQA contains two question categories: bridge questions in which an intermediate entity is missing and needs to be retrieved before inferring the answer; and comparison questions where two entities are mentioned simultaneously and compared in some way. In Figure 2, we show the retrieval performance of both question types. The case of comparison questions proves easier, since both entities needed for retrieval are present in the question.
96
+
97
+ This case appears almost solved, confirming recent work demonstrating that dense retrieval is very effective at entity linking (Wu et al., 2019).
98
+
99
+ For the case of bridge questions, we manually inspect 50 randomly sampled erroneous examples after reranking. We find that in half of these cases, our retrieval model predicts an alternative passage sequence that is also valid (see Appendix A.1 for examples).
100
+
101
+ ![](images/54c347cef2bfcd3a83e607929fe87c1ee3d212945badc8d68f52f331dad1176d.jpg)
102
+ Figure 2: The retrieval performance gap between comparison and bridge questions. Left: recall of groundtruth passage sequences without reranking. Right: Top-1 chain exact match after reranking.
103
+
104
+ This gives an estimated top-1 passage sequence accuracy of about $90 \%$ . Other remaining errors are due to the dense method’s inability to capture the exact n-gram match between the question and passages. This is a known issue (Lee et al., 2019; Karpukhin et al., 2020) of dense retrieval methods when dealing with questions that have high lexical overlap with the passages. To this end, a hybrid multi-hop retrieval method with both term and dense index might be used to further improve the performance on bridge questions.
105
+
106
+ Retriever Ablation Study In Table 3, we examine our model with different variations on HotpotQA to show the effectiveness of each proposed component. We see that further training with a memory bank results in modest gains, while using a shared encoder is crucial for the best performance. Respecting the ordering of passages in two hops is essential - training in an order-agnostic manner hardly works at all, and underperforms even the single-hop baseline. Finally, not using hyperlinked paragraphs from TF-IDF passages as additional negatives has only a minor impact on performance.
107
+
108
+ Question Decomposition for Retrieval As multi-hop questions have more complex structures than simple questions, recent studies (Min et al., 2019; Perez et al., 2020) propose to use explicit question decomposition to simplify the problem. Wolfson et al. (2020) shows that with TF-IDF, using decomposed questions improves the retrieval results. We investigate whether the conclusion still holds with stronger dense retrieval methods. We use the human-annotated question decomposition from the QDMR dataset (Wolfson et al., 2020) for analysis. For a question like Q:Mick Carter is the landlord of a public house located at what address?, QDMR provides two subquestions, SubQ1: What is the public house that Mick Carter is the landlord of? and SubQ2: What is the address that #1 is located at?. We sample 100 bridge questions and replace $\# 1$ in SubQ2 with the correct answer (The Queen Victoria) to SubQ1. Note that this gives advantages to the decomposed method as we ignore any intermediate errors. We estimate the performance of potential decomposed methods with the state-of-the-art single-hop dense retrieval model (Karpukhin et al., 2020).
109
+
110
+ As shown in Table 4, we did not observe any strong improvements from explicit question decomposition, which is contrary to the findings by Wolfson et al. (2020) when using term-based IR methods. Moreover, as shown in the third row of the table, when the 1st hop of the decomposed retrieval (i.e., SubQ1) is replaced with the original question, no performance degradation is observed. This suggests that strong pretrained encoders can effectively learn to select necessary information from the multi-hop question at each
111
+
112
+ Table 4: Comparison with decomposed dense retrieval which uses oracle question decomposition (test on 100 bridge questions). See text for details about the decomposed settings.
113
+
114
+ <table><tr><td>Method</td><td>R@2</td><td>R@10</td><td>R@20</td></tr><tr><td>MDR</td><td>54.9</td><td>63.7</td><td>70.6</td></tr><tr><td>Decomp (SubQ1;SubQ2)</td><td>50.0</td><td>64.7</td><td>67.6</td></tr><tr><td>Decomp (Q;SubQ2)</td><td>51.0</td><td>64.7</td><td>68.6</td></tr></table>
115
+
116
+ retrieval step. Regarding the performance drop when using explicit compositions, we hypothesize that it is because some information in one decomposed subquestion could be useful for the other retrieval hop. Examples supporting this hypothesis can be found in Appendix A.2. While this could potentially be addressed by a different style of decomposition, our analysis suggests that decomposition approaches might be sub-optimal in the context of dense retrieval with strong pretrained encoders.
117
+
118
+ # 3.2 EXPERIMENTS: HOTPOTQA
119
+
120
+ We evaluate how the better retrieval results of MDR improve multi-hop question answering in this section. As our retriever system is agnostic to downstream models, we test two categories of answer prediction architectures: the extractive span prediction models based on pretrained masked language models, such as BERT (Devlin et al., 2019) and ELECTRA (Clark et al., 2020), and the retrieval-augmented generative reader models (Lewis et al., 2020b; Izacard & Grave, 2020), which are based on pretrained sequence-to-sequence (seq2seq) models such as BART (Lewis et al., 2020a) and T5 (Raffel et al., 2019). Note that compared to more complicated graph reasoning models (Fang et al., 2019; Zhao et al., 2020), these two classes of models do not rely on hyperlinks and can be applied to any text.
121
+
122
+ Extractive reader models learn to predict an answer span from the concatenation of the question and passage sequence $( [ q , p _ { 1 } , . . . , p _ { n } ] )$ . On top of the token representations produced by pretrained models, we add two prediction heads to predict the start and end position of the answer span.6 To predict the supporting sentences, we add another prediction head and predict a binary label at each sentence start. For simplicity, the same encoder is also responsible for reranking the top $k$ passage sequences. The reranking detail has been discussed in $\ S 3 . 1 . 2$ . Our best reader model is based on ELECTRA (Clark et al., 2020), which has achieved the best single-model performance on the standard SQuAD (Rajpurkar et al., 2018) benchmark. Additionally, we also report the performance of BERT-large with whole word masking (BERT-wwm) to fairly compare with Asai et al. (2020).
123
+
124
+ Generative models, such as RAG (Lewis et al., 2020b) and FiD (Izacard & Grave, 2020), are based on pretrained seq2seq models. These methods finetune pretrained models with the concatenated questions and retrieved documents as inputs, and answer tokens as outputs. This generative paradigm has shown state-of-the-art performance on single-hop open-domain QA tasks. Specifically, FiD first uses the T5 encoder to process each retrieved passage sequence independently and then uses the decoder to perform attention over the representations of all input tokens while generating answers. RAG is built on the smaller BART model. Instead of only tuning the seq2seq model, it also jointly train the question encoder of the dense retriever. We modified it to allow multi-hop retrieval.
125
+
126
+ More details about these two classes of reader models are described in Appendix B.2.
127
+
128
+ 3.2.1 RESULTS
129
+ Table 5: HotpotQA-fullwiki test results.
130
+
131
+ <table><tr><td rowspan="2">Methods</td><td colspan="2">Answer</td><td colspan="2">Support</td><td colspan="2">Joint</td></tr><tr><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>GoldEn Retriever (Qi et al.,2019)</td><td>37.9</td><td>48.6</td><td>30.7</td><td>64,2</td><td>18.9</td><td>39.1</td></tr><tr><td>Semantic Retrieval (Nie et al.,2019)</td><td>46.5</td><td>58.8</td><td>39.9</td><td>71.5</td><td>26.6</td><td>49.2</td></tr><tr><td>Transformer-XH (Zhao et al., 2020)</td><td>51.6</td><td>64.1</td><td>40.9</td><td>71.4</td><td>26.1</td><td>51.3</td></tr><tr><td>HGN (Fang et al., 2019)</td><td>56.7</td><td>69.2</td><td>50.0</td><td>76.4</td><td>35.6</td><td>59.9</td></tr><tr><td>DrKIT (Dhingra et al., 2020)</td><td>42.1</td><td>51.7</td><td>37.1</td><td>59.8</td><td>24.7</td><td>42.9</td></tr><tr><td>Graph Recurrent Retriever (Asai et al., 2020)</td><td>60.0</td><td>73.0</td><td>49.1</td><td>76.4</td><td>35.4</td><td>61.2</td></tr><tr><td>MDR (ELECTRA Reader)</td><td>62.3</td><td>75.3</td><td>57.5</td><td>80.9</td><td>41.8</td><td>66.6</td></tr></table>
132
+
133
+ Comparison with Existing Systems Table 5 compares the HotpotQA test performance of our best ELECTRA reader with recently published systems, using the numbers from the official leaderboard, which measure answer and supporting sentence exact match (EM)/F1 and joint EM/F1. Among these methods, only GoldEn Retriever (Qi et al., 2019) does not exploit hyperlinks. In particular, Graph Recurrent Retriever trains a graph traversal model for chain retrieval; TransformerXH (Zhao et al., 2020) and HGN (Fang et al., 2019) explicitly encode the hyperlink graph structure within their answer prediction models. In fact, this particular inductive bias provides a perhaps unreasonably strong advantage in the specific context of HotpotQA, which by construction guarantees groundtruth passage sequences to follow hyperlinks. Despite not using such prior knowledge, our model outperforms all previous systems by large margins, especially on supporting fact prediction, which benefits more directly from better retrieval.
134
+
135
+ Reader Model Variants Results for reader model variants are shown in Table 6.7 First, we see that the BERT-wwm reader is $1 \%$ worse than the ELECTRA reader when using enough passages. However, it still outperforms the results in (Asai et al., 2020) which also uses BERT-wwm for answer prediction. While RAG and FiD have shown strong improvements over extractive models on single-hop datasets such as NaturalQuestions (Kwiatkowski
136
+
137
+ Table 6: Reader comparison on HotpotQA dev set.
138
+
139
+ <table><tr><td></td><td>Model</td><td>Topk</td><td>EM</td><td>F1</td></tr><tr><td rowspan="2">Extractive</td><td>ELECTRA ELECTRA</td><td>Top50</td><td>61.7</td><td>74.3</td></tr><tr><td>BERT-wwm</td><td>Top 250 Top250</td><td>63.4 61.5</td><td>76.2 74.7</td></tr><tr><td rowspan="2">Generative</td><td rowspan="2">Multi-hop RAG FiD</td><td>Top 4*4</td><td>51.2</td><td>63.9</td></tr><tr><td>Top 50</td><td>61.7</td><td>73.1</td></tr></table>
140
+
141
+ et al., 2019), they do not show an advantage in the multi-hop case. Despite having twice as many parameters as ELECTRA, FiD fails to outperform it using the same amount of context (top 50). In contrast, on NaturalQuestions, FiD is 4 points better than a similar extractive reader when using the top 100 passages in both.8 We hypothesize that the improved performance on single-hop questions is due to the ability of larger pretrained models to more effectively memorize single-hop knowledge about real-world entities.9 Compared to multi-hop questions that involve multiple relations and missing entities, simple questions usually only ask about a certain property of an entity. It is likely that such simple entity-centric information is explicitly mentioned by a single text piece in the pretraining corpus, while the evidence for multihop questions is typically dispersed, making the complete reasoning chain nontrivial to memorize. More analysis on RAG can be found in Appendix A.3.
142
+
143
+ Table 7: Multi-Evidence FEVER Fact Verification Results. Loose-Multi represents the subset that requires multiple evidence sentences. Strict-Multi is a subset of Loose-Multi that require multiple evidence sentences from different documents.
144
+
145
+ <table><tr><td>Method</td><td>Loose-Multi (1,960) LA FEVER</td><td>Strict-Multi (1,059) LA</td><td>FEVER</td></tr><tr><td>GEAR</td><td>66.4</td><td></td><td></td></tr><tr><td>GAT</td><td>66.1</td><td>1 -</td><td>1 =</td></tr><tr><td>KGAT with ESIM rerank</td><td>65.9</td><td>51.5</td><td>7.7</td></tr><tr><td>KGAT with BERT rerank</td><td>65.9</td><td>51.0</td><td>6.2</td></tr><tr><td>Ours + KGAT with BERT rerank</td><td>77.9</td><td>72.1</td><td>16.2</td></tr></table>
146
+
147
+ Inference Efficiency To compare with existing multi-hop QA systems in terms of efficiency, we follow Dhingra et al. (2020) and measure the inference time with 16 CPU cores and batch size 1. We implement our system with a fast approximate nearest neighbor search method, i.e., HNSW (Malkov & Yashunin, 2018), which achieves nearly the same performance as exact search. With an in-memory index, we observe that the retrieval time is negligible compared to the forward pass of large pretrained models. Similarly, for systems that use term-based indices, the BERT calls for passage reranking cause the main efficiency bottleneck. Thus, for systems that do not release the end-to-end code, we estimate the running time based on the number of BERT cross-attention forward passes (the same estimation strategy used by Dhingra et al. (2020)), and ignore the overhead caused by ad
148
+
149
+ ![](images/71c9c5c48ff3e7e240450bcaa22e5bd13cfdaed09d05f4b9869bb2c235bfdc32.jpg)
150
+ Figure 3: Efficiency-performance trade-off comparison with published HotpotQA systems. The curve is plotted with different number of top $k$ $( k { = } 1 , 5 , 1 0 , 2 0 , 5 0 , 1 0 0 , 2 0 0 )$ passage sequences we feed into the reader model. seq/Q denotes the time required for each query.
151
+
152
+ ditional processing such as TF-IDF or linking graph construction. As shown in Figure 3, our method is about 10 times faster than current state-of-the-art systems while achieving a similar level of performance. Compared to two efficient systems (DrKIT and GoldEn), we achieve over 10 points improvement while only using the top-1 retrieval result for answer and supporting sentence prediction.
153
+
154
+ # 3.3 EXPERIMENTS: MULTI-EVIDENCE FEVER
155
+
156
+ For FEVER claim verification, we reuse the best open-sourced verification system, i.e., KGAT (Liu et al., 2020), to show the benefit of our retrieval approach over existing retrieval methods. We report the results in verification label accuracy (LA) and the FEVER score10 in Table 7, where the numbers of competitive baselines, GEAR (Zhou et al., 2019), graph attention network (GAT) (Velickovi ˇ c´ et al., 2017) and variants of KGAT are from the KGAT (Liu et al., 2020) paper. All these baselines use entity linking for document retrieval, then rerank the sentences of the retrieved documents, and finally use different graph attention mechanisms over the fully-connected sentence graph to predict verification labels. Since some instances in the multi-evidence subset used by previous studies only needs multiple evidence sentences from the same document, we additionally test on a strict multi-hop subset with instances that need multiple documents. As shown by the results, even without finetuning the downstream modules, simply replacing the retrieval component with MDR leads to significant improvements, especially on the strict multi-evidence subset.
157
+
158
+ # 4 RELATED WORK
159
+
160
+ Open-domain QA with Dense Retrieval In contrast to sparse term-index IR methods that are widely used by existing open-domain QA systems (Chen et al., 2017; Wang et al., 2018; Yang et al., 2019), recent systems (Lee et al., 2019; Guu et al., 2020; Karpukhin et al., 2020) typically uses dense passage retrieval techniques that better capture the semantic matching beyond simple n-gram overlaps. To generate powerful dense question and passage representations, these methods either conduct large-scale pretraining with self-supervised tasks that are close to the underlying question-passage matching in retrieval, or directly use the human-labeled question-passage pairs to finetune pretrained masked language models. On single-hop information-seeking QA datasets such as NaturalQuestions (Kwiatkowski et al., 2019) or WebQuestions (Berant et al., 2013), these dense methods have achieved significant improvements over traditional IR methods. Prior to these methods based on pretrained models, Das et al. (2019) use RNN encoder to get dense representations of questions and passages. They also consider an iterative retrieval process and reformulate the query representation based on reader model’s hidden states. However, their method requires an initial round of TF-IDF/BM25 retrieval and a sophisticated RL-based training paradigm to work well. Finally, like the aforementioned methods, only single-hop datasets are considered in their experiments. More akin to our approach, Feldman & El-Yaniv (2019) use a similar recursive dense retrieval formulation for multi-hop QA. In contrast to their biattenional reformulation component applied on top of token query and passage representations, we adopt a more straightforward query reformulation strategy, by simply concatenating the original query and previous retrieval as the inputs to the query encoder. Together with stronger pretrained encoders and more effective training methods (in-batch $^ +$ memory bank negative sampling vs their binary ranking loss), MDR is able to double the accuracy of their system.
161
+
162
+ Query Expansion Techniques in IR As our dense encoder augments the original question with the initial retrieved results to form the updated query representation, our work is also relevant to query expansion techniques (Rocchio, 1971; Voorhees, 1994; Ruthven & Lalmas, 2003) that are widely used in traditional IR systems. In particular, our system is similar in spirit to pseudo-relevance feedback techniques (Croft & Harper, 1979; Cao et al., 2008; Lv & Zhai, 2010), where no additional user interaction is required at the query reformulation stage. Existing studies mainly focus on alleviating the uncertainty of the user query (Collins-Thompson & Callan, 2007) by adding relevant terms from the first round of retrieval, where the retrieval target remains the same throughout the iterative process. In contrast, the query reformulation in our approach aims to follow the multi-hop reasoning chain and effectively retrieves different targets at each step. Furthermore, instead of explicitly selecting terms to expand the query, we simply concatenate the whole passage and rely on the pretrained encoder to choose useful information from the last retrieved passage.
163
+
164
+ Other Multi-hop QA Work Apart from HotpotQA, other multi-hop QA datasets (Welbl et al., 2018; Talmor & Berant, 2018; Zhang et al., 2018) are mostly built from knowledge bases (KBs). Compared to questions in HotpotQA, questions in these datasets are rather synthetic and less diverse. As multi-hop relations in KBs could be mentioned together in a single text piece, these datasets are not designed for an open-domain setting which necessitates multi-hop retrieval. Existing methods on these datasets either retrieve passages from a small passage pool pruned based on the the specific dataset (Sun et al., 2019; Dhingra et al., 2020), or focus on a non-retrieval setting where a compact documents set is already given (De Cao et al., 2018; Zhong et al., 2019; Tu et al., 2019; Beltagy et al., 2020). Compared to these research, our work aims at building an efficient multi-hop retrieval model that easily scales to large real-world corpora that include millions of open-domain documents.
165
+
166
+ # 5 CONCLUSION
167
+
168
+ In this work, we generalized the recently proposed successful dense retrieval methods by extending them to the multi-hop setting. This allowed us to handle complex multi-hop queries with much better accuracy and efficiency than the previous best methods. We demonstrated the versatility of our approach by applying it to two different tasks, using a variety of downstream modules. In addition, the simplicity of the framework and the fact that it does not depend on a corpus-dependent graph structure opens the possibility of applying such multi-hop retrieval methods more easily and broadly cross different domains and settings.
169
+
170
+ # REFERENCES
171
+
172
+ Akari Asai, Kazuma Hashimoto, Hannaneh Hajishirzi, Richard Socher, and Caiming Xiong. Learning to retrieve reasoning paths over wikipedia graph for question answering. In ICLR. OpenReview.net, 2020.
173
+
174
+ Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
175
+
176
+ Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. Semantic parsing on freebase from question-answer pairs. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1533–1544, 2013.
177
+
178
+ Guihong Cao, Jian-Yun Nie, Jianfeng Gao, and Stephen Robertson. Selecting good expansion terms for pseudo-relevance feedback. In Proceedings of the 31st annual international ACM SIGIR conference on Research and development in information retrieval, pp. 243–250, 2008.
179
+
180
+ Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to answer open-domain questions. In ACL (1), pp. 1870–1879. Association for Computational Linguistics, 2017.
181
+
182
+ Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. ELECTRA: pre-training text encoders as discriminators rather than generators. In ICLR. OpenReview.net, 2020.
183
+
184
+ Kevyn Collins-Thompson and Jamie Callan. Estimation and use of uncertainty in pseudo-relevance feedback. In Proceedings of the 30th annual international ACM SIGIR conference on Research and development in information retrieval, pp. 303–310, 2007.
185
+
186
+ W Bruce Croft and David J Harper. Using probabilistic models of document retrieval without relevance information. Journal of documentation, 1979.
187
+
188
+ Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. Multi-step retrieverreader interaction for scalable open-domain question answering. arXiv preprint arXiv:1905.05733, 2019.
189
+
190
+ Nicola De Cao, Wilker Aziz, and Ivan Titov. Question answering by reasoning across documents with graph convolutional networks. arXiv preprint arXiv:1808.09920, 2018.
191
+
192
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT (1), pp. 4171–4186. Association for Computational Linguistics, 2019.
193
+
194
+ Bhuwan Dhingra, Manzil Zaheer, Vidhisha Balachandran, Graham Neubig, Ruslan Salakhutdinov, and William W. Cohen. Differentiable reasoning over a virtual knowledge base. In ICLR. OpenReview.net, 2020.
195
+
196
+ Yuwei Fang, Siqi Sun, Zhe Gan, Rohit Pillai, Shuohang Wang, and Jingjing Liu. Hierarchical graph network for multi-hop question answering. arXiv preprint arXiv:1911.03631, 2019.
197
+
198
+ Yair Feldman and Ran El-Yaniv. Multi-hop paragraph retrieval for open-domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2296–2309, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1222. URL https://www.aclweb.org/anthology/P19-1222.
199
+
200
+ Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. Realm: Retrievalaugmented language model pre-training. arXiv preprint arXiv:2002.08909, 2020.
201
+
202
+ Andreas Hanselowski, Hao Zhang, Zile Li, Daniil Sorokin, Benjamin Schiller, Claudia Schulz, and Iryna Gurevych. Ukp-athene: Multi-sentence textual entailment for claim verification. arXiv preprint arXiv:1809.01479, 2018.
203
+
204
+ Gautier Izacard and Edouard Grave. Leveraging passage retrieval with generative models for open domain question answering. arXiv preprint arXiv:2007.01282, 2020.
205
+
206
+ Jeff Johnson, Matthijs Douze, and Herve J ´ egou. Billion-scale similarity search with gpus. ´ arXiv preprint arXiv:1702.08734, 2017.
207
+
208
+ Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi ˘ Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. In EMNLP. Association for Computational Linguistics, 2020.
209
+
210
+ Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453–466, 2019.
211
+
212
+ Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In ACL (1), pp. 6086–6096. Association for Computational Linguistics, 2019.
213
+
214
+ Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. BART: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In ACL, pp. 7871–7880. Association for Computational Linguistics, 2020a.
215
+
216
+ Patrick Lewis, Ethan Perez, Aleksandara Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Rockt ¨ aschel, et al. Retrieval-augmented genera- ¨ tion for knowledge-intensive nlp tasks. arXiv preprint arXiv:2005.11401, 2020b.
217
+
218
+ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
219
+
220
+ Zhenghao Liu, Chenyan Xiong, Maosong Sun, and Zhiyuan Liu. Fine-grained fact verification with kernel graph attention network. In ACL, pp. 7342–7351. Association for Computational Linguistics, 2020.
221
+
222
+ Yuanhua Lv and ChengXiang Zhai. Positional relevance model for pseudo-relevance feedback. In Proceedings of the 33rd international ACM SIGIR conference on Research and development in information retrieval, pp. 579–586, 2010.
223
+
224
+ Yury A Malkov and Dmitry A Yashunin. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE transactions on pattern analysis and machine intelligence, 2018.
225
+
226
+ Sewon Min, Victor Zhong, Luke Zettlemoyer, and Hannaneh Hajishirzi. Multi-hop reading comprehension through question decomposition and rescoring. In ACL (1), pp. 6097–6109. Association for Computational Linguistics, 2019.
227
+
228
+ Yixin Nie, Songhe Wang, and Mohit Bansal. Revealing the importance of semantic retrieval for machine reading at scale. In EMNLP/IJCNLP (1), pp. 2553–2566. Association for Computational Linguistics, 2019.
229
+
230
+ Ethan Perez, Patrick Lewis, Wen-tau Yih, Kyunghyun Cho, and Douwe Kiela. Unsupervised question decomposition for question answering. In EMNLP. Association for Computational Linguistics, 2020.
231
+
232
+ Peng Qi, Xiaowen Lin, Leo Mehr, Zijian Wang, and Christopher D. Manning. Answering complex open-domain questions through iterative query generation. In EMNLP/IJCNLP (1), pp. 2590–2602. Association for Computational Linguistics, 2019.
233
+
234
+ Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019.
235
+
236
+ Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions for squad. In ACL (2), pp. 784–789. Association for Computational Linguistics, 2018.
237
+
238
+ Adam Roberts, Colin Raffel, and Noam Shazeer. How much knowledge can you pack into the parameters of a language model? arXiv preprint arXiv:2002.08910, 2020.
239
+
240
+ Joseph Rocchio. Relevance feedback in information retrieval. The Smart retrieval system-experiments in automatic document processing, pp. 313–323, 1971.
241
+
242
+ Ian Ruthven and Mounia Lalmas. A survey on the use of relevance feedback for information access systems. Knowledge engineering review, 18(2):95–145, 2003.
243
+
244
+ Haitian Sun, Tania Bedrax-Weiss, and William W Cohen. Pullnet: Open domain question answering with iterative retrieval on knowledge bases and text. arXiv preprint arXiv:1904.09537, 2019.
245
+
246
+ Alon Talmor and Jonathan Berant. The web as a knowledge-base for answering complex questions. In NAACL-HLT, pp. 641–651. Association for Computational Linguistics, 2018.
247
+
248
+ James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. FEVER: a largescale dataset for fact extraction and verification. In NAACL-HLT, pp. 809–819. Association for Computational Linguistics, 2018.
249
+
250
+ Ming Tu, Guangtao Wang, Jing Huang, Yun Tang, Xiaodong He, and Bowen Zhou. Multi-hop reading comprehension across multiple documents by reasoning over heterogeneous graphs. arXiv preprint arXiv:1905.07374, 2019.
251
+
252
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
253
+
254
+ Ellen M Voorhees. Query expansion using lexical-semantic relations. In SIGIR’94, pp. 61–69. Springer, 1994.
255
+
256
+ Shuohang Wang, Mo Yu, Xiaoxiao Guo, Zhiguo Wang, Tim Klinger, Wei Zhang, Shiyu Chang, Gerry Tesauro, Bowen Zhou, and Jing Jiang. $\mathrm { R } ^ { \bar { 3 } }$ : Reinforced ranker-reader for open-domain question answering. In AAAI, pp. 5981–5988. AAAI Press, 2018.
257
+
258
+ Johannes Welbl, Pontus Stenetorp, and Sebastian Riedel. Constructing datasets for multi-hop reading comprehension across documents. Trans. Assoc. Comput. Linguistics, 6:287–302, 2018.
259
+
260
+ Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, et al. Huggingface’s transformers: ´ State-of-the-art natural language processing. ArXiv, pp. arXiv–1910, 2019.
261
+
262
+ Tomer Wolfson, Mor Geva, Ankit Gupta, Yoav Goldberg, Matt Gardner, Daniel Deutch, and Jonathan Berant. Break it down: A question understanding benchmark. Trans. Assoc. Comput. Linguistics, 8:183–198, 2020.
263
+
264
+ Ledell Wu, Fabio Petroni, Martin Josifoski, Sebastian Riedel, and Luke Zettlemoyer. Zero-shot entity linking with dense entity retrieval. arXiv preprint arXiv:1911.03814, 2019.
265
+
266
+ Zhirong Wu, Yuanjun Xiong, Stella X. Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, pp. 3733–3742. IEEE Computer Society, 2018.
267
+
268
+ Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li, and Jimmy Lin. End-to-end open-domain question answering with bertserini. arXiv preprint arXiv:1902.01718, 2019.
269
+
270
+ Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. In EMNLP, pp. 2369–2380. Association for Computational Linguistics, 2018.
271
+
272
+ Yuyu Zhang, Hanjun Dai, Zornitsa Kozareva, Alexander J. Smola, and Le Song. Variational reasoning for question answering with knowledge graph. In AAAI, pp. 6069–6076. AAAI Press, 2018.
273
+
274
+ Chen Zhao, Chenyan Xiong, Corby Rosset, Xia Song, Paul N. Bennett, and Saurabh Tiwary. Transformer-xh: Multi-evidence reasoning with extra hop attention. In ICLR. OpenReview.net, 2020.
275
+
276
+ Victor Zhong, Caiming Xiong, Nitish Shirish Keskar, and Richard Socher. Coarse-grain fine-grain coattention network for multi-evidence question answering. arXiv preprint arXiv:1901.00603, 2019.
277
+
278
+ Jie Zhou, Xu Han, Cheng Yang, Zhiyuan Liu, Lifeng Wang, Changcheng Li, and Maosong Sun. GEAR: graph-based evidence aggregating and reasoning for fact verification. In ACL (1), pp. 892–901. Association for Computational Linguistics, 2019.
279
+
280
+ # A QUALITATIVE ANALYSIS
281
+
282
+ # A.1 FALSE BRIDGE QUESTION ERROR CASES
283
+
284
+ As mentioned in $\ S 3 . 1 . 3$ , half of the errors of bridge questions are not real errors. In Table 8, we can see that the model predicts alternative passage sequences that could also be used to answer the questions.
285
+
286
+ # Predicted:
287
+
288
+ 1. Museum of Human Beings: Museum of Human Beings, included in the National American Indian Heritage Month Booklist, November 2012 and 2013 is a novel written by Colin Sargent, which delves into the heart-rending life of Jean-Baptiste Charbonneau, the son of Sacagawea. Sacagawea was the Native American guide, who at 16 led the Lewis and Clark expedition.
289
+
290
+ 2. Jean Baptiste Charbonneau: Jean Baptiste Charbonneau (February 11, 1805 – May 16, 1866) was an American Indian explorer, guide, fur trapper trader, military scout during the MexicanAmerican War, ”alcalde” (mayor) of Mission San Luis Rey de Francia and a gold prospector and hotel operator in Northern California. He spoke French and English, and learned German and Spanish during his six years in Europe from 1823 to 1829. He spoke Shoshone, his mother tongue, and other western American Indian languages...
291
+
292
+ Q: Altnahinch is located in a county that has a population density of how many per square mile? Ground-truth SP Passage Titles: Altnahinch Dam; County Antrim
293
+
294
+ # Predicted:
295
+
296
+ 1. Altnahinch: Altnahinch is a townland in County Antrim, Northern Ireland.
297
+
298
+ 2. County Antrim: County Antrim (named after the town of Antrim, from Irish: ”Aontroim” , meaning ”lone ridge” , )) is one of six counties that form Northern Ireland. Adjoined to the north-east shore of Lough Neagh, the county covers an area of $3 0 4 6 \mathrm { k m } 2$ and has a population of about 618,000. County Antrim has a population density of 203 people per square kilometer / 526 people per square mile...
299
+
300
+ Q: What foundation do scholars give for the likelihood of collaboration on a William Shakespeare Play written between 1588 and 1593?
301
+
302
+ # Ground-truth SP Passage Titles:
303
+
304
+ Authorship of Titus Andronicus, William Shakespeare’s collaborations
305
+
306
+ # Predicted:
307
+
308
+ 1. Titus Andronicus: Titus Andronicus is a tragedy by William Shakespeare, believed to have been written between 1588 and 1593, probably in collaboration with George Peele. It is thought to be Shakespeare’s first tragedy, and is often seen as his attempt to emulate the violent and bloody revenge plays of his contemporaries, which were extremely popular with audiences throughout the 16th century.
309
+
310
+ 2. William Shakespeare’s collaborations: Like most playwrights of his period, William Shakespeare did not always write alone... Some of the following attributions, such as ”The Two Noble Kinsmen”, have well-attested contemporary documentation; others, such as ”Titus Andronicus”, are dependent on linguistic analysis by modern scholars...
311
+
312
+ Q: Zach Parise’s father played in which league?
313
+
314
+ Ground-truth SP Passage Titles: Jordan Parise; Zach Parise
315
+
316
+ # Predicted:
317
+
318
+ 1. Zach Parise: Zachary Justin Parise (born July 28, 1984) is an American professional ice hockey left winger who is currently serving as an alternate captain for the Minnesota Wild in the National Hockey League (NHL). He has also played for the New Jersey Devils, where he served as team captain and led the team to the 2012 Stanley Cup Finals. Parise’s father, J. P. Parise... ´ 2. J. P. Parise´: Jean-Paul Joseph-Louis Parise (December 11, 1941 – January 7, 2015) was a ´ Canadian professional ice hockey coach and player. Parise played in the National Hockey League (NHL), most notably for the Minnesota North Stars and the New York Islanders.
319
+
320
+ <table><tr><td>Table 9: Sampled retrieval errors (marked in red) only made by the decomposed system. These errors could be potentially avoided if the model has access to the full information in the original question or previous hop results. The important clue for correctly retrieving the documents or avoiding errors is marked in blue. Once decomposed,the marked information are not longer available in one of the decomposed retrieval hop. Multi-hop Question: What is the birthday of the author of &quot;She Walks These Hills&quot;?</td></tr><tr><td>Decomposed Questions: 1.Who is the author of She Walks These Hills? 2. What is the birthday of Sharyn McCrumb? Ground-truth SP Passages: She Walks These Hills: She Walks These Hills is a book written by Sharyn McCrumb and published by Charles Scribner&#x27;s Sons in 1994, which later went on to win the Anthony Award for Best Novel in 1995. Sharyn McCrumb: Sharyn McCrumb (born February 26,1948) is an American writer whose books celebrate the history and folklore of Appalachia.McCrumb is the winner of numerous</td></tr><tr><td>literary awards... Decomposed Error Case: 1. She Walks These Hills (√) 2. Tané McClure: Tané M. McClure (born June 8, 1958) is an American singer and actress.</td></tr><tr><td>Multi-hop Question: When was the album with the song Unbelievable by American rapper The Notorious B.I.G released? Decomposed Questions: 1. What is the album with the song Unbelievable by American rapper The Notorious B.I.G?</td></tr><tr><td>2.When was the album Ready to Die released? Ground-truth SP Passages: Unbelievable (The Notorious B.I.G. song): Unbelievable is a song by American rapper The Notorious B.I.G., recorded for his debut studio album Ready to Die... Ready to Die: Ready to Die is the debut studio album by American rapper The Notorious B.I.G.; it was released on September 13,1994,by Bad Boy Records and Arista Records.. Decomposed Error Case: 1.Unbelievable (The Notorious B.I.G. song) (√)</td></tr><tr><td>2. Ready to Die (The Stooges album): Ready to Die is the fifth and final studio album by Amer- ican rock band Iggy and the Stooges. The album was released on April 30, 2013... Multi-hop Question: Whose death dramatized in a stage play helped end the death penalty in Australia? Decomposed Questions: 1. What is the stage play that helped end the death penalty in Australia?</td></tr><tr><td>2. Whose death was dramatized in Remember Ronald Ryan? Ground-truth SP Passages: Barry Dickins: Barry Dickins (born 1949) is a prolific Australian playwright, author, artist, actor, educator and journalist.. His most well-known work is the award winning stage play &quot;Remember Ronald Ryan”,a dramatization of the life and subsequent death of Ronald Ryan, the last man executed in Australia... Ronald Ryan: Ronald Joseph Ryan (21 February 1925-3 February 1967) was the last person to</td></tr></table>
321
+
322
+ # A.3 EXTRACTIVE & GENERATIVE READER MODEL
323
+
324
+ Table 6 demonstrates the answer prediction performance for four different reader models. The extractive models predict answers given the top 250 retrieved passage sequences (pairs of passage from hop1 and hop2). Since generative models are generally heavier on the computation side, we can only use fewer passages. Besides the observations alredy discussed in $\ S 3 . 2 . 1$ , we hypothesize the worse performance of multi-hop RAG compared to FiD is partially due to the smaller pretrained model used in RAG, i.e., BART is only half the size of T5-large. Also, as RAG back-propagate the gradients to the query encoder, it needs more memory footprint and can only take in fewer retrieved contexts. Our RAG implementation largely follows the implementation of the original paper and we did not use the PyTorch checkpoint (as used by FiD) to trade computation for memory. We conjecture the multi-hop RAG performance will also improve if we augment the current implementation with memory-saving tricks. However, given the same amount of context and read model size, the multi-hop RAG is still worse than the extractive ELECTRA reader, i.e., with only the top 1 retrieved passage sequence, our ELECTRA reader gets $5 3 . 8 \mathrm { E M }$ compared to the 51.2 answer EM achieved by multi-hop RAG when using more context.
325
+
326
+ Table 10: Answer EM using top 50 retrieved passage chains
327
+
328
+ <table><tr><td>Model</td><td>Overall</td><td>Comp (20%)</td><td>Bridge (80%)</td></tr><tr><td>ELECTRA</td><td>61.7</td><td>79.0</td><td>57.4</td></tr><tr><td>FiD</td><td>61.7</td><td>75.3</td><td>58.3</td></tr></table>
329
+
330
+ Given the same number of retrieved passage sequences (top 50) as shown in table 10, FiD obtains similar performance to ELECTRA, despite that the generative model can generate arbitrary answers for the given input. (We tried constrained decoding for the generative model. However, no significant performance improvements were observed, indicating that the errors from the generative model are not due to the free-form generation task.) Further question type analysis in HotpotQA showed that the main difference comes from the comparison type of question, while for bridge question, FiD performs slightly better than ELECTRA. This finding might indicate that for generation models, numerical comparison is still a bigger issue compared to extractive models.
331
+
332
+ # B MODEL DETAILS
333
+
334
+ # B.1 BEST MODEL HYPERPARAMETERS
335
+
336
+ Table 11: Hyperparameters of Retriever
337
+
338
+ <table><tr><td>learning rate batch size maximum passage length maximum query length at initial hop maximum query length at 2nd hop</td><td>2e-5 150 300 70 350</td></tr><tr><td>warmup ratio gradient clipping norm</td><td>0.1 2.0</td></tr><tr><td>traininig epoch weight decay</td><td>50 0</td></tr></table>
339
+
340
+ Table 12: Hyperparameters of Extractive Reader (ELECTRA)
341
+
342
+ <table><tr><td>learning rate batch size</td><td>5e-5 128</td></tr><tr><td>maximum sequence length maximum answer length</td><td>512 30</td></tr><tr><td>Warmup ratio</td><td>0.1</td></tr><tr><td>gradient clipping norm</td><td>2.0</td></tr><tr><td>traininig epoch weight decay</td><td>7</td></tr><tr><td></td><td>0</td></tr><tr><td># of negative context per question weight of SP sentence prediction loss</td><td>5 0.025</td></tr></table>
343
+
344
+ # B.2 FURTHER DETAILS ABOUT READER MODELS
345
+
346
+ # B.2.1 EXTRACTIVE READER
347
+
348
+ The extractive reader is trained with four loss functions. With the [CLS] token, we predict a reranking score based on whether the passage sequence match the groundtruth supporting passages. On top of the representation of each token, we predict a answer start score and answer end score. Finally, we prepend each sentence with the [unused0] special token and predict whether the sentence is one of the supporting sentences using the representations of the special token. At training time, we pair each question with 1 groundtruth passage sequence and 5 negative passage sequence which do not contain the answer. At inference time, we feed in the top 250 passage sequences from MDR. We rank the predicted answer for each sequence with a linear combination of the reranking score and the answer span score. The combination weight is selected based on the dev results.
349
+
350
+ # B.2.2 FUSION-IN-DECODER
351
+
352
+ The FiD model uses T5-large as the underlying seq2seq model. It is twice as large as the extractive models and has 770M parameters. We reuse the hyperparameters as described in Izacard & Grave (2020). The original FiD uses the top 100 passages for NaturalQuestions. In our case, we use the top 50 retrieved passage sequences and concatenate the passages in each sequence before feeding into T5. In order to fit this model into GPU, we make use of PyTorch checkpoint 11 for training.
353
+
354
+ # B.2.3 MULTI-HOP RAG
355
+
356
+ The RAG model aims to generate answer $y$ given question $x$ and the retrieved documents $z$ . Similarly, the goal of multi-hop RAG can be expressed as: generate answer $y$ given question $x$ and retrieved documents in hop one $z _ { 1 }$ and hop two $z _ { 2 }$ (Limiting to two hops for HotpotQA). The model has three components:
357
+
358
+ • Hop-one retriever $p _ { \eta _ { 1 } } ( z _ { 1 } | x )$ with parameter $\eta _ { 1 }$ to represent the retrieved top- $\mathbf { \nabla } \cdot \mathbf { k }$ passage distribution (top-k truncated distribution) given the input question $x$ .
359
+ • Hop-two retriever $p _ { \eta _ { 2 } } ( z _ { 2 } | x , z _ { 1 } )$ with parameter $\eta _ { 2 }$ to represent the hop-two retrieved top- $\mathbf { \nabla } \cdot \mathbf { k }$ passage distribution given not only the question $x$ but also the retrieved document $z _ { 1 }$ from hop-one.
360
+ • A generator $p _ { \theta } ( y _ { i } | x , z _ { 1 } , z _ { 2 } , , y _ { 1 : i - 1 } )$ to represent the next token distribution given input question $x$ , hop-one retrieved document $z _ { 1 }$ , hop-two retrieved document $z _ { 2 }$ and previous predicted token $y _ { 1 : i - 1 }$ parametrized by $\theta$
361
+
362
+ Multi-Hop RAG Sequence Model As the RAG Sequence model, this model generates the answer sequence given the fixed set of documents from hop-one retriever and hop-two retriever. In order to the get the probability of the generated sequence, we marginalize through the two latent variables corresponding to the two retrieval hops:
363
+
364
+ $$
365
+ \begin{array} { l } { { \displaystyle p _ { s e q u e n c e } ( y | x ) = } } \\ { { \displaystyle \sum _ { z _ { 1 } } p _ { \eta _ { 1 } } ( z _ { 1 } | x ) \sum _ { z _ { 2 } } p _ { \eta _ { 2 } } ( z _ { 2 } | x , z _ { 1 } ) \prod _ { i } ^ { N } p _ { \theta } ( y _ { i } | x , z _ { 1 } , z _ { 2 } , y _ { 1 : i - 1 } ) } } \\ { { \displaystyle \sum _ { z _ { 1 } } \sum _ { z _ { 2 } } p _ { \eta _ { 1 } } ( z _ { 1 } | x ) p _ { \eta _ { 2 } } ( z _ { 2 } | x , z _ { 1 } ) \prod _ { i } ^ { N } p _ { \theta } ( y _ { i } | x , z _ { 1 } , z _ { 2 } , y _ { 1 : i - 1 } ) } } \end{array}
366
+ $$
367
+
368
+ where $z _ { 1 }$ and $z _ { 2 }$ are top $\mathrm { k }$ document from the respective retrieval modules.
369
+
370
+ Multi-Hop RAG Token Model Moreover, the model can make predictions based on different passage extracted at each token.
371
+
372
+ $$
373
+ \begin{array} { l } { { \displaystyle p _ { t o k e n } ( y | x ) = } } \\ { { \displaystyle \prod _ { i } ^ { N } \sum _ { z _ { 1 } } \sum _ { z _ { 2 } } p _ { \eta _ { 1 } } ( z _ { 1 } | x ) p _ { \eta _ { 2 } } ( z _ { 2 } | x , z _ { 1 } ) p _ { \theta } ( y _ { i } | x , z _ { 1 } , z _ { 2 } , y _ { 1 : i - 1 } ) } } \end{array}
374
+ $$
375
+
376
+ The predicted probability for each token is the following
377
+
378
+ $$
379
+ \begin{array} { l } { \displaystyle p _ { t o k e n } ( y _ { i } | ( x , y _ { j } ) ) = } \\ { \displaystyle \sum _ { z _ { 1 } } \sum _ { z _ { 2 } } p _ { \eta _ { 1 } } ( z _ { 1 } | x ) p _ { \eta _ { 2 } } ( z _ { 2 } | x , z _ { 1 } ) p _ { \theta } ( y _ { i } | x , z _ { 1 } , z _ { 2 } , y _ { 1 : i - 1 } ) } \end{array}
380
+ $$
381
+
382
+ # C RETRIEVAL-FREE APPROACHES
383
+
384
+ Inspired by a recent work (Roberts et al., 2020) that trains the T5 seq2seq model to directly decode answers from questions (retrieval-free), we conduct similar experiments on HotpotQA using BART (Lewis et al., 2020a). As shown in Figure 4, the performance gap between retrieval-based methods and retrieval-free methods on multi-hop QA is much larger than the gap in the case of simple single-hop questions.
385
+
386
+ ![](images/0b4e83817ae46076ce6fb53037be9db31135934d4b4731e083ba622fb8d1e059.jpg)
387
+ Figure 4: Performance gap between retrieval-free and retrieval-based methods on different QA datasets.
388
+
389
+ # D A UNIFIED QA RETRIEVAL SYSTEM
390
+
391
+ In practice, when a fixed text corpus is given for open-domain systems, we do not know beforehand whether the incoming questions require single or multiple text evidence. Thus, it is essential to build a unified system that adaptively retrieves for multiple hops. Due to the simplicity of the approach, our method can easily be extended in the unified setup. To the best of our knowledge, only (Asai et al., 2020) test the same retrieval method on both single and multi-hop questions but with separate trained models. Here we take a further step and explore the possibility of using a single retrieval model for both types of questions.
392
+
393
+ To enable adaptive retrieval, we add a binary prediction head on top of the question encoder. Once the retriever finishes the 1-hop retrieval, it encodes concatenation of $q$ and $p _ { 1 }$ and predicts whether to stop retrieval using the final hidden state of the first token. We construct this unified setting with NaturalQuestions-Open (Lee et al., 2019) (NQ) as single-hop and HotpotQA as multi-hop. As the two datasets use different corpora, we merge the two12 for easy comparison. As baselines, we use the retrieval models trained only on the respective dataset. For HotpotQA, the baseline is the best multi-hop retrieval model discussed in the main text. For NQ, we follow the training method in DPR (Karpukhin et al., 2020), but with a shared question and passage encoder, which achieves stronger results. As the NQ corpus includes multiple passages of the same document and the HotpotQA corpus only uses the introduction passage, we are not able to compute the strict title-based support passage recall for HotpotQA as in $\ S 3 . 2$ . Thus, we only evaluate answer recall. Results are in Table 13. In contrast to existing studies that train different models for each dataset, we show that a unified dense retrieval model can maintain competitive performance on both, despite the vastly different nature of both datasets. Note that the information-seeking questions in NQ is usually noisier and more ambiguous, while HotpotQA questions are more complicated and contains more lexical overlaps with the evidence passages. Specifically, for NQ, the unified retrieval model achieves very similar performance as the single-dataset DPR model, while the performance on HotpotQA decreases more. We conjecture that this is because the information-seeking questions in NQ cover more diverse patterns, and the added HotpotQA training questions do not cause a dramatic distribution shift from the NQ test data. We leave the development of a more general retrieval system that handles different styles of questions to future work.
394
+
395
+ Table 13: Comparing the unified retrieval model with models specifically trained for each task. We test the retrieval performance with a single merged corpus. For easy comparison, all three models are based on BERT-base encoder which we find achieves stronger performance than RoBERTa-base on NQ. AR $@ \mathrm { K }$ denotes answer recall at top-K retrieved passage sequences.
396
+
397
+ <table><tr><td rowspan="2">Model</td><td colspan="2">NQ</td><td colspan="2">HotpotQA</td></tr><tr><td>AR@20</td><td>AR@100</td><td>AR@20</td><td>AR@100</td></tr><tr><td rowspan="2">single-hop only</td><td>80.7</td><td>87.3</td><td>-</td><td>1</td></tr><tr><td>=</td><td>-</td><td>83.4</td><td>89.4</td></tr><tr><td>multi-hop only unified</td><td>79.5</td><td>86.1</td><td>78.1</td><td>83.0</td></tr></table>
parse/train/EMHoBG0avc1/EMHoBG0avc1_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/EMHoBG0avc1/EMHoBG0avc1_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/EMHoBG0avc1/EMHoBG0avc1_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyjjD1WRb/SyjjD1WRb.md ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EVOLUTIONARY EXPECTATION MAXIMIZATION FOR GENERATIVE MODELS WITH BINARY LATENTS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We establish a theoretical link between evolutionary algorithms and variational parameter optimization of probabilistic generative models with binary hidden variables. While the novel approach is independent of the actual generative model, here we use two such models to investigate its applicability and scalability: a noisy-OR Bayes Net (as a standard example of binary data) and Binary Sparse Coding (as a model for continuous data). Learning of probabilistic generative models is first formulated as approximate maximum likelihood optimization using variational expectation maximization (EM). We choose truncated posteriors as variational distributions in which discrete latent states serve as variational parameters. In the variational E-step, the latent states are then optimized according to a tractable free-energy objective. Given a data point, we can show that evolutionary algorithms can be used for the variational optimization loop by (A) considering the bit-vectors of the latent states as genomes of individuals, and by (B) defining the fitness of the individuals as the (log) joint probabilities given by the used generative model. As a proof of concept, we apply the novel evolutionary EM approach to the optimization of the parameters of noisy-OR Bayes nets and binary sparse coding on artificial and real data (natural image patches). Using point mutations and single-point cross-over for the evolutionary algorithm, we find that scalable variational EM algorithms are obtained which efficiently improve the data likelihood. In general we believe that, with the link established here, standard as well as recent results in the field of evolutionary optimization can be leveraged to address the difficult problem of parameter optimization in generative models.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Evolutionary algorithms (EA) have been introduced (e.g. Fogel et al., 1966; Rechenberg, 1965) as a technique for function optimization using methods inspired by biological evolutionary processes such as mutation, recombination, and selection. As such EAs are of interest as tools to solve Machine Learning problems, and they have been frequently applied to a number of tasks such as clustering (Pernkopf & Bouchaffra, 2005; Hruschka et al., 2009), reinforcement learning (Salimans et al., 2017), and hierarchical unsupervised (Myers et al., 1999) or deep supervised learning (e.g., Stanley & Miikkulainen 2002 and Suganuma et al. 2017; Real et al. 2017 for recent examples). In some of these tasks EAs have been investigated as alternatives to standard procedures (Hruschka et al., 2009), but most frequently EAs are used to solve specific sub-problems. For example, for classification with Deep Neural Networks (DNNs LeCun et al., 2015; Schmidhuber, 2015), EAs are frequently applied to solve the sub-problem of selecting the best DNN architectures for a given task (e.g. Stanley & Miikkulainen, 2002; Suganuma et al., 2017) or more generally to find the best hyper-parameters of a DNN (e.g. Loshchilov & Hutter, 2016; Real et al., 2017).
12
+
13
+ Inspired by these previous contributions, we here ask if EAs and learning algorithms can be linked more tightly. To address this question we make use of the theoretical framework of probabilistic generative models and expectation maximization (EM Dempster et al., 1977) approaches for parameter optimization. The probabilistic approach in combination with EM is appealing as it establishes a very general unifying framework able to encompass diverse algorithms from clustering and dimensionality reduction (Roweis, 1998; Tipping & Bishop, 1999) over feature learning and sparse coding (Olshausen & Field, 1997) to deep learning approaches (Patel et al., 2016). However, for most generative data models, EM is computationally intractable and requires approximations. Variational
14
+
15
+ EM is a very prominent such approximation and is continuously further developed to become more efficient, more accurate and more autonomously applicable. Variational EM seeks to approximately solve optimization problems of functions with potentially many local optima in potentially very high dimensional spaces. The key observation exploited in this study is that a variational EM algorithm can be formulated such that latent states serve as variational parameters. If the latent states are then considered as genomes of individuals, EAs emerge as a very natural choice for optimization in the variational loop of EM.
16
+
17
+ # 2 TRUNCATED VARIATIONAL EM
18
+
19
+ A probabilistic generative model stochastically generates data points $\vec { y }$ using a set of hidden (or latent) variables $\vec { s } ,$ . The generative process can be formally expressed in the form of joint probability $p ( \vec { s } , \vec { y } | \Theta )$ , where $\Theta$ are the model parameters. Given a set of $N$ data points, $\vec { y } ^ { ( 1 ) } , \dotsc , \vec { y } ^ { ( N ) } =$ $\vec { y } ^ { ( 1 : N ) }$ , learning seeks to change the parameters $\Theta$ so that the data generated by the generative model becomes as similar as possible to the $N$ real data points. One of the most popular approaches to achieve this goal is to seek maximum likelihood (ML) parameters $\Theta ^ { * }$ , i.e., parameters that maximize the data log-likelihood for a given generative model:
20
+
21
+ $$
22
+ L ( \Theta ) : = \log ( \mathcal { L } ( \Theta ) ) = \sum _ { n } \log \big ( \sum _ { \{ \vec { s } \} } p \left( \vec { y } ^ { n } , \vec { s } \mid \Theta \right) \big )
23
+ $$
24
+
25
+ To efficiently find (approximate) ML parameters we follow Saul & Jordan (1996); Neal & Hinton (1998); Jordan et al. (1999) who reformulated the problem in terms of a maximization of a lower bound of the log-likelihood, the free energy $\mathcal { F } ( \vec { q } , \Theta )$ . Free energies are given by
26
+
27
+ $$
28
+ \mathcal { F } ( q ^ { ( 1 : N ) } , \Theta ) = \sum _ { n = 1 } ^ { N } \Big ( \sum _ { \{ \vec { s } \} } q ^ { ( n ) } ( \vec { s } ) \log \big ( p ( \vec { s } , \vec { y } ^ { ( n ) } | \Theta ) \big ) \Big ) + \sum _ { n = 1 } ^ { N } H ( q ^ { ( n ) } ( \vec { s } ) ) ,
29
+ $$
30
+
31
+ where $q ^ { ( n ) } ( \vec { s } )$ are variational distributions, and where $H ( q )$ denotes the entropy of a distribution $q$ . For the purposes of this study, we consider elementary generative models which are difficult to train because of exponentially large state spaces. These models serve well for illustrating the approach but we stress that any generative model which gives rise to a joint distribution $p ( \bar { \vec { s } } , \bar { y } | \Theta ) \bar { \vec { s } }$ can be trained with the approach discussed here as long as the latents $\vec { s }$ are binary.
32
+
33
+ In order to find approximate maximum likelihood solutions, distributions $q ^ { ( n ) } ( \vec { s } )$ are sought that approximate the intractable posterior distributions $p ( \vec { s } | \vec { y } ^ { ( n ) } , \Theta )$ as well as possible, which results in the free-energy being as similar (or tight) as possible to the exact log-likelihood. At the same time variational distributions have to result in tractable parameter updates. Standard approaches include Gaussian variational distributions (e.g. Opper & Winther, 2005) or mean-field variational distributions (Jordan et al., 1999). If we denote the parameters of the variational distributions by $\Lambda$ , then a variational EM algorithm consists of iteratively maximizing $\mathcal { F } ( \Lambda , \Theta )$ w.r.t. $\Lambda$ in the variational E-step and w.r.t. $\Theta$ in the M-step. The M-step can hereby maintain the same functional form as for exact EM but the expectation values now have to be computed w.r.t. the variational distributions.
34
+
35
+ Instead of using parametric functions such as Gaussians or factored (mean-field) distributions, for our purposes we choose truncated variational distributions defined as a function of a finite set of states (Lucke & Eggert, 2010; Sheikh et al., 2014; Shelton et al., 2017). These states will later serve ¨ as populations of evolutionary algorithms. If we denote $\kappa ^ { n }$ a population of hidden states for a given data point $\vec { y } ^ { ( n ) }$ , then variational distributions and their corresponding expectation values are given by (e.g. Lucke & Eggert, 2010; Sheikh et al., 2014): ¨
36
+
37
+ $$
38
+ q ^ { n } ( \vec { s } \mid K ^ { n } , \Theta ) : = \frac { p \left( \vec { s } \mid \vec { y ^ { n } } , \Theta \right) } { \sum _ { \vec { s ^ { \prime } } \in K ^ { n } } p \left( \vec { s } ^ { \prime } \mid \vec { y ^ { n } } , \Theta \right) } \delta ( \vec { s } \in K ^ { n } ) , \langle g ( \vec { s } ) \rangle _ { q ^ { n } } = \frac { \sum _ { \vec { s } \in K ^ { n } } p ( \vec { s } , \vec { y ^ { n } } \mid \Theta ) g ( \vec { s } ) } { \sum _ { \vec { s ^ { \prime } } \in K ^ { n } } p ( \vec { s } ^ { \prime } , \vec { y ^ { n } } \mid \Theta ) } .
39
+ $$
40
+
41
+ where $\delta ( \vec { s } \in \mathcal { K } ^ { n } )$ is 1 if $\textstyle { \mathcal { K } } ^ { n }$ contains the hidden state $\vec { s }$ , zero otherwise. If the set $K ^ { n }$ contains all states with significant posterior mass, then (3) approximates expectations w.r.t. full posteriors very well. By inserting truncated distributions as variational distribution of the free-energy (2), it can be
42
+
43
+ shown (Lucke, 2016) that the free-energy takes a very compact simplified form given by: ¨
44
+
45
+ $$
46
+ \mathcal { F } ( \mathcal { K } , \Theta ) = \sum _ { n } \log \big ( \sum _ { \vec { s } \in \mathcal { K } ^ { n } } p \left( \vec { y } ^ { n } , \vec { s } \mid \Theta \right) \big ) , \mathrm { ~ w h e r e ~ } \mathcal { K } = ( \mathcal { K } ^ { 1 } , \ldots , \mathcal { K } ^ { N } ) .
47
+ $$
48
+
49
+ As the variational parameters of the variational distribution (3) are now given by populations of hidden states, a variational $\mathrm { E }$ -step now consists of finding for each data point $n$ the population $\textstyle { \mathcal { K } } ^ { n }$ that maximizes $\begin{array} { r } { \sum _ { \vec { s } \in \mathcal { K } ^ { n } } p ( \vec { y } ^ { n } , \vec { s } \Theta ) } \end{array}$ .
50
+
51
+ # 3 EVOLUTIONARY OPTIMIZATION
52
+
53
+ For the generative models considered here, each latent state $\vec { s }$ takes the form of a bit vector. Hence, each population $\kappa ^ { n }$ is a collection of bit vectors. Because of the specific form (4), the free-energy is increased in the variational E-step if and only if we replace and individual $\vec { s }$ in population ${ \boldsymbol { \kappa } } ^ { ( n ) }$ by a new individual $\vec { s } ^ { \mathrm { n e w } }$ so far not in ${ \boldsymbol { \kappa } } ^ { ( n ) }$ such that:
54
+
55
+ $$
56
+ p ( \vec { s } ^ { \mathrm { n e w } } , \vec { y } ^ { n } | \Theta ) > p ( \vec { s } , \vec { y } ^ { n } | \Theta ) .
57
+ $$
58
+
59
+ More generally, this means that the free energy is maximized in the variational E-step if we find for each $n$ those $S$ individuals with the largest joints $p ( \vec { s } , \vec { y } ^ { n } | \Theta )$ , where $p ( \vec { s } , \vec { y } ^ { n } | \Theta )$ is given by the respective generative model (compare Lucke, 2016; Forster & L ¨ ucke, 2017, for formal derivations). ¨
60
+
61
+ Full maximization of the free-energy is often a computationally much harder problem than increasing the free-energy; and in practice an increase is usually sufficient to finally approximately maximize the likelihood. As we increase the free-energy by applying (5) we can choose any fitness function $F ( \vec { s } ; \vec { y } ^ { n } , \Theta )$ for an evolutionary optimization which fulfils the property:
62
+
63
+ $$
64
+ \begin{array} { r l r } { F ( \bar { s } ^ { \mathrm { n e w } } ; \vec { y } ^ { n } , \Theta ) } & { > } & { F ( \vec { s } ; \vec { y } ^ { n } , \Theta ) \qquad \Leftrightarrow \qquad p ( \vec { s } ^ { \mathrm { n e w } } , \vec { y } ^ { n } | \Theta ) \quad > \quad p ( \vec { s } , \vec { y } ^ { n } | \Theta ) . } \end{array}
65
+ $$
66
+
67
+ Any mutations selected such that the fitness $F ( \vec { s } ; \vec { y } ^ { n } , \Theta )$ increases will result in provably increased free-energies. Together with M-step optimizations of model parameters, the resulting variational EM algorithm will monotonously increase the free-energy. The freedom in choosing a fitness function satisfying (6) leaves us free to pick a form that enables an efficient parent selection procedure. More concretely (while acknowledging that other choices are possible) we define the fitness $F ( \vec { s } ^ { \mathrm { n e w } } ; \vec { y } ^ { n } , \Theta )$ to be:
68
+
69
+ $$
70
+ F ( \vec { s } ) = F ( \vec { s } ; \vec { y } ^ { n } , \Theta ) = \widetilde { l o g P } ( \vec { s } ; \vec { y } ^ { n } , \Theta ) - 2 \operatorname* { m i n } _ { s } \widetilde { ( l o g P ( \vec { s } ; \vec { y } ^ { n } , \Theta ) ) }
71
+ $$
72
+
73
+ where $\widetilde { l o g P }$ is defined as the logarithm of the joint probability where summands that do not depend on the state $\vec { s }$ have been elided. $\widetilde { l o g P }$ is usually more efficiently computable than the joint probabilities and has better numerical stability, while being a monotonously increasing function of the joints when the data-point ${ \vec { y } } ^ { n }$ is considered fixed. As we will want to sample states proportionally to their fitness, an offset is applied to $\widetilde { l o g P }$ to make sure $F$ always takes positive values. As previously mentioned, other choices of $F$ are possible as long as (6) holds. From now on we will drop the argument ${ \vec { y } } ^ { n }$ or index $n$ (while keeping in mind that an optimization is performed for each data point ${ \vec { y } } ^ { n }$ ).
74
+
75
+ Our applied EAs then seek to optimize $F ( \vec { s } )$ for a population of individual $\kappa$ (we also drop the index $n$ here). More concretely, given the current population $\kappa$ of unique individuals $\vec { s } ,$ , the EA iteratively seeks a new set $\kappa \prime$ with higher overall fitness. For our models, $\vec { s }$ are bit-vectors of length $H$ , and we usually require that populations $\kappa \prime$ and $\kappa$ to have the same size as is customary for truncated approximations (e.g. Lucke & Eggert, 2010; Shelton et al., 2017). Our example algorithm includes ¨ three common genetic operators, discussed in more detail below: parent selection, generation of children by single-point crossover and stochastic mutation of the children. We repeat this process over $N _ { g }$ generations in which subsequent iterations use the output of previous iterations as input population.
76
+
77
+ Parent Selection. This step selects $N _ { p }$ parents from the population $\kappa$ . Ideally, the selection procedure should be balanced between exploitation of parents with high fitness (which will more likely produce children with high fitness) and exploration of mutations of poor performing parents (which might eventually produce children with high fitness while increasing population diversity). Diversity is crucial, as $\kappa$ is a set of unique individuals and therefore the improvement of the overall fitness of the population depends on generating different children with high fitness. In our numerical experiments we explored both fitness-proportional selection of parents (a classic strategy in which the probability of an individual being selected as a parent is proportional to its fitness) and random uniform selection of parents.
78
+
79
+ ![](images/53029bd277755c7b685af471115730cd4cdf9edfaee64e0c8b4864dfd5ae59c4.jpg)
80
+ Figure 1: Components of the genetic algorithm.
81
+ until $\mathcal { F }$ has increased sufficiently
82
+
83
+ Crossover. During the crossover step, random pairs of parents are selected; then each pair is assigned a number $c$ from 1 to $H - 1$ with uniform probability (this is the single crossover point); finally the parents swap the last $H - c$ bits to produce the offspring. We denote $N _ { c }$ the number of children generated in this way. The crossover step can be skipped, making the EA more lightweight but decreasing variety in the offspring.
84
+
85
+ Mutation. Finally, each of the $N _ { c }$ children undergoes one or more random bitflips to further increase offspring diversity. In our experiments we compare results of random uniform selection of the bits to flip with a more refined sparsity-driven bitflip algorithm. This latter bitflip schemes assignes to 0’s and 1’s different probabilities of being flipped in order to produce children with a sparsity compatible with the one learned by the model. In case the crossover step is skipped, a different bitflip mutation is performed on $N _ { c }$ identical copies of each parent.
86
+
87
+ mization
88
+ choose initial model parameters $\Theta$ and initial sets ${ \boldsymbol { \kappa } } ^ { ( n ) }$
89
+ repeat for each data-point $n$ do candidates $= \{ \}$ for $g = 0$ to $N _ { g }$ do parents $=$ select parents children $=$ mutation(crossover(parents)) candidates $=$ candidates ∪ children K(n) select best(K(n) ∪ candidates) update $\Theta$ using M-steps with (3) and ${ \boldsymbol { \kappa } } ^ { ( n ) }$
90
+
91
+ A full run of the evolutionary algorithm therefore produces $N _ { g } N _ { c } N _ { p }$ children (or new states $\vec { s } ^ { * }$ ). Finally we compute the union set of the original population $\kappa$ with all children and select the $S$ fittest individuals of the union as the new population $\kappa \prime$ .
92
+
93
+ The EEM Algorithm. We now have all elements required to formulate a learning algorithm with EAs as its integral part. Alg. 1 summarizes the essential computational steps. Note that this E-step can be trivially parallelized over data-points. Finally, it is worth pointing out that algorithm 1, by construction, never decreases the free-energy.
94
+
95
+ # 4 THE GENERATIVE MODELS
96
+
97
+ We will use the EA formulated above as integral part of an unsupervised learning algorithm. The objective of the learning algorithm is the optimization of the log-likelihood 1. $D$ denotes the number of observed variables, $H$ the number of hidden units, and $N$ the number of data points.
98
+
99
+ Noisy-OR. The noisy-OR model is a highly non-linear bipartite data model with all-to-all connectivity among hidden and observable variables. All variables take binary values. The model assumes a Bernoulli prior for the latents, and active latents are then combined via the actual noisy-OR rule.
100
+
101
+ $$
102
+ \begin{array} { c } { { p \displaystyle ( \vec { s } \mid \Theta ) = \prod _ { h } \pi _ { h } ^ { s _ { h } } ( 1 - \pi _ { h } ) ^ { 1 - s _ { h } } } } \\ { { p \displaystyle ( \vec { y } \mid \vec { s } , \Theta ) = \prod _ { d } N _ { d } ( \vec { s } ) ^ { y _ { d } } ( 1 - N _ { d } ( \vec { s } ) ) ^ { 1 - y _ { d } } \quad \mathrm { w h e r e } \quad N _ { d } ( \vec { s } ) : = 1 - \prod _ { h } ( 1 - { \cal W } _ { d h } s _ { h } ) } } \end{array}
103
+ $$
104
+
105
+ ![](images/0c1ae83e3cdfa59494aa051b593db2826d3c3e15a1ec24ddd71320af2a1beb11.jpg)
106
+ Figure 2: A small Noisy-OR model. Each observable $y _ { d }$ is conditionally dependent on all $s _ { h }$ . The generative process first samples each $s _ { h }$ from a Bernoulli distribution; then each $y _ { d }$ is sampled from a Bernoulli distribution of parameter $N _ { d } ( \vec { s } )$ , generating a data-point.
107
+
108
+ In the context of the Noisy-OR model, $\Theta = \{ \vec { \pi } , \vec { W } \}$ , where $\vec { \pi }$ is the set of values $\pi _ { h } ~ \in ~ [ 0 , 1 ]$ representing the prior activation probabilities for the hidden variables $s _ { h }$ and $\vec { W }$ is a $D \times H$ matrix of values $W _ { d h } \in [ 0 , 1 ]$ representing the probability that the latent $s _ { h }$ activates the observable $y _ { d }$ .
109
+
110
+ Section A of the appendix contains the explicit forms of the free energies and the M-step update rules for noisy-OR.
111
+
112
+ Binary Sparse Coding. As a second model and one for continuous data, we consider Binary Sparse Coding (BSC; Henniges et al., 2010). BSC differs from standard Sparse Coding in its use of binary latent variables. The latents are assumed to follow a univariate Bernoulli distribution which uses the same activation probability for each hidden unit. The combination of the latents is described by a linear superposition rule. Given the latents, the observables are independently and identically drawn from a Gaussian distribution:
113
+
114
+ $$
115
+ p \left( \vec { s } \mid \Theta \right) = \prod _ { h = 1 } ^ { H } \pi ^ { s _ { h } } \left( 1 - \pi \right) ^ { 1 - s _ { h } } , \qquad p \left( \vec { y } \mid \vec { s } , \Theta \right) = \prod _ { d = 1 } ^ { D } \mathcal { N } ( y _ { d } ; \sum _ { h = 1 } ^ { H } W _ { d h } s _ { h } , \sigma ^ { 2 } ) .
116
+ $$
117
+
118
+ The parameters of the model are $\Theta = ( \pi , W , \sigma ^ { 2 } )$ , where $W$ is a $D \times H$ matrix whose columns contain the weights associated with each hidden unit $s _ { h }$ and where $\sigma ^ { 2 }$ determines the variance of the Gaussian. M-step update rules for BSC can be derived in close-form by optimizing the free energy (2) wrt. all model parameters (compare, e.g., Henniges et al., 2010). We report the final expressions in appendix B.
119
+
120
+ # 5 NUMERICAL EXPERIMENTS
121
+
122
+ We describe numerical experiments performed to test the applicability and scalability of EEM. Throughout the section, the different evolutionary algorithms are named by indicating which parent selection procedure was used (“fitparents” for fitness-proportional selection, “randparents” for random uniform selection) and which bitflip algorithm (“sparseflips” or “randflips”). We add “cross” to the name of the EA when crossover was employed.
123
+
124
+ # 5.1 ARTIFICIAL DATA
125
+
126
+ First we investigate EMM using artificial data where the ground-truth components are known. We use the bars test as a standard setup for such purposes (Foldiak, 1990; Hoyer, 2003; L ¨ ucke & Sa- ¨ hani, 2008). In the standard setup, $H ^ { \mathrm { g e n } } / 2$ non-overlapping vertical and $H ^ { \mathrm { g e n } } / 2$ non-overlapping horizontal bars act as components on $\begin{array} { r } { D = H ^ { \mathrm { g e n } } \times H ^ { \mathrm { g e n } } } \end{array}$ pixel images. $N$ images are then generated by first selecting each bar with probability $\pi ^ { \mathrm { g e n } }$ . The bars are then superimposed according to the noisy-OR model (non-linear superposition) or according to the BSC model. In the case of BSC Gaussian noise is then added.
127
+
128
+ Noisy-OR. Let us start with the standard bars test which uses a non-linear superposition (Foldiak, ¨ 1990) of 16 different bars (Spratling, 1999; Lucke & Sahani, 2008), and a standard average crowd- ¨ edness of two bars per images $\textstyle ( \pi ^ { \mathrm { g e n } } = { \frac { 2 } { H ^ { \mathrm { g e n } } } } ,$ ). We apply EEM for noisy-OR using different configurations of the EA. We use $H = 1 6$ generative fields. As a performance metric we here employ reliability (compare, e.g., Spratling, 1999; Lucke & Sahani, 2008), i.e., the fraction of runs whose ¨ learned free energies are above a certain minimum threshold and which learn the full dictionary of bars as well as the correct values for the prior probabilities $\pi$ .
129
+
130
+ ![](images/2ee372dab6240ca730aeac4968d233c96d21ac7c4d06f57ec876fc005479c271.jpg)
131
+ Figure 3: Reliability for the listed EAs over 10 runs of EEM for noisy-OR on 8x8 bars images. In this figure, black bars indicate both priors and bars were recovered correctly, grey bars indicate bars were recovered but not priors. For all runs $H = 1 6$ , $\mathbf { \dot { N } } = 1 0 ^ { 4 }$ , $N _ { g } = 2$ , $N _ { p } = 8$ , $N _ { c } = 7$ , $S = 1 2 0$ . Each run performed 100 iterations.
132
+ Figure 3 shows reliabilities over 10 different runs for each of the EAs. On $8 \mathrm { x } 8$ images the more exploitative nature of “fitparents-sparseflips” is advantageous over the simpler and more explorative “randparents-randflips”. Note that this is not necessarily true for lower dimensionalities or otherwise easier-to-explore state spaces, in which also a naive random search might quickly find high-fitness individuals. In this test the addition of crossover reduces the probability of finding all bars and leads to an overestimation of the crowdedness $\pi H$ .
133
+
134
+ After the initial verification on a standard bars test, we now make the component extraction problem more difficult by increasing overlap among the bars. A highly non-linear generative model such as noisy-OR is a good candidate to model occlusion effects in images. Figure 4 shows the results of training noisy-OR with EEM on a bars data-set in which the latent causes have sensible overlaps. The test parameters were chosen to be equal to those in (Lucke & Sahani, 2008, Fig. 9). After ¨ applying EEM with noisy-OR $H = 3 2$ ) to $N = 4 0 0$ images with 16 strongly overlapping bars, we observed that all $H ^ { \mathrm { g e n } } = 1 6$ bars were recovered in 13 of 25 runs, which is competitive especially when keeping in mind that no additional assumptions (e.g., compared to other models applied to this test) are used by EEM for noisy-OR.
135
+
136
+ ![](images/d765aec9e4065fdfc7ad6bd7ff90e8a85f2f62b814d3bde904ec71706e4027a7.jpg)
137
+ Figure 4: Sample input (left) and learned generative fields (right) for a run on overlapping bars. Out of 25 runs, 13 recovered all 16 ground-truth generative components (14.92 recovered bars in average, median 16). As $H = 3 2$ , the extra generative fields are used to explain common overlaps and noise.
138
+
139
+ BSC. Like for the non-linear generative model, we first evaluate EEM for the linear BSC model on a bars test. For BSC, the bars are superimposed linearly (Henniges et al., 2010), which makes the problem easier. As a consequence, standard bars test were solved with very high reliability using EEM for BSC even if merely random bitflips were used for the EA. In order to make the task more challenging, we therefore (A) increased the dimensionality of the data to $D = 1 0 \times 1 0$ bars images, (B) increased the number of components to $H ^ { \mathrm { g e n } } = 2 0$ , and (C) increased the average number of bars per data point from two (the standard setting) to five. We employed $N = 5 , 0 0 0$ training data points and tested the same five different configurations of the EA as were evaluated for noisy-OR. We set the number of hidden units to $H = H ^ { \mathrm { g e n } } = 2 0$ and used $S = 1 2 0$ variational states. Per data point and per iteration, in total 112 new states $N _ { p } = 8$ , $N _ { c } = 7$ , $N _ { g } = 2 $ ) were sampled to vary $\textstyle { \mathcal { K } } ^ { n }$ . Per configuration of the EA, we performed 20 independent runs, each with 300 iterations. The results of the experiment are depicted in Fig. 5. We observe that a basic approach such as random uniform selection of parents and random uniform bitflips for the EA works well. However, more sophisticated EAs improve performance. For instance, combining bitflips with crossover and selecting parents proportionally to their fitness shows to be very benefical. The results also show that sparseness-driven bitflips lead generally to very poor performance, even if crossover or fitnessproportional selection of the parents is included. This effect may be explained with the initialization of $\textstyle { \mathcal { K } } ^ { n }$ . The initial states are drawn from a Bernoulli distribution with parameter $\textstyle { \frac { 1 } { H } }$ which makes it more difficult for sparseness-driven EAs to explore and find solutions with higher crowdedness. Fig. 8 in appendix C depicts the averaged free energy values for this experiment.
140
+
141
+ ![](images/1eb7169f41b7206679046a2c5f7e241f43c693cc080c4c2dcb1cdb7045711fd6.jpg)
142
+ Figure 5: Reliability for the listed EAs over 20 runs of EEM for BSC on $1 0 \mathrm { x } 1 0$ bars images.
143
+
144
+ # 5.2 NATURAL IMAGE PATCHES
145
+
146
+ Next, we verify the approach on natural data. We use patches of natural images, which are known to have a multi-component structure, which are well investigated, and for which typically models with high-dimensional latent spaces are applied. The image patches used are extracted from the van Hateren image database (van Hateren & van der Schaaf, 1998).
147
+
148
+ Noisy-OR. First we consider raw images patches, i.e., images without substantial pre-processing which directly reflect light intensities. Such image patches were generated by extracting random square subsections of a single $2 5 5 \mathrm { x } 2 5 5$ image of overlapping grass wires (part of image 2338 of the database). We removed the brightest $1 \%$ pixels from the data-set, scaled each data-point to have gray-scale values in the range $[ 0 , 1 ]$ and then created data points with binary entries by repeatedly choosing a random gray-scale image and sampling binary pixels from a Bernoulli distribution with parameter equal to the gray-scale value of the original pixel (cfr. figure 6). Note that components in such light-intensity images can be expected to superimpose non-linearly because of occlusion, which motivates the application of a non-linear generative model such as noisy-OR. We employ the “fitparents-sparseflips” evolutionary algorithm that was shown to perform best on artificial data (3). Parameters were $H = 1 0 0$ , $S = 1 2 0$ , $N _ { g } = 2$ , $N _ { p } = 8$ , $N _ { c } = 7$ . Figure 6 shows the generative fields learned over 200 iterations. EEM allows learning of generative fields resembling curved edges, in line with expectations and with the results obtained in (Lucke & Sahani, 2008). ¨
149
+
150
+ ![](images/acbc9688afb4d64469908082a30747851909a2d94c193380b2088e3c36816111.jpg)
151
+ Figure 6: 50 generative fields learned by applying EEM (“fitparents-sparseflips”) for noisy-OR to natural image patches. See Appendix F for a run at $H = 2 0 0$ .
152
+
153
+ BSC. Finally, we consider pre-processed image patches using common whitening approaches as they are customary for sparse coding approaches (Olshausen & Field, 1997). We use $N = 1 0 0 , 0 0 0$ patches of size $D = 1 6 \times 1 6$ , randomly picked from the whole data set. The highest $2 \%$ of the amplitudes were clamped to compensate for light reflections and patches without significant structure were excluded for learning. ZCA whitening (Bell & Sejnowski, 1997) was applied retaining $9 5 \%$ of the variance (we used the procedure of a recent paper Exarchakis & Lucke, 2017). We trained the ¨ BSC model for 4,000 iterations using the “fitparents-cross-sparseflips” EA and employing $H = 3 0 0$ hidden units and $S = 2 0 0$ variational states. Per data point and per iteration, in total 360 new states $( N _ { p } = 1 0$ , $N _ { c } = 9$ , $N _ { g } = 4 \AA$ ) were sampled to vary $K ^ { n }$ . The results of the experiment are depicted in Fig. 7. The obtained generative fields primarily take the form of Gabor functions with different locations, orientations, phase, and spatial frequencies. This is a typical outcome of sparse coding being applied to images. On average more than five units were activated per data point showing that the learned code makes use of the generative model’s multiple causes structure. The generative fields converged faster than prior and noise parameters (similar effects are known from probabilistic PCA for the variance parameter). The finit slope of the free-energy after 4000 iterations is presumably due to these parameters still changing slowly.
154
+
155
+ ![](images/cf37fac785ad130d3f0c4c7df0f70d5308a78dbc60fe8689911eda0deaac5667.jpg)
156
+ Figure 7: Results on training the BSC model on natural images using the “fitparents-crosssparseflips” EA. $\mathbf { A } 6 0$ of the 300 generative fields obtained through training (see Appendix for all fields). B Evolution of the free energy per data point over iterations. C Evolution of the expected number of active hidden units per data point over iterations. D Evolution of the standard deviation over iterations.
157
+
158
+ # 6 DISCUSSION
159
+
160
+ The training of generative models is a very intensively studied branch of Machine Learning. If EM is applied for training, most non-elementary models require approximations. For this reason, sophisticated and mathematically grounded approaches such as sampling or variational EM have been developed in order to derive sufficiently precise and efficient learning algorithms.
161
+
162
+ Evolutionary algorithms (EAs) have also been applied in conjunction with EM. Pernkopf & Bouchaffra (2005), for instance, have used EAs for clustering with Gaussian mixture models (GMMs). However, the GMM parameters are updated by their approach relatively conventionally using EM, while EAs are used to select the best GMM models for the clustering problem (using a min. description length criterion). Such a use of EAs is similar to DNN optimization where EAs optimize DNN hyperparameters in an outer optimization loop (Stanley & Miikkulainen, 2002; Loshchilov & Hutter, 2016; Real et al., 2017; Suganuma et al., 2017, etc), while the DNNs themselves are optimized using standard error-minimization algorithms. Still other approaches have used EAs to directly optimize, e.g., a clustering objective. But in these cases EAs replace EM approaches for optimization (compare Hruschka et al., 2009). In contrast to all such previous applications, we have here shown that EAs and EM can be combined directly and intimately: Alg. 1 defines EAs as an integral part of EM, and as such EAs address the key optimization problem arising in the training of generative models.
163
+
164
+ We see the main contribution of our study in the establishment of this close theoretical link between EAs and EM. This novel link will make it possible to leverage an extensive body of knowledge and experience from the community of evolutionary approaches for learning algorithms. Our numerical experiments are a proof of concept which shows that EAs are indeed able to train generative models with large hidden spaces and local optima. For this purpose we used very basic EAs with elementary selection, mutation, cross-over operators.
165
+
166
+ EAs more specialized to the specific optimization problems arising in the training of generative models have great potentials in future improvements of accuracy and scalability, we believe. In our experiments, we have only just started to exploit the abilities of EAs for learning algorithms. Still, our results represent, to the knowledge of the authors, the first examples of noisy-OR or sparse coding models trained with EAs (although both models have been studied very extensively before). Most importantly, we have pointed out a novel mathematically grounded way how EAs can be used for generative models with binary latents in general. The approach here established is, moreover, not only very generically formulated using the models’ joint probabilities but it is also very straightforward to apply.
167
+
168
+ # REFERENCES
169
+
170
+ A. J. Bell and T. J. Sejnowski. The “independent components” of natural scenes are edge filters. Vision Research, 37(23):3327–38, 1997.
171
+ A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm (with discussion). Journal of the Royal Statistical Society B, 39:1–38, 1977.
172
+ G. Exarchakis and J. Lucke. Discrete sparse coding. ¨ Neural Computation, 29:2979–3013, 2017.
173
+ L. J. Fogel, A. J. Owens, and M. J. Walsh. Artificial intelligence through simulated evolution. 1966.
174
+ Peter Foldiak. Forming sparse representations by local anti-hebbian learning. ¨ Biological cybernetics, 64(2):165–170, 1990.
175
+ D. Forster and J. Lucke. Truncated variational EM for semi-supervised Neural Simpletrons. In ¨ IJCNN, pp. 3769–3776, 2017.
176
+ M. Henniges, G. Puertas, J. Bornschein, J. Eggert, and J. Lucke. Binary sparse coding. In ¨ Proceedings LVA/ICA, LNCS 6365, pp. 450–57. Springer, 2010.
177
+ P. O. Hoyer. Modeling receptive fields with non-negative sparse coding. Neurocomputing, 52-54: 547–52, June 2003. ISSN 09252312. doi: 10.1016/S0925-2312(02)00782-8.
178
+ P. O. Hoyer. Non-negative matrix factorization with sparseness constraints. Journal of Machine Learning Research, 5:1457–69, 2004.
179
+ E. R. Hruschka, R. JGB Campello, A. A. Freitas, et al. A survey of evolutionary algorithms for clustering. IEEE Trans. on Systems, Man, and Cybernetics, 39(2):133–155, 2009.
180
+ M. Jordan, Z. Ghahramani, T. Jaakkola, and L. Saul. An introduction to variational methods for graphical models. Machine Learning, 37:183–233, 1999.
181
+ Y. LeCun, Y. Bengio, and G. Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
182
+ I. Loshchilov and F. Hutter. CMA-ES for hyperparameter optimization of deep neural networks. In ICLR Workshop, pp. 513–520, 2016.
183
+ J. Lucke. Truncated variational expectation maximization. ¨ arXiv preprint, arXiv:1610.03113, 2016.
184
+ J. Lucke and J. Eggert. Expectation truncation and the benefits of preselection in training generative ¨ models. JMLR, 11:2855–900, 2010.
185
+ J. Lucke and M. Sahani. Maximal causes for non-linear component extraction. ¨ Journal of Machine Learning Research, 9:1227–67, 2008.
186
+ J. W. Myers, K. B. Laskey, and K. A. DeJong. Learning Bayesian networks from incomplete data using evolutionary algorithms. In Proc. Annual Conference on Genetic and Evolutionary Computation, pp. 458–465, 1999.
187
+ R. Neal and G. Hinton. A view of the EM algorithm that justifies incremental, sparse, and other variants. In M. I. Jordan (ed.), Learning in Graphical Models. Kluwer, 1998.
188
+ B. A. Olshausen and D. J. Field. Sparse coding with an overcomplete basis set: A strategy employed by V1? Vision Research, 37(23):3311–3325, 1997.
189
+ M. Opper and O. Winther. Expectation consistent approximate inference. JMLR, 6:2177–04, 2005.
190
+ A. B. Patel, T. Nguyen, and R. G. Baraniuk. A probabilistic theory of deep learning. In NIPS, pp. 2558–2566, 2016.
191
+ F. Pernkopf and D. Bouchaffra. Genetic-based em algorithm for learning gaussian mixture models. IEEE Trans. on Pattern Analysis and Machine Intelligence, 27(8):1344–1348, 2005.
192
+ E. Real, S. Moore, A. Selle, S. Saxena, Y. L. Suematsu, J. Tan, Q. V. Le, and A. Kurakin. Large-scale evolution of image classifiers. In ICML, pp. 2902–2911, 2017.
193
+ I. Rechenberg. Cybernetic solution path of an experimental problem. 1965.
194
+ S. Roweis. EM algorithms for PCA and SPCA. NIPS, pp. 626–32, 1998.
195
+ T. Salimans, J. Ho, X. Chen, and I. Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017.
196
+ L. K. Saul and M. Jordan. Exploiting tractable substructures in intractable networks. NIPS, pp. 486–492, 1996.
197
+ J. Schmidhuber. Deep learning in neural networks. Neural networks, 61:85–117, 2015.
198
+ A.-S. Sheikh, J. A. Shelton, and J. Lucke. A truncated EM approach for spike-and-slab sparse ¨ coding. Journal of Machine Learning Research, 15:2653–2687, 2014.
199
+ J. A. Shelton, J. Gasthaus, Z. Dai, J. Lucke, and A. Gretton. Gp-select: Accelerating em using ¨ adaptive subspace preselection. Neural Computation, 29(8):2177–2202, 2017.
200
+ M. W. Spratling. Pre-synaptic lateral inhibition provides a better architecture for self-organising neural networks. Network: Computation in Neural Systems, 10:285 – 301, 1999.
201
+ M. W. Spratling, K. De Meyer, and R. Kompass. Unsupervised learning of overlapping image components using divisive input modulation. Computational Intelligence and Neuroscience, pp. 1–19, 2009. ISSN 1687-5265.
202
+ K. O. Stanley and R. Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary Computing, 10(2):99–127, 2002. ISSN 1063-6560.
203
+ M. Suganuma, S. Shirakawa, and T. Nagao. A genetic programming approach to designing convolutional neural network architectures. In GECCO, pp. 497–504, 2017.
204
+ M. Tipping and C. Bishop. Probabilistic principal component analysis. Journal of the Royal Statistical Society. Series B, 61, 1999.
205
+ J. H. van Hateren and A. van der Schaaf. Independent component filters of natural images compared with simple cells in primary visual cortex. Proceedings of the Royal Society of London B, 265: 359–66, 1998.
206
+
207
+ # APPENDIX
208
+
209
+ A: NOISY-OR
210
+
211
+ The truncated free energy takes on the following form for Noisy-OR:
212
+
213
+ $$
214
+ \begin{array} { l } { \mathcal { F } _ { N O R } ( K , \Theta ) = N \displaystyle \sum _ { h } \log \left( 1 - \pi _ { h } \right) + \displaystyle \sum _ { n } \log \displaystyle \sum _ { \tilde { s } \in \mathcal { K } ^ { ( n ) } } \exp \tilde { \mathcal { F } } } \\ { \displaystyle \qquad \tilde { \mathcal { F } } ( \vec { s } , \Theta ) : = \sum _ { h } s _ { h } \log \left( \frac { \pi _ { h } } { 1 - \pi _ { h } } \right) } \\ { \displaystyle \qquad + \sum _ { d } y _ { d } ^ { n } \log \left( \frac { 1 } { \prod _ { h } \left( 1 - W _ { d h } s _ { h } \right) } - 1 \right) } \\ { \displaystyle \qquad + \sum _ { h } \log \left( 1 - W _ { d h } s _ { h } \right) } \end{array}
215
+ $$
216
+
217
+ The M-step equations for noisy-OR are obtained by taking derivatives of the free energy, equating them to zero and solving the resulting set of equations. We report the results here for completeness:
218
+
219
+ $$
220
+ \pi _ { h } ^ { n e w } = \frac { 1 } { N } \sum _ { n } \left. s _ { h } \right. _ { q ^ { n } }
221
+ $$
222
+
223
+ $$
224
+ W _ { d h } ^ { n e w } = 1 + \frac { \sum _ { n } ( y _ { d } ^ { n } - 1 ) \left. D _ { d h } ( \vec { s } ) \right. _ { q ^ { n } } } { \sum _ { n } \left. C _ { d h } ( \vec { s } ) \right. _ { q ^ { n } } }
225
+ $$
226
+
227
+ where
228
+
229
+ $$
230
+ D _ { d h } ( \vec { s } ) : = \frac { \widetilde { W } _ { d h } ( \vec { s } ) s _ { h } } { N _ { d } ( \vec { s } ) ( 1 - N _ { d } ( \vec { s } ) ) }
231
+ $$
232
+
233
+ $$
234
+ C _ { d h } ( \vec { s } ) : = \widetilde { W } _ { d h } ( \vec { s } ) D _ { d h } ( \vec { s } )
235
+ $$
236
+
237
+ $$
238
+ \widetilde { W } _ { d h } ( \vec { s } ) : = \prod _ { h ^ { \prime } \neq h } ( 1 - W _ { d h ^ { \prime } } s _ { h ^ { \prime } } )
239
+ $$
240
+
241
+ The update rule for $\vec { \pi }$ is quite straightforward. The update equations for the weights $W _ { d h }$ , on the other hand, do not allow a closed form solution (i.e. no exact M-step equation can be derived). The rule presented here, instead, expresses each $W _ { d h } ^ { n e w }$ as a function of all current $\vec { W }$ ; this is a fixedpoint equation whose fixed point would be the exact solution of the maximization step. Rather than solving the equation numerically at each step of the learning algorithm, we exploit the fact that in practice one single evaluation of 13 is enough to (noisily, not optimally) move towards convergence. Since TV-EM is guaranteed to never decrease $\mathcal { F }$ , drops of the free-energy during training can only be ascribed to this fixed-point equation; this provides a simple mechanism to check and possibly correct for misbehaviors of 13 if needed.
242
+
243
+ # B: M-STEP UPDATE RULES FOR BSC
244
+
245
+ The free energy for BSC follows from inserting (10) into (2). Update rules can be obtained by optimizing the resulting expression separately for the model parameters $\pi , \sigma ^ { 2 }$ and $W$ (compare, e.g., Henniges et al., 2010). For the sake of completeness, we show the result here:
246
+
247
+ $$
248
+ \pi = \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \sum _ { h = 1 } ^ { H } \left. s _ { h } \right. _ { q ^ { n } }
249
+ $$
250
+
251
+ $$
252
+ \sigma ^ { 2 } = \frac { 1 } { N D } \sum _ { n = 1 } ^ { N } \left. | | \vec { y } ^ { ( n ) } - W \vec { s } | | ^ { 2 } \right. _ { q ^ { n } }
253
+ $$
254
+
255
+ $$
256
+ W = \left( \sum _ { n = 1 } ^ { N } \vec { y } ^ { ( n ) } \langle \vec { s } \rangle _ { q ^ { n } } ^ { T } \right) \left( \sum _ { n ^ { \prime } = 1 } ^ { N } \langle \vec { s } \vec { s } ^ { T } \rangle _ { q ^ { n ^ { \prime } } } \right) ^ { - 1 }
257
+ $$
258
+
259
+ Exact EM can be obtained by setting $q ^ { n }$ to the exact posterior $p ( \vec { s } | \vec { y } ^ { ( n ) } , \Theta )$ . As this quickly becomes computational intractable with higher latent dimensionality, we approximate exact posteriors by truncated variational distributions (3). For BSC, the truncated free energy (4) takes the form
260
+
261
+ $$
262
+ \mathcal { F } ( \mathcal { K } , \Theta ) = - \frac { N D } { 2 } \log \left( 2 \pi \sigma ^ { 2 } \right) + N H \log \left( 1 - \pi \right) + \sum _ { n } \log \left( \sum _ { \bar { s } \in \mathcal { K } _ { n } } \exp \left( \widetilde { \log p } \left( \bar { y } ^ { ( n ) } , \bar { s } | \Theta \right) \right) \right)
263
+ $$
264
+
265
+ where
266
+
267
+ $$
268
+ \widetilde { \log p } ( \vec { y } , \vec { s } | \Theta ) = - \frac { 1 } { 2 \sigma ^ { 2 } } ( \vec { y } - W \vec { s } ) ^ { T } ( \vec { y } - W \vec { s } ) + | \vec { s } | \log \left( \frac { \pi } { 1 - \pi } \right)
269
+ $$
270
+
271
+ C: FURTHER EXPERIMENTAL RESULTS FOR BSC
272
+
273
+ ![](images/e5cbc7870a7653deb74fa450f9a6f296bf198247008f8fc45e8ac1439eac82e0.jpg)
274
+ Figure 8: Results of the experiment with artificial data ( $1 0 \mathrm { x } 1 0$ bars) for the BSC model. Depicted is the evolution of the free energy for different EAs averaged over 20 independent runs. Dots and vertical errorbars show the mean and the standard deviation, respectively.
275
+
276
+ ![](images/350763eb871d2cd60f159d4a33bc9ffa81ecc79dc1f4d64bd435946813832bee.jpg)
277
+ Figure 9: Full dictionary learned from natural images by the BSC model trained with the “fitparentscross-sparseflips” EA. Depicted is the dictionary at iteration 4,000. The generative fields are ordered according to their activation, starting with most active fields.
278
+
279
+ # D: SPARSITY-DRIVEN BITFLIPS
280
+
281
+ When performing sparsity-driven bitflips, we flip each bit of a particular child ${ \vec { s } } ^ { * }$ with probability $p _ { 0 }$ if it is 0, with probability $p _ { 1 }$ otherwise. We call $p _ { b f }$ the average probability of flipping any bit in $\vec { s } ^ { * }$ . We impose the following constraints on $p _ { 0 }$ and $p _ { 1 }$ :
282
+
283
+ • $p _ { 1 } = \alpha p _ { 0 }$ for some constant $\alpha$ • the average number of on bits after mutation is set at $\widetilde { s }$
284
+
285
+ which yield the following expressions for $p _ { 0 }$ and $p _ { 1 }$
286
+
287
+ $$
288
+ \alpha = \frac { ( H - | \vec { s } | ) \cdot ( ( H p _ { b f } ) - ( \widetilde { s } - | \vec { s } | ) ) } { ( \widetilde { s } - | \vec { s } | + H p _ { b f } ) | \vec { s } | }
289
+ $$
290
+
291
+ Trivially, random uniform bitflips correspond to the case $p _ { 0 } = p _ { 1 } = p _ { b f }$
292
+
293
+ # E: RELIABILITY OF EEM FOR NOISY-OR ON OVERLAPPING BARS
294
+
295
+ With respect to the tests shown in figure 4 and discussed in section 5.1, it is worth to spend a few more words on comparisons with the other algorithms shown (Lucke & Sahani, 2008, Fig. 9). Quan- ¨ titative comparison to NMF approaches, neural nets (DI Spratling et al., 2009), and MCA (Lucke ¨ & Sahani, 2008) shows that EMM for noisy-OR performs well but there are also approaches with higher reliability. Of all the approaches which recover more than 15 bars on average, most require additional assumptions. E.g., all NMF approaches, non-negative sparse coding (Hoyer, 2004) and $\mathbf { R { - } M C A _ { 2 } }$ require constraints on weights and/or latent activations. Only $\mathbf { M C A } _ { 3 }$ does not require constraints and presumably neither DI. DI is a neural network approach, which makes the used assumptions difficult to infer. $\mathbf { M C A } _ { 3 }$ is a generative model with a max-non-linearity as superposition model. For learning it explores all sparse combinations with up to 3 components. Applied with $H = 3 2$ latents, it hence evaluates more than 60000 states per data point per iteration for learning. For comparison, EEM for noisy-OR evaluates on the order of $S = 1 0 0$ states per data point per iteration.
296
+
297
+ F: HIGHER-SCALE NATURAL IMAGE PATCHES FOR NOISY-OR
298
+
299
+ Figure 10: Generative fields learned running EEM for noisy-OR (“fitparents-sparseflips”) for 175 iterations with $H = 2 0 0$ latent variables. Learned crowdedness $\pi H$ was 1.6.
parse/train/SyjjD1WRb/SyjjD1WRb_content_list.json ADDED
@@ -0,0 +1,1318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EVOLUTIONARY EXPECTATION MAXIMIZATION FOR GENERATIVE MODELS WITH BINARY LATENTS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We establish a theoretical link between evolutionary algorithms and variational parameter optimization of probabilistic generative models with binary hidden variables. While the novel approach is independent of the actual generative model, here we use two such models to investigate its applicability and scalability: a noisy-OR Bayes Net (as a standard example of binary data) and Binary Sparse Coding (as a model for continuous data). Learning of probabilistic generative models is first formulated as approximate maximum likelihood optimization using variational expectation maximization (EM). We choose truncated posteriors as variational distributions in which discrete latent states serve as variational parameters. In the variational E-step, the latent states are then optimized according to a tractable free-energy objective. Given a data point, we can show that evolutionary algorithms can be used for the variational optimization loop by (A) considering the bit-vectors of the latent states as genomes of individuals, and by (B) defining the fitness of the individuals as the (log) joint probabilities given by the used generative model. As a proof of concept, we apply the novel evolutionary EM approach to the optimization of the parameters of noisy-OR Bayes nets and binary sparse coding on artificial and real data (natural image patches). Using point mutations and single-point cross-over for the evolutionary algorithm, we find that scalable variational EM algorithms are obtained which efficiently improve the data likelihood. In general we believe that, with the link established here, standard as well as recent results in the field of evolutionary optimization can be leveraged to address the difficult problem of parameter optimization in generative models. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 764,
44
+ 569
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 594,
55
+ 336,
56
+ 609
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Evolutionary algorithms (EA) have been introduced (e.g. Fogel et al., 1966; Rechenberg, 1965) as a technique for function optimization using methods inspired by biological evolutionary processes such as mutation, recombination, and selection. As such EAs are of interest as tools to solve Machine Learning problems, and they have been frequently applied to a number of tasks such as clustering (Pernkopf & Bouchaffra, 2005; Hruschka et al., 2009), reinforcement learning (Salimans et al., 2017), and hierarchical unsupervised (Myers et al., 1999) or deep supervised learning (e.g., Stanley & Miikkulainen 2002 and Suganuma et al. 2017; Real et al. 2017 for recent examples). In some of these tasks EAs have been investigated as alternatives to standard procedures (Hruschka et al., 2009), but most frequently EAs are used to solve specific sub-problems. For example, for classification with Deep Neural Networks (DNNs LeCun et al., 2015; Schmidhuber, 2015), EAs are frequently applied to solve the sub-problem of selecting the best DNN architectures for a given task (e.g. Stanley & Miikkulainen, 2002; Suganuma et al., 2017) or more generally to find the best hyper-parameters of a DNN (e.g. Loshchilov & Hutter, 2016; Real et al., 2017). ",
63
+ "bbox": [
64
+ 174,
65
+ 625,
66
+ 825,
67
+ 805
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Inspired by these previous contributions, we here ask if EAs and learning algorithms can be linked more tightly. To address this question we make use of the theoretical framework of probabilistic generative models and expectation maximization (EM Dempster et al., 1977) approaches for parameter optimization. The probabilistic approach in combination with EM is appealing as it establishes a very general unifying framework able to encompass diverse algorithms from clustering and dimensionality reduction (Roweis, 1998; Tipping & Bishop, 1999) over feature learning and sparse coding (Olshausen & Field, 1997) to deep learning approaches (Patel et al., 2016). However, for most generative data models, EM is computationally intractable and requires approximations. Variational ",
74
+ "bbox": [
75
+ 174,
76
+ 813,
77
+ 823,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "EM is a very prominent such approximation and is continuously further developed to become more efficient, more accurate and more autonomously applicable. Variational EM seeks to approximately solve optimization problems of functions with potentially many local optima in potentially very high dimensional spaces. The key observation exploited in this study is that a variational EM algorithm can be formulated such that latent states serve as variational parameters. If the latent states are then considered as genomes of individuals, EAs emerge as a very natural choice for optimization in the variational loop of EM. ",
85
+ "bbox": [
86
+ 173,
87
+ 103,
88
+ 825,
89
+ 202
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 TRUNCATED VARIATIONAL EM ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 176,
99
+ 222,
100
+ 467,
101
+ 238
102
+ ],
103
+ "page_idx": 1
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "A probabilistic generative model stochastically generates data points $\\vec { y }$ using a set of hidden (or latent) variables $\\vec { s } ,$ . The generative process can be formally expressed in the form of joint probability $p ( \\vec { s } , \\vec { y } | \\Theta )$ , where $\\Theta$ are the model parameters. Given a set of $N$ data points, $\\vec { y } ^ { ( 1 ) } , \\dotsc , \\vec { y } ^ { ( N ) } =$ $\\vec { y } ^ { ( 1 : N ) }$ , learning seeks to change the parameters $\\Theta$ so that the data generated by the generative model becomes as similar as possible to the $N$ real data points. One of the most popular approaches to achieve this goal is to seek maximum likelihood (ML) parameters $\\Theta ^ { * }$ , i.e., parameters that maximize the data log-likelihood for a given generative model: ",
108
+ "bbox": [
109
+ 173,
110
+ 255,
111
+ 825,
112
+ 356
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "equation",
118
+ "img_path": "images/00aa0db539a7b9004bd2de4210d5e26d48674d3524a4ab95c4eaefdd3112207c.jpg",
119
+ "text": "$$\nL ( \\Theta ) : = \\log ( \\mathcal { L } ( \\Theta ) ) = \\sum _ { n } \\log \\big ( \\sum _ { \\{ \\vec { s } \\} } p \\left( \\vec { y } ^ { n } , \\vec { s } \\mid \\Theta \\right) \\big )\n$$",
120
+ "text_format": "latex",
121
+ "bbox": [
122
+ 333,
123
+ 363,
124
+ 663,
125
+ 400
126
+ ],
127
+ "page_idx": 1
128
+ },
129
+ {
130
+ "type": "text",
131
+ "text": "To efficiently find (approximate) ML parameters we follow Saul & Jordan (1996); Neal & Hinton (1998); Jordan et al. (1999) who reformulated the problem in terms of a maximization of a lower bound of the log-likelihood, the free energy $\\mathcal { F } ( \\vec { q } , \\Theta )$ . Free energies are given by ",
132
+ "bbox": [
133
+ 174,
134
+ 406,
135
+ 823,
136
+ 450
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "equation",
142
+ "img_path": "images/cc176ae24ccc0993a2a8944acdae9ce9b107cd68e43b93dd9328bda7f3dedb46.jpg",
143
+ "text": "$$\n\\mathcal { F } ( q ^ { ( 1 : N ) } , \\Theta ) = \\sum _ { n = 1 } ^ { N } \\Big ( \\sum _ { \\{ \\vec { s } \\} } q ^ { ( n ) } ( \\vec { s } ) \\log \\big ( p ( \\vec { s } , \\vec { y } ^ { ( n ) } | \\Theta ) \\big ) \\Big ) + \\sum _ { n = 1 } ^ { N } H ( q ^ { ( n ) } ( \\vec { s } ) ) ,\n$$",
144
+ "text_format": "latex",
145
+ "bbox": [
146
+ 240,
147
+ 458,
148
+ 746,
149
+ 503
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "where $q ^ { ( n ) } ( \\vec { s } )$ are variational distributions, and where $H ( q )$ denotes the entropy of a distribution $q$ . For the purposes of this study, we consider elementary generative models which are difficult to train because of exponentially large state spaces. These models serve well for illustrating the approach but we stress that any generative model which gives rise to a joint distribution $p ( \\bar { \\vec { s } } , \\bar { y } | \\Theta ) \\bar { \\vec { s } }$ can be trained with the approach discussed here as long as the latents $\\vec { s }$ are binary. ",
156
+ "bbox": [
157
+ 173,
158
+ 513,
159
+ 825,
160
+ 585
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "In order to find approximate maximum likelihood solutions, distributions $q ^ { ( n ) } ( \\vec { s } )$ are sought that approximate the intractable posterior distributions $p ( \\vec { s } | \\vec { y } ^ { ( n ) } , \\Theta )$ as well as possible, which results in the free-energy being as similar (or tight) as possible to the exact log-likelihood. At the same time variational distributions have to result in tractable parameter updates. Standard approaches include Gaussian variational distributions (e.g. Opper & Winther, 2005) or mean-field variational distributions (Jordan et al., 1999). If we denote the parameters of the variational distributions by $\\Lambda$ , then a variational EM algorithm consists of iteratively maximizing $\\mathcal { F } ( \\Lambda , \\Theta )$ w.r.t. $\\Lambda$ in the variational E-step and w.r.t. $\\Theta$ in the M-step. The M-step can hereby maintain the same functional form as for exact EM but the expectation values now have to be computed w.r.t. the variational distributions. ",
167
+ "bbox": [
168
+ 173,
169
+ 592,
170
+ 825,
171
+ 719
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Instead of using parametric functions such as Gaussians or factored (mean-field) distributions, for our purposes we choose truncated variational distributions defined as a function of a finite set of states (Lucke & Eggert, 2010; Sheikh et al., 2014; Shelton et al., 2017). These states will later serve ¨ as populations of evolutionary algorithms. If we denote $\\kappa ^ { n }$ a population of hidden states for a given data point $\\vec { y } ^ { ( n ) }$ , then variational distributions and their corresponding expectation values are given by (e.g. Lucke & Eggert, 2010; Sheikh et al., 2014): ¨ ",
178
+ "bbox": [
179
+ 174,
180
+ 726,
181
+ 825,
182
+ 813
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "equation",
188
+ "img_path": "images/7c22fc7f0d6b7e994a40c2349bd6db71a5a3a55945d12a26a89fb89827165b86.jpg",
189
+ "text": "$$\nq ^ { n } ( \\vec { s } \\mid K ^ { n } , \\Theta ) : = \\frac { p \\left( \\vec { s } \\mid \\vec { y ^ { n } } , \\Theta \\right) } { \\sum _ { \\vec { s ^ { \\prime } } \\in K ^ { n } } p \\left( \\vec { s } ^ { \\prime } \\mid \\vec { y ^ { n } } , \\Theta \\right) } \\delta ( \\vec { s } \\in K ^ { n } ) , \\langle g ( \\vec { s } ) \\rangle _ { q ^ { n } } = \\frac { \\sum _ { \\vec { s } \\in K ^ { n } } p ( \\vec { s } , \\vec { y ^ { n } } \\mid \\Theta ) g ( \\vec { s } ) } { \\sum _ { \\vec { s ^ { \\prime } } \\in K ^ { n } } p ( \\vec { s } ^ { \\prime } , \\vec { y ^ { n } } \\mid \\Theta ) } .\n$$",
190
+ "text_format": "latex",
191
+ "bbox": [
192
+ 199,
193
+ 818,
194
+ 779,
195
+ 873
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "where $\\delta ( \\vec { s } \\in \\mathcal { K } ^ { n } )$ is 1 if $\\textstyle { \\mathcal { K } } ^ { n }$ contains the hidden state $\\vec { s }$ , zero otherwise. If the set $K ^ { n }$ contains all states with significant posterior mass, then (3) approximates expectations w.r.t. full posteriors very well. By inserting truncated distributions as variational distribution of the free-energy (2), it can be ",
202
+ "bbox": [
203
+ 176,
204
+ 881,
205
+ 821,
206
+ 924
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "shown (Lucke, 2016) that the free-energy takes a very compact simplified form given by: ¨ ",
213
+ "bbox": [
214
+ 169,
215
+ 103,
216
+ 758,
217
+ 118
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "equation",
223
+ "img_path": "images/b5fa15b82b6390b2c18626599e1ec2096809678ca2e963ccca8c6eebbaf67848.jpg",
224
+ "text": "$$\n\\mathcal { F } ( \\mathcal { K } , \\Theta ) = \\sum _ { n } \\log \\big ( \\sum _ { \\vec { s } \\in \\mathcal { K } ^ { n } } p \\left( \\vec { y } ^ { n } , \\vec { s } \\mid \\Theta \\right) \\big ) , \\mathrm { ~ w h e r e ~ } \\mathcal { K } = ( \\mathcal { K } ^ { 1 } , \\ldots , \\mathcal { K } ^ { N } ) .\n$$",
225
+ "text_format": "latex",
226
+ "bbox": [
227
+ 264,
228
+ 123,
229
+ 733,
230
+ 159
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "As the variational parameters of the variational distribution (3) are now given by populations of hidden states, a variational $\\mathrm { E }$ -step now consists of finding for each data point $n$ the population $\\textstyle { \\mathcal { K } } ^ { n }$ that maximizes $\\begin{array} { r } { \\sum _ { \\vec { s } \\in \\mathcal { K } ^ { n } } p ( \\vec { y } ^ { n } , \\vec { s } \\Theta ) } \\end{array}$ . ",
237
+ "bbox": [
238
+ 174,
239
+ 164,
240
+ 823,
241
+ 208
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "3 EVOLUTIONARY OPTIMIZATION ",
248
+ "text_level": 1,
249
+ "bbox": [
250
+ 176,
251
+ 226,
252
+ 470,
253
+ 242
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "For the generative models considered here, each latent state $\\vec { s }$ takes the form of a bit vector. Hence, each population $\\kappa ^ { n }$ is a collection of bit vectors. Because of the specific form (4), the free-energy is increased in the variational E-step if and only if we replace and individual $\\vec { s }$ in population ${ \\boldsymbol { \\kappa } } ^ { ( n ) }$ by a new individual $\\vec { s } ^ { \\mathrm { n e w } }$ so far not in ${ \\boldsymbol { \\kappa } } ^ { ( n ) }$ such that: ",
260
+ "bbox": [
261
+ 173,
262
+ 257,
263
+ 825,
264
+ 320
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "equation",
270
+ "img_path": "images/c95e32cac2d9b75e3b20bf45ebf90183b784b260b0ec3a8e2748d6e248259fda.jpg",
271
+ "text": "$$\np ( \\vec { s } ^ { \\mathrm { n e w } } , \\vec { y } ^ { n } | \\Theta ) > p ( \\vec { s } , \\vec { y } ^ { n } | \\Theta ) .\n$$",
272
+ "text_format": "latex",
273
+ "bbox": [
274
+ 393,
275
+ 327,
276
+ 602,
277
+ 344
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "More generally, this means that the free energy is maximized in the variational E-step if we find for each $n$ those $S$ individuals with the largest joints $p ( \\vec { s } , \\vec { y } ^ { n } | \\Theta )$ , where $p ( \\vec { s } , \\vec { y } ^ { n } | \\Theta )$ is given by the respective generative model (compare Lucke, 2016; Forster & L ¨ ucke, 2017, for formal derivations). ¨ ",
284
+ "bbox": [
285
+ 173,
286
+ 349,
287
+ 825,
288
+ 392
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Full maximization of the free-energy is often a computationally much harder problem than increasing the free-energy; and in practice an increase is usually sufficient to finally approximately maximize the likelihood. As we increase the free-energy by applying (5) we can choose any fitness function $F ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta )$ for an evolutionary optimization which fulfils the property: ",
295
+ "bbox": [
296
+ 173,
297
+ 398,
298
+ 825,
299
+ 455
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "equation",
305
+ "img_path": "images/4dbbca4a786b7f5acf902c3b5b3405873a2bfe149640e5556f352197101d272f.jpg",
306
+ "text": "$$\n\\begin{array} { r l r } { F ( \\bar { s } ^ { \\mathrm { n e w } } ; \\vec { y } ^ { n } , \\Theta ) } & { > } & { F ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta ) \\qquad \\Leftrightarrow \\qquad p ( \\vec { s } ^ { \\mathrm { n e w } } , \\vec { y } ^ { n } | \\Theta ) \\quad > \\quad p ( \\vec { s } , \\vec { y } ^ { n } | \\Theta ) . } \\end{array}\n$$",
307
+ "text_format": "latex",
308
+ "bbox": [
309
+ 235,
310
+ 460,
311
+ 763,
312
+ 478
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Any mutations selected such that the fitness $F ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta )$ increases will result in provably increased free-energies. Together with M-step optimizations of model parameters, the resulting variational EM algorithm will monotonously increase the free-energy. The freedom in choosing a fitness function satisfying (6) leaves us free to pick a form that enables an efficient parent selection procedure. More concretely (while acknowledging that other choices are possible) we define the fitness $F ( \\vec { s } ^ { \\mathrm { n e w } } ; \\vec { y } ^ { n } , \\Theta )$ to be: ",
319
+ "bbox": [
320
+ 174,
321
+ 483,
322
+ 825,
323
+ 568
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "equation",
329
+ "img_path": "images/7c83613462a16b8c7fd7573237d73f2980ce6309cfe530cc6da050934e70bf74.jpg",
330
+ "text": "$$\nF ( \\vec { s } ) = F ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta ) = \\widetilde { l o g P } ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta ) - 2 \\operatorname* { m i n } _ { s } \\widetilde { ( l o g P ( \\vec { s } ; \\vec { y } ^ { n } , \\Theta ) ) }\n$$",
331
+ "text_format": "latex",
332
+ "bbox": [
333
+ 285,
334
+ 574,
335
+ 710,
336
+ 599
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "where $\\widetilde { l o g P }$ is defined as the logarithm of the joint probability where summands that do not depend on the state $\\vec { s }$ have been elided. $\\widetilde { l o g P }$ is usually more efficiently computable than the joint probabilities and has better numerical stability, while being a monotonously increasing function of the joints when the data-point ${ \\vec { y } } ^ { n }$ is considered fixed. As we will want to sample states proportionally to their fitness, an offset is applied to $\\widetilde { l o g P }$ to make sure $F$ always takes positive values. As previously mentioned, other choices of $F$ are possible as long as (6) holds. From now on we will drop the argument ${ \\vec { y } } ^ { n }$ or index $n$ (while keeping in mind that an optimization is performed for each data point ${ \\vec { y } } ^ { n }$ ). ",
343
+ "bbox": [
344
+ 173,
345
+ 607,
346
+ 825,
347
+ 715
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Our applied EAs then seek to optimize $F ( \\vec { s } )$ for a population of individual $\\kappa$ (we also drop the index $n$ here). More concretely, given the current population $\\kappa$ of unique individuals $\\vec { s } ,$ , the EA iteratively seeks a new set $\\kappa \\prime$ with higher overall fitness. For our models, $\\vec { s }$ are bit-vectors of length $H$ , and we usually require that populations $\\kappa \\prime$ and $\\kappa$ to have the same size as is customary for truncated approximations (e.g. Lucke & Eggert, 2010; Shelton et al., 2017). Our example algorithm includes ¨ three common genetic operators, discussed in more detail below: parent selection, generation of children by single-point crossover and stochastic mutation of the children. We repeat this process over $N _ { g }$ generations in which subsequent iterations use the output of previous iterations as input population. ",
354
+ "bbox": [
355
+ 173,
356
+ 720,
357
+ 825,
358
+ 847
359
+ ],
360
+ "page_idx": 2
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Parent Selection. This step selects $N _ { p }$ parents from the population $\\kappa$ . Ideally, the selection procedure should be balanced between exploitation of parents with high fitness (which will more likely produce children with high fitness) and exploration of mutations of poor performing parents (which might eventually produce children with high fitness while increasing population diversity). Diversity is crucial, as $\\kappa$ is a set of unique individuals and therefore the improvement of the overall fitness of the population depends on generating different children with high fitness. In our numerical experiments we explored both fitness-proportional selection of parents (a classic strategy in which the probability of an individual being selected as a parent is proportional to its fitness) and random uniform selection of parents. ",
365
+ "bbox": [
366
+ 174,
367
+ 853,
368
+ 823,
369
+ 924
370
+ ],
371
+ "page_idx": 2
372
+ },
373
+ {
374
+ "type": "image",
375
+ "img_path": "images/53029bd277755c7b685af471115730cd4cdf9edfaee64e0c8b4864dfd5ae59c4.jpg",
376
+ "image_caption": [
377
+ "Figure 1: Components of the genetic algorithm. ",
378
+ "until $\\mathcal { F }$ has increased sufficiently "
379
+ ],
380
+ "image_footnote": [],
381
+ "bbox": [
382
+ 236,
383
+ 87,
384
+ 761,
385
+ 193
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "",
392
+ "bbox": [
393
+ 174,
394
+ 238,
395
+ 825,
396
+ 295
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Crossover. During the crossover step, random pairs of parents are selected; then each pair is assigned a number $c$ from 1 to $H - 1$ with uniform probability (this is the single crossover point); finally the parents swap the last $H - c$ bits to produce the offspring. We denote $N _ { c }$ the number of children generated in this way. The crossover step can be skipped, making the EA more lightweight but decreasing variety in the offspring. ",
403
+ "bbox": [
404
+ 174,
405
+ 301,
406
+ 825,
407
+ 372
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Mutation. Finally, each of the $N _ { c }$ children undergoes one or more random bitflips to further increase offspring diversity. In our experiments we compare results of random uniform selection of the bits to flip with a more refined sparsity-driven bitflip algorithm. This latter bitflip schemes assignes to 0’s and 1’s different probabilities of being flipped in order to produce children with a sparsity compatible with the one learned by the model. In case the crossover step is skipped, a different bitflip mutation is performed on $N _ { c }$ identical copies of each parent. ",
414
+ "bbox": [
415
+ 173,
416
+ 378,
417
+ 825,
418
+ 462
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "mization \nchoose initial model parameters $\\Theta$ and initial sets ${ \\boldsymbol { \\kappa } } ^ { ( n ) }$ \nrepeat for each data-point $n$ do candidates $= \\{ \\}$ for $g = 0$ to $N _ { g }$ do parents $=$ select parents children $=$ mutation(crossover(parents)) candidates $=$ candidates ∪ children K(n) select best(K(n) ∪ candidates) update $\\Theta$ using M-steps with (3) and ${ \\boldsymbol { \\kappa } } ^ { ( n ) }$ ",
425
+ "bbox": [
426
+ 173,
427
+ 496,
428
+ 522,
429
+ 696
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "A full run of the evolutionary algorithm therefore produces $N _ { g } N _ { c } N _ { p }$ children (or new states $\\vec { s } ^ { * }$ ). Finally we compute the union set of the original population $\\kappa$ with all children and select the $S$ fittest individuals of the union as the new population $\\kappa \\prime$ . ",
436
+ "bbox": [
437
+ 540,
438
+ 482,
439
+ 820,
440
+ 565
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "The EEM Algorithm. We now have all elements required to formulate a learning algorithm with EAs as its integral part. Alg. 1 summarizes the essential computational steps. Note that this E-step can be trivially parallelized over data-points. Finally, it is worth pointing out that algorithm 1, by construction, never decreases the free-energy. ",
447
+ "bbox": [
448
+ 539,
449
+ 575,
450
+ 820,
451
+ 700
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "4 THE GENERATIVE MODELS ",
458
+ "text_level": 1,
459
+ "bbox": [
460
+ 176,
461
+ 723,
462
+ 434,
463
+ 741
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "We will use the EA formulated above as integral part of an unsupervised learning algorithm. The objective of the learning algorithm is the optimization of the log-likelihood 1. $D$ denotes the number of observed variables, $H$ the number of hidden units, and $N$ the number of data points. ",
470
+ "bbox": [
471
+ 174,
472
+ 756,
473
+ 825,
474
+ 797
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Noisy-OR. The noisy-OR model is a highly non-linear bipartite data model with all-to-all connectivity among hidden and observable variables. All variables take binary values. The model assumes a Bernoulli prior for the latents, and active latents are then combined via the actual noisy-OR rule. ",
481
+ "bbox": [
482
+ 174,
483
+ 804,
484
+ 823,
485
+ 847
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "equation",
491
+ "img_path": "images/3bbd6171abc9ad9f47487fb8825c2e0591cfc6f3c70f56eaec34e5d6d3ac7027.jpg",
492
+ "text": "$$\n\\begin{array} { c } { { p \\displaystyle ( \\vec { s } \\mid \\Theta ) = \\prod _ { h } \\pi _ { h } ^ { s _ { h } } ( 1 - \\pi _ { h } ) ^ { 1 - s _ { h } } } } \\\\ { { p \\displaystyle ( \\vec { y } \\mid \\vec { s } , \\Theta ) = \\prod _ { d } N _ { d } ( \\vec { s } ) ^ { y _ { d } } ( 1 - N _ { d } ( \\vec { s } ) ) ^ { 1 - y _ { d } } \\quad \\mathrm { w h e r e } \\quad N _ { d } ( \\vec { s } ) : = 1 - \\prod _ { h } ( 1 - { \\cal W } _ { d h } s _ { h } ) } } \\end{array}\n$$",
493
+ "text_format": "latex",
494
+ "bbox": [
495
+ 212,
496
+ 853,
497
+ 784,
498
+ 922
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "image",
504
+ "img_path": "images/0c1ae83e3cdfa59494aa051b593db2826d3c3e15a1ec24ddd71320af2a1beb11.jpg",
505
+ "image_caption": [
506
+ "Figure 2: A small Noisy-OR model. Each observable $y _ { d }$ is conditionally dependent on all $s _ { h }$ . The generative process first samples each $s _ { h }$ from a Bernoulli distribution; then each $y _ { d }$ is sampled from a Bernoulli distribution of parameter $N _ { d } ( \\vec { s } )$ , generating a data-point. "
507
+ ],
508
+ "image_footnote": [],
509
+ "bbox": [
510
+ 236,
511
+ 97,
512
+ 557,
513
+ 213
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "In the context of the Noisy-OR model, $\\Theta = \\{ \\vec { \\pi } , \\vec { W } \\}$ , where $\\vec { \\pi }$ is the set of values $\\pi _ { h } ~ \\in ~ [ 0 , 1 ]$ representing the prior activation probabilities for the hidden variables $s _ { h }$ and $\\vec { W }$ is a $D \\times H$ matrix of values $W _ { d h } \\in [ 0 , 1 ]$ representing the probability that the latent $s _ { h }$ activates the observable $y _ { d }$ . ",
520
+ "bbox": [
521
+ 174,
522
+ 243,
523
+ 823,
524
+ 290
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Section A of the appendix contains the explicit forms of the free energies and the M-step update rules for noisy-OR. ",
531
+ "bbox": [
532
+ 174,
533
+ 296,
534
+ 823,
535
+ 325
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Binary Sparse Coding. As a second model and one for continuous data, we consider Binary Sparse Coding (BSC; Henniges et al., 2010). BSC differs from standard Sparse Coding in its use of binary latent variables. The latents are assumed to follow a univariate Bernoulli distribution which uses the same activation probability for each hidden unit. The combination of the latents is described by a linear superposition rule. Given the latents, the observables are independently and identically drawn from a Gaussian distribution: ",
542
+ "bbox": [
543
+ 176,
544
+ 332,
545
+ 825,
546
+ 416
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "img_path": "images/ef43446fc99ae28031f98506981fc0d53bf556d9d389c290cf14d4ba4973d684.jpg",
553
+ "text": "$$\np \\left( \\vec { s } \\mid \\Theta \\right) = \\prod _ { h = 1 } ^ { H } \\pi ^ { s _ { h } } \\left( 1 - \\pi \\right) ^ { 1 - s _ { h } } , \\qquad p \\left( \\vec { y } \\mid \\vec { s } , \\Theta \\right) = \\prod _ { d = 1 } ^ { D } \\mathcal { N } ( y _ { d } ; \\sum _ { h = 1 } ^ { H } W _ { d h } s _ { h } , \\sigma ^ { 2 } ) .\n$$",
554
+ "text_format": "latex",
555
+ "bbox": [
556
+ 232,
557
+ 422,
558
+ 766,
559
+ 467
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "The parameters of the model are $\\Theta = ( \\pi , W , \\sigma ^ { 2 } )$ , where $W$ is a $D \\times H$ matrix whose columns contain the weights associated with each hidden unit $s _ { h }$ and where $\\sigma ^ { 2 }$ determines the variance of the Gaussian. M-step update rules for BSC can be derived in close-form by optimizing the free energy (2) wrt. all model parameters (compare, e.g., Henniges et al., 2010). We report the final expressions in appendix B. ",
566
+ "bbox": [
567
+ 173,
568
+ 476,
569
+ 825,
570
+ 547
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "5 NUMERICAL EXPERIMENTS ",
577
+ "text_level": 1,
578
+ "bbox": [
579
+ 176,
580
+ 570,
581
+ 436,
582
+ 587
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "We describe numerical experiments performed to test the applicability and scalability of EEM. Throughout the section, the different evolutionary algorithms are named by indicating which parent selection procedure was used (“fitparents” for fitness-proportional selection, “randparents” for random uniform selection) and which bitflip algorithm (“sparseflips” or “randflips”). We add “cross” to the name of the EA when crossover was employed. ",
589
+ "bbox": [
590
+ 174,
591
+ 603,
592
+ 825,
593
+ 674
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "5.1 ARTIFICIAL DATA ",
600
+ "text_level": 1,
601
+ "bbox": [
602
+ 174,
603
+ 694,
604
+ 338,
605
+ 708
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "First we investigate EMM using artificial data where the ground-truth components are known. We use the bars test as a standard setup for such purposes (Foldiak, 1990; Hoyer, 2003; L ¨ ucke & Sa- ¨ hani, 2008). In the standard setup, $H ^ { \\mathrm { g e n } } / 2$ non-overlapping vertical and $H ^ { \\mathrm { g e n } } / 2$ non-overlapping horizontal bars act as components on $\\begin{array} { r } { D = H ^ { \\mathrm { g e n } } \\times H ^ { \\mathrm { g e n } } } \\end{array}$ pixel images. $N$ images are then generated by first selecting each bar with probability $\\pi ^ { \\mathrm { g e n } }$ . The bars are then superimposed according to the noisy-OR model (non-linear superposition) or according to the BSC model. In the case of BSC Gaussian noise is then added. ",
612
+ "bbox": [
613
+ 173,
614
+ 720,
615
+ 825,
616
+ 819
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Noisy-OR. Let us start with the standard bars test which uses a non-linear superposition (Foldiak, ¨ 1990) of 16 different bars (Spratling, 1999; Lucke & Sahani, 2008), and a standard average crowd- ¨ edness of two bars per images $\\textstyle ( \\pi ^ { \\mathrm { g e n } } = { \\frac { 2 } { H ^ { \\mathrm { g e n } } } } ,$ ). We apply EEM for noisy-OR using different configurations of the EA. We use $H = 1 6$ generative fields. As a performance metric we here employ reliability (compare, e.g., Spratling, 1999; Lucke & Sahani, 2008), i.e., the fraction of runs whose ¨ learned free energies are above a certain minimum threshold and which learn the full dictionary of bars as well as the correct values for the prior probabilities $\\pi$ . ",
623
+ "bbox": [
624
+ 173,
625
+ 825,
626
+ 825,
627
+ 924
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "image",
633
+ "img_path": "images/2ee372dab6240ca730aeac4968d233c96d21ac7c4d06f57ec876fc005479c271.jpg",
634
+ "image_caption": [
635
+ "Figure 3: Reliability for the listed EAs over 10 runs of EEM for noisy-OR on 8x8 bars images. In this figure, black bars indicate both priors and bars were recovered correctly, grey bars indicate bars were recovered but not priors. For all runs $H = 1 6$ , $\\mathbf { \\dot { N } } = 1 0 ^ { 4 }$ , $N _ { g } = 2$ , $N _ { p } = 8$ , $N _ { c } = 7$ , $S = 1 2 0$ . Each run performed 100 iterations. ",
636
+ "Figure 3 shows reliabilities over 10 different runs for each of the EAs. On $8 \\mathrm { x } 8$ images the more exploitative nature of “fitparents-sparseflips” is advantageous over the simpler and more explorative “randparents-randflips”. Note that this is not necessarily true for lower dimensionalities or otherwise easier-to-explore state spaces, in which also a naive random search might quickly find high-fitness individuals. In this test the addition of crossover reduces the probability of finding all bars and leads to an overestimation of the crowdedness $\\pi H$ . "
637
+ ],
638
+ "image_footnote": [],
639
+ "bbox": [
640
+ 251,
641
+ 104,
642
+ 552,
643
+ 263
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "After the initial verification on a standard bars test, we now make the component extraction problem more difficult by increasing overlap among the bars. A highly non-linear generative model such as noisy-OR is a good candidate to model occlusion effects in images. Figure 4 shows the results of training noisy-OR with EEM on a bars data-set in which the latent causes have sensible overlaps. The test parameters were chosen to be equal to those in (Lucke & Sahani, 2008, Fig. 9). After ¨ applying EEM with noisy-OR $H = 3 2$ ) to $N = 4 0 0$ images with 16 strongly overlapping bars, we observed that all $H ^ { \\mathrm { g e n } } = 1 6$ bars were recovered in 13 of 25 runs, which is competitive especially when keeping in mind that no additional assumptions (e.g., compared to other models applied to this test) are used by EEM for noisy-OR. ",
650
+ "bbox": [
651
+ 173,
652
+ 385,
653
+ 826,
654
+ 508
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "image",
660
+ "img_path": "images/d765aec9e4065fdfc7ad6bd7ff90e8a85f2f62b814d3bde904ec71706e4027a7.jpg",
661
+ "image_caption": [
662
+ "Figure 4: Sample input (left) and learned generative fields (right) for a run on overlapping bars. Out of 25 runs, 13 recovered all 16 ground-truth generative components (14.92 recovered bars in average, median 16). As $H = 3 2$ , the extra generative fields are used to explain common overlaps and noise. "
663
+ ],
664
+ "image_footnote": [],
665
+ "bbox": [
666
+ 303,
667
+ 515,
668
+ 691,
669
+ 626
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "BSC. Like for the non-linear generative model, we first evaluate EEM for the linear BSC model on a bars test. For BSC, the bars are superimposed linearly (Henniges et al., 2010), which makes the problem easier. As a consequence, standard bars test were solved with very high reliability using EEM for BSC even if merely random bitflips were used for the EA. In order to make the task more challenging, we therefore (A) increased the dimensionality of the data to $D = 1 0 \\times 1 0$ bars images, (B) increased the number of components to $H ^ { \\mathrm { g e n } } = 2 0$ , and (C) increased the average number of bars per data point from two (the standard setting) to five. We employed $N = 5 , 0 0 0$ training data points and tested the same five different configurations of the EA as were evaluated for noisy-OR. We set the number of hidden units to $H = H ^ { \\mathrm { g e n } } = 2 0$ and used $S = 1 2 0$ variational states. Per data point and per iteration, in total 112 new states $N _ { p } = 8$ , $N _ { c } = 7$ , $N _ { g } = 2 $ ) were sampled to vary $\\textstyle { \\mathcal { K } } ^ { n }$ . Per configuration of the EA, we performed 20 independent runs, each with 300 iterations. The results of the experiment are depicted in Fig. 5. We observe that a basic approach such as random uniform selection of parents and random uniform bitflips for the EA works well. However, more sophisticated EAs improve performance. For instance, combining bitflips with crossover and selecting parents proportionally to their fitness shows to be very benefical. The results also show that sparseness-driven bitflips lead generally to very poor performance, even if crossover or fitnessproportional selection of the parents is included. This effect may be explained with the initialization of $\\textstyle { \\mathcal { K } } ^ { n }$ . The initial states are drawn from a Bernoulli distribution with parameter $\\textstyle { \\frac { 1 } { H } }$ which makes it more difficult for sparseness-driven EAs to explore and find solutions with higher crowdedness. Fig. 8 in appendix C depicts the averaged free energy values for this experiment. ",
676
+ "bbox": [
677
+ 173,
678
+ 702,
679
+ 825,
680
+ 924
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "image",
686
+ "img_path": "images/1eb7169f41b7206679046a2c5f7e241f43c693cc080c4c2dcb1cdb7045711fd6.jpg",
687
+ "image_caption": [
688
+ "Figure 5: Reliability for the listed EAs over 20 runs of EEM for BSC on $1 0 \\mathrm { x } 1 0$ bars images. "
689
+ ],
690
+ "image_footnote": [],
691
+ "bbox": [
692
+ 266,
693
+ 68,
694
+ 552,
695
+ 224
696
+ ],
697
+ "page_idx": 6
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "",
702
+ "bbox": [
703
+ 174,
704
+ 257,
705
+ 825,
706
+ 314
707
+ ],
708
+ "page_idx": 6
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "5.2 NATURAL IMAGE PATCHES ",
713
+ "text_level": 1,
714
+ "bbox": [
715
+ 176,
716
+ 332,
717
+ 398,
718
+ 345
719
+ ],
720
+ "page_idx": 6
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "Next, we verify the approach on natural data. We use patches of natural images, which are known to have a multi-component structure, which are well investigated, and for which typically models with high-dimensional latent spaces are applied. The image patches used are extracted from the van Hateren image database (van Hateren & van der Schaaf, 1998). ",
725
+ "bbox": [
726
+ 174,
727
+ 358,
728
+ 825,
729
+ 414
730
+ ],
731
+ "page_idx": 6
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "Noisy-OR. First we consider raw images patches, i.e., images without substantial pre-processing which directly reflect light intensities. Such image patches were generated by extracting random square subsections of a single $2 5 5 \\mathrm { x } 2 5 5$ image of overlapping grass wires (part of image 2338 of the database). We removed the brightest $1 \\%$ pixels from the data-set, scaled each data-point to have gray-scale values in the range $[ 0 , 1 ]$ and then created data points with binary entries by repeatedly choosing a random gray-scale image and sampling binary pixels from a Bernoulli distribution with parameter equal to the gray-scale value of the original pixel (cfr. figure 6). Note that components in such light-intensity images can be expected to superimpose non-linearly because of occlusion, which motivates the application of a non-linear generative model such as noisy-OR. We employ the “fitparents-sparseflips” evolutionary algorithm that was shown to perform best on artificial data (3). Parameters were $H = 1 0 0$ , $S = 1 2 0$ , $N _ { g } = 2$ , $N _ { p } = 8$ , $N _ { c } = 7$ . Figure 6 shows the generative fields learned over 200 iterations. EEM allows learning of generative fields resembling curved edges, in line with expectations and with the results obtained in (Lucke & Sahani, 2008). ¨ ",
736
+ "bbox": [
737
+ 174,
738
+ 421,
739
+ 825,
740
+ 601
741
+ ],
742
+ "page_idx": 6
743
+ },
744
+ {
745
+ "type": "image",
746
+ "img_path": "images/acbc9688afb4d64469908082a30747851909a2d94c193380b2088e3c36816111.jpg",
747
+ "image_caption": [
748
+ "Figure 6: 50 generative fields learned by applying EEM (“fitparents-sparseflips”) for noisy-OR to natural image patches. See Appendix F for a run at $H = 2 0 0$ . "
749
+ ],
750
+ "image_footnote": [],
751
+ "bbox": [
752
+ 387,
753
+ 614,
754
+ 619,
755
+ 705
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "BSC. Finally, we consider pre-processed image patches using common whitening approaches as they are customary for sparse coding approaches (Olshausen & Field, 1997). We use $N = 1 0 0 , 0 0 0$ patches of size $D = 1 6 \\times 1 6$ , randomly picked from the whole data set. The highest $2 \\%$ of the amplitudes were clamped to compensate for light reflections and patches without significant structure were excluded for learning. ZCA whitening (Bell & Sejnowski, 1997) was applied retaining $9 5 \\%$ of the variance (we used the procedure of a recent paper Exarchakis & Lucke, 2017). We trained the ¨ BSC model for 4,000 iterations using the “fitparents-cross-sparseflips” EA and employing $H = 3 0 0$ hidden units and $S = 2 0 0$ variational states. Per data point and per iteration, in total 360 new states $( N _ { p } = 1 0$ , $N _ { c } = 9$ , $N _ { g } = 4 \\AA$ ) were sampled to vary $K ^ { n }$ . The results of the experiment are depicted in Fig. 7. The obtained generative fields primarily take the form of Gabor functions with different locations, orientations, phase, and spatial frequencies. This is a typical outcome of sparse coding being applied to images. On average more than five units were activated per data point showing that the learned code makes use of the generative model’s multiple causes structure. The generative fields converged faster than prior and noise parameters (similar effects are known from probabilistic PCA for the variance parameter). The finit slope of the free-energy after 4000 iterations is presumably due to these parameters still changing slowly. ",
762
+ "bbox": [
763
+ 173,
764
+ 757,
765
+ 825,
766
+ 924
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "",
773
+ "bbox": [
774
+ 174,
775
+ 103,
776
+ 825,
777
+ 160
778
+ ],
779
+ "page_idx": 7
780
+ },
781
+ {
782
+ "type": "image",
783
+ "img_path": "images/cf37fac785ad130d3f0c4c7df0f70d5308a78dbc60fe8689911eda0deaac5667.jpg",
784
+ "image_caption": [
785
+ "Figure 7: Results on training the BSC model on natural images using the “fitparents-crosssparseflips” EA. $\\mathbf { A } 6 0$ of the 300 generative fields obtained through training (see Appendix for all fields). B Evolution of the free energy per data point over iterations. C Evolution of the expected number of active hidden units per data point over iterations. D Evolution of the standard deviation over iterations. "
786
+ ],
787
+ "image_footnote": [],
788
+ "bbox": [
789
+ 178,
790
+ 179,
791
+ 820,
792
+ 339
793
+ ],
794
+ "page_idx": 7
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "6 DISCUSSION ",
799
+ "text_level": 1,
800
+ "bbox": [
801
+ 174,
802
+ 452,
803
+ 310,
804
+ 468
805
+ ],
806
+ "page_idx": 7
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "The training of generative models is a very intensively studied branch of Machine Learning. If EM is applied for training, most non-elementary models require approximations. For this reason, sophisticated and mathematically grounded approaches such as sampling or variational EM have been developed in order to derive sufficiently precise and efficient learning algorithms. ",
811
+ "bbox": [
812
+ 174,
813
+ 484,
814
+ 825,
815
+ 541
816
+ ],
817
+ "page_idx": 7
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Evolutionary algorithms (EAs) have also been applied in conjunction with EM. Pernkopf & Bouchaffra (2005), for instance, have used EAs for clustering with Gaussian mixture models (GMMs). However, the GMM parameters are updated by their approach relatively conventionally using EM, while EAs are used to select the best GMM models for the clustering problem (using a min. description length criterion). Such a use of EAs is similar to DNN optimization where EAs optimize DNN hyperparameters in an outer optimization loop (Stanley & Miikkulainen, 2002; Loshchilov & Hutter, 2016; Real et al., 2017; Suganuma et al., 2017, etc), while the DNNs themselves are optimized using standard error-minimization algorithms. Still other approaches have used EAs to directly optimize, e.g., a clustering objective. But in these cases EAs replace EM approaches for optimization (compare Hruschka et al., 2009). In contrast to all such previous applications, we have here shown that EAs and EM can be combined directly and intimately: Alg. 1 defines EAs as an integral part of EM, and as such EAs address the key optimization problem arising in the training of generative models. ",
822
+ "bbox": [
823
+ 174,
824
+ 547,
825
+ 825,
826
+ 728
827
+ ],
828
+ "page_idx": 7
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "We see the main contribution of our study in the establishment of this close theoretical link between EAs and EM. This novel link will make it possible to leverage an extensive body of knowledge and experience from the community of evolutionary approaches for learning algorithms. Our numerical experiments are a proof of concept which shows that EAs are indeed able to train generative models with large hidden spaces and local optima. For this purpose we used very basic EAs with elementary selection, mutation, cross-over operators. ",
833
+ "bbox": [
834
+ 174,
835
+ 736,
836
+ 825,
837
+ 819
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "EAs more specialized to the specific optimization problems arising in the training of generative models have great potentials in future improvements of accuracy and scalability, we believe. In our experiments, we have only just started to exploit the abilities of EAs for learning algorithms. Still, our results represent, to the knowledge of the authors, the first examples of noisy-OR or sparse coding models trained with EAs (although both models have been studied very extensively before). Most importantly, we have pointed out a novel mathematically grounded way how EAs can be used for generative models with binary latents in general. The approach here established is, moreover, not only very generically formulated using the models’ joint probabilities but it is also very straightforward to apply. ",
844
+ "bbox": [
845
+ 174,
846
+ 825,
847
+ 825,
848
+ 924
849
+ ],
850
+ "page_idx": 7
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "",
855
+ "bbox": [
856
+ 171,
857
+ 103,
858
+ 823,
859
+ 133
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "REFERENCES ",
866
+ "text_level": 1,
867
+ "bbox": [
868
+ 174,
869
+ 150,
870
+ 287,
871
+ 165
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "A. J. Bell and T. J. Sejnowski. The “independent components” of natural scenes are edge filters. Vision Research, 37(23):3327–38, 1997. \nA. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm (with discussion). Journal of the Royal Statistical Society B, 39:1–38, 1977. \nG. Exarchakis and J. Lucke. Discrete sparse coding. ¨ Neural Computation, 29:2979–3013, 2017. \nL. J. Fogel, A. J. Owens, and M. J. Walsh. Artificial intelligence through simulated evolution. 1966. \nPeter Foldiak. Forming sparse representations by local anti-hebbian learning. ¨ Biological cybernetics, 64(2):165–170, 1990. \nD. Forster and J. Lucke. Truncated variational EM for semi-supervised Neural Simpletrons. In ¨ IJCNN, pp. 3769–3776, 2017. \nM. Henniges, G. Puertas, J. Bornschein, J. Eggert, and J. Lucke. Binary sparse coding. In ¨ Proceedings LVA/ICA, LNCS 6365, pp. 450–57. Springer, 2010. \nP. O. Hoyer. Modeling receptive fields with non-negative sparse coding. Neurocomputing, 52-54: 547–52, June 2003. ISSN 09252312. doi: 10.1016/S0925-2312(02)00782-8. \nP. O. Hoyer. Non-negative matrix factorization with sparseness constraints. Journal of Machine Learning Research, 5:1457–69, 2004. \nE. R. Hruschka, R. JGB Campello, A. A. Freitas, et al. A survey of evolutionary algorithms for clustering. IEEE Trans. on Systems, Man, and Cybernetics, 39(2):133–155, 2009. \nM. Jordan, Z. Ghahramani, T. Jaakkola, and L. Saul. An introduction to variational methods for graphical models. Machine Learning, 37:183–233, 1999. \nY. LeCun, Y. Bengio, and G. Hinton. Deep learning. Nature, 521(7553):436–444, 2015. \nI. Loshchilov and F. Hutter. CMA-ES for hyperparameter optimization of deep neural networks. In ICLR Workshop, pp. 513–520, 2016. \nJ. Lucke. Truncated variational expectation maximization. ¨ arXiv preprint, arXiv:1610.03113, 2016. \nJ. Lucke and J. Eggert. Expectation truncation and the benefits of preselection in training generative ¨ models. JMLR, 11:2855–900, 2010. \nJ. Lucke and M. Sahani. Maximal causes for non-linear component extraction. ¨ Journal of Machine Learning Research, 9:1227–67, 2008. \nJ. W. Myers, K. B. Laskey, and K. A. DeJong. Learning Bayesian networks from incomplete data using evolutionary algorithms. In Proc. Annual Conference on Genetic and Evolutionary Computation, pp. 458–465, 1999. \nR. Neal and G. Hinton. A view of the EM algorithm that justifies incremental, sparse, and other variants. In M. I. Jordan (ed.), Learning in Graphical Models. Kluwer, 1998. \nB. A. Olshausen and D. J. Field. Sparse coding with an overcomplete basis set: A strategy employed by V1? Vision Research, 37(23):3311–3325, 1997. \nM. Opper and O. Winther. Expectation consistent approximate inference. JMLR, 6:2177–04, 2005. \nA. B. Patel, T. Nguyen, and R. G. Baraniuk. A probabilistic theory of deep learning. In NIPS, pp. 2558–2566, 2016. \nF. Pernkopf and D. Bouchaffra. Genetic-based em algorithm for learning gaussian mixture models. IEEE Trans. on Pattern Analysis and Machine Intelligence, 27(8):1344–1348, 2005. \nE. Real, S. Moore, A. Selle, S. Saxena, Y. L. Suematsu, J. Tan, Q. V. Le, and A. Kurakin. Large-scale evolution of image classifiers. In ICML, pp. 2902–2911, 2017. \nI. Rechenberg. Cybernetic solution path of an experimental problem. 1965. \nS. Roweis. EM algorithms for PCA and SPCA. NIPS, pp. 626–32, 1998. \nT. Salimans, J. Ho, X. Chen, and I. Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017. \nL. K. Saul and M. Jordan. Exploiting tractable substructures in intractable networks. NIPS, pp. 486–492, 1996. \nJ. Schmidhuber. Deep learning in neural networks. Neural networks, 61:85–117, 2015. \nA.-S. Sheikh, J. A. Shelton, and J. Lucke. A truncated EM approach for spike-and-slab sparse ¨ coding. Journal of Machine Learning Research, 15:2653–2687, 2014. \nJ. A. Shelton, J. Gasthaus, Z. Dai, J. Lucke, and A. Gretton. Gp-select: Accelerating em using ¨ adaptive subspace preselection. Neural Computation, 29(8):2177–2202, 2017. \nM. W. Spratling. Pre-synaptic lateral inhibition provides a better architecture for self-organising neural networks. Network: Computation in Neural Systems, 10:285 – 301, 1999. \nM. W. Spratling, K. De Meyer, and R. Kompass. Unsupervised learning of overlapping image components using divisive input modulation. Computational Intelligence and Neuroscience, pp. 1–19, 2009. ISSN 1687-5265. \nK. O. Stanley and R. Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary Computing, 10(2):99–127, 2002. ISSN 1063-6560. \nM. Suganuma, S. Shirakawa, and T. Nagao. A genetic programming approach to designing convolutional neural network architectures. In GECCO, pp. 497–504, 2017. \nM. Tipping and C. Bishop. Probabilistic principal component analysis. Journal of the Royal Statistical Society. Series B, 61, 1999. \nJ. H. van Hateren and A. van der Schaaf. Independent component filters of natural images compared with simple cells in primary visual cortex. Proceedings of the Royal Society of London B, 265: 359–66, 1998. ",
878
+ "bbox": [
879
+ 169,
880
+ 156,
881
+ 828,
882
+ 922
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "",
889
+ "bbox": [
890
+ 168,
891
+ 82,
892
+ 826,
893
+ 647
894
+ ],
895
+ "page_idx": 9
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "APPENDIX ",
900
+ "text_level": 1,
901
+ "bbox": [
902
+ 176,
903
+ 103,
904
+ 264,
905
+ 117
906
+ ],
907
+ "page_idx": 10
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "A: NOISY-OR ",
912
+ "bbox": [
913
+ 174,
914
+ 133,
915
+ 272,
916
+ 148
917
+ ],
918
+ "page_idx": 10
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "The truncated free energy takes on the following form for Noisy-OR: ",
923
+ "bbox": [
924
+ 173,
925
+ 159,
926
+ 627,
927
+ 174
928
+ ],
929
+ "page_idx": 10
930
+ },
931
+ {
932
+ "type": "equation",
933
+ "img_path": "images/cd89100d963bf703ffc4f7289d56e81ed799901e57229702db407e0d06aefce7.jpg",
934
+ "text": "$$\n\\begin{array} { l } { \\mathcal { F } _ { N O R } ( K , \\Theta ) = N \\displaystyle \\sum _ { h } \\log \\left( 1 - \\pi _ { h } \\right) + \\displaystyle \\sum _ { n } \\log \\displaystyle \\sum _ { \\tilde { s } \\in \\mathcal { K } ^ { ( n ) } } \\exp \\tilde { \\mathcal { F } } } \\\\ { \\displaystyle \\qquad \\tilde { \\mathcal { F } } ( \\vec { s } , \\Theta ) : = \\sum _ { h } s _ { h } \\log \\left( \\frac { \\pi _ { h } } { 1 - \\pi _ { h } } \\right) } \\\\ { \\displaystyle \\qquad + \\sum _ { d } y _ { d } ^ { n } \\log \\left( \\frac { 1 } { \\prod _ { h } \\left( 1 - W _ { d h } s _ { h } \\right) } - 1 \\right) } \\\\ { \\displaystyle \\qquad + \\sum _ { h } \\log \\left( 1 - W _ { d h } s _ { h } \\right) } \\end{array}\n$$",
935
+ "text_format": "latex",
936
+ "bbox": [
937
+ 295,
938
+ 181,
939
+ 697,
940
+ 334
941
+ ],
942
+ "page_idx": 10
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "The M-step equations for noisy-OR are obtained by taking derivatives of the free energy, equating them to zero and solving the resulting set of equations. We report the results here for completeness: ",
947
+ "bbox": [
948
+ 174,
949
+ 347,
950
+ 825,
951
+ 376
952
+ ],
953
+ "page_idx": 10
954
+ },
955
+ {
956
+ "type": "equation",
957
+ "img_path": "images/1beb074dcd75e78a02a875df782e139766962de68e87c0d95cde3d5b947bc85e.jpg",
958
+ "text": "$$\n\\pi _ { h } ^ { n e w } = \\frac { 1 } { N } \\sum _ { n } \\left. s _ { h } \\right. _ { q ^ { n } }\n$$",
959
+ "text_format": "latex",
960
+ "bbox": [
961
+ 421,
962
+ 391,
963
+ 573,
964
+ 428
965
+ ],
966
+ "page_idx": 10
967
+ },
968
+ {
969
+ "type": "equation",
970
+ "img_path": "images/0e30624a2ea7cbd14a4ecb06531d2788c132bedaee6a93afacb23d2d6140a9ea.jpg",
971
+ "text": "$$\nW _ { d h } ^ { n e w } = 1 + \\frac { \\sum _ { n } ( y _ { d } ^ { n } - 1 ) \\left. D _ { d h } ( \\vec { s } ) \\right. _ { q ^ { n } } } { \\sum _ { n } \\left. C _ { d h } ( \\vec { s } ) \\right. _ { q ^ { n } } }\n$$",
972
+ "text_format": "latex",
973
+ "bbox": [
974
+ 367,
975
+ 431,
976
+ 630,
977
+ 470
978
+ ],
979
+ "page_idx": 10
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "where ",
984
+ "bbox": [
985
+ 173,
986
+ 473,
987
+ 217,
988
+ 488
989
+ ],
990
+ "page_idx": 10
991
+ },
992
+ {
993
+ "type": "equation",
994
+ "img_path": "images/14f2625c944ab62f34efcfe250141bdb1e3d4fe2183abdd77700658a6d95aa84.jpg",
995
+ "text": "$$\nD _ { d h } ( \\vec { s } ) : = \\frac { \\widetilde { W } _ { d h } ( \\vec { s } ) s _ { h } } { N _ { d } ( \\vec { s } ) ( 1 - N _ { d } ( \\vec { s } ) ) }\n$$",
996
+ "text_format": "latex",
997
+ "bbox": [
998
+ 397,
999
+ 483,
1000
+ 601,
1001
+ 520
1002
+ ],
1003
+ "page_idx": 10
1004
+ },
1005
+ {
1006
+ "type": "equation",
1007
+ "img_path": "images/fae2e3422bfef36693e23c0238074f92e498e22ff01d504a644c5205ad8842e6.jpg",
1008
+ "text": "$$\nC _ { d h } ( \\vec { s } ) : = \\widetilde { W } _ { d h } ( \\vec { s } ) D _ { d h } ( \\vec { s } )\n$$",
1009
+ "text_format": "latex",
1010
+ "bbox": [
1011
+ 395,
1012
+ 535,
1013
+ 573,
1014
+ 556
1015
+ ],
1016
+ "page_idx": 10
1017
+ },
1018
+ {
1019
+ "type": "equation",
1020
+ "img_path": "images/10a18e09d36b1c6ff714507283672673ca64d3ca09b79a2daf97457380e6ca54.jpg",
1021
+ "text": "$$\n\\widetilde { W } _ { d h } ( \\vec { s } ) : = \\prod _ { h ^ { \\prime } \\neq h } ( 1 - W _ { d h ^ { \\prime } } s _ { h ^ { \\prime } } )\n$$",
1022
+ "text_format": "latex",
1023
+ "bbox": [
1024
+ 395,
1025
+ 574,
1026
+ 602,
1027
+ 611
1028
+ ],
1029
+ "page_idx": 10
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "The update rule for $\\vec { \\pi }$ is quite straightforward. The update equations for the weights $W _ { d h }$ , on the other hand, do not allow a closed form solution (i.e. no exact M-step equation can be derived). The rule presented here, instead, expresses each $W _ { d h } ^ { n e w }$ as a function of all current $\\vec { W }$ ; this is a fixedpoint equation whose fixed point would be the exact solution of the maximization step. Rather than solving the equation numerically at each step of the learning algorithm, we exploit the fact that in practice one single evaluation of 13 is enough to (noisily, not optimally) move towards convergence. Since TV-EM is guaranteed to never decrease $\\mathcal { F }$ , drops of the free-energy during training can only be ascribed to this fixed-point equation; this provides a simple mechanism to check and possibly correct for misbehaviors of 13 if needed. ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 613,
1037
+ 825,
1038
+ 741
1039
+ ],
1040
+ "page_idx": 10
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "B: M-STEP UPDATE RULES FOR BSC ",
1045
+ "text_level": 1,
1046
+ "bbox": [
1047
+ 176,
1048
+ 758,
1049
+ 428,
1050
+ 772
1051
+ ],
1052
+ "page_idx": 10
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "The free energy for BSC follows from inserting (10) into (2). Update rules can be obtained by optimizing the resulting expression separately for the model parameters $\\pi , \\sigma ^ { 2 }$ and $W$ (compare, e.g., Henniges et al., 2010). For the sake of completeness, we show the result here: ",
1057
+ "bbox": [
1058
+ 174,
1059
+ 784,
1060
+ 823,
1061
+ 827
1062
+ ],
1063
+ "page_idx": 10
1064
+ },
1065
+ {
1066
+ "type": "equation",
1067
+ "img_path": "images/f9cf85e800729f0bd02ae9ba70110420dd4f2b5d3dbc37d0841d416c14eeaf7d.jpg",
1068
+ "text": "$$\n\\pi = \\frac { 1 } { N } \\sum _ { n = 1 } ^ { N } \\sum _ { h = 1 } ^ { H } \\left. s _ { h } \\right. _ { q ^ { n } }\n$$",
1069
+ "text_format": "latex",
1070
+ "bbox": [
1071
+ 421,
1072
+ 833,
1073
+ 575,
1074
+ 878
1075
+ ],
1076
+ "page_idx": 10
1077
+ },
1078
+ {
1079
+ "type": "equation",
1080
+ "img_path": "images/823f36913dec95294b5af95688300c43a2a0805dbe7f17c515a18a4db4b1548d.jpg",
1081
+ "text": "$$\n\\sigma ^ { 2 } = \\frac { 1 } { N D } \\sum _ { n = 1 } ^ { N } \\left. | | \\vec { y } ^ { ( n ) } - W \\vec { s } | | ^ { 2 } \\right. _ { q ^ { n } }\n$$",
1082
+ "text_format": "latex",
1083
+ "bbox": [
1084
+ 375,
1085
+ 885,
1086
+ 620,
1087
+ 928
1088
+ ],
1089
+ "page_idx": 10
1090
+ },
1091
+ {
1092
+ "type": "equation",
1093
+ "img_path": "images/8751fee3005de59f2fd6bf866f7f5f68d1ea201e8a36dc30a773f28804d2dfd6.jpg",
1094
+ "text": "$$\nW = \\left( \\sum _ { n = 1 } ^ { N } \\vec { y } ^ { ( n ) } \\langle \\vec { s } \\rangle _ { q ^ { n } } ^ { T } \\right) \\left( \\sum _ { n ^ { \\prime } = 1 } ^ { N } \\langle \\vec { s } \\vec { s } ^ { T } \\rangle _ { q ^ { n ^ { \\prime } } } \\right) ^ { - 1 }\n$$",
1095
+ "text_format": "latex",
1096
+ "bbox": [
1097
+ 346,
1098
+ 114,
1099
+ 650,
1100
+ 161
1101
+ ],
1102
+ "page_idx": 11
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Exact EM can be obtained by setting $q ^ { n }$ to the exact posterior $p ( \\vec { s } | \\vec { y } ^ { ( n ) } , \\Theta )$ . As this quickly becomes computational intractable with higher latent dimensionality, we approximate exact posteriors by truncated variational distributions (3). For BSC, the truncated free energy (4) takes the form ",
1107
+ "bbox": [
1108
+ 173,
1109
+ 167,
1110
+ 825,
1111
+ 210
1112
+ ],
1113
+ "page_idx": 11
1114
+ },
1115
+ {
1116
+ "type": "equation",
1117
+ "img_path": "images/1c29571cb23e9309656894c7b3a21d656e67e8491cc3f0af8be893b0522983cd.jpg",
1118
+ "text": "$$\n\\mathcal { F } ( \\mathcal { K } , \\Theta ) = - \\frac { N D } { 2 } \\log \\left( 2 \\pi \\sigma ^ { 2 } \\right) + N H \\log \\left( 1 - \\pi \\right) + \\sum _ { n } \\log \\left( \\sum _ { \\bar { s } \\in \\mathcal { K } _ { n } } \\exp \\left( \\widetilde { \\log p } \\left( \\bar { y } ^ { ( n ) } , \\bar { s } | \\Theta \\right) \\right) \\right)\n$$",
1119
+ "text_format": "latex",
1120
+ "bbox": [
1121
+ 179,
1122
+ 217,
1123
+ 789,
1124
+ 268
1125
+ ],
1126
+ "page_idx": 11
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "where ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 275,
1134
+ 217,
1135
+ 289
1136
+ ],
1137
+ "page_idx": 11
1138
+ },
1139
+ {
1140
+ "type": "equation",
1141
+ "img_path": "images/d5b370db07635a6fb3adcab8583ac2b19658a0e6afb6a3603ffcb7193ca98e1d.jpg",
1142
+ "text": "$$\n\\widetilde { \\log p } ( \\vec { y } , \\vec { s } | \\Theta ) = - \\frac { 1 } { 2 \\sigma ^ { 2 } } ( \\vec { y } - W \\vec { s } ) ^ { T } ( \\vec { y } - W \\vec { s } ) + | \\vec { s } | \\log \\left( \\frac { \\pi } { 1 - \\pi } \\right)\n$$",
1143
+ "text_format": "latex",
1144
+ "bbox": [
1145
+ 285,
1146
+ 286,
1147
+ 710,
1148
+ 320
1149
+ ],
1150
+ "page_idx": 11
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "C: FURTHER EXPERIMENTAL RESULTS FOR BSC ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 337,
1158
+ 511,
1159
+ 352
1160
+ ],
1161
+ "page_idx": 11
1162
+ },
1163
+ {
1164
+ "type": "image",
1165
+ "img_path": "images/e5cbc7870a7653deb74fa450f9a6f296bf198247008f8fc45e8ac1439eac82e0.jpg",
1166
+ "image_caption": [
1167
+ "Figure 8: Results of the experiment with artificial data ( $1 0 \\mathrm { x } 1 0$ bars) for the BSC model. Depicted is the evolution of the free energy for different EAs averaged over 20 independent runs. Dots and vertical errorbars show the mean and the standard deviation, respectively. "
1168
+ ],
1169
+ "image_footnote": [],
1170
+ "bbox": [
1171
+ 194,
1172
+ 373,
1173
+ 803,
1174
+ 598
1175
+ ],
1176
+ "page_idx": 11
1177
+ },
1178
+ {
1179
+ "type": "image",
1180
+ "img_path": "images/350763eb871d2cd60f159d4a33bc9ffa81ecc79dc1f4d64bd435946813832bee.jpg",
1181
+ "image_caption": [
1182
+ "Figure 9: Full dictionary learned from natural images by the BSC model trained with the “fitparentscross-sparseflips” EA. Depicted is the dictionary at iteration 4,000. The generative fields are ordered according to their activation, starting with most active fields. "
1183
+ ],
1184
+ "image_footnote": [],
1185
+ "bbox": [
1186
+ 183,
1187
+ 683,
1188
+ 816,
1189
+ 859
1190
+ ],
1191
+ "page_idx": 11
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "D: SPARSITY-DRIVEN BITFLIPS ",
1196
+ "text_level": 1,
1197
+ "bbox": [
1198
+ 174,
1199
+ 103,
1200
+ 390,
1201
+ 117
1202
+ ],
1203
+ "page_idx": 12
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "When performing sparsity-driven bitflips, we flip each bit of a particular child ${ \\vec { s } } ^ { * }$ with probability $p _ { 0 }$ if it is 0, with probability $p _ { 1 }$ otherwise. We call $p _ { b f }$ the average probability of flipping any bit in $\\vec { s } ^ { * }$ . We impose the following constraints on $p _ { 0 }$ and $p _ { 1 }$ : ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 128,
1211
+ 825,
1212
+ 172
1213
+ ],
1214
+ "page_idx": 12
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "• $p _ { 1 } = \\alpha p _ { 0 }$ for some constant $\\alpha$ • the average number of on bits after mutation is set at $\\widetilde { s }$ ",
1219
+ "bbox": [
1220
+ 215,
1221
+ 184,
1222
+ 591,
1223
+ 217
1224
+ ],
1225
+ "page_idx": 12
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "which yield the following expressions for $p _ { 0 }$ and $p _ { 1 }$ ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 228,
1233
+ 516,
1234
+ 243
1235
+ ],
1236
+ "page_idx": 12
1237
+ },
1238
+ {
1239
+ "type": "equation",
1240
+ "img_path": "images/0edbac77f1508e3922e09f3c0f9a36c4055e3342cf73ed036e4afa70afe043ea.jpg",
1241
+ "text": "$$\n\\alpha = \\frac { ( H - | \\vec { s } | ) \\cdot ( ( H p _ { b f } ) - ( \\widetilde { s } - | \\vec { s } | ) ) } { ( \\widetilde { s } - | \\vec { s } | + H p _ { b f } ) | \\vec { s } | } \n$$",
1242
+ "text_format": "latex",
1243
+ "bbox": [
1244
+ 370,
1245
+ 248,
1246
+ 627,
1247
+ 337
1248
+ ],
1249
+ "page_idx": 12
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Trivially, random uniform bitflips correspond to the case $p _ { 0 } = p _ { 1 } = p _ { b f }$ ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 349,
1257
+ 648,
1258
+ 366
1259
+ ],
1260
+ "page_idx": 12
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "E: RELIABILITY OF EEM FOR NOISY-OR ON OVERLAPPING BARS ",
1265
+ "text_level": 1,
1266
+ "bbox": [
1267
+ 174,
1268
+ 382,
1269
+ 629,
1270
+ 396
1271
+ ],
1272
+ "page_idx": 12
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "With respect to the tests shown in figure 4 and discussed in section 5.1, it is worth to spend a few more words on comparisons with the other algorithms shown (Lucke & Sahani, 2008, Fig. 9). Quan- ¨ titative comparison to NMF approaches, neural nets (DI Spratling et al., 2009), and MCA (Lucke ¨ & Sahani, 2008) shows that EMM for noisy-OR performs well but there are also approaches with higher reliability. Of all the approaches which recover more than 15 bars on average, most require additional assumptions. E.g., all NMF approaches, non-negative sparse coding (Hoyer, 2004) and $\\mathbf { R { - } M C A _ { 2 } }$ require constraints on weights and/or latent activations. Only $\\mathbf { M C A } _ { 3 }$ does not require constraints and presumably neither DI. DI is a neural network approach, which makes the used assumptions difficult to infer. $\\mathbf { M C A } _ { 3 }$ is a generative model with a max-non-linearity as superposition model. For learning it explores all sparse combinations with up to 3 components. Applied with $H = 3 2$ latents, it hence evaluates more than 60000 states per data point per iteration for learning. For comparison, EEM for noisy-OR evaluates on the order of $S = 1 0 0$ states per data point per iteration. ",
1277
+ "bbox": [
1278
+ 173,
1279
+ 407,
1280
+ 825,
1281
+ 588
1282
+ ],
1283
+ "page_idx": 12
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "F: HIGHER-SCALE NATURAL IMAGE PATCHES FOR NOISY-OR ",
1288
+ "bbox": [
1289
+ 173,
1290
+ 606,
1291
+ 599,
1292
+ 619
1293
+ ],
1294
+ "page_idx": 12
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "",
1299
+ "bbox": [
1300
+ 176,
1301
+ 638,
1302
+ 823,
1303
+ 743
1304
+ ],
1305
+ "page_idx": 12
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Figure 10: Generative fields learned running EEM for noisy-OR (“fitparents-sparseflips”) for 175 iterations with $H = 2 0 0$ latent variables. Learned crowdedness $\\pi H$ was 1.6. ",
1310
+ "bbox": [
1311
+ 173,
1312
+ 753,
1313
+ 823,
1314
+ 782
1315
+ ],
1316
+ "page_idx": 12
1317
+ }
1318
+ ]
parse/train/SyjjD1WRb/SyjjD1WRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyjjD1WRb/SyjjD1WRb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyxCqGbRZ/SyxCqGbRZ.md ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING TO TREAT SEPSIS WITH MULTI-OUTPUTGAUSSIAN PROCESS DEEP RECURRENT Q-NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Sepsis is a life-threatening complication from infection and a leading cause of mortality in hospitals. While early detection of sepsis improves patient outcomes, there is little consensus on exact treatment guidelines, and treating septic patients remains an open problem. In this work we present a new deep reinforcement learning method that we use to learn optimal personalized treatment policies for septic patients. We model patient continuous-valued physiological time series using multi-output Gaussian processes, a probabilistic model that easily handles missing values and irregularly spaced observation times while maintaining estimates of uncertainty. The Gaussian process is directly tied to a deep recurrent Q-network that learns clinically interpretable treatment policies, and both models are learned together end-to-end. We evaluate our approach on a heterogeneous dataset of septic spanning 15 months from our university health system, and find that our learned policy could reduce patient mortality by as much as $8 . 2 \%$ from an overall baseline mortality rate of $1 3 . 3 \%$ . Our algorithm could be used to make treatment recommendations to physicians as part of a decision support tool, and the framework readily applies to other reinforcement learning problems that rely on sparsely sampled and frequently missing multivariate time series data.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Sepsis is a poorly understood complication arising from infection, and is both a leading cause in patient mortality (Epstein et al. (2016)) and in associated healthcare costs (Torio & Moore (2016)). Early detection is imperative, as earlier treatment is associated with better outcomes (Seymour et al. (2017), Kumar et al. (2006)). However, even among patients with recognized sepsis, there is no standard consensus on the best treatment. There is a pressing need for personalized treatment strategies tailored to the unique physiology of individual patients. Guidelines on sepsis treatment previously centered on early goal directed therapy (EGDT) and more recently have focused on sepsis care bundles, but none of these approaches are individualized.
12
+
13
+ Before the landmark publication on the use of early goal directed therapy (Rivers et al. (2001)), there was no standard management for severe sepsis and septic shock. EGDT consists of early identification of high-risk patients, appropriate cultures, infection source control, antibiotics administration, and hemodynamic optimization. The study compared a 6-hour protocol of EGDT promoting use of central venous catheterization to guide administration of fluids, vasopressors, inotropes, and packed red-blood cell transfusions, and was found to significantly lower mortality. Following the initial trial, EGDT became the cornerstone of the sepsis resuscitation bundle for the Surviving Sepsis Campaign (SCC) and the Centers for Medicare and Medicaid Services (CMS) (Dellinger et al. (2013)).
14
+
15
+ Despite the promising results of EGDT, concerns arose. External validity outside the single center study was unclear, it required significant resources for implementation, and the elements needed to achieve pre-specified hemodynamic targets held potential risks. Between 2014–2017, a trio of trials reported an all-time low sepsis mortality, and questioned the continued need for all elements of EGDT for patients with severe and septic shock (ProCESS et al. (2014), ARISE & Group (2014), PRISM (2017)). The trial authors concluded EGDT did not improve patient survival compared to usual care but was associated with increased ICU admissions (Angus et al. (2015)). As a result, they did not recommend it be included in the updated SCC guidelines (Rhodes et al. (2017)).
16
+
17
+ Although the SSC guidelines provide an overarching framework for sepsis treatment, there is renewed interest in targeting treatment and disassembling the bundle (Lewis (2010)). A recent metaanalysis evaluated 12 randomized trials and 31 observational studies and found that time to first antibiotics explained $9 6 - 9 9 \%$ of the survival benefit (Kalil et al. (2017)). Likewise, a study of 50,000 patients across the state of New York found mortality benefit for early antibiotic administration, but not intravenous fluids (Seymour et al. (2017)). Beyond narrowing the bundle, there is emerging evidence that a patient’s baseline risk plays an important role in response to treatment, as survival benefit was significantly reduced for patients with more severe disease (Kalil et al. (2017)).
18
+
19
+ Taken together, the poor performance of EGDT compared to standard-of-care and improved understanding of individual treatment effects calls for re-envisioning sepsis treatment recommendations. Though general consensus in critical care is that the individual elements of the sepsis bundle are typically useful, it is unclear exactly when each element should be administered and in what quantity.
20
+
21
+ In this paper, we aim to directly address this problem using deep reinforcement learning. We develop a novel framework for applying deep reinforcement learning to clinical data, and use it to learn optimal treatments for sepsis. With the widespread adoption of Electronic Health Records, hospitals are already automatically collecting the relevant data required to learn such models. However, real-world operational healthcare data present many unique challenges and motivate the need for methodologies designed with their structure in mind. In particular, clinical time series are typically irregularly sampled and exhibit large degrees of missing values that are often informatively missing, necessitating careful modeling. The high degree of heterogeneity presents an additional difficulty, as patients with similar symptoms may respond very differently to treatments due to unmeasured sources of variation. Alignment of patient time series can also be a potential issue, as patients admitted to the hospital may have very different unknown clinical states and can develop sepsis at any time throughout their stay (with many already septic upon admission).
22
+
23
+ Part of the novelty in our approach hinges on the use of a Multi-output Gaussian process (MGP) as a preprocessing step that is jointly learned with the reinforcement learning model. We use an MGP to interpolate and to impute missing physiological time series values used by the downstream reinforcement learning algorithm, while importantly maintaining uncertainty about the clinical state. The MGP hyperparameters are learned end-to-end during training of the reinforcement learning model by optimizing an expectation of the standard Q-learning loss. Additionally, the MGP allows for estimation of uncertainty in the learned Q-values. For the model architecture we use a deep recurrent Q-network, in order to account for the potential for non-Markovian dynamics and allow the model to have memory of past states and actions. In our experiments utilizing EHR data from septic patients spanning 15 months from our university health system, we found that both the use of the MGP and the deep recurrent Q-network offered improved performance over simpler approaches.
24
+
25
+ # 2 BACKGROUND
26
+
27
+ In this section we outline important background that motivates our improvements on prior work.
28
+
29
+ # 2.1 DEEP Q-LEARNING
30
+
31
+ Reinforcement learning (RL) considers learning policies for agents interacting with unknown environments, and are typically formulated as a Markov decision process (MDP) (Sutton $\&$ Barto (1998)). At each time $t$ , an agent observes the state of the environment, $s _ { t } \in S$ , takes an action $a _ { t } \in \mathcal A$ , and receives a reward $r _ { t } \in \mathbb { R }$ , at which time the environment transitions to a new state $s _ { t + 1 }$ . The state space $s$ and action space $\mathcal { A }$ may be continuous or discrete. The goal of an RL agent is to select actions in order to maximize its return, or expected discounted future reward, defined as $\begin{array} { r } { R _ { t } = \sum _ { t ^ { \prime } = t } ^ { T } \gamma ^ { t ^ { \prime } - t } r _ { t ^ { \prime } } } \end{array}$ , where $\gamma$ captures tradeoff between immediate and future rewards.
32
+
33
+ Q-Learning (Watkins & Dayan (1992)) is a model-free off-policy algorithm for estimating the expected return from executing an action in a given state. The optimal action value function is the maximum discounted expected reward obtained by executing action $a$ in state $s$ and acting optimally afterwards, defined as $\begin{array} { r } { Q ^ { * } ( s , a ) = \operatorname* { m a x } _ { \pi } \mathbb { E } [ R _ { t } | s _ { t } = s , a _ { t } = a , \pi ] } \end{array}$ , where $\pi$ is a policy that maps states to actions. Given $Q ^ { * }$ , an optimal policy is to act by selecting argmax ${ } _ { a } Q ^ { * } ( s , a )$ . In Q-learning, the Bellman equation is used to iteratively update the current estimate of the optimal action value function according to $Q ( s , a ) \doteq Q ( s , a ) + \alpha \bar { ( } r + \gamma \mathrm { m a x } _ { a } Q ( s ^ { \prime } , a ^ { \prime } ) - Q ( s , a ) )$ , adjusting towards the observed reward plus the maximal Q-value at the next state $s ^ { \prime }$ . In Deep Q-learning a deep neural network is used to approximate $\mathrm { Q }$ -values (Mnih et al. (2015)), overcoming the issue that there may be infinitely many states if the state space is continuous. Denoting the parameters of the neural network by $\theta$ , Q-values $Q ( s , a | \theta )$ are now estimated by performing a forward pass through the network. Updates to the parameters are obtained by minimizing a differentiable loss function, $\begin{array} { r } { L ( s , a | \theta _ { i } ) = ( \dot { r } + \gamma \mathrm { m a x } _ { a ^ { \prime } } \dot { Q ( s ^ { \prime } , a ^ { \prime } | \theta _ { i } ) } - Q ( s , a | \theta _ { i } ) ) ^ { 2 } } \end{array}$ , and training is usually accomplished with stochastic gradient descent.
34
+
35
+ # 2.2 PARTIAL OBSERVABILITY AND DEEP RECURRENT Q-NETWORKS
36
+
37
+ A fundamental limiting assumption of Markov decision processes is the Markov property, which is rarely satisfied in real-world problems. In medical applications such as our problem of learning optimal sepsis treatments, it is unlikely that a patient’s full clinical state will be measured. A Partially Observable Markov Decision Process (POMDP) better captures the dynamics of these types of realworld environments. An extension of an MDP, a POMDP assumes that an agent does not receive the true state of the system, instead receiving only observations $o \in \Omega$ generated from the underlying system state according to some unknown observation model $o \sim \mathcal { O } ( s )$ . Deep Q-learning has no reliable way to learn the underlying state of the POMDP, as in general $Q ( o , a | \bar { \theta } ) \neq Q ( s , \bar { a } | \theta )$ , and will only perform well if the observations well reflect the underlying state. Returning to our medical application, the system state might be the patient’s unknown clinical status or disease severity, and our observations in the form of vitals or laboratory measurements offer some insight into the state.
38
+
39
+ The Deep Recurrent Q-Network (DRQN) (Hausknecht & Stone (2015)) extends vanilla Deep Qnetworks (DQN) by using recurrent LSTM layers (Hochreiter & Schmidhuber (1997)), which are well known to capture long-term dependencies. LSTM recurrent neural network (RNN) models have frequently been used in past applications to medical time series, such as Lipton et al. (2016). In our experiments we investigate the effect of replacing fully connected neural network layers with LSTM layers in our Q-network architecture in order to test how realistic the Markov assumption is in our application.
40
+
41
+ # 2.3 MGPS: MULTI-OUTPUT GAUSSIAN PROCESSES
42
+
43
+ Multi-output Gaussian processes (MGPs) are commonly used probabilistic models for irregularly sampled multivariate time series, as they seamlessly handle variable spacing, differing numbers of observations per series, and missing values. In addition, they maintain estimates of uncertainty about the state of the series. MGPs have been frequently applied to model patient physiological time series, e.g. Ghassemi et al. (2015), Durichen et al. (2015), Cheng et al. (2017).
44
+
45
+ Given $M$ time series (physiological labs/vitals), an MGP is specified by a mean function for each series $\{ \mu _ { m } ( t ) \} _ { m = 1 } ^ { M }$ , commonly assumed to be zero, and a covariance function or kernel $K$ . Letting $f _ { m } ( t )$ denote the latent function for series $m$ at time , then $K ( t , t ^ { \prime } , m , m ^ { \prime } ) = \operatorname { c o v } ( f _ { m } ( t ) , f _ { m ^ { \prime } } ( t ^ { \prime } ) ) \big ]$ . Typicallytion, e.g. $y _ { m } ( t ) \sim \mathcal { N } ( f _ { m } ( t ) , \sigma _ { m } ^ { 2 } )$ re cewith $\lbrace \sigma _ { m } ^ { 2 } \rbrace _ { m = 1 } ^ { M }$ he latent functions according to some distribu-noise parameters. We use the linear model of coregionalization covariance function with an Ornstein-Uhlenbeck base kernels $k ( t , t ^ { \prime } ) = e ^ { - | t - t ^ { \prime } | / l }$ to flexibly model temporal correlations in time as well as covariance structure between different physiological variables. For each patient, letting t denote the complete set of measurement times across all observations, the full joint kernel is $\begin{array} { r } { \bar { K } ( \mathbf { t } , \mathbf { t } ^ { \prime } ) = \sum _ { p = 1 } ^ { P } \mathbf { B } _ { p } \otimes k _ { p } ( \mathbf { t } _ { * } , \mathbf { t } _ { * } ^ { \prime } ) } \end{array}$ , where $P$ denotes the number of mixture kernel. $\mathbf { t } _ { * }$ denotes the time vector for each physiological sign, assumed here to be the same for notational convenience, but in practice the full kernel need only be computed at the observed variables. Each $\mathbf { B } _ { p } \in \mathbb { R } ^ { M \times M }$ encodes the scale covariance between different time series. We found that $P = 2$ works well in practice and allows learning of correlations on both short and long time scales. Given the MGP kernel hyperparameters shared across all patients, collectively referred to as $\eta$ , imputation and interpolation at arbitrary times can be computed either using the posterior mean or the full posterior distribution over unknown function values.
46
+
47
+ # 2.4 MGP-RNNS: MULTI-OUTPUT GAUSSIAN PROCESS RECURRENT NEURAL NETWORKS
48
+
49
+ Multi-output Gaussian processes and recurrent neural networks can be combined and trained endto-end (MGP-RNNs), in order to solve supervised learning problems for sequential data (Futoma et al. (2017a), Futoma et al. (2017b)). This methodology was shown to exhibit superior predictive performance at early detection of sepsis from clinical time series data, when compared with vanilla RNNs with last-one-carried-forward imputation. In fitting the two models end-to-end, the MGP hyperparameters are learned discriminatively, in essence learning an imputation and interpolation mechanism tuned for the supervised task at hand.
50
+
51
+ Learning an MGP-RNN consists of minimizing an expectation of some loss function, with respect to the posterior distribution of the MGP. Letting z denote a set of latent time series values distributed according to an MGP posterior, and $g ( \mathbf { z } )$ denote the prediction(s) made by an RNN from this time series, then the goal is to minimize $\mathbb { E } _ { \mathbf { z } \sim \mathcal { M G P } } [ l ( \mathbf { 0 } , g ( \mathbf { z } ) ) ]$ , where $l$ is some loss function (e.g. crossentropy for a classification task) and o is the true label(s). We can express the MGP distributed latent variable $\mathbf { z }$ as ${ \bf z } = \mu _ { z } + R _ { z } \boldsymbol { \xi }$ , where $\mu _ { z }$ is the posterior mean and $R _ { z } { \bf \bar { \cal R } _ { z } ^ { \top } } = \Sigma _ { z }$ with $\Sigma _ { z }$ the posterior covariance, and $\xi \sim ( 0 , I )$ . This allows us to apply the reparameterization trick (Kingma & Welling (2014)) and use Monte Carlo sampling to compute approximate gradients of this expectation with respect to both MGP hyperparameters $\eta$ and RNN parameters $\theta$ , so that the loss can be minimized via stochastic gradient descent. The stochasticity in this learning procedure introduced from the Monte Carlo sampling additionally acts as a form of regularization, and helps prevent the RNN from overfitting. In Section 3 we show how this can be applied to a reinforcement learning task.
52
+
53
+ # 2.5 RELATED WORK FROM REINFORCEMENT LEARNING IN HEALTHCARE
54
+
55
+ There has been substantial recent interest in development of machine learning methodologies motivated by healthcare data. However, most prior work in clinical machine learning focuses on supervised tasks, such as diagnosis (Esteva et al. (2017)) or risk stratification (Futoma et al. (2017a)). Many recent papers have developed models for early detection of sepsis, a related problem to our task of learning treatments for sepsis, e.g. Soleimani et al. (2017), Henry et al. (2015), Futoma et al. (2017b). However, as supervised problems rely on ground truth they cannot be applied to treatment recommendation, unless the assumption is made that past training examples of treatments represent optimal behavior. Instead, it is preferable to frame the problem using reinforcement learning in order to learn optimal treatment actions from data collected from potentially suboptimal actions.
56
+
57
+ While deep reinforcement learning has seen huge success over the past few years, only very recently have reinforcement learning methods been designed with healthcare applications in mind. Applying reinforcement learning methods to healthcare data is difficult, as it requires careful consideration to set up the problem, especially the rewards. Furthermore, it is typically not possible to collect additional data and so evaluating learned policies on retrospective data presents a challenge.
58
+
59
+ Most related to this paper are Raghu et al. (2017) and Komorowski et al. (2016), who also look at the problem of learning optimal sepsis treatments. We build off of their work by using a more sophisticated network architecture that takes into account both memory through the use of DRQNs and uncertainty in time series imputation and interpolation using MGPs. Other relevant work includes Prasad et al. (2017), who use a simpler learning algorithms to learn optimal strategies for ventilator weaning, and Nemati et al. (2016), who also use a deep RL approach for modeling ICU heparin dosing as a POMDP with discriminative hidden Markov models and Q-networks. There also exists a rich set of work from the statistics and causal inference literature on learning dynamic treatment regimes, e.g. Chakraborty & Moodie (2013), Shortreed et al. (2010), although the models are typically fairly simple for ease of interpretability.
60
+
61
+ # 3 MGP-DRQN: MULTI-OUTPUT GAUSSIAN PROCESS DEEP RECURRENTQ-NETWORKS
62
+
63
+ We now introduce Multi-Output Gaussian Process Deep Recurrent Q-Networks, or MGP-DRQNs, a novel reinforcement learning algorithm for learning optimal treatment policies from noisy, sparsely sampled, and frequently missing clinical time series data. We assume a discrete action space, $a \in$ $\mathcal { A } = \{ 1 , \ldots , A \}$ . Let $\mathbf { X }$ denote $T$ regularly spaced grid times at which we would like to learn optimal treatment decisions. Given a set of clinical physiological time series $\mathbf { y }$ that we assume to be distributed according to an MGP, we can compute a posterior distribution for $z _ { t } | \mathbf { y }$ , the latent unobserved time series values at each grid time.
64
+
65
+ The loss function we optimize is similar to in normal deep Q-learning, with the addition of the expectation due to the MGP and the fact that we compute the loss over full patient trajectories. In particular, we learn optimal DRQN parameters $\theta ^ { * }$ and MGP hyperparameters $\eta ^ { * }$ via:
66
+
67
+ $$
68
+ \theta ^ { * } , \eta ^ { * } = \operatorname * { a r g m i n } _ { \theta , \eta } \mathbb { E } \left[ \mathbb { E } _ { p ( \mathbf { z } | \mathbf { y } ; \eta ) } \left\{ \frac { 1 } { T } \sum _ { t = 1 } ^ { T } ( Q _ { t a r g e t } ^ { ( t ) } - Q ( [ z _ { t } , s _ { t } ] ^ { \top } , a ; \theta ) ) ^ { 2 } \right\} \right] ,
69
+ $$
70
+
71
+ where the $t ^ { \prime }$ ’th target value is $\begin{array} { r } { Q _ { t a r g e t } ^ { ( t ) } = r _ { t } + \gamma \mathrm { m a x } _ { a ^ { \prime } } Q ( [ z _ { t + 1 } , s _ { t + 1 } ] , a ^ { \prime } ) } \end{array}$ , the outer expectation is concatenate the two separate types of model inputs at time $t$ , with $z _ { t }$ denoting latent variables distributed according to an MGP posterior from other relevant inputs to the model denoted $s _ { t }$ , such as static baseline covariates. In Section 4.1 we go into detail on the particular variables included in $s _ { t }$ .
72
+
73
+ We use a Dueling Double-Deep Q-network architecture, similar to Raghu et al. (2017). The Dueling Q-network architecture Wang et al. (2016) has separate value and advantage streams to separate the effect of a patient being in a good underlying state from a good action being taken. The Double-Deep Q-network architecture (van Hasselt et al. (2016)) helps correct overestimation of Q-values by using a second target network to compute the Q-values in the target $\boldsymbol { Q } _ { t a r g e t }$ . Finally, we use Prioritized Experience Replay in order to speed learning, so that patient encounters with higher training error will be resampled more frequently. We use 2 LSTM layers with 64 hidden units each that feed to a final fully connected layer with 64 hidden units, before splitting into equally sized value and advantage streams that are finally then projected onto the action space to obtain $\mathrm { Q }$ -value estimates.
74
+
75
+ We implemented our methods in Tensorflow using the Adam optimizers (Kingma & Ba (2015)) with minibatches of 50 encounters sampled at a time, a learning rate of 0.001, and $L _ { 2 }$ regularization on weights. We use 25 Monte Carlo samples from the MGP for each sampled encounter in order to approximate the expected loss and compute approximate gradients, and these samples and other inputs are fed in a forward pass through the DRQN to get predictions $Q ( s , a )$ . We will release source code via Github after the review period.
76
+
77
+ # 4 EXPERIMENTS, EVALUATION, AND RESULTS
78
+
79
+ In this section we first describe the details of our dataset of septic patients before highlighting how the experiments were set up and how the algorithms were evaluated.
80
+
81
+ # 4.1 DATASET AND PREPROCESSING
82
+
83
+ Our dataset consists of information collected during 9,255 patient encounters resulting in sepsis at our university hospital, spanning a period of 15 months. We define sepsis to be the first time at which a patient simultaneously had persistently abnormal vitals (as measured by a $^ { 2 + }$ SIRS score, Bone et al. (1992)), a suspicion of infection (as measured by an order for a blood culture), and an abnormal laboratory value indicative of organ damage. This differs from the new Sepsis-3 definition (Seymour et al. (2016)), which has since been largely criticized for its detection of sepsis late in the clinical course (Cortes-Puch & Hartog (2016)). We break the full dataset into 7867 training patient encounters and reserve the remaining 1388 for testing.
84
+
85
+ We discretize the data to learn actions in 4 hour windows. We emphasize that the raw data itself is not down-sampled; rather, we use the MGP to learn a posterior for the time series values every 4 hours. Actions for the RL setup consist of 3 treatments commonly given to septic patients: antibiotics, vasopressors, and IV fluids. Antibiotics and vasopressors are broken down into 3 categories, based on whether 0, 1, or $^ { 2 + }$ were administered in each 4 hour window. For IV Fluids, we consider 5 discrete categories: either 0, or one of 4 aggregate doses based on empirical quartiles of total fluid volumes. This yields a discrete action space with $3 \times 3 \times 5 = 4 5$ distinct actions.
86
+
87
+ Our data consists of 36 longitudinal physiological variables (e.g. blood pressure, pulse, white blood cell count), 2 longitudinal categorical variables, and 38 variables available at baseline (e.g. age, previous medical conditions). 8 medications tangential to sepsis treatment are included as inputs to MGP-DRQN, as well as an indicator for which of the 45 actions was administered at the last time. Additionally, 36 indicator variables for whether or not each lab/vital was recently sampled allows the model to learn from informative sampling due to non-random missingness. In total, there are 165 input observation variables to each of the Q-network models at each time.
88
+
89
+ Our outcome of interest is mortality within 30 days of onset of sepsis. We use a sparse reward function in this initial work, so that the reward at every non-terminal time point is 0, with a reward of $\pm 1 0$ at the end of a trajectory based on patient survival/death. Although this presents a challenging credit assignment problem, this allows for data to inform what actions should be taken to reduce chance of death without being overly prescriptive.
90
+
91
+ # 4.2 BASELINE METHODS
92
+
93
+ We use SARSA, an on-policy algorithm, to estimate state-action values for the physician policy.
94
+
95
+ We compare a number of different architectures for learning optimal sepsis treatments. In addition to our proposed MGP-DRQN, we compare against MGP-mean-DRQN, a variant where we move the posterior expectation inside the DRQN loss function, meaning we use the posterior mean of the MGP rather than use Monte Carlo samples from the MGP. We also compare against a DRQN with identical architecture, but replace the MGP with last-one-carried-forward imputation to fill in any missing values, and use the mean if there are multiple measurements. We also compare against a vanilla DQN, a MGP-DQN, and a MGP-mean-DQN, with an equivalent number of layers and parameters, to test the effect of the recurrence in the DRQN models.
96
+
97
+ # 4.3 OFF-POLICY VALUE EVALUATION
98
+
99
+ We use Doubly Robust Off-policy Value Evaluation (Jiang & Li (2016)) to compute unbiased estimates of each learned optimal policy using our observed off-policy data. For each patient trajectory in the test set we estimate its value using this method, and the average results. In order to apply this method we train an MGP-RNN to estimate the action probabilities of the physician policy.
100
+
101
+ # 4.4 QUANTITATIVE RESULTS
102
+
103
+ In Figure 1 we show the results of using SARSA to estimate expected returns for the physician policy on the test data. The Q-values appear to be well calibrated with mortality, as patients who were estimated to have higher expected returns tended to have lower mortality. Due to small sample sizes for very low expected returns, the mortality rate does not always monotonically decrease.
104
+
105
+ ![](images/db3a0f5163cac607345f2838b1203f651d12f015dfb2c92b1abe2cb9e4a5f19d.jpg)
106
+ Figure 1: For the 1388 patients in the test set we show the expected returns as computed by SARSA, against 30-day mortality among patients with similar Q-values. Our model appears to be well calibrated, as higher returns are associated with lower mortality.
107
+
108
+ We can estimate the potential reduction in mortality a learned policy might have by computing an unbiased estimate of the policy value, as described in Section 4.3, and then use the results in Figure 1. Table 1 contains the policy value estimates for each algorithm considered, along with estimated mortality rates. The physician policy has an estimated value of 5.52 and corresponding mortality of $1 3 . 3 \%$ , matching the observed mortality in the test set of $1 3 . 3 \%$ . Overall the MGPDRQN performs and might reduce mortality by as much as $8 \%$ . The DRQN architectures tended to yield higher expected returns, probably because they are able to retain some memory of past clinical states and actions taken. The MGP consistently improved results as well, and the additional uncertainty information contained in the full MGP posterior appeared to do better than the policies that only used the posterior mean.
109
+
110
+ <table><tr><td rowspan=1 colspan=2>Policy</td><td rowspan=1 colspan=1>Expected Return</td><td rowspan=1 colspan=1>EstimatedMortality</td></tr><tr><td rowspan=7 colspan=2>PhysicianMGP-DRQNMGP-mean-DRQNDRQNMGP-DQNMGP-mean-DQNDQN</td><td rowspan=1 colspan=1>5.52</td><td rowspan=6 colspan=1>13.3 ± 0.7%5.1 ± 0.5%6.6 ± 0.4%8.4 ± 0.4%6.6 ± 0.4%7.5 ± 0.4%</td></tr><tr><td rowspan=1 colspan=1>7.51</td></tr><tr><td rowspan=1 colspan=1>6.97</td></tr><tr><td rowspan=1 colspan=1>6.63</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>7.05</td></tr><tr><td rowspan=1 colspan=1>6.73</td></tr><tr><td rowspan=1 colspan=1>6.09</td><td rowspan=1 colspan=1>10.6 ± 0.5%</td></tr></table>
111
+
112
+ Table 1: Expected returns for the various policies considered. For the 6 reinforcement learning algorithms considered, we estimate their expected returns using an off-policy value evaluation algorithm. Using the results from Figure 1, we estimate the potential expected mortality reduction associated with each policy.
113
+
114
+ # 4.5 QUALITATIVE RESULTS
115
+
116
+ We also qualitatively evaluate the results of the policy from our best performing learning algorithm, the MGP-DRQN. In Figure 2 we compare the number of times each type of action was actually taken by physicians, and how many times the learned policy selected that action. The MGP-DRQN policy tended to recommend more use of antibiotics and more vasopressors than were actually used by physician, while strangely recommending somewhat less use of IV fluids.
117
+
118
+ ![](images/3fdc39dc3509052c29a0d73b9f7364d8cbe8516eba0b95136bcd0c49edacea0f.jpg)
119
+ Figure 2: Comparison of physician actions with the actions that would have been taken by the MGP-DRQN policy, with actions separated according to the 3 types of treatments considered.
120
+
121
+ In Figure 3, we show how mortality rates differ on the test set as a function of how different the observed physician action was from what the MGP-DRQN would have recommended. For all 3 types of treatments, there appears to be a local minimum at 0 and we observe a $\mathrm { v }$ shape, indicating that empirically, mortality tended to be lowest when the clinicians took the same actions that the MGP-DRQN would have. Uncertainty tends to be higher due to smaller sample sizes for situations where there is larger disparity.
122
+
123
+ ![](images/91d661b22376fb336538862913236ef6c2aa8babdbd0353457bb34fedec0b587.jpg)
124
+ Figure 3: Empirical mortality rates as a function of how much the MGP-DRQN policy’s actions differed from the observed physician actions. Minimal mortality is observed for all 3 treatment types at 0, where the physicians and MGP-DRQN agreed.
125
+
126
+ Finally, in Figure 4 we show clinical data from a sample patient case. In the top pane of the figure we show five representative vital signs and lab measurements to illustrate the patient’s clinical status, while the bottom shows both what actions physicians actually took and what actions the model recommended. The patient was admitted to the Emergency Department for altered mental status, and the MGP-DRQN quickly recognizes the need for antibiotics and IV fluids. The patient is admitted to the hospital and around hour 6 the clinical team becomes aware of sepsis. However, antibiotics are not first administered until hour 18, about 16 hours after the model recommended treating with them. After the patient is transferred to the Intensive Care Unit, their white blood cell count continues to rise (a sign of worsening infection) and their blood pressure continues to fall (a sign of worsening shock). By hour 14, the RL model starts and continues to recommend use of vasopressors to attempt to increase blood pressure, but they are not actually administered for about another 16 hours at hour 30. Ultimately, by hour 45 care was withdrawn and the patient passed away at hour 50. Cases such as this one illustrate the potential benefits of using our learned treatment policy in a decision support tool to recommend treatments to providers. If such a tool were used in this situation, it is possible that earlier treatments and more aggressive interventions might have resulted in a different outcome.
127
+
128
+ ![](images/2a99595a10a77663252693bd28c4531b89c26bd8a65175621dfff5e5a5f49322.jpg)
129
+ Figure 4: Top: clinical data from a patient who acquired sepsis, decompensated in the Intensive Care Unit while progressing to septic shock, and ultimately did not survive. Bottom: shaded symbols denote treatments that the learned MGP-DRQN policy would have recommended, while open symbols denote the treatment actions actually taken by physicians caring for this patient.
130
+
131
+ # 5 CONCLUSION
132
+
133
+ In this paper we presented a new framework combining multi-output Gaussian processes and deep reinforcement learning for clinical problems, and found that our approach performed well in estimating optimal treatment strategies for septic patients. The use of recurrent structure in the Q-network architecture yielded higher expected returns than a standard Q-network, accounting for the nonMarkovian nature of real-world medical data. The multi-output Gaussian process also improved performance by offering a more principled method for interpolation and imputation, and use of the full MGP posterior improved upon the results from just using the posterior mean.
134
+
135
+ In the future, we could include treatment recommendations from our learned policies into our dashboard application we have developed for early detection of sepsis. The treatment recommendations might help providers better care for septic patients after sepsis has been properly identified, and start treatments faster. There are many potential avenues for future work. One promising direction is to investigate the use of more complex reward functions, rather than the sparse rewards used in this work. More sophisticated rewards might take into account clinical targets for maintaining hemodynamic stability, and penalize an overzealous model that recommends too many unnecessary actions. Our modeling framework is fairly generalizable, and can easily be applied to other medical applications where there is a need for data-driven decision support tools. In future work we plan to use similar methods to learn optimal treatment strategies for treating patients with cardiogenic shock, and to learn effective insulin dosing regimes for patients on high-dose steroids.
136
+
137
+ REFERENCES
138
+ D. C. Angus, A. E. Barnato, D. Bell, and et al. A systematic review and meta-analysis of early goal-directed therapy for septic shock: the arise, process and promise investigators. Intensive Care Medicine, 41(9): 1549–1560, 2015.
139
+ Investigators ARISE and Anzics Clinical Trials Group. Goal-directed resuscitation for patients with early septic shock. N Engl J Med, 371(16):1496–1506, 2014.
140
+ R. C. Bone, R. A. Balk, and F. B. et al. Cerra. Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis. Chest, 101(6):1644–55, 1992.
141
+ B. Chakraborty and E. E. M. Moodie. Statistical Methods for Dynamic Treatment Regimes: Reinforcement Learning, Causal Inference and Personalized Medicine. Springer, 2013.
142
+ L. Cheng, G. Darnell, C. Chivers, M. E. Draugelis, K. Li, and B. E. Engelhardt. Sparse multi-output Gaussian processes for medical time series prediction. arXiv preprint arXiv:1703.09112, pp. 1–36, March 2017. URL https://arxiv.org/abs/1703.09112.
143
+ I. Cortes-Puch and C. $\mathrm { \Delta } \mathrm { S } _ { \mathrm { \Delta } }$ Hartog. Change is not necessarily progress: Revision of the sepsis definition should be based on new scientific insights. Am J Respir Crit Care Med, 194(1):16–18, 2016.
144
+ R. P. Dellinger, M. M. Levy, Surviving Sepsis Campaign Guidelines Committee, and et al. Surviving sepsis campaign: International guidelines for management of severe sepsis and septic shock. Intensive Care Medicine, 39(2):165–228, 2013.
145
+ R. Durichen, M. A. F. Pimentel, and L. et al. Clifton. Multitask gaussian processes for multivariate physiological time-series analysis. IEEE Transactions on Biomedical Engineering, 61(1), 2015.
146
+ L. Epstein, R. Dantes, S. Magill, and A. Fiore. Varying estimates of sepsis mortality using death certificates and administrative codes united states, 19992014. MMWR Morb Mortal Wkly Rep., 65(13):342–345, 2016.
147
+ A. Esteva, B. Kuprel, and R. A. Novoa. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542:115–118, 2017.
148
+ J. Futoma, S. Hariharan, and K. Heller. Learning to detect sepsis with a multitask gaussian process rnn classifier. ICML, 2017a.
149
+ J. Futoma, S. Hariharan, M. Sendak, and et al. An improved multi-output gaussian process rnn with real-time validation for early sepsis detection. MLHC, 2017b.
150
+ M. Ghassemi, M. A. F. Pimentel, and T. et al. Naumann. A multivariate timeseries modeling approach to severity of illness assessment and forecasting in icu with sparse, heterogeneous clinical data. AAAI, 2015.
151
+ M. Hausknecht and P. Stone. Deep recurrent q-learning for partially observable mdps. AAAI, 2015.
152
+ K. E. Henry, D. N. Hager, P. J. Pronovost, and S. Saria. A targeted real-time early warning score (trewscore) for septic shock. Science Translational Medicine, 7(299), 2015.
153
+ S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735–80, 1997.
154
+ N. Jiang and L. Li. Doubly robust off-policy value evaluation for reinforcement learning. ICML, 2016.
155
+ A. C. Kalil, D. W. Johnson, S. J. Lisco, and J. Sun. Early goal-directed therapy for sepsis: A novel solution for discordant survival outcomes in clinical trials. Critical Care Medicine, 45(4):607–614, 2017.
156
+ D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. ICLR, 2015.
157
+ D. P. Kingma and M. Welling. Auto-encoding variational bayes. ICLR, 2014.
158
+ M. Komorowski, A. Gordon, L. A. Celi, and A. Faisal. A markov decision process to suggest optimal treatment of severe infections in intensive care. NIPS Workshop on Machine Learning for Health, 2016.
159
+ A. Kumar, D. Roberts, K. E. Wood, and et al. Duration of hypotension before initiation of effective antimicrobial therapy is the critical determinant of survival in human septic shock. Crit Care Med., 34(6):1589–96, 2006.
160
+ R. J. Lewis. Disassembling goal-directed therapy for sepsis: a first step. JAMA, 303(8):777–779, 2010.
161
+ Z. C. Lipton, D. C. Kale, C. Elkan, and R. Wetzel. Learning to diagnose with lstm recurrent neural networks. ICLR, 2016.
162
+ V. Mnih, K. Kavukcuoglu, D. Silver, and et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
163
+ S. Nemati, M. M. Ghassemi, and G. D. Clifford. Optimal medication dosing from suboptimal clinical examples: A deep reinforcement learning approach. International Conference of IEEE-EMBC, 2016.
164
+ N. Prasad, L. F. Cheng, C. Chivers, and et al. A reinforcement learning approach to weaning of mechanical ventilation in intensive care units. UAI, 2017.
165
+ Investigators PRISM. Early, goal-directed therapy for septic shock a patient-level meta-analysis. N Engl J Med, 376:2223–2234, 2017.
166
+ Investigators ProCESS, D. M. Yealy, J. A. Kellum, and et al. A randomized trial of protocol-based care for early septic shock. N Engl J Med, 370(18):1683–1693, 2014.
167
+ A. Raghu, M. Komorowski, and L. A. et al. Celi. Continuous state-space models for optimal sepsis treatment - a deep reinforcement learning approach. MLHC, 2017.
168
+ A. Rhodes, L. E. Evans, W. Alhazzani, and et al. Surviving sepsis campaign: International guidelines for management of sepsis and septic shock: 2016. Intensive Care Medicine, 43(3):304–377, 2017.
169
+ E. Rivers, B. Nguyen, S. Havstad, and et al. Early goal-directed therapy in the treatment of severe sepsis and septic shock. N Engl J Med., 345(19):1368–1377, 2001.
170
+ C. W. Seymour, V. X. Liu, T. J. Iwashyna, and et al. Assessment of clinical criteria for sepsis: For the third international consensus definitions for sepsis and septic shock (sepsis-3). JAMA, 315(8):762, 2016.
171
+ C. W. Seymour, F. Gesten, and H. C. et al. Prescott. Time to treatment and mortality during mandated emergency care for sepsis. New England Journal of Medicine, 2017.
172
+ S. M. Shortreed, E. Laber, and D. J. et al. Lizotte. Informing sequential decision-making through reinforcement learning: an empirical study. Machine Learning, 2010.
173
+ H. Soleimani, J. Hensman, and S. Saria. Scalable joint models for reliable uncertainty-aware event prediction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017.
174
+ Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998.
175
+ C. M. Torio and B. J. Moore. National inpatient hospital costs: The most expensive conditions by pay, 2013. Healthcare Cost and Utilization Project (HCUP) Statistical Briefs, 204, 2016.
176
+ H. van Hasselt, A. Guez, and D. Silver. Deep reinforcement learning with double q-learning. AAAI, 2016.
177
+ Z. Wang, T. Schaul, M. Hessel, and et al. Dueling network architectures for deep reinforcement learning. ICML, 2016.
178
+ C. J. C. H. Watkins and P. Dayan. Q-learning. Machine Learning, 8(3-4):279–292, 1992.
parse/train/SyxCqGbRZ/SyxCqGbRZ_content_list.json ADDED
@@ -0,0 +1,832 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING TO TREAT SEPSIS WITH MULTI-OUTPUTGAUSSIAN PROCESS DEEP RECURRENT Q-NETWORKS",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 174,
20
+ 398,
21
+ 202
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 220,
32
+ 544,
33
+ 236
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Sepsis is a life-threatening complication from infection and a leading cause of mortality in hospitals. While early detection of sepsis improves patient outcomes, there is little consensus on exact treatment guidelines, and treating septic patients remains an open problem. In this work we present a new deep reinforcement learning method that we use to learn optimal personalized treatment policies for septic patients. We model patient continuous-valued physiological time series using multi-output Gaussian processes, a probabilistic model that easily handles missing values and irregularly spaced observation times while maintaining estimates of uncertainty. The Gaussian process is directly tied to a deep recurrent Q-network that learns clinically interpretable treatment policies, and both models are learned together end-to-end. We evaluate our approach on a heterogeneous dataset of septic spanning 15 months from our university health system, and find that our learned policy could reduce patient mortality by as much as $8 . 2 \\%$ from an overall baseline mortality rate of $1 3 . 3 \\%$ . Our algorithm could be used to make treatment recommendations to physicians as part of a decision support tool, and the framework readily applies to other reinforcement learning problems that rely on sparsely sampled and frequently missing multivariate time series data. ",
40
+ "bbox": [
41
+ 233,
42
+ 250,
43
+ 764,
44
+ 484
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 496,
55
+ 336,
56
+ 512
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Sepsis is a poorly understood complication arising from infection, and is both a leading cause in patient mortality (Epstein et al. (2016)) and in associated healthcare costs (Torio & Moore (2016)). Early detection is imperative, as earlier treatment is associated with better outcomes (Seymour et al. (2017), Kumar et al. (2006)). However, even among patients with recognized sepsis, there is no standard consensus on the best treatment. There is a pressing need for personalized treatment strategies tailored to the unique physiology of individual patients. Guidelines on sepsis treatment previously centered on early goal directed therapy (EGDT) and more recently have focused on sepsis care bundles, but none of these approaches are individualized. ",
63
+ "bbox": [
64
+ 174,
65
+ 526,
66
+ 825,
67
+ 637
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Before the landmark publication on the use of early goal directed therapy (Rivers et al. (2001)), there was no standard management for severe sepsis and septic shock. EGDT consists of early identification of high-risk patients, appropriate cultures, infection source control, antibiotics administration, and hemodynamic optimization. The study compared a 6-hour protocol of EGDT promoting use of central venous catheterization to guide administration of fluids, vasopressors, inotropes, and packed red-blood cell transfusions, and was found to significantly lower mortality. Following the initial trial, EGDT became the cornerstone of the sepsis resuscitation bundle for the Surviving Sepsis Campaign (SCC) and the Centers for Medicare and Medicaid Services (CMS) (Dellinger et al. (2013)). ",
74
+ "bbox": [
75
+ 174,
76
+ 645,
77
+ 825,
78
+ 756
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Despite the promising results of EGDT, concerns arose. External validity outside the single center study was unclear, it required significant resources for implementation, and the elements needed to achieve pre-specified hemodynamic targets held potential risks. Between 2014–2017, a trio of trials reported an all-time low sepsis mortality, and questioned the continued need for all elements of EGDT for patients with severe and septic shock (ProCESS et al. (2014), ARISE & Group (2014), PRISM (2017)). The trial authors concluded EGDT did not improve patient survival compared to usual care but was associated with increased ICU admissions (Angus et al. (2015)). As a result, they did not recommend it be included in the updated SCC guidelines (Rhodes et al. (2017)). ",
85
+ "bbox": [
86
+ 174,
87
+ 763,
88
+ 825,
89
+ 875
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Although the SSC guidelines provide an overarching framework for sepsis treatment, there is renewed interest in targeting treatment and disassembling the bundle (Lewis (2010)). A recent metaanalysis evaluated 12 randomized trials and 31 observational studies and found that time to first antibiotics explained $9 6 - 9 9 \\%$ of the survival benefit (Kalil et al. (2017)). Likewise, a study of 50,000 patients across the state of New York found mortality benefit for early antibiotic administration, but not intravenous fluids (Seymour et al. (2017)). Beyond narrowing the bundle, there is emerging evidence that a patient’s baseline risk plays an important role in response to treatment, as survival benefit was significantly reduced for patients with more severe disease (Kalil et al. (2017)). ",
96
+ "bbox": [
97
+ 176,
98
+ 882,
99
+ 823,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 823,
111
+ 174
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Taken together, the poor performance of EGDT compared to standard-of-care and improved understanding of individual treatment effects calls for re-envisioning sepsis treatment recommendations. Though general consensus in critical care is that the individual elements of the sepsis bundle are typically useful, it is unclear exactly when each element should be administered and in what quantity. ",
118
+ "bbox": [
119
+ 176,
120
+ 180,
121
+ 823,
122
+ 236
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this paper, we aim to directly address this problem using deep reinforcement learning. We develop a novel framework for applying deep reinforcement learning to clinical data, and use it to learn optimal treatments for sepsis. With the widespread adoption of Electronic Health Records, hospitals are already automatically collecting the relevant data required to learn such models. However, real-world operational healthcare data present many unique challenges and motivate the need for methodologies designed with their structure in mind. In particular, clinical time series are typically irregularly sampled and exhibit large degrees of missing values that are often informatively missing, necessitating careful modeling. The high degree of heterogeneity presents an additional difficulty, as patients with similar symptoms may respond very differently to treatments due to unmeasured sources of variation. Alignment of patient time series can also be a potential issue, as patients admitted to the hospital may have very different unknown clinical states and can develop sepsis at any time throughout their stay (with many already septic upon admission). ",
129
+ "bbox": [
130
+ 174,
131
+ 243,
132
+ 825,
133
+ 410
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Part of the novelty in our approach hinges on the use of a Multi-output Gaussian process (MGP) as a preprocessing step that is jointly learned with the reinforcement learning model. We use an MGP to interpolate and to impute missing physiological time series values used by the downstream reinforcement learning algorithm, while importantly maintaining uncertainty about the clinical state. The MGP hyperparameters are learned end-to-end during training of the reinforcement learning model by optimizing an expectation of the standard Q-learning loss. Additionally, the MGP allows for estimation of uncertainty in the learned Q-values. For the model architecture we use a deep recurrent Q-network, in order to account for the potential for non-Markovian dynamics and allow the model to have memory of past states and actions. In our experiments utilizing EHR data from septic patients spanning 15 months from our university health system, we found that both the use of the MGP and the deep recurrent Q-network offered improved performance over simpler approaches. ",
140
+ "bbox": [
141
+ 174,
142
+ 416,
143
+ 825,
144
+ 570
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 BACKGROUND ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 176,
154
+ 589,
155
+ 326,
156
+ 606
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "In this section we outline important background that motivates our improvements on prior work. ",
163
+ "bbox": [
164
+ 171,
165
+ 621,
166
+ 802,
167
+ 636
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "2.1 DEEP Q-LEARNING ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 176,
177
+ 651,
178
+ 351,
179
+ 666
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "Reinforcement learning (RL) considers learning policies for agents interacting with unknown environments, and are typically formulated as a Markov decision process (MDP) (Sutton $\\&$ Barto (1998)). At each time $t$ , an agent observes the state of the environment, $s _ { t } \\in S$ , takes an action $a _ { t } \\in \\mathcal A$ , and receives a reward $r _ { t } \\in \\mathbb { R }$ , at which time the environment transitions to a new state $s _ { t + 1 }$ . The state space $s$ and action space $\\mathcal { A }$ may be continuous or discrete. The goal of an RL agent is to select actions in order to maximize its return, or expected discounted future reward, defined as $\\begin{array} { r } { R _ { t } = \\sum _ { t ^ { \\prime } = t } ^ { T } \\gamma ^ { t ^ { \\prime } - t } r _ { t ^ { \\prime } } } \\end{array}$ , where $\\gamma$ captures tradeoff between immediate and future rewards. ",
186
+ "bbox": [
187
+ 174,
188
+ 678,
189
+ 825,
190
+ 779
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "Q-Learning (Watkins & Dayan (1992)) is a model-free off-policy algorithm for estimating the expected return from executing an action in a given state. The optimal action value function is the maximum discounted expected reward obtained by executing action $a$ in state $s$ and acting optimally afterwards, defined as $\\begin{array} { r } { Q ^ { * } ( s , a ) = \\operatorname* { m a x } _ { \\pi } \\mathbb { E } [ R _ { t } | s _ { t } = s , a _ { t } = a , \\pi ] } \\end{array}$ , where $\\pi$ is a policy that maps states to actions. Given $Q ^ { * }$ , an optimal policy is to act by selecting argmax ${ } _ { a } Q ^ { * } ( s , a )$ . In Q-learning, the Bellman equation is used to iteratively update the current estimate of the optimal action value function according to $Q ( s , a ) \\doteq Q ( s , a ) + \\alpha \\bar { ( } r + \\gamma \\mathrm { m a x } _ { a } Q ( s ^ { \\prime } , a ^ { \\prime } ) - Q ( s , a ) )$ , adjusting towards the observed reward plus the maximal Q-value at the next state $s ^ { \\prime }$ . In Deep Q-learning a deep neural network is used to approximate $\\mathrm { Q }$ -values (Mnih et al. (2015)), overcoming the issue that there may be infinitely many states if the state space is continuous. Denoting the parameters of the neural network by $\\theta$ , Q-values $Q ( s , a | \\theta )$ are now estimated by performing a forward pass through the network. Updates to the parameters are obtained by minimizing a differentiable loss function, $\\begin{array} { r } { L ( s , a | \\theta _ { i } ) = ( \\dot { r } + \\gamma \\mathrm { m a x } _ { a ^ { \\prime } } \\dot { Q ( s ^ { \\prime } , a ^ { \\prime } | \\theta _ { i } ) } - Q ( s , a | \\theta _ { i } ) ) ^ { 2 } } \\end{array}$ , and training is usually accomplished with stochastic gradient descent. ",
197
+ "bbox": [
198
+ 174,
199
+ 784,
200
+ 825,
201
+ 924
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "",
208
+ "bbox": [
209
+ 174,
210
+ 103,
211
+ 823,
212
+ 159
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "2.2 PARTIAL OBSERVABILITY AND DEEP RECURRENT Q-NETWORKS",
219
+ "text_level": 1,
220
+ "bbox": [
221
+ 176,
222
+ 176,
223
+ 663,
224
+ 191
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "A fundamental limiting assumption of Markov decision processes is the Markov property, which is rarely satisfied in real-world problems. In medical applications such as our problem of learning optimal sepsis treatments, it is unlikely that a patient’s full clinical state will be measured. A Partially Observable Markov Decision Process (POMDP) better captures the dynamics of these types of realworld environments. An extension of an MDP, a POMDP assumes that an agent does not receive the true state of the system, instead receiving only observations $o \\in \\Omega$ generated from the underlying system state according to some unknown observation model $o \\sim \\mathcal { O } ( s )$ . Deep Q-learning has no reliable way to learn the underlying state of the POMDP, as in general $Q ( o , a | \\bar { \\theta } ) \\neq Q ( s , \\bar { a } | \\theta )$ , and will only perform well if the observations well reflect the underlying state. Returning to our medical application, the system state might be the patient’s unknown clinical status or disease severity, and our observations in the form of vitals or laboratory measurements offer some insight into the state. ",
231
+ "bbox": [
232
+ 174,
233
+ 204,
234
+ 825,
235
+ 356
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "The Deep Recurrent Q-Network (DRQN) (Hausknecht & Stone (2015)) extends vanilla Deep Qnetworks (DQN) by using recurrent LSTM layers (Hochreiter & Schmidhuber (1997)), which are well known to capture long-term dependencies. LSTM recurrent neural network (RNN) models have frequently been used in past applications to medical time series, such as Lipton et al. (2016). In our experiments we investigate the effect of replacing fully connected neural network layers with LSTM layers in our Q-network architecture in order to test how realistic the Markov assumption is in our application. ",
242
+ "bbox": [
243
+ 174,
244
+ 363,
245
+ 825,
246
+ 460
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "2.3 MGPS: MULTI-OUTPUT GAUSSIAN PROCESSES ",
253
+ "text_level": 1,
254
+ "bbox": [
255
+ 174,
256
+ 478,
257
+ 545,
258
+ 492
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Multi-output Gaussian processes (MGPs) are commonly used probabilistic models for irregularly sampled multivariate time series, as they seamlessly handle variable spacing, differing numbers of observations per series, and missing values. In addition, they maintain estimates of uncertainty about the state of the series. MGPs have been frequently applied to model patient physiological time series, e.g. Ghassemi et al. (2015), Durichen et al. (2015), Cheng et al. (2017). ",
265
+ "bbox": [
266
+ 174,
267
+ 505,
268
+ 823,
269
+ 574
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "Given $M$ time series (physiological labs/vitals), an MGP is specified by a mean function for each series $\\{ \\mu _ { m } ( t ) \\} _ { m = 1 } ^ { M }$ , commonly assumed to be zero, and a covariance function or kernel $K$ . Letting $f _ { m } ( t )$ denote the latent function for series $m$ at time , then $K ( t , t ^ { \\prime } , m , m ^ { \\prime } ) = \\operatorname { c o v } ( f _ { m } ( t ) , f _ { m ^ { \\prime } } ( t ^ { \\prime } ) ) \\big ]$ . Typicallytion, e.g. $y _ { m } ( t ) \\sim \\mathcal { N } ( f _ { m } ( t ) , \\sigma _ { m } ^ { 2 } )$ re cewith $\\lbrace \\sigma _ { m } ^ { 2 } \\rbrace _ { m = 1 } ^ { M }$ he latent functions according to some distribu-noise parameters. We use the linear model of coregionalization covariance function with an Ornstein-Uhlenbeck base kernels $k ( t , t ^ { \\prime } ) = e ^ { - | t - t ^ { \\prime } | / l }$ to flexibly model temporal correlations in time as well as covariance structure between different physiological variables. For each patient, letting t denote the complete set of measurement times across all observations, the full joint kernel is $\\begin{array} { r } { \\bar { K } ( \\mathbf { t } , \\mathbf { t } ^ { \\prime } ) = \\sum _ { p = 1 } ^ { P } \\mathbf { B } _ { p } \\otimes k _ { p } ( \\mathbf { t } _ { * } , \\mathbf { t } _ { * } ^ { \\prime } ) } \\end{array}$ , where $P$ denotes the number of mixture kernel. $\\mathbf { t } _ { * }$ denotes the time vector for each physiological sign, assumed here to be the same for notational convenience, but in practice the full kernel need only be computed at the observed variables. Each $\\mathbf { B } _ { p } \\in \\mathbb { R } ^ { M \\times M }$ encodes the scale covariance between different time series. We found that $P = 2$ works well in practice and allows learning of correlations on both short and long time scales. Given the MGP kernel hyperparameters shared across all patients, collectively referred to as $\\eta$ , imputation and interpolation at arbitrary times can be computed either using the posterior mean or the full posterior distribution over unknown function values. ",
276
+ "bbox": [
277
+ 174,
278
+ 582,
279
+ 825,
280
+ 809
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "2.4 MGP-RNNS: MULTI-OUTPUT GAUSSIAN PROCESS RECURRENT NEURAL NETWORKS ",
287
+ "text_level": 1,
288
+ "bbox": [
289
+ 174,
290
+ 827,
291
+ 810,
292
+ 842
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "Multi-output Gaussian processes and recurrent neural networks can be combined and trained endto-end (MGP-RNNs), in order to solve supervised learning problems for sequential data (Futoma et al. (2017a), Futoma et al. (2017b)). This methodology was shown to exhibit superior predictive performance at early detection of sepsis from clinical time series data, when compared with vanilla RNNs with last-one-carried-forward imputation. In fitting the two models end-to-end, the MGP hyperparameters are learned discriminatively, in essence learning an imputation and interpolation mechanism tuned for the supervised task at hand. ",
299
+ "bbox": [
300
+ 174,
301
+ 854,
302
+ 823,
303
+ 922
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "",
310
+ "bbox": [
311
+ 173,
312
+ 103,
313
+ 823,
314
+ 132
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "Learning an MGP-RNN consists of minimizing an expectation of some loss function, with respect to the posterior distribution of the MGP. Letting z denote a set of latent time series values distributed according to an MGP posterior, and $g ( \\mathbf { z } )$ denote the prediction(s) made by an RNN from this time series, then the goal is to minimize $\\mathbb { E } _ { \\mathbf { z } \\sim \\mathcal { M G P } } [ l ( \\mathbf { 0 } , g ( \\mathbf { z } ) ) ]$ , where $l$ is some loss function (e.g. crossentropy for a classification task) and o is the true label(s). We can express the MGP distributed latent variable $\\mathbf { z }$ as ${ \\bf z } = \\mu _ { z } + R _ { z } \\boldsymbol { \\xi }$ , where $\\mu _ { z }$ is the posterior mean and $R _ { z } { \\bf \\bar { \\cal R } _ { z } ^ { \\top } } = \\Sigma _ { z }$ with $\\Sigma _ { z }$ the posterior covariance, and $\\xi \\sim ( 0 , I )$ . This allows us to apply the reparameterization trick (Kingma & Welling (2014)) and use Monte Carlo sampling to compute approximate gradients of this expectation with respect to both MGP hyperparameters $\\eta$ and RNN parameters $\\theta$ , so that the loss can be minimized via stochastic gradient descent. The stochasticity in this learning procedure introduced from the Monte Carlo sampling additionally acts as a form of regularization, and helps prevent the RNN from overfitting. In Section 3 we show how this can be applied to a reinforcement learning task. ",
321
+ "bbox": [
322
+ 174,
323
+ 138,
324
+ 825,
325
+ 305
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "2.5 RELATED WORK FROM REINFORCEMENT LEARNING IN HEALTHCARE ",
332
+ "text_level": 1,
333
+ "bbox": [
334
+ 176,
335
+ 330,
336
+ 697,
337
+ 344
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "There has been substantial recent interest in development of machine learning methodologies motivated by healthcare data. However, most prior work in clinical machine learning focuses on supervised tasks, such as diagnosis (Esteva et al. (2017)) or risk stratification (Futoma et al. (2017a)). Many recent papers have developed models for early detection of sepsis, a related problem to our task of learning treatments for sepsis, e.g. Soleimani et al. (2017), Henry et al. (2015), Futoma et al. (2017b). However, as supervised problems rely on ground truth they cannot be applied to treatment recommendation, unless the assumption is made that past training examples of treatments represent optimal behavior. Instead, it is preferable to frame the problem using reinforcement learning in order to learn optimal treatment actions from data collected from potentially suboptimal actions. ",
344
+ "bbox": [
345
+ 174,
346
+ 359,
347
+ 825,
348
+ 486
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "While deep reinforcement learning has seen huge success over the past few years, only very recently have reinforcement learning methods been designed with healthcare applications in mind. Applying reinforcement learning methods to healthcare data is difficult, as it requires careful consideration to set up the problem, especially the rewards. Furthermore, it is typically not possible to collect additional data and so evaluating learned policies on retrospective data presents a challenge. ",
355
+ "bbox": [
356
+ 174,
357
+ 492,
358
+ 823,
359
+ 561
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Most related to this paper are Raghu et al. (2017) and Komorowski et al. (2016), who also look at the problem of learning optimal sepsis treatments. We build off of their work by using a more sophisticated network architecture that takes into account both memory through the use of DRQNs and uncertainty in time series imputation and interpolation using MGPs. Other relevant work includes Prasad et al. (2017), who use a simpler learning algorithms to learn optimal strategies for ventilator weaning, and Nemati et al. (2016), who also use a deep RL approach for modeling ICU heparin dosing as a POMDP with discriminative hidden Markov models and Q-networks. There also exists a rich set of work from the statistics and causal inference literature on learning dynamic treatment regimes, e.g. Chakraborty & Moodie (2013), Shortreed et al. (2010), although the models are typically fairly simple for ease of interpretability. ",
366
+ "bbox": [
367
+ 174,
368
+ 569,
369
+ 825,
370
+ 708
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "3 MGP-DRQN: MULTI-OUTPUT GAUSSIAN PROCESS DEEP RECURRENTQ-NETWORKS",
377
+ "text_level": 1,
378
+ "bbox": [
379
+ 173,
380
+ 736,
381
+ 799,
382
+ 770
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "We now introduce Multi-Output Gaussian Process Deep Recurrent Q-Networks, or MGP-DRQNs, a novel reinforcement learning algorithm for learning optimal treatment policies from noisy, sparsely sampled, and frequently missing clinical time series data. We assume a discrete action space, $a \\in$ $\\mathcal { A } = \\{ 1 , \\ldots , A \\}$ . Let $\\mathbf { X }$ denote $T$ regularly spaced grid times at which we would like to learn optimal treatment decisions. Given a set of clinical physiological time series $\\mathbf { y }$ that we assume to be distributed according to an MGP, we can compute a posterior distribution for $z _ { t } | \\mathbf { y }$ , the latent unobserved time series values at each grid time. ",
389
+ "bbox": [
390
+ 174,
391
+ 790,
392
+ 825,
393
+ 888
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "The loss function we optimize is similar to in normal deep Q-learning, with the addition of the expectation due to the MGP and the fact that we compute the loss over full patient trajectories. In particular, we learn optimal DRQN parameters $\\theta ^ { * }$ and MGP hyperparameters $\\eta ^ { * }$ via: ",
400
+ "bbox": [
401
+ 174,
402
+ 895,
403
+ 821,
404
+ 924
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "",
411
+ "bbox": [
412
+ 173,
413
+ 102,
414
+ 730,
415
+ 118
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "equation",
421
+ "img_path": "images/d01f05d24cac8a62f586644bcd638d99cea57a592a83701298ae8bc439546712.jpg",
422
+ "text": "$$\n\\theta ^ { * } , \\eta ^ { * } = \\operatorname * { a r g m i n } _ { \\theta , \\eta } \\mathbb { E } \\left[ \\mathbb { E } _ { p ( \\mathbf { z } | \\mathbf { y } ; \\eta ) } \\left\\{ \\frac { 1 } { T } \\sum _ { t = 1 } ^ { T } ( Q _ { t a r g e t } ^ { ( t ) } - Q ( [ z _ { t } , s _ { t } ] ^ { \\top } , a ; \\theta ) ) ^ { 2 } \\right\\} \\right] ,\n$$",
423
+ "text_format": "latex",
424
+ "bbox": [
425
+ 251,
426
+ 125,
427
+ 745,
428
+ 169
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "where the $t ^ { \\prime }$ ’th target value is $\\begin{array} { r } { Q _ { t a r g e t } ^ { ( t ) } = r _ { t } + \\gamma \\mathrm { m a x } _ { a ^ { \\prime } } Q ( [ z _ { t + 1 } , s _ { t + 1 } ] , a ^ { \\prime } ) } \\end{array}$ , the outer expectation is concatenate the two separate types of model inputs at time $t$ , with $z _ { t }$ denoting latent variables distributed according to an MGP posterior from other relevant inputs to the model denoted $s _ { t }$ , such as static baseline covariates. In Section 4.1 we go into detail on the particular variables included in $s _ { t }$ . ",
435
+ "bbox": [
436
+ 174,
437
+ 184,
438
+ 825,
439
+ 257
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "We use a Dueling Double-Deep Q-network architecture, similar to Raghu et al. (2017). The Dueling Q-network architecture Wang et al. (2016) has separate value and advantage streams to separate the effect of a patient being in a good underlying state from a good action being taken. The Double-Deep Q-network architecture (van Hasselt et al. (2016)) helps correct overestimation of Q-values by using a second target network to compute the Q-values in the target $\\boldsymbol { Q } _ { t a r g e t }$ . Finally, we use Prioritized Experience Replay in order to speed learning, so that patient encounters with higher training error will be resampled more frequently. We use 2 LSTM layers with 64 hidden units each that feed to a final fully connected layer with 64 hidden units, before splitting into equally sized value and advantage streams that are finally then projected onto the action space to obtain $\\mathrm { Q }$ -value estimates. ",
446
+ "bbox": [
447
+ 174,
448
+ 262,
449
+ 825,
450
+ 388
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "We implemented our methods in Tensorflow using the Adam optimizers (Kingma & Ba (2015)) with minibatches of 50 encounters sampled at a time, a learning rate of 0.001, and $L _ { 2 }$ regularization on weights. We use 25 Monte Carlo samples from the MGP for each sampled encounter in order to approximate the expected loss and compute approximate gradients, and these samples and other inputs are fed in a forward pass through the DRQN to get predictions $Q ( s , a )$ . We will release source code via Github after the review period. ",
457
+ "bbox": [
458
+ 174,
459
+ 395,
460
+ 825,
461
+ 479
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "4 EXPERIMENTS, EVALUATION, AND RESULTS ",
468
+ "text_level": 1,
469
+ "bbox": [
470
+ 174,
471
+ 500,
472
+ 575,
473
+ 516
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "In this section we first describe the details of our dataset of septic patients before highlighting how the experiments were set up and how the algorithms were evaluated. ",
480
+ "bbox": [
481
+ 173,
482
+ 531,
483
+ 821,
484
+ 559
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "4.1 DATASET AND PREPROCESSING ",
491
+ "text_level": 1,
492
+ "bbox": [
493
+ 176,
494
+ 578,
495
+ 431,
496
+ 592
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Our dataset consists of information collected during 9,255 patient encounters resulting in sepsis at our university hospital, spanning a period of 15 months. We define sepsis to be the first time at which a patient simultaneously had persistently abnormal vitals (as measured by a $^ { 2 + }$ SIRS score, Bone et al. (1992)), a suspicion of infection (as measured by an order for a blood culture), and an abnormal laboratory value indicative of organ damage. This differs from the new Sepsis-3 definition (Seymour et al. (2016)), which has since been largely criticized for its detection of sepsis late in the clinical course (Cortes-Puch & Hartog (2016)). We break the full dataset into 7867 training patient encounters and reserve the remaining 1388 for testing. ",
503
+ "bbox": [
504
+ 174,
505
+ 603,
506
+ 825,
507
+ 715
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "We discretize the data to learn actions in 4 hour windows. We emphasize that the raw data itself is not down-sampled; rather, we use the MGP to learn a posterior for the time series values every 4 hours. Actions for the RL setup consist of 3 treatments commonly given to septic patients: antibiotics, vasopressors, and IV fluids. Antibiotics and vasopressors are broken down into 3 categories, based on whether 0, 1, or $^ { 2 + }$ were administered in each 4 hour window. For IV Fluids, we consider 5 discrete categories: either 0, or one of 4 aggregate doses based on empirical quartiles of total fluid volumes. This yields a discrete action space with $3 \\times 3 \\times 5 = 4 5$ distinct actions. ",
514
+ "bbox": [
515
+ 174,
516
+ 722,
517
+ 825,
518
+ 819
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Our data consists of 36 longitudinal physiological variables (e.g. blood pressure, pulse, white blood cell count), 2 longitudinal categorical variables, and 38 variables available at baseline (e.g. age, previous medical conditions). 8 medications tangential to sepsis treatment are included as inputs to MGP-DRQN, as well as an indicator for which of the 45 actions was administered at the last time. Additionally, 36 indicator variables for whether or not each lab/vital was recently sampled allows the model to learn from informative sampling due to non-random missingness. In total, there are 165 input observation variables to each of the Q-network models at each time. ",
525
+ "bbox": [
526
+ 174,
527
+ 825,
528
+ 825,
529
+ 924
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "Our outcome of interest is mortality within 30 days of onset of sepsis. We use a sparse reward function in this initial work, so that the reward at every non-terminal time point is 0, with a reward of $\\pm 1 0$ at the end of a trajectory based on patient survival/death. Although this presents a challenging credit assignment problem, this allows for data to inform what actions should be taken to reduce chance of death without being overly prescriptive. ",
536
+ "bbox": [
537
+ 174,
538
+ 103,
539
+ 825,
540
+ 174
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "4.2 BASELINE METHODS",
547
+ "text_level": 1,
548
+ "bbox": [
549
+ 176,
550
+ 196,
551
+ 361,
552
+ 210
553
+ ],
554
+ "page_idx": 5
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "We use SARSA, an on-policy algorithm, to estimate state-action values for the physician policy. ",
559
+ "bbox": [
560
+ 176,
561
+ 226,
562
+ 800,
563
+ 241
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "We compare a number of different architectures for learning optimal sepsis treatments. In addition to our proposed MGP-DRQN, we compare against MGP-mean-DRQN, a variant where we move the posterior expectation inside the DRQN loss function, meaning we use the posterior mean of the MGP rather than use Monte Carlo samples from the MGP. We also compare against a DRQN with identical architecture, but replace the MGP with last-one-carried-forward imputation to fill in any missing values, and use the mean if there are multiple measurements. We also compare against a vanilla DQN, a MGP-DQN, and a MGP-mean-DQN, with an equivalent number of layers and parameters, to test the effect of the recurrence in the DRQN models. ",
570
+ "bbox": [
571
+ 174,
572
+ 247,
573
+ 825,
574
+ 358
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "4.3 OFF-POLICY VALUE EVALUATION ",
581
+ "text_level": 1,
582
+ "bbox": [
583
+ 176,
584
+ 382,
585
+ 449,
586
+ 397
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "We use Doubly Robust Off-policy Value Evaluation (Jiang & Li (2016)) to compute unbiased estimates of each learned optimal policy using our observed off-policy data. For each patient trajectory in the test set we estimate its value using this method, and the average results. In order to apply this method we train an MGP-RNN to estimate the action probabilities of the physician policy. ",
593
+ "bbox": [
594
+ 176,
595
+ 411,
596
+ 825,
597
+ 467
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "4.4 QUANTITATIVE RESULTS ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 174,
607
+ 491,
608
+ 387,
609
+ 505
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "In Figure 1 we show the results of using SARSA to estimate expected returns for the physician policy on the test data. The Q-values appear to be well calibrated with mortality, as patients who were estimated to have higher expected returns tended to have lower mortality. Due to small sample sizes for very low expected returns, the mortality rate does not always monotonically decrease. ",
616
+ "bbox": [
617
+ 174,
618
+ 520,
619
+ 825,
620
+ 575
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "image",
626
+ "img_path": "images/db3a0f5163cac607345f2838b1203f651d12f015dfb2c92b1abe2cb9e4a5f19d.jpg",
627
+ "image_caption": [
628
+ "Figure 1: For the 1388 patients in the test set we show the expected returns as computed by SARSA, against 30-day mortality among patients with similar Q-values. Our model appears to be well calibrated, as higher returns are associated with lower mortality. "
629
+ ],
630
+ "image_footnote": [],
631
+ "bbox": [
632
+ 343,
633
+ 602,
634
+ 637,
635
+ 717
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "We can estimate the potential reduction in mortality a learned policy might have by computing an unbiased estimate of the policy value, as described in Section 4.3, and then use the results in Figure 1. Table 1 contains the policy value estimates for each algorithm considered, along with estimated mortality rates. The physician policy has an estimated value of 5.52 and corresponding mortality of $1 3 . 3 \\%$ , matching the observed mortality in the test set of $1 3 . 3 \\%$ . Overall the MGPDRQN performs and might reduce mortality by as much as $8 \\%$ . The DRQN architectures tended to yield higher expected returns, probably because they are able to retain some memory of past clinical states and actions taken. The MGP consistently improved results as well, and the additional uncertainty information contained in the full MGP posterior appeared to do better than the policies that only used the posterior mean. ",
642
+ "bbox": [
643
+ 174,
644
+ 785,
645
+ 825,
646
+ 924
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/fe897fbb0395ff40880a9689380fd9a3cc72f16a612ecb72be7e634afaf8a7ea.jpg",
653
+ "table_caption": [],
654
+ "table_footnote": [],
655
+ "table_body": "<table><tr><td rowspan=1 colspan=2>Policy</td><td rowspan=1 colspan=1>Expected Return</td><td rowspan=1 colspan=1>EstimatedMortality</td></tr><tr><td rowspan=7 colspan=2>PhysicianMGP-DRQNMGP-mean-DRQNDRQNMGP-DQNMGP-mean-DQNDQN</td><td rowspan=1 colspan=1>5.52</td><td rowspan=6 colspan=1>13.3 ± 0.7%5.1 ± 0.5%6.6 ± 0.4%8.4 ± 0.4%6.6 ± 0.4%7.5 ± 0.4%</td></tr><tr><td rowspan=1 colspan=1>7.51</td></tr><tr><td rowspan=1 colspan=1>6.97</td></tr><tr><td rowspan=1 colspan=1>6.63</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>7.05</td></tr><tr><td rowspan=1 colspan=1>6.73</td></tr><tr><td rowspan=1 colspan=1>6.09</td><td rowspan=1 colspan=1>10.6 ± 0.5%</td></tr></table>",
656
+ "bbox": [
657
+ 284,
658
+ 99,
659
+ 712,
660
+ 217
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Table 1: Expected returns for the various policies considered. For the 6 reinforcement learning algorithms considered, we estimate their expected returns using an off-policy value evaluation algorithm. Using the results from Figure 1, we estimate the potential expected mortality reduction associated with each policy. ",
667
+ "bbox": [
668
+ 173,
669
+ 227,
670
+ 826,
671
+ 284
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "4.5 QUALITATIVE RESULTS ",
678
+ "text_level": 1,
679
+ "bbox": [
680
+ 176,
681
+ 309,
682
+ 377,
683
+ 324
684
+ ],
685
+ "page_idx": 6
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "We also qualitatively evaluate the results of the policy from our best performing learning algorithm, the MGP-DRQN. In Figure 2 we compare the number of times each type of action was actually taken by physicians, and how many times the learned policy selected that action. The MGP-DRQN policy tended to recommend more use of antibiotics and more vasopressors than were actually used by physician, while strangely recommending somewhat less use of IV fluids. ",
690
+ "bbox": [
691
+ 174,
692
+ 335,
693
+ 825,
694
+ 405
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "image",
700
+ "img_path": "images/3fdc39dc3509052c29a0d73b9f7364d8cbe8516eba0b95136bcd0c49edacea0f.jpg",
701
+ "image_caption": [
702
+ "Figure 2: Comparison of physician actions with the actions that would have been taken by the MGP-DRQN policy, with actions separated according to the 3 types of treatments considered. "
703
+ ],
704
+ "image_footnote": [],
705
+ "bbox": [
706
+ 299,
707
+ 419,
708
+ 684,
709
+ 556
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "In Figure 3, we show how mortality rates differ on the test set as a function of how different the observed physician action was from what the MGP-DRQN would have recommended. For all 3 types of treatments, there appears to be a local minimum at 0 and we observe a $\\mathrm { v }$ shape, indicating that empirically, mortality tended to be lowest when the clinicians took the same actions that the MGP-DRQN would have. Uncertainty tends to be higher due to smaller sample sizes for situations where there is larger disparity. ",
716
+ "bbox": [
717
+ 173,
718
+ 604,
719
+ 825,
720
+ 689
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "image",
726
+ "img_path": "images/91d661b22376fb336538862913236ef6c2aa8babdbd0353457bb34fedec0b587.jpg",
727
+ "image_caption": [
728
+ "Figure 3: Empirical mortality rates as a function of how much the MGP-DRQN policy’s actions differed from the observed physician actions. Minimal mortality is observed for all 3 treatment types at 0, where the physicians and MGP-DRQN agreed. "
729
+ ],
730
+ "image_footnote": [],
731
+ "bbox": [
732
+ 281,
733
+ 708,
734
+ 707,
735
+ 824
736
+ ],
737
+ "page_idx": 6
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "Finally, in Figure 4 we show clinical data from a sample patient case. In the top pane of the figure we show five representative vital signs and lab measurements to illustrate the patient’s clinical status, while the bottom shows both what actions physicians actually took and what actions the model recommended. The patient was admitted to the Emergency Department for altered mental status, and the MGP-DRQN quickly recognizes the need for antibiotics and IV fluids. The patient is admitted to the hospital and around hour 6 the clinical team becomes aware of sepsis. However, antibiotics are not first administered until hour 18, about 16 hours after the model recommended treating with them. After the patient is transferred to the Intensive Care Unit, their white blood cell count continues to rise (a sign of worsening infection) and their blood pressure continues to fall (a sign of worsening shock). By hour 14, the RL model starts and continues to recommend use of vasopressors to attempt to increase blood pressure, but they are not actually administered for about another 16 hours at hour 30. Ultimately, by hour 45 care was withdrawn and the patient passed away at hour 50. Cases such as this one illustrate the potential benefits of using our learned treatment policy in a decision support tool to recommend treatments to providers. If such a tool were used in this situation, it is possible that earlier treatments and more aggressive interventions might have resulted in a different outcome. ",
742
+ "bbox": [
743
+ 174,
744
+ 881,
745
+ 825,
746
+ 924
747
+ ],
748
+ "page_idx": 6
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "",
753
+ "bbox": [
754
+ 174,
755
+ 103,
756
+ 825,
757
+ 270
758
+ ],
759
+ "page_idx": 7
760
+ },
761
+ {
762
+ "type": "image",
763
+ "img_path": "images/2a99595a10a77663252693bd28c4531b89c26bd8a65175621dfff5e5a5f49322.jpg",
764
+ "image_caption": [
765
+ "Figure 4: Top: clinical data from a patient who acquired sepsis, decompensated in the Intensive Care Unit while progressing to septic shock, and ultimately did not survive. Bottom: shaded symbols denote treatments that the learned MGP-DRQN policy would have recommended, while open symbols denote the treatment actions actually taken by physicians caring for this patient. "
766
+ ],
767
+ "image_footnote": [],
768
+ "bbox": [
769
+ 236,
770
+ 284,
771
+ 754,
772
+ 566
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "5 CONCLUSION ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 176,
782
+ 635,
783
+ 318,
784
+ 651
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "In this paper we presented a new framework combining multi-output Gaussian processes and deep reinforcement learning for clinical problems, and found that our approach performed well in estimating optimal treatment strategies for septic patients. The use of recurrent structure in the Q-network architecture yielded higher expected returns than a standard Q-network, accounting for the nonMarkovian nature of real-world medical data. The multi-output Gaussian process also improved performance by offering a more principled method for interpolation and imputation, and use of the full MGP posterior improved upon the results from just using the posterior mean. ",
791
+ "bbox": [
792
+ 174,
793
+ 666,
794
+ 825,
795
+ 765
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "In the future, we could include treatment recommendations from our learned policies into our dashboard application we have developed for early detection of sepsis. The treatment recommendations might help providers better care for septic patients after sepsis has been properly identified, and start treatments faster. There are many potential avenues for future work. One promising direction is to investigate the use of more complex reward functions, rather than the sparse rewards used in this work. More sophisticated rewards might take into account clinical targets for maintaining hemodynamic stability, and penalize an overzealous model that recommends too many unnecessary actions. Our modeling framework is fairly generalizable, and can easily be applied to other medical applications where there is a need for data-driven decision support tools. In future work we plan to use similar methods to learn optimal treatment strategies for treating patients with cardiogenic shock, and to learn effective insulin dosing regimes for patients on high-dose steroids. ",
802
+ "bbox": [
803
+ 174,
804
+ 771,
805
+ 825,
806
+ 924
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "REFERENCES \nD. C. Angus, A. E. Barnato, D. Bell, and et al. A systematic review and meta-analysis of early goal-directed therapy for septic shock: the arise, process and promise investigators. Intensive Care Medicine, 41(9): 1549–1560, 2015. \nInvestigators ARISE and Anzics Clinical Trials Group. Goal-directed resuscitation for patients with early septic shock. N Engl J Med, 371(16):1496–1506, 2014. \nR. C. Bone, R. A. Balk, and F. B. et al. Cerra. Definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis. Chest, 101(6):1644–55, 1992. \nB. Chakraborty and E. E. M. Moodie. Statistical Methods for Dynamic Treatment Regimes: Reinforcement Learning, Causal Inference and Personalized Medicine. Springer, 2013. \nL. Cheng, G. Darnell, C. Chivers, M. E. Draugelis, K. Li, and B. E. Engelhardt. Sparse multi-output Gaussian processes for medical time series prediction. arXiv preprint arXiv:1703.09112, pp. 1–36, March 2017. URL https://arxiv.org/abs/1703.09112. \nI. Cortes-Puch and C. $\\mathrm { \\Delta } \\mathrm { S } _ { \\mathrm { \\Delta } }$ Hartog. Change is not necessarily progress: Revision of the sepsis definition should be based on new scientific insights. Am J Respir Crit Care Med, 194(1):16–18, 2016. \nR. P. Dellinger, M. M. Levy, Surviving Sepsis Campaign Guidelines Committee, and et al. Surviving sepsis campaign: International guidelines for management of severe sepsis and septic shock. Intensive Care Medicine, 39(2):165–228, 2013. \nR. Durichen, M. A. F. Pimentel, and L. et al. Clifton. Multitask gaussian processes for multivariate physiological time-series analysis. IEEE Transactions on Biomedical Engineering, 61(1), 2015. \nL. Epstein, R. Dantes, S. Magill, and A. Fiore. Varying estimates of sepsis mortality using death certificates and administrative codes united states, 19992014. MMWR Morb Mortal Wkly Rep., 65(13):342–345, 2016. \nA. Esteva, B. Kuprel, and R. A. Novoa. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542:115–118, 2017. \nJ. Futoma, S. Hariharan, and K. Heller. Learning to detect sepsis with a multitask gaussian process rnn classifier. ICML, 2017a. \nJ. Futoma, S. Hariharan, M. Sendak, and et al. An improved multi-output gaussian process rnn with real-time validation for early sepsis detection. MLHC, 2017b. \nM. Ghassemi, M. A. F. Pimentel, and T. et al. Naumann. A multivariate timeseries modeling approach to severity of illness assessment and forecasting in icu with sparse, heterogeneous clinical data. AAAI, 2015. \nM. Hausknecht and P. Stone. Deep recurrent q-learning for partially observable mdps. AAAI, 2015. \nK. E. Henry, D. N. Hager, P. J. Pronovost, and S. Saria. A targeted real-time early warning score (trewscore) for septic shock. Science Translational Medicine, 7(299), 2015. \nS. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735–80, 1997. \nN. Jiang and L. Li. Doubly robust off-policy value evaluation for reinforcement learning. ICML, 2016. \nA. C. Kalil, D. W. Johnson, S. J. Lisco, and J. Sun. Early goal-directed therapy for sepsis: A novel solution for discordant survival outcomes in clinical trials. Critical Care Medicine, 45(4):607–614, 2017. \nD. P. Kingma and J. Ba. Adam: A method for stochastic optimization. ICLR, 2015. \nD. P. Kingma and M. Welling. Auto-encoding variational bayes. ICLR, 2014. \nM. Komorowski, A. Gordon, L. A. Celi, and A. Faisal. A markov decision process to suggest optimal treatment of severe infections in intensive care. NIPS Workshop on Machine Learning for Health, 2016. \nA. Kumar, D. Roberts, K. E. Wood, and et al. Duration of hypotension before initiation of effective antimicrobial therapy is the critical determinant of survival in human septic shock. Crit Care Med., 34(6):1589–96, 2006. \nR. J. Lewis. Disassembling goal-directed therapy for sepsis: a first step. JAMA, 303(8):777–779, 2010. \nZ. C. Lipton, D. C. Kale, C. Elkan, and R. Wetzel. Learning to diagnose with lstm recurrent neural networks. ICLR, 2016. \nV. Mnih, K. Kavukcuoglu, D. Silver, and et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. \nS. Nemati, M. M. Ghassemi, and G. D. Clifford. Optimal medication dosing from suboptimal clinical examples: A deep reinforcement learning approach. International Conference of IEEE-EMBC, 2016. \nN. Prasad, L. F. Cheng, C. Chivers, and et al. A reinforcement learning approach to weaning of mechanical ventilation in intensive care units. UAI, 2017. \nInvestigators PRISM. Early, goal-directed therapy for septic shock a patient-level meta-analysis. N Engl J Med, 376:2223–2234, 2017. \nInvestigators ProCESS, D. M. Yealy, J. A. Kellum, and et al. A randomized trial of protocol-based care for early septic shock. N Engl J Med, 370(18):1683–1693, 2014. \nA. Raghu, M. Komorowski, and L. A. et al. Celi. Continuous state-space models for optimal sepsis treatment - a deep reinforcement learning approach. MLHC, 2017. \nA. Rhodes, L. E. Evans, W. Alhazzani, and et al. Surviving sepsis campaign: International guidelines for management of sepsis and septic shock: 2016. Intensive Care Medicine, 43(3):304–377, 2017. \nE. Rivers, B. Nguyen, S. Havstad, and et al. Early goal-directed therapy in the treatment of severe sepsis and septic shock. N Engl J Med., 345(19):1368–1377, 2001. \nC. W. Seymour, V. X. Liu, T. J. Iwashyna, and et al. Assessment of clinical criteria for sepsis: For the third international consensus definitions for sepsis and septic shock (sepsis-3). JAMA, 315(8):762, 2016. \nC. W. Seymour, F. Gesten, and H. C. et al. Prescott. Time to treatment and mortality during mandated emergency care for sepsis. New England Journal of Medicine, 2017. \nS. M. Shortreed, E. Laber, and D. J. et al. Lizotte. Informing sequential decision-making through reinforcement learning: an empirical study. Machine Learning, 2010. \nH. Soleimani, J. Hensman, and S. Saria. Scalable joint models for reliable uncertainty-aware event prediction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. \nRichard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. \nC. M. Torio and B. J. Moore. National inpatient hospital costs: The most expensive conditions by pay, 2013. Healthcare Cost and Utilization Project (HCUP) Statistical Briefs, 204, 2016. \nH. van Hasselt, A. Guez, and D. Silver. Deep reinforcement learning with double q-learning. AAAI, 2016. \nZ. Wang, T. Schaul, M. Hessel, and et al. Dueling network architectures for deep reinforcement learning. ICML, 2016. \nC. J. C. H. Watkins and P. Dayan. Q-learning. Machine Learning, 8(3-4):279–292, 1992. ",
813
+ "bbox": [
814
+ 168,
815
+ 103,
816
+ 826,
817
+ 928
818
+ ],
819
+ "page_idx": 8
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "",
824
+ "bbox": [
825
+ 169,
826
+ 98,
827
+ 826,
828
+ 676
829
+ ],
830
+ "page_idx": 9
831
+ }
832
+ ]
parse/train/SyxCqGbRZ/SyxCqGbRZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyxCqGbRZ/SyxCqGbRZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ak06J5jNR4/ak06J5jNR4.md ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Revisiting Model Stitching to Compare Neural Representations
2
+
3
+ Yamini Bansal Harvard University ybansal@g.harvard.edu
4
+
5
+ Preetum Nakkiran Harvard University preetum@cs.harvard.edu
6
+
7
+ Boaz Barak Harvard University b@boazbarak.org
8
+
9
+ # Abstract
10
+
11
+ We revisit and extend model stitching (Lenc & Vedaldi 2015) as a methodology to study the internal representations of neural networks. Given two trained and frozen models $A$ and $B$ , we consider a “stitched model” formed by connecting the bottom-layers of $A$ to the top-layers of $B$ , with a simple trainable layer between them. We argue that model stitching is a powerful and perhaps under-appreciated tool, which reveals aspects of representations that measures such as centered kernel alignment (CKA) cannot. Through extensive experiments, we use model stitching to obtain quantitative verifications for intuitive statements such as “good networks learn similar representations”, by demonstrating that good networks of the same architecture, but trained in very different ways (e.g.: supervised vs. self-supervised learning), can be stitched to each other without drop in performance. We also give evidence for the intuition that “more is better” by showing that representations learnt with (1) more data, (2) bigger width, or (3) more training time can be “plugged in” to weaker models to improve performance. Finally, our experiments reveal a new structural property of SGD which we call “stitching connectivity”, akin to mode-connectivity: typical minima reached by SGD can all be stitched to each other with minimal change in accuracy.
12
+
13
+ # 1 Introduction
14
+
15
+ The success of deep neural networks can, arguably, be attributed to the intermediate features or representations learnt by them [Rumelhart et al., 1985]. While neural networks are trained in an end-to-end fashion with no explicit constraints on their intermediate representations, there is a body of evidence that suggests that they learn rich a representation of the data along the way [Goh et al., 2021, Olah et al., 2017]. However, theoretically we understand very little about how to formally characterize these representations, let alone why representation learning occurs. For instance, there are various ad-hoc pretraining methods [Chen et al., 2020a,b], that are purported to perform well by learning good representations, but it is unclear which aspects of these methods (objective, training algorithm, architecture) are crucial for representation learning and if these methods learn qualitatively different representations at all.
16
+
17
+ Moreover, we have an incomplete understanding of the relations between different representations. Are all “good representations” essentially the same, or is each representation “good” in its own unique way? That is, even when we train good end-to-end models (i.e., small test loss), the internals of these models could potentially be very different from one another. A priori, the training process could evolve in either one of the following extreme scenarios (see Figure 1):
18
+
19
+ (1) In the “snowflakes” scenario, training with different initialization, architectures, and objectives (e.g., supervised vs self-supervised) will result in networks with very different internals, which are completely incompatible with one another. For example, even if we train two models with identical data, architecture, and task, but starting from two different initializations, we may end up at local minima with very different properties (e.g., Liu et al. [2020]). If models are trained with different data (e.g., different samples), different architecture (e.g., different width), or different task (e.g., self-supervised vs supervised) then they could end up being even more different from one another.
20
+
21
+ (2) In the “Anna Karenina” scenario1, all successful models end up learning roughly the same internal representations. For example, all models for vision tasks will have internal representation corresponding to curve detectors, and models that are better (for example, trained on more data, are bigger, or trained for more time) will have better curve detectors.
22
+
23
+ ![](images/aa8480a5baabe7d33703c381c6c758cd48d3364589842a1511fd6fa6dc46fa27.jpg)
24
+ Figure 1: Two extreme “cartoons” for training dynamics of neural networks. In the “snowflakes” scenario, there are exponentially many well-performing neural networks with highly diverging internals. In the “Anna Karenina” scenario all well-performing networks end up learning similar representations, even if their initialization, architecture, data, and objectives differ. Image credits: Li et al. [2018], Olah et al. [2017, 2020], Komarechka [2021].
25
+
26
+ The “Anna Karenina” scenario implies the following predictions:
27
+
28
+ “All roads lead to Rome:” Successful models learned with different initializations, architectures, and tasks, should learn similar internal representations, and so if $A$ and $B$ are two such models, it should be possible to “plug in” the internals from $A$ into $B$ without a significant loss in performance. See Figure 2A-B.
29
+
30
+ “More is better:” Better models trained using more data, bigger size, or more compute, should learn better versions of the same internal representations. Hence if $A$ is a more successful model than $B$ , it should be possible to “plug in” $A$ ’s internals to $B$ and obtain improved performance. See Figure 2C.
31
+
32
+ In this work, we revisit the empirical methodology of “model stitching” to test the above predictions. Initially proposed by Lenc and Vedaldi [2015], model stitching is natural way of “plugging in” the bottom layers of one network into the top layers of another network, thus forming a stitched network (however care must be taken in the way it is performed, see Section 2). We show that model stitching has some unique advantages that make it more suitable for studying representations than representational similarity measures such as CKA [Kornblith et al., 2019] and SVCCA [Raghu et al., 2017]. Our work provides quantitative evidence for the intuition, shared by many practitioners, that the internals of neural networks often end up being very similar in a certain sense, even when they are trained under different settings.
33
+
34
+ # 1.1 Summary of Results
35
+
36
+ Model stitching as an experimental tool. We establish model stitching as a way of studying the representations of neural networks. A version of model stitching was proposed in Lenc and Vedaldi [2015] to study the equivalence between representations. In this work, we argue that the idea behind model stitching is more powerful than has been appreciated: we analyze the benefits of modelstitching over other methods to study representations, and we then use model-stitching to establish an number of intuitive properties, including new results on the properties of SGD.
37
+
38
+ ![](images/6eda4b77ee50a5fd6733742618f6b6447635351e8858d8cc8c6f329fd8a8717f.jpg)
39
+ Figure 2: Summary of main results (A) Various models trained on CIFAR-10 identically except with different random initializations are “stitching connected”: can be stitched at all layers with minimal performance drop (see Section 4). Stitching with a random bottom network shown for reference. (B) Models of the same architecture and similar test error, but trained on ImageNet with end-to-end supervised learning versus self-supervised learning can be stitched with good performance (see Section 5). (C) Better representation obtained by training the network with more samples can be "plugged-in" with stitching to improve performance (see Section 6). In all figures, stitching penalty is the difference in error between the stitched model and the base top model.
40
+
41
+ In this paper, we use model stitching in the following way. Suppose we have a neural network $A$ (which we’ll think of as the “top model”) for some task with loss function $\mathcal { L }$ (e.g. the CIFAR-10 or ImageNet test error). Let $r : \mathcal { X } \overset { } { \to } \mathbb { R } ^ { d }$ be a candidate “representation” function, which can come from the first (bottom-most) layers of some “bottom model” $B$ . Our intuition is that $r$ has better quality than the first \` layers of network $A$ if “swapping out” these layers with $r$ will improve performance.
42
+
43
+ “Swapping out” is performed by introducing an additional trainable stitching layer to $r$ with $A$ (defined more formally in Section 2). The stitching layers have very low capacity, and are only meant to “align” representations, rather than improving the model.
44
+
45
+ Comparison to Representational Similarity Metrics. Much of the current work studying representations focuses on similarity metrics such as CKA. However, we argue that model stitching can be a better suited tool to study representations in various scenarios, and can give qualitatively different conclusions about the behavior of neural representations compared to these metrics. We analyze the differences between model stitching and prior similarity metrics in Section 3.
46
+
47
+ Quantitative evidence for intuitions. Using model stitching, we are able to provide formal and quantitative evidence to the intuitions mentioned above. In particular we give evidence for the “all roads lead to rome” intuition by showing compatibility of networks with representation that are trained using (1) different initializations, (2) different subsets of the dataset, (3) different tasks (e.g., self-supervised or coarse labels). See Figure 2A-B for results. We also show that network with different random initialization enjoy a property which we call stitching connectivity, wherein almost all minima reachable via SGD can be “stitched” to each other with minimal loss of accuracy. We also give evidence for the “more is better” intuition by showing that we can improve the performance of a network $A$ by plugging in a representation $r$ that was trained with (1) more data, (2) larger width, or (3) more training epochs. See example with more samples in Figure 2C.
48
+
49
+ The results above are not surprising, in the sense that they confirm intuitions that practitioners might already have. However model stitching allows us to obtain quantitative and formal measures of these in a way that is not achievable by prior representation measures.
50
+
51
+ Organization. We first define model stitching formally in Section 2. We compare it with prior work on representational similarity measures in Section 3. Then, we formally define stitching connectivity and provide experimental evidence for it in Section 4. Finally, in Section 5 and 6, we provide quantitative evidence for the "all roads lead to Rome" and "more is better" intuitions respectively.
52
+
53
+ Related works. As mentioned above, stitching was introduced by Lenc and Vedaldi [2015] who studied equivalence of representations. They showed that certain early layers in a network trained on the Places dataset [Zhou et al., 2014] are compatible with AlexNet (see Table 4 in Lenc and Vedaldi [2015]). After completing this work, we were made aware of concurrent work Csiszárik et al. [2021] that also proposes model stitching to compare neural representations. The results from this work complement ours by studying the effect of changing the stitching layer in various ways (for instance, imposing a sparsity penalty on the stitching layer), and further clarifying the relationship of stitching with other representational similarity measures. In contrast, our work demonstrates stitching compatibility under different scenarios, like the comparison between supervised and self-supervised methods and experiments that show "more is better".
54
+
55
+ Our work on stitching connectivity is related to the work on mode connectivity [Garipov et al., 2018, Freeman and Bruna, 2017, Draxler et al., 2018]. These works show that the local minima found by SGD are often connected through low-loss paths. These paths are generally non-linear, though it was shown that there are linear paths between these minima if they are identically initialized but then use different SGD noise (order of samples) after a certain point in training [Frankle et al., 2020]. Stitching connectivity is complementary to mode connectivity. Stitching connectivity corresponds to a discrete path (with as many steps as layers) but one where the intermediate steps are interpretable. We also show stitching connectivity of networks that are trained on different tasks. Finally, most of the prior work on concrete metrics for relating representations was in the context of representation similarity measures. We describe this work and compare it to ours in Section 3.
56
+
57
+ # 2 Model Stitching
58
+
59
+ Let $A$ be a neural network of some architecture $\mathcal { A }$ , and let $r : \mathcal { X } \to \mathbb { R } ^ { d }$ be a candidate “representation” function. We consider a family $s$ of stitching layers which are simple (e.g. linear $1 \times 1$ convolutional layers for a convolutional network $A$ ) functions mapping $\mathbb { R } ^ { d }$ to $\mathbb { R } ^ { \hat { d } _ { \ell } }$ where $d _ { \ell }$ is the width of $A$ ’s $\ell$ -th layer. Given some loss function $\mathcal { L }$ (e.g., CIFAR-10 or ImageNet test accuracy) we define
60
+
61
+ $$
62
+ \mathcal { L } _ { \ell } ( r ; A ) = \operatorname* { i n f } _ { s \in \mathcal { S } } \mathcal { L } ( A _ { > \ell } \circ s \circ r )
63
+ $$
64
+
65
+ where $A _ { > \ell }$ denotes the function mapping the activations of $A$ ’s \`th layer to the final output, and $\circ$ denotes function composition. That is, $\mathcal { L } _ { \ell } ( r ; A )$ is the smallest loss obtained by stitching $r$ into all but the first $\ell$ layers of $A$ using a stitching layer from $s$ . We define the stitching penalty of the representation $r$ with respect to $A$ (as well as $\ell$ and the loss $\mathcal { L }$ ) as $\mathcal { L } _ { \ell } ( r ; A ) - \mathcal { L } ( A )$ . If the penalty is non-negative, then we say that the representation $r$ is at least as good as the first $\ell$ layers of $A$ .
66
+
67
+ Consider the simple case of a fully-connected network and a stitching family of linear functions. In this case, model stitching tells us if there is a way to linearly transform the representation $r$ into that of the first $\ell$ layers of $A$ , but only in the subspace that is relevant to the achieving low loss. In practice, we approximate the infimum in Equation 1 by using gradient methods— concretely, by optimizing the stitching-layer using the train set of the task $\mathcal { L }$ . The stitching penality itself is then estimated on the test set.
68
+
69
+ Choosing the stitching family $s$ : The stitching family can be chosen flexibly depending on the desired invariances between representations, as long as it is simple (see below). For instance, if we choose $S$ to be all permutations or orthogonal matrices, the stitching penalty will be invariant up to permutations or orthogonal transformations respectively. In this work, we mainly consider cases where $r = B _ { \leq l }$ for $B$ with architecture similar to $\mathcal { A }$ . We restrict the stitching family per architecture $\mathcal { A }$ such that the composed model $A _ { > \ell } \circ s \circ r$ lies in $\mathcal { A }$ . This way the stitched model consists of layers identical to the layers of either $A$ or $B$ , with the exception of just one layer. For example, for convolutional networks we consider a $1 \times 1$ convolution and for transformers we consider a token-wise linear function between transformer blocks. We perform an ablation with kernels of different sizes in Appendix B.1.
70
+
71
+ Stitching is not learning: One concern that may arise is that if the stitching family $s$ is sufficiently powerful, it can learn to transform any representation into any other representation. This would defeat the aim of faithfully studying the original representations. To avoid this, the family of stitchers should be chosen to be simple (e.g., linear). Nevertheless, to verify that our experiments are not in such a regime, we stitch an untrained, randomly initialized network with a fully trained network. Figure 2A-B shows that the penalty of such a stitched network is high, specially for high $l$ . CKA has the same trend for the same networks (See Appendix B.2)
72
+
73
+ Model stitching as a “happy middle”. Model stitching can be considered as a compromise between the following extremes: (1) Direct plugging in: the most naive interpretation of “plugging in” $r$ into $A$ would be to use no stitching at all. However, even in cases where networks are identical up to a permutation of neurons, plugging in $r$ into $A$ would not work. (2) Full fine tuning: the other extreme interpretation is to perform full fine tuning. That is, start with the initialized network $A { \mathord { > } } \ell \circ r$ and optimize over all choices of $A$ . The problem with this approach is that there are so many degrees of freedom in the choices for $A _ { > \ell }$ that the resulting network could achieve strong performance regardless of the quality of $r$ . For example, in B.3 we show that fine tuning can fail to distinguish between a trained network and a random network. (3) Linear probe: a popular way to define quality of representations is to use linear probes [Alain and Bengio, 2016]. However, linear probes are not as well suited for studying the representation of early layers, which have low linear separability. In particular, the linear probe accuracy of an early layer of network $A$ would generally always be much worse than a later layer of network $B$ , even if $A$ was of “higher quality” (e.g., trained with more data). Linear probes also don’t have the operational interpretation of compatibility.
74
+
75
+ By choosing a trainable but low-capacity layer, model stitching “threads the needle” between simply plugging in, and full fine tuning, and unlike linear probes, enables the study of early layers using powerful nonlinear decoders.
76
+
77
+ Experimental setup. Unless specified otherwise, the CIFAR-10 experiments are conducted on the ResNet-18 architecture (with first layer width 64) and the ImageNet experiments are conducted on the ResNet-50 architecture [He et al., 2015]. The ResNets are trained with the standard hyperparameters (See Appendix A.1 for training parameters of all base models). The stitching layer in the the convolutional networks consist of a $1 \times 1$ convolutional layer with input features equal to the number of channels in $r$ , and output features equal to the output channels of $A _ { \leq l } ( x )$ . We add a BatchNorm (BN) layer before and after this convolutional layer. Note that the BN layer does not change the representation capacity of the stitching layer and only aides with optimization. We perform stitching only between ResNet blocks (and not inside a block), but note that it is possible to stitch within the block as well. We use the Adam optimizer with the cosine learning rate decay and an initial learning rate of 0.001. Full experimental details for each experiment are described in Appendix A.
78
+
79
+ # 3 Stitching vs. representational similarity
80
+
81
+ Much prior work studying representations focused on representation similarity measures. These have been studied in both the neuroscience and machine learning communities [Kriegeskorte et al., 2008, Kornblith et al., 2019]. Examples of such measures include canonical correlation analysis $( C C A )$ [Hardoon et al., 2004] and its singular-vector and projection-weighted variants such as SVCCA and PWCCA [Raghu et al., 2017, Morcos et al., 2018]. Recently Kornblith, Norouzi, Lee, and Hinton [2019] proposed centered kernel alignment $( C K A )$ that addressed several issues with CCA. CKA was further explored by Nguyen et al. [2021].
82
+
83
+ For two representations functions $\phi : \mathcal { X } \mathbb { R } ^ { d _ { 1 } }$ and $\sigma : \mathcal { X } \mathbb { R } ^ { d _ { 2 } }$ , the linear CKA is defined $\begin{array} { r } { \mathbf { C K A } ( \phi , \sigma ) : = \frac { | | \mathbf { C o v } ( \phi ( x ) , \sigma ( x ) ) | | _ { F } ^ { 2 } } { | | \mathbf { C o v } ( \phi ( x ) ) | | _ { F } \cdot | | \mathbf { C o v } ( \sigma ( x ) ) | | _ { F } } } \end{array}$ where all covariances are with respect to the test distribution on inputs $x \sim \mathcal { D }$ [Kornblith et al., 2019].
84
+
85
+ Table 1: Qualitative results of our experiments, comparing CKA to stitching. $\mathbf { C K A } \approx 1$ means representations are close according to CKA. Error $\approx 0 \%$ means representations are close according to stitching. “Varies” means no consistent conclusion across different architectures and tasks.
86
+
87
+ <table><tr><td>Method</td><td>Stitching Connectivity Different Initialization</td><td>“All roads” Self-Supervision</td><td>“More is better” More Data /Time /Width</td></tr><tr><td>CKA Stitching</td><td>Varies (can be O) Close (up to 3% error)</td><td>Varies (0.35- 0.9) Close (up to 5% error)</td><td>Far (can be O for data, O.7 for width) Better</td></tr></table>
88
+
89
+ Table 1 contains a qualitative summary of our results, comparing stitching with CKA. While in some cases the results of stitching and CKA agree, in several cases, stitching obtains results that align more closely with the intuitions that well-performing networks learn similar representations, and that more resources results in better versions of the same representations. In particular, in experiments where stitching indicates that a certain representation is better than another, CKA by its design can only indicate that the two representations are far from each other. Moreover, in some experiments CKA indicates that representations are far where we intuitively believe that they should be close, e.g. when networks only differ by two random initializations, or when one is trained with a supervised and another with a self-supervised task.2 In contrast, in these settings, model-stitching reveals that the two models have nearly equivalent representations, in the sense that they can be stitched to each other with low penalty. The precise experimental results appear in Sections 4-6 and Appendix B.2.
90
+
91
+ Compared to representation-similarity measures, model stitching has several advantages:
92
+
93
+ Ignoring spurious features: Measures such as CCA and CKA ultimately boil down to distances between the feature vectors, but they do not distinguish between features that are learned and relevant for downstream tasks, and spurious features, that may be completely useless or even random. For example, suppose we augment a representation $\phi : \dot { \mathcal { X } } \dot { \mathbb { R } ^ { d } }$ by concatenating 1000 “useless” coordinates, with random gaussian features, to form a new representation $\phi ^ { \prime } : \mathcal { X } \overset { \mathbf { \bar { \Delta } } } { \to } \mathbb { R } ^ { d + 1 0 0 0 }$ . This would reduce the CKA, but representation $\phi ^ { \prime }$ is not different from $\phi$ in a meaningful way. Modelstitching resolves this, since we can stitch $\phi ^ { \prime }$ in place of $\phi$ by simply throwing away the useless coordinates. In general, model-stitching focuses only on aspects of the representation which are relevant for the downstream task, as opposed to aspects which are spurious or irrelevant. The price we pay for this is that, unlike measures such as CKA, model stitching depends on the downstream task. However, our results indicate that neural networks tend to learn similar representations for a variety of natural tasks.
94
+
95
+ Asymmetry: Our intuition is that some representations are better than others. For example, we believe that with more data, neural networks learn better representations. However, by design, such comparisons cannot be demonstrated by representation similarity measures that only measure the distance between two representations. In contrast, we are able to demonstrate that “more is better” using stitching-based measures. Concretely, CKA and other similarity measures are symmetric, while stitching is not: it may be the case that a representation $\phi$ can be stitched in place of a representation $\sigma$ , but not vice-versa. Also, stitching a representation $\phi$ can (and sometimes does) improve performance.
96
+
97
+ Interpretable units: Measures such as CCA/CKA give a number between 0 and 1 for the distance between representations, but it is hard to interpret what is the difference, for example, between a CKA value of 0.9 and value of 0.8. In contrast, if the loss function $\mathcal { L }$ has meaningful units, then the stitching penalty inherits those, and (for example) a representation $r$ having a penalty of $3 \%$ in CIFAR-10 accuracy has an operational meaning: if you replace the first layers of the network with $r$ the decrease in accuracy is at most $3 \%$ .
98
+
99
+ Invariance: A representation similarity measure should be invariant to operations that do not modify the “quality” of the representation, but it is not always clear what these operations are. For example, CCA and CKA are invariant under orthogonal linear transformations, and some variants of CCA are also invariant under general invertible linear transformations (see Table 1 in Kornblith et al. [2019]). However, it is unclear if these are the natural families. For example, randomly permuting the order of pixels (either at the input or in the latents) is an orthogonal transform, and thus does not affect the CKA. However, this completely destroys the spatial structure of the input, and intuitively should affect the “representation quality.” On the other hand, certain non-orthogonal transforms may still preserve representation quality– for example, the non-invertible transformation of projecting out spurious coordinates. Thus, orthogonal transforms may not be the right invariance class to consider representations. Using stitching we can explicitly ensure invariance under any given family of transformations by adding it to the stitching layer. Concretely, our choice of using a $1 \times 1$ convolutional stitcher yields much weaker invariance than general orthogonal transforms– and thus, model stitching can predict that shuffling pixels leads to a “worse” representation.
100
+
101
+ # 4 Stitching Connectivity
102
+
103
+ We first focus on a special case of model-stitching, wherein we stitch two identically distributed networks to each other. That is, we train two networks of same architecture, on the same data distribution, but with independent random seeds and independent train samples. This question has been studied before with varied conclusions [Li et al., 2016, Wang et al., 2018]. We find that empirically, two such networks can be stitched to each other at all layers, with close to 0 penalty. This is a new empirical property of SGD trained networks, which we term “stitching connectivity.”
104
+
105
+ Formally, let $A , B$ be two trained networks of identical architectures with $L$ layers, for a task with objective function $\mathcal { L }$ . For all $i \in \{ 0 , 1 , . . . , L \}$ , define $S _ { i }$ to be the stitched model where we replace the first $i$ layers of $A$ with those same layers in $B$ (and optimize the stitching layer as usual). That is, $\begin{array} { r } { S _ { i } : = \arg \operatorname* { m i n } _ { S = A _ { > i } \circ s \circ B _ { \leq i } } { \mathcal { L } } ( S ) } \end{array}$ . Observe that $S _ { 0 } = A$ and $S _ { L } = B$ , so the sequence of models $\{ S _ { 0 } , S _ { 1 } , \ldots , S _ { L } \}$ gives a kind of “path” between models $A$ and $B$ . Further, due to our family of stitching layer and network architecture $1 \times 1$ conv stitchers and conv-nets), the stitching layer $s$ can be folded into the adjacent model. Thus, all models $S _ { i }$ have identical architecture as $A$ and $B$ . We say $A$ and $B$ are “stitching-connected” if all the intermediate models $S _ { i }$ have low test loss.
106
+
107
+ Definition 1 (Stitching Connectivity). Let $A , B$ be two networks of identical architectures. We say $A$ and $B$ are stitching-connected if they can be stitched to each other at all layers, with low penalty. That is, if all stitched models $S _ { i }$ , defined as above, have test loss comparable to $A$ .
108
+
109
+ Stitching connectivity is not a trivial property: two networks with identical architectures, but very different internal representations, would fail to be stitching connected. Our main claim is that for a fixed data distribution, almost all minima reached by SGD are stitching-connected to each other.
110
+
111
+ Conjecture 2 (Stitching Connectivity of SGD, informal). Let $A _ { 1 } , A _ { 2 }$ be two independent and identically-trained networks. That is, networks of the same architecture, trained by SGD with independent random seeds and independent train sets from the same distribution. Then, for natural architectures and data-distributions, the trained models $A _ { 1 }$ and $A _ { 2 }$ are stitching-connected.
112
+
113
+ This conjecture states a structural property of models that are likely to be output by SGD. If we run the identical training procedure twice, we will almost certainly not produce models with identical parameters. However, these two different parameter settings yield essentially equivalent internal representations– this is what it means to be stitching-connected.
114
+
115
+ Discussion. Stitching connectivity is similar in spirit to mode connectivity [Garipov et al., 2018, Freeman and Bruna, 2017, Draxler et al., 2018], in that they are both structural properties of the set of typical SGD minimas. Mode connectivity states that typical minima are connected by a low-test-loss path in parameter space. Stitching connectivity does not technically define a path in parameter space– rather, it defines a sequence $S _ { 0 } , S _ { 1 } , \ldots , S _ { L }$ of low-loss models connecting two endpoint models. For each model in this sequence, all but one layer is identical to one of the endpoint models. Thus, we can informally think of the stitching sequence as a different way of “interpolating” between two models.
116
+
117
+ The stitching connectivity of SGD is especially interesting for overparameterized models, since it sheds light on the implicit bias of SGD. In this case, there are exponentially-many global minima of the train loss, even modulo permutation-symmetry. Apriori, it could be the case that each of these minima compute the classification decision in different ways (e.g. by memorizing a particular train set). However, empirically we find that SGD is “biased” towards minima with essentially the same internal representations– in that typical minima can be stitched to each other.
118
+
119
+ Experiments. Figure 2A demonstrates the stitching-connectivity of SGD via the following experiment. We train a variety of model architectures on CIFAR-10, with two different randomly initialized models per architecture. We consider a ResNet-18, two variants of ResNet-18 with $0 . 5 \times$ and $2 \times$ width, a significantly deeper ResNet-164, a feed-forward convolutional network Myrtle-CNN [Page, 2018] and a Vision Transformer [Dosovitskiy et al., 2020] pretrained on CIFAR- $\cdot 5 \mathrm { m }$ [Nakkiran et al., 2021]. We stitch the two randomly initialized models at various intermediate layers, forming the stitching sequence $S _ { 0 } , \ldots S _ { L }$ . Figure 2A plots the test errors of these intermediate stitched models $S _ { i }$ with the first and last point showing the errors of the base models. For all layers $i$ , the test error of the stitched model $S _ { i }$ is close to the error of the base models. A similar result holds for networks trained on disjoint train sets. Full experimental details are provided in Appendix A.
120
+
121
+ # 5 All Roads Lead to Rome
122
+
123
+ In this section, we quantify the intuition that “all roads lead to Rome” in representation learning: many diverse choices of train method, label quality, and objective function all lead to similar representations in early layers. However, we find that such training details can affect the representation at later layers.
124
+
125
+ Comparing self-supervised and supervised methods. If we train models with the same architecture and train set, but alter the training method significantly, what do we expect from the representations? To explore this, we compare the representations of two very different training methods — standard end-to-end supervised training (E2E) versus self-supervised $^ +$ simple classifiers (SSS), that first learn a representation from unlabeled data and then train a simple linear classifier on this representation.3
126
+
127
+ SSS algorithms like SimCLR [Chen et al., 2020b], SwAV [Caron et al., 2021a] and DINO [Caron et al., 2021b] etc have recently emerged as prominent paradigm for training neural networks that achieve comparable accuracy to E2E networks. We stitch the representations of these SSS algorithms to an E2E supervised network (all with a ResNet-50 backbone) trained on ImageNet. While all of these methods achieve similar test accuracy on a ResNet-50 backbone of $7 5 \% \pm 1$ (except SimCLR at $6 8 . 8 \%$ ) [Goyal et al., 2021], they are trained very differently. Figure 2B shows that the SSS trained networks are stitching connected at all layers to the E2E network. This suggests that while the advances in SSL have been significant for learning features without labels, the features themselves are similar in both cases. This is in agreement with prior work which shows that SSS and E2E networks have similar texture-shape bias and make similar errors [Geirhos et al., 2020]. Since certain SSS algorithms have been proven to have small generalization gap [Bansal et al., 2021], the similarity of representations between SSS and E2E algorithms may yield some clues into the generalization mystery of E2E algorithms. A similar experiment for SimCLR with ResNet-18 trained on CIFAR-10 is shown in Appendix B.2, along with the CKA for the same networks. We find that the CKA varies between $0 . 3 5 - 0 . 9$ for different layers, while stitching gets maximum stitching penalty of $3 \%$ .
128
+
129
+ Changing the label distribution $\mathbf { p } ( \mathbf { y } \vert \mathbf { x } )$ : How much does the representation quality depend on label quality? To explore this, we compare the representations of networks with the same input distribution $p ( x )$ , but different label distributions $p ( y | x )$ . We take the CIFAR-10 distribution on inputs $p ( x )$ , and consider several “less informative” label distributions: (1) Coarse labels: We super-class CIFAR-10 classes into a binary task, of Objects (Ship, Truck, etc.) vs. Animals (Cat, Dog, etc.) (2) Label noise: We set $p = \{ 0 . 1 , 0 . 5 , 1 . \}$ fraction of labels to random labels. We then stitch these “weak” networks to a standard CIFAR-10 network at varying layers, and measure the stitching penalty incurred in Figure 3A. We find that even with poor label quality, the first half of layers in the “weak” model are “as good as” layers in the standard model (with the exception of the weak network trained on $100 \%$ noisy labels). These experiments align with the results of Nakkiran and Bansal [2020], which show that neural networks can be sensitive to aspects of the input distribution that are not explicitly encoded in the labels. Full experimental details appear in Appendix A.
130
+
131
+ These results are in agreement with prior work on vision [Olah et al., 2017], which suggests that the first few layers of a neural network learn general purpose features (such as curve detectors) that are likely to be useful a large variety of tasks. Formalizing the set of pre-training tasks for which such similar representations are learnt is an important direction for future work to understand pretraining.
132
+
133
+ # 6 More is Better
134
+
135
+ Now, we use stitching to quantify the intuition that “more is better” for representations. That is, larger sample size, model size, or train time lead to progressively better representations of the same type.
136
+
137
+ Number of samples: When scaled appropriately, neural network performance improves predictably with the number of training samples (e.g. [Kaplan et al., 2020]). But how does this improvement manifest in their representations? We investigate this by stitching the lower parts of models trained $\{ 5 K , 1 0 K , 2 5 K \}$ samples of CIFAR-10 to the upper layers of a model trained with $1 0 K$ samples.
138
+
139
+ First, as Figure 2C shows, we observe that the models are all stitching compatible— the better representation trained with $2 5 K$ samples can simply be "plugged in" to the model trained with fewer samples, and this improves the performance of the stitched network relative to the $1 0 K$ network. Note that there is no theoretical reason to expect this compatibility, better networks could have learnt fundamentally different features from their weaker counterparts. For example, a network trained on few samples could have learnt only “simple features” (presence of sky in the image / presence of horizontal lines), while one trained on many samples may learn only “complex features” (presence of an blue eye / presence of a furry ear), which are not decodable by the weaker network.
140
+
141
+ Secondly, we find that some layers are more data hungry than others. When stitched at the first few layers, all the models have similar performance, but the performance degrades rapidly with fewer samples in the mid-layers of the network. This suggests that each layer of a neural network has its own sample complexity. As a corollary of this finding, we predict that we can train some of the layers with few samples, freeze them and train the rest of the model with larger number of samples. Indeed, we find that we can recover most of the accuracy of the network by training the first three, and the last three layers of this model (about half of the layers) with just $5 K$ samples, freezing them and training the rest of the model with all the samples to obtain a network within $2 \%$ accuracy of the original network. See Appendix B.4 for details of the experiment and training plots. This is similar to the "freeze-training" experiments suggested by Raghu et al. [2017].
142
+
143
+ ![](images/7c005a86efaa130cc232bb2c14cff6bbfbdc163b0a8a9b9b512e17ee41195811.jpg)
144
+ Figure 3: (A) Changing the label distribution: Representations trained on CIFAR-10 with the Object vs. Animals task or with $\{ 1 0 \% , 5 0 \% , 1 0 0 \% \}$ label noise and stitched to a network trained on original CIFAR-10 labels. Early layers learn similar representations even when the label distribution is "less informative" than training with all labels (B) Increasing training time: Representations at different epochs during training are stitching compatible and early layer converge faster (B) Increasing width: Better representations from a wider network can be stitched with a thinner network to improve performance. All experiments were performed with ResNet-18 on CIFAR-10.
145
+
146
+ Training time: We observe similar results when we stitch networks trained for different number of epochs. We train a ResNet-18 trained on CIFAR-10 and stitch the representations from the model at $\{ 4 0 , 8 0 , 1 6 0 \}$ epochs to the model at the 80-th epoch. As training time increases, Figure 3B shows that the representations improve in a manner that is compatible with the earlier training times. Note that this is a nontrivial statement about neural network training dynamics: It could have been the case that, once a network is trained for very long, its representations move “far away” from its representations near initialization – and thus, stitching would fail. However, we find that the representations at the end of training remain compatible with those in the early stage of training. We also observe that earlier layers converge faster with time, as was shown by Raghu et al. [2017].
147
+
148
+ Width: Similarly, we train models with the same architecture but varying width multipliers $\{ 0 . 2 5 \times , 1 \times , 2 \times \}$ (Figure 3C). We find that “better” models with higher width models can be stitched to those with lower width and improve performance, but not vice versa. The CKA between representations with $0 . 2 5 \times$ and $2 \times$ width multiplier is in the range $0 . 7 - 0 . 9$ (See Appendix B.2)
149
+
150
+ Taken together, these results suggest that neural networks obey a certain kind of modularity — better layers can be plugged in without needing to re-train the whole network from scratch.
151
+
152
+ # 7 Conclusion and Future Work
153
+
154
+ As our work demonstrates, model stitching can be a very useful tool to compare representations in interpretable units. Model stitching does have its limitations: it requires training a network, making it more expensive in computation than other measures such as CKA. Additionally, stitching representations from two different architectures can be tricky and requires a careful choice of the stitching family. While we restricted ourselves to stitching the first $l$ layers of a network, stitching can be used to also plug in intermediate layers or parts of layers, and in general to “assemble” a new model from a collection of pre-trained components.
155
+
156
+ There are various avenues for future research. All of our results are in the vision domain, but it would be interesting to compare representations in natural language processing, since language tasks tend to have more variety than vision tasks. It would also be interesting to study the representations of adversarially trained networks to diagnose why they lose performance in comparison to standard training. In general, we hope that model stitching will become a part of the standard diagnostic repertoire of the deep learning community. Societal impacts: This paper makes methodological and foundational contributions that do not have direct impact on society. Model stitching can potentially be used to understand and develop better representation learning mechanisms. While this could indirectly lead to future applications, it is premature to predict their positive or negative impacts.
157
+
158
+ # 8 Acknowledgements
159
+
160
+ YB is supported by IBM Global University awards program and NSF Awards IIS 1409097. PN is supported in part by a Google PhD Fellowship, the Simons Investigator Awards of Boaz Barak and Madhu Sudan, and NSF Awards under grants CCF 1565264, CCF 1715187. BB is supported by NSF award CCF 1565264, a Simons Investigator Fellowship and DARPA grant W911NF2010021. We thank MIT-IBM Watson AI Lab and John Cohn for providing access and support for the Satori compute cluster.
161
+
162
+ # References
163
+
164
+ Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016.
165
+
166
+ Yamini Bansal, Gal Kaplun, and Boaz Barak. For self-supervised learning, rationality implies generalization, provably. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\equiv$ Srmggo3b3X6.
167
+
168
+ Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments, 2021a.
169
+
170
+ Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers, 2021b.
171
+
172
+ Mark Chen, Alec Radford, Rewon Child, Jeff Wu, Heewoo Jun, Prafulla Dhariwal, David Luan, and Ilya Sutskever. Generative pretraining from pixels. 2020a.
173
+
174
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations, 2020b.
175
+
176
+ Adrián Csiszárik, Péter Korösi-Szabó, Ákos K. Matszangosz, Gergely Papp, and Dániel Varga. ˝ Similarity and matching of neural network representations. Advances in Neural Information Processing Systems, 35, 2021.
177
+
178
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale, 2020.
179
+
180
+ Felix Draxler, Kambis Veschgini, Manfred Salmhofer, and Fred Hamprecht. Essentially no barriers in neural network energy landscape. In International conference on machine learning, pages 1309–1318. PMLR, 2018.
181
+
182
+ Jonathan Frankle, Gintare Karolina Dziugaite, Daniel Roy, and Michael Carbin. Linear mode connectivity and the lottery ticket hypothesis. In International Conference on Machine Learning, pages 3259–3269. PMLR, 2020.
183
+
184
+ C. Daniel Freeman and Joan Bruna. Topology and geometry of half-rectified network optimization, 2017.
185
+
186
+ Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry Vetrov, and Andrew Gordon Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns, 2018.
187
+
188
+ Robert Geirhos, Kantharaju Narayanappa, Benjamin Mitzkus, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. On the surprising similarities between supervised and self-supervised models. CoRR, abs/2010.08377, 2020. URL https://arxiv.org/abs/2010.08377.
189
+
190
+ Gabriel Goh, Nick Cammarata $^ \dagger$ , Chelsea Voss $^ \dagger$ , Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, 2021. doi: 10.23915/distill.00030. https://distill.pub/2021/multimodal-neurons.
191
+
192
+ Priya Goyal, Quentin Duval, Jeremy Reizenstein, Matthew Leavitt, Min Xu, Benjamin Lefaudeux, Mannat Singh, Vinicius Reis, Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Ishan Misra. Vissl. https://github.com/facebookresearch/vissl, 2021.
193
+
194
+ David R Hardoon, Sandor Szedmak, and John Shawe-Taylor. Canonical correlation analysis: An overview with application to learning methods. Neural computation, 16(12):2639–2664, 2004.
195
+
196
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition, 2015.
197
+
198
+ Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models, 2020.
199
+
200
+ Don Komarechka. 2021. Images on https://www.macleans.ca/culture/arts/ american-canadian-snowflake-photography/.
201
+
202
+ Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey E. Hinton. Similarity of neural network representations revisited. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 3519–3529. PMLR, 2019. URL http://proceedings.mlr.press/v97/kornblith19a. html.
203
+
204
+ Nikolaus Kriegeskorte, Marieke Mur, and Peter Bandettini. Representational similarity analysis - connecting the branches of systems neuroscience. Frontiers in Systems Neuroscience, 2:4, 2008. ISSN 1662-5137. doi: 10.3389/neuro.06.004.2008. URL https://www.frontiersin.org/ article/10.3389/neuro.06.004.2008.
205
+
206
+ Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 991–999, 2015.
207
+
208
+ Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 6391–6401, 2018.
209
+
210
+ Yixuan Li, Jason Yosinski, Jeff Clune, Hod Lipson, and John Hopcroft. Convergent learning: Do different neural networks learn the same representations?, 2016.
211
+
212
+ Shengchao Liu, Dimitris Papailiopoulos, and Dimitris Achlioptas. Bad global minima exist and sgd can reach them. Advances in Neural Information Processing Systems, 33, 2020.
213
+
214
+ Ari S Morcos, Maithra Raghu, and Samy Bengio. Insights on representational similarity in neural networks with canonical correlation. In NeurIPS, 2018.
215
+
216
+ Preetum Nakkiran and Yamini Bansal. Distributional generalization: A new kind of generalization. arXiv preprint arXiv:2009.08092, 2020.
217
+
218
+ Preetum Nakkiran, Behnam Neyshabur, and Hanie Sedghi. The deep bootstrap framework: Good online learners are good offline generalizers, 2021.
219
+
220
+ Thao Nguyen, Maithra Raghu, and Simon Kornblith. Do wide and deep networks learn the same things? uncovering how neural network representations vary with width and depth. ICLR, 2021.
221
+
222
+ Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017. doi: 10.23915/distill.00007. https://distill.pub/2017/feature-visualization.
223
+
224
+ Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, and Shan Carter. An overview of early vision in inceptionv1. Distill, 2020. doi: 10.23915/distill.00024.002. https://distill.pub/2020/circuits/early-vision.
225
+
226
+ David Page. How to train your resnet. how-to-train-your-resnet-4-architecture/, 2018.
227
+
228
+ https://myrtle.ai/
229
+
230
+ Maithra Raghu, Justin Gilmer, Jason Yosinski, and Jascha Sohl-Dickstein. SVCCA: singular vector canonical correlation analysis for deep learning dynamics and interpretability. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 6076–6085, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/ dc6a7e655d7e5840e66733e9ee67cc69-Abstract.html.
231
+
232
+ David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning internal representations by error propagation. Technical report, California Univ San Diego La Jolla Inst for Cognitive Science, 1985.
233
+
234
+ Liwei Wang, Lunjia Hu, Jiayuan Gu, Yue Wu, Zhiqiang Hu, Kun He, and John Hopcroft. Towards understanding learning representations: To what extent do different neural networks learn the same representation, 2018.
235
+
236
+ Bolei Zhou, Àgata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In Neural Information Processing Systems, 2014.
parse/train/ak06J5jNR4/ak06J5jNR4_content_list.json ADDED
@@ -0,0 +1,1375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Revisiting Model Stitching to Compare Neural Representations ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 220,
8
+ 122,
9
+ 779,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yamini Bansal Harvard University ybansal@g.harvard.edu ",
17
+ "bbox": [
18
+ 205,
19
+ 227,
20
+ 387,
21
+ 267
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Preetum Nakkiran Harvard University preetum@cs.harvard.edu ",
28
+ "bbox": [
29
+ 428,
30
+ 226,
31
+ 619,
32
+ 267
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Boaz Barak Harvard University b@boazbarak.org ",
39
+ "bbox": [
40
+ 660,
41
+ 227,
42
+ 789,
43
+ 267
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 304,
54
+ 535,
55
+ 320
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "We revisit and extend model stitching (Lenc & Vedaldi 2015) as a methodology to study the internal representations of neural networks. Given two trained and frozen models $A$ and $B$ , we consider a “stitched model” formed by connecting the bottom-layers of $A$ to the top-layers of $B$ , with a simple trainable layer between them. We argue that model stitching is a powerful and perhaps under-appreciated tool, which reveals aspects of representations that measures such as centered kernel alignment (CKA) cannot. Through extensive experiments, we use model stitching to obtain quantitative verifications for intuitive statements such as “good networks learn similar representations”, by demonstrating that good networks of the same architecture, but trained in very different ways (e.g.: supervised vs. self-supervised learning), can be stitched to each other without drop in performance. We also give evidence for the intuition that “more is better” by showing that representations learnt with (1) more data, (2) bigger width, or (3) more training time can be “plugged in” to weaker models to improve performance. Finally, our experiments reveal a new structural property of SGD which we call “stitching connectivity”, akin to mode-connectivity: typical minima reached by SGD can all be stitched to each other with minimal change in accuracy. ",
62
+ "bbox": [
63
+ 233,
64
+ 335,
65
+ 766,
66
+ 569
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 593,
77
+ 310,
78
+ 611
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The success of deep neural networks can, arguably, be attributed to the intermediate features or representations learnt by them [Rumelhart et al., 1985]. While neural networks are trained in an end-to-end fashion with no explicit constraints on their intermediate representations, there is a body of evidence that suggests that they learn rich a representation of the data along the way [Goh et al., 2021, Olah et al., 2017]. However, theoretically we understand very little about how to formally characterize these representations, let alone why representation learning occurs. For instance, there are various ad-hoc pretraining methods [Chen et al., 2020a,b], that are purported to perform well by learning good representations, but it is unclear which aspects of these methods (objective, training algorithm, architecture) are crucial for representation learning and if these methods learn qualitatively different representations at all. ",
85
+ "bbox": [
86
+ 174,
87
+ 626,
88
+ 825,
89
+ 763
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Moreover, we have an incomplete understanding of the relations between different representations. Are all “good representations” essentially the same, or is each representation “good” in its own unique way? That is, even when we train good end-to-end models (i.e., small test loss), the internals of these models could potentially be very different from one another. A priori, the training process could evolve in either one of the following extreme scenarios (see Figure 1): ",
96
+ "bbox": [
97
+ 174,
98
+ 770,
99
+ 825,
100
+ 839
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "(1) In the “snowflakes” scenario, training with different initialization, architectures, and objectives (e.g., supervised vs self-supervised) will result in networks with very different internals, which are completely incompatible with one another. For example, even if we train two models with identical data, architecture, and task, but starting from two different initializations, we may end up at local minima with very different properties (e.g., Liu et al. [2020]). If models are trained with different data (e.g., different samples), different architecture (e.g., different width), or different task (e.g., self-supervised vs supervised) then they could end up being even more different from one another. ",
107
+ "bbox": [
108
+ 173,
109
+ 845,
110
+ 823,
111
+ 901
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 174,
120
+ 92,
121
+ 825,
122
+ 133
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "(2) In the “Anna Karenina” scenario1, all successful models end up learning roughly the same internal representations. For example, all models for vision tasks will have internal representation corresponding to curve detectors, and models that are better (for example, trained on more data, are bigger, or trained for more time) will have better curve detectors. ",
129
+ "bbox": [
130
+ 174,
131
+ 138,
132
+ 825,
133
+ 195
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/aa8480a5baabe7d33703c381c6c758cd48d3364589842a1511fd6fa6dc46fa27.jpg",
140
+ "image_caption": [
141
+ "Figure 1: Two extreme “cartoons” for training dynamics of neural networks. In the “snowflakes” scenario, there are exponentially many well-performing neural networks with highly diverging internals. In the “Anna Karenina” scenario all well-performing networks end up learning similar representations, even if their initialization, architecture, data, and objectives differ. Image credits: Li et al. [2018], Olah et al. [2017, 2020], Komarechka [2021]. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 246,
146
+ 217,
147
+ 763,
148
+ 381
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "The “Anna Karenina” scenario implies the following predictions: ",
155
+ "bbox": [
156
+ 173,
157
+ 482,
158
+ 599,
159
+ 496
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "“All roads lead to Rome:” Successful models learned with different initializations, architectures, and tasks, should learn similar internal representations, and so if $A$ and $B$ are two such models, it should be possible to “plug in” the internals from $A$ into $B$ without a significant loss in performance. See Figure 2A-B. ",
166
+ "bbox": [
167
+ 171,
168
+ 502,
169
+ 825,
170
+ 558
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "“More is better:” Better models trained using more data, bigger size, or more compute, should learn better versions of the same internal representations. Hence if $A$ is a more successful model than $B$ , it should be possible to “plug in” $A$ ’s internals to $B$ and obtain improved performance. See Figure 2C. ",
177
+ "bbox": [
178
+ 171,
179
+ 564,
180
+ 823,
181
+ 606
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "In this work, we revisit the empirical methodology of “model stitching” to test the above predictions. Initially proposed by Lenc and Vedaldi [2015], model stitching is natural way of “plugging in” the bottom layers of one network into the top layers of another network, thus forming a stitched network (however care must be taken in the way it is performed, see Section 2). We show that model stitching has some unique advantages that make it more suitable for studying representations than representational similarity measures such as CKA [Kornblith et al., 2019] and SVCCA [Raghu et al., 2017]. Our work provides quantitative evidence for the intuition, shared by many practitioners, that the internals of neural networks often end up being very similar in a certain sense, even when they are trained under different settings. ",
188
+ "bbox": [
189
+ 174,
190
+ 613,
191
+ 826,
192
+ 737
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "1.1 Summary of Results ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 176,
202
+ 757,
203
+ 354,
204
+ 772
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Model stitching as an experimental tool. We establish model stitching as a way of studying the representations of neural networks. A version of model stitching was proposed in Lenc and Vedaldi [2015] to study the equivalence between representations. In this work, we argue that the idea behind model stitching is more powerful than has been appreciated: we analyze the benefits of modelstitching over other methods to study representations, and we then use model-stitching to establish an number of intuitive properties, including new results on the properties of SGD. ",
211
+ "bbox": [
212
+ 174,
213
+ 785,
214
+ 825,
215
+ 867
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "image",
221
+ "img_path": "images/6eda4b77ee50a5fd6733742618f6b6447635351e8858d8cc8c6f329fd8a8717f.jpg",
222
+ "image_caption": [
223
+ "Figure 2: Summary of main results (A) Various models trained on CIFAR-10 identically except with different random initializations are “stitching connected”: can be stitched at all layers with minimal performance drop (see Section 4). Stitching with a random bottom network shown for reference. (B) Models of the same architecture and similar test error, but trained on ImageNet with end-to-end supervised learning versus self-supervised learning can be stitched with good performance (see Section 5). (C) Better representation obtained by training the network with more samples can be \"plugged-in\" with stitching to improve performance (see Section 6). In all figures, stitching penalty is the difference in error between the stitched model and the base top model. "
224
+ ],
225
+ "image_footnote": [],
226
+ "bbox": [
227
+ 173,
228
+ 89,
229
+ 807,
230
+ 231
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "In this paper, we use model stitching in the following way. Suppose we have a neural network $A$ (which we’ll think of as the “top model”) for some task with loss function $\\mathcal { L }$ (e.g. the CIFAR-10 or ImageNet test error). Let $r : \\mathcal { X } \\overset { } { \\to } \\mathbb { R } ^ { d }$ be a candidate “representation” function, which can come from the first (bottom-most) layers of some “bottom model” $B$ . Our intuition is that $r$ has better quality than the first \\` layers of network $A$ if “swapping out” these layers with $r$ will improve performance. ",
237
+ "bbox": [
238
+ 174,
239
+ 386,
240
+ 825,
241
+ 457
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "“Swapping out” is performed by introducing an additional trainable stitching layer to $r$ with $A$ (defined more formally in Section 2). The stitching layers have very low capacity, and are only meant to “align” representations, rather than improving the model. ",
248
+ "bbox": [
249
+ 173,
250
+ 463,
251
+ 825,
252
+ 505
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "Comparison to Representational Similarity Metrics. Much of the current work studying representations focuses on similarity metrics such as CKA. However, we argue that model stitching can be a better suited tool to study representations in various scenarios, and can give qualitatively different conclusions about the behavior of neural representations compared to these metrics. We analyze the differences between model stitching and prior similarity metrics in Section 3. ",
259
+ "bbox": [
260
+ 174,
261
+ 511,
262
+ 825,
263
+ 580
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Quantitative evidence for intuitions. Using model stitching, we are able to provide formal and quantitative evidence to the intuitions mentioned above. In particular we give evidence for the “all roads lead to rome” intuition by showing compatibility of networks with representation that are trained using (1) different initializations, (2) different subsets of the dataset, (3) different tasks (e.g., self-supervised or coarse labels). See Figure 2A-B for results. We also show that network with different random initialization enjoy a property which we call stitching connectivity, wherein almost all minima reachable via SGD can be “stitched” to each other with minimal loss of accuracy. We also give evidence for the “more is better” intuition by showing that we can improve the performance of a network $A$ by plugging in a representation $r$ that was trained with (1) more data, (2) larger width, or (3) more training epochs. See example with more samples in Figure 2C. ",
270
+ "bbox": [
271
+ 174,
272
+ 587,
273
+ 825,
274
+ 726
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "The results above are not surprising, in the sense that they confirm intuitions that practitioners might already have. However model stitching allows us to obtain quantitative and formal measures of these in a way that is not achievable by prior representation measures. ",
281
+ "bbox": [
282
+ 176,
283
+ 732,
284
+ 825,
285
+ 773
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "Organization. We first define model stitching formally in Section 2. We compare it with prior work on representational similarity measures in Section 3. Then, we formally define stitching connectivity and provide experimental evidence for it in Section 4. Finally, in Section 5 and 6, we provide quantitative evidence for the \"all roads lead to Rome\" and \"more is better\" intuitions respectively. ",
292
+ "bbox": [
293
+ 174,
294
+ 779,
295
+ 823,
296
+ 835
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "Related works. As mentioned above, stitching was introduced by Lenc and Vedaldi [2015] who studied equivalence of representations. They showed that certain early layers in a network trained on the Places dataset [Zhou et al., 2014] are compatible with AlexNet (see Table 4 in Lenc and Vedaldi [2015]). After completing this work, we were made aware of concurrent work Csiszárik et al. [2021] that also proposes model stitching to compare neural representations. The results from this work complement ours by studying the effect of changing the stitching layer in various ways (for instance, imposing a sparsity penalty on the stitching layer), and further clarifying the relationship of stitching with other representational similarity measures. In contrast, our work demonstrates stitching compatibility under different scenarios, like the comparison between supervised and self-supervised methods and experiments that show \"more is better\". ",
303
+ "bbox": [
304
+ 174,
305
+ 842,
306
+ 823,
307
+ 911
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "",
314
+ "bbox": [
315
+ 174,
316
+ 90,
317
+ 825,
318
+ 160
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "Our work on stitching connectivity is related to the work on mode connectivity [Garipov et al., 2018, Freeman and Bruna, 2017, Draxler et al., 2018]. These works show that the local minima found by SGD are often connected through low-loss paths. These paths are generally non-linear, though it was shown that there are linear paths between these minima if they are identically initialized but then use different SGD noise (order of samples) after a certain point in training [Frankle et al., 2020]. Stitching connectivity is complementary to mode connectivity. Stitching connectivity corresponds to a discrete path (with as many steps as layers) but one where the intermediate steps are interpretable. We also show stitching connectivity of networks that are trained on different tasks. Finally, most of the prior work on concrete metrics for relating representations was in the context of representation similarity measures. We describe this work and compare it to ours in Section 3. ",
325
+ "bbox": [
326
+ 173,
327
+ 166,
328
+ 825,
329
+ 305
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "2 Model Stitching ",
336
+ "text_level": 1,
337
+ "bbox": [
338
+ 174,
339
+ 324,
340
+ 339,
341
+ 342
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Let $A$ be a neural network of some architecture $\\mathcal { A }$ , and let $r : \\mathcal { X } \\to \\mathbb { R } ^ { d }$ be a candidate “representation” function. We consider a family $s$ of stitching layers which are simple (e.g. linear $1 \\times 1$ convolutional layers for a convolutional network $A$ ) functions mapping $\\mathbb { R } ^ { d }$ to $\\mathbb { R } ^ { \\hat { d } _ { \\ell } }$ where $d _ { \\ell }$ is the width of $A$ ’s $\\ell$ -th layer. Given some loss function $\\mathcal { L }$ (e.g., CIFAR-10 or ImageNet test accuracy) we define ",
348
+ "bbox": [
349
+ 174,
350
+ 354,
351
+ 825,
352
+ 411
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/93fcf5bda878f2ce4d7fdcf3974242f41a67bf1969494ada123dc03f1cb8f3e7.jpg",
359
+ "text": "$$\n\\mathcal { L } _ { \\ell } ( r ; A ) = \\operatorname* { i n f } _ { s \\in \\mathcal { S } } \\mathcal { L } ( A _ { > \\ell } \\circ s \\circ r )\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 395,
363
+ 415,
364
+ 602,
365
+ 438
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "where $A _ { > \\ell }$ denotes the function mapping the activations of $A$ ’s \\`th layer to the final output, and $\\circ$ denotes function composition. That is, $\\mathcal { L } _ { \\ell } ( r ; A )$ is the smallest loss obtained by stitching $r$ into all but the first $\\ell$ layers of $A$ using a stitching layer from $s$ . We define the stitching penalty of the representation $r$ with respect to $A$ (as well as $\\ell$ and the loss $\\mathcal { L }$ ) as $\\mathcal { L } _ { \\ell } ( r ; A ) - \\mathcal { L } ( A )$ . If the penalty is non-negative, then we say that the representation $r$ is at least as good as the first $\\ell$ layers of $A$ . ",
372
+ "bbox": [
373
+ 174,
374
+ 441,
375
+ 825,
376
+ 512
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Consider the simple case of a fully-connected network and a stitching family of linear functions. In this case, model stitching tells us if there is a way to linearly transform the representation $r$ into that of the first $\\ell$ layers of $A$ , but only in the subspace that is relevant to the achieving low loss. In practice, we approximate the infimum in Equation 1 by using gradient methods— concretely, by optimizing the stitching-layer using the train set of the task $\\mathcal { L }$ . The stitching penality itself is then estimated on the test set. ",
383
+ "bbox": [
384
+ 173,
385
+ 517,
386
+ 825,
387
+ 601
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Choosing the stitching family $s$ : The stitching family can be chosen flexibly depending on the desired invariances between representations, as long as it is simple (see below). For instance, if we choose $S$ to be all permutations or orthogonal matrices, the stitching penalty will be invariant up to permutations or orthogonal transformations respectively. In this work, we mainly consider cases where $r = B _ { \\leq l }$ for $B$ with architecture similar to $\\mathcal { A }$ . We restrict the stitching family per architecture $\\mathcal { A }$ such that the composed model $A _ { > \\ell } \\circ s \\circ r$ lies in $\\mathcal { A }$ . This way the stitched model consists of layers identical to the layers of either $A$ or $B$ , with the exception of just one layer. For example, for convolutional networks we consider a $1 \\times 1$ convolution and for transformers we consider a token-wise linear function between transformer blocks. We perform an ablation with kernels of different sizes in Appendix B.1. ",
394
+ "bbox": [
395
+ 173,
396
+ 607,
397
+ 825,
398
+ 746
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "Stitching is not learning: One concern that may arise is that if the stitching family $s$ is sufficiently powerful, it can learn to transform any representation into any other representation. This would defeat the aim of faithfully studying the original representations. To avoid this, the family of stitchers should be chosen to be simple (e.g., linear). Nevertheless, to verify that our experiments are not in such a regime, we stitch an untrained, randomly initialized network with a fully trained network. Figure 2A-B shows that the penalty of such a stitched network is high, specially for high $l$ . CKA has the same trend for the same networks (See Appendix B.2) ",
405
+ "bbox": [
406
+ 173,
407
+ 752,
408
+ 825,
409
+ 849
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "Model stitching as a “happy middle”. Model stitching can be considered as a compromise between the following extremes: (1) Direct plugging in: the most naive interpretation of “plugging in” $r$ into $A$ would be to use no stitching at all. However, even in cases where networks are identical up to a permutation of neurons, plugging in $r$ into $A$ would not work. (2) Full fine tuning: the other extreme interpretation is to perform full fine tuning. That is, start with the initialized network $A { \\mathord { > } } \\ell \\circ r$ and optimize over all choices of $A$ . The problem with this approach is that there are so many degrees of freedom in the choices for $A _ { > \\ell }$ that the resulting network could achieve strong performance regardless of the quality of $r$ . For example, in B.3 we show that fine tuning can fail to distinguish between a trained network and a random network. (3) Linear probe: a popular way to define quality of representations is to use linear probes [Alain and Bengio, 2016]. However, linear probes are not as well suited for studying the representation of early layers, which have low linear separability. In particular, the linear probe accuracy of an early layer of network $A$ would generally always be much worse than a later layer of network $B$ , even if $A$ was of “higher quality” (e.g., trained with more data). Linear probes also don’t have the operational interpretation of compatibility. ",
416
+ "bbox": [
417
+ 176,
418
+ 856,
419
+ 823,
420
+ 911
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "",
427
+ "bbox": [
428
+ 174,
429
+ 90,
430
+ 825,
431
+ 229
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "By choosing a trainable but low-capacity layer, model stitching “threads the needle” between simply plugging in, and full fine tuning, and unlike linear probes, enables the study of early layers using powerful nonlinear decoders. ",
438
+ "bbox": [
439
+ 174,
440
+ 236,
441
+ 825,
442
+ 277
443
+ ],
444
+ "page_idx": 4
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "Experimental setup. Unless specified otherwise, the CIFAR-10 experiments are conducted on the ResNet-18 architecture (with first layer width 64) and the ImageNet experiments are conducted on the ResNet-50 architecture [He et al., 2015]. The ResNets are trained with the standard hyperparameters (See Appendix A.1 for training parameters of all base models). The stitching layer in the the convolutional networks consist of a $1 \\times 1$ convolutional layer with input features equal to the number of channels in $r$ , and output features equal to the output channels of $A _ { \\leq l } ( x )$ . We add a BatchNorm (BN) layer before and after this convolutional layer. Note that the BN layer does not change the representation capacity of the stitching layer and only aides with optimization. We perform stitching only between ResNet blocks (and not inside a block), but note that it is possible to stitch within the block as well. We use the Adam optimizer with the cosine learning rate decay and an initial learning rate of 0.001. Full experimental details for each experiment are described in Appendix A. ",
449
+ "bbox": [
450
+ 173,
451
+ 284,
452
+ 825,
453
+ 436
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "3 Stitching vs. representational similarity ",
460
+ "text_level": 1,
461
+ "bbox": [
462
+ 174,
463
+ 458,
464
+ 534,
465
+ 477
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Much prior work studying representations focused on representation similarity measures. These have been studied in both the neuroscience and machine learning communities [Kriegeskorte et al., 2008, Kornblith et al., 2019]. Examples of such measures include canonical correlation analysis $( C C A )$ [Hardoon et al., 2004] and its singular-vector and projection-weighted variants such as SVCCA and PWCCA [Raghu et al., 2017, Morcos et al., 2018]. Recently Kornblith, Norouzi, Lee, and Hinton [2019] proposed centered kernel alignment $( C K A )$ that addressed several issues with CCA. CKA was further explored by Nguyen et al. [2021]. ",
472
+ "bbox": [
473
+ 173,
474
+ 492,
475
+ 826,
476
+ 590
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "For two representations functions $\\phi : \\mathcal { X } \\mathbb { R } ^ { d _ { 1 } }$ and $\\sigma : \\mathcal { X } \\mathbb { R } ^ { d _ { 2 } }$ , the linear CKA is defined $\\begin{array} { r } { \\mathbf { C K A } ( \\phi , \\sigma ) : = \\frac { | | \\mathbf { C o v } ( \\phi ( x ) , \\sigma ( x ) ) | | _ { F } ^ { 2 } } { | | \\mathbf { C o v } ( \\phi ( x ) ) | | _ { F } \\cdot | | \\mathbf { C o v } ( \\sigma ( x ) ) | | _ { F } } } \\end{array}$ where all covariances are with respect to the test distribution on inputs $x \\sim \\mathcal { D }$ [Kornblith et al., 2019]. ",
483
+ "bbox": [
484
+ 174,
485
+ 594,
486
+ 825,
487
+ 646
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "table",
493
+ "img_path": "images/38dcb54079b2e390692a721c08498c2ce3311761b01ed68ed3555218d6bf5f66.jpg",
494
+ "table_caption": [
495
+ "Table 1: Qualitative results of our experiments, comparing CKA to stitching. $\\mathbf { C K A } \\approx 1$ means representations are close according to CKA. Error $\\approx 0 \\%$ means representations are close according to stitching. “Varies” means no consistent conclusion across different architectures and tasks. "
496
+ ],
497
+ "table_footnote": [],
498
+ "table_body": "<table><tr><td>Method</td><td>Stitching Connectivity Different Initialization</td><td>“All roads” Self-Supervision</td><td>“More is better” More Data /Time /Width</td></tr><tr><td>CKA Stitching</td><td>Varies (can be O) Close (up to 3% error)</td><td>Varies (0.35- 0.9) Close (up to 5% error)</td><td>Far (can be O for data, O.7 for width) Better</td></tr></table>",
499
+ "bbox": [
500
+ 176,
501
+ 661,
502
+ 820,
503
+ 729
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Table 1 contains a qualitative summary of our results, comparing stitching with CKA. While in some cases the results of stitching and CKA agree, in several cases, stitching obtains results that align more closely with the intuitions that well-performing networks learn similar representations, and that more resources results in better versions of the same representations. In particular, in experiments where stitching indicates that a certain representation is better than another, CKA by its design can only indicate that the two representations are far from each other. Moreover, in some experiments CKA indicates that representations are far where we intuitively believe that they should be close, e.g. when networks only differ by two random initializations, or when one is trained with a supervised and another with a self-supervised task.2 In contrast, in these settings, model-stitching reveals that the two models have nearly equivalent representations, in the sense that they can be stitched to each other with low penalty. The precise experimental results appear in Sections 4-6 and Appendix B.2. ",
510
+ "bbox": [
511
+ 173,
512
+ 800,
513
+ 825,
514
+ 911
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "",
521
+ "bbox": [
522
+ 176,
523
+ 90,
524
+ 825,
525
+ 132
526
+ ],
527
+ "page_idx": 5
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Compared to representation-similarity measures, model stitching has several advantages: ",
532
+ "bbox": [
533
+ 176,
534
+ 140,
535
+ 754,
536
+ 154
537
+ ],
538
+ "page_idx": 5
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "Ignoring spurious features: Measures such as CCA and CKA ultimately boil down to distances between the feature vectors, but they do not distinguish between features that are learned and relevant for downstream tasks, and spurious features, that may be completely useless or even random. For example, suppose we augment a representation $\\phi : \\dot { \\mathcal { X } } \\dot { \\mathbb { R } ^ { d } }$ by concatenating 1000 “useless” coordinates, with random gaussian features, to form a new representation $\\phi ^ { \\prime } : \\mathcal { X } \\overset { \\mathbf { \\bar { \\Delta } } } { \\to } \\mathbb { R } ^ { d + 1 0 0 0 }$ . This would reduce the CKA, but representation $\\phi ^ { \\prime }$ is not different from $\\phi$ in a meaningful way. Modelstitching resolves this, since we can stitch $\\phi ^ { \\prime }$ in place of $\\phi$ by simply throwing away the useless coordinates. In general, model-stitching focuses only on aspects of the representation which are relevant for the downstream task, as opposed to aspects which are spurious or irrelevant. The price we pay for this is that, unlike measures such as CKA, model stitching depends on the downstream task. However, our results indicate that neural networks tend to learn similar representations for a variety of natural tasks. ",
543
+ "bbox": [
544
+ 174,
545
+ 160,
546
+ 825,
547
+ 325
548
+ ],
549
+ "page_idx": 5
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Asymmetry: Our intuition is that some representations are better than others. For example, we believe that with more data, neural networks learn better representations. However, by design, such comparisons cannot be demonstrated by representation similarity measures that only measure the distance between two representations. In contrast, we are able to demonstrate that “more is better” using stitching-based measures. Concretely, CKA and other similarity measures are symmetric, while stitching is not: it may be the case that a representation $\\phi$ can be stitched in place of a representation $\\sigma$ , but not vice-versa. Also, stitching a representation $\\phi$ can (and sometimes does) improve performance. ",
554
+ "bbox": [
555
+ 173,
556
+ 332,
557
+ 825,
558
+ 429
559
+ ],
560
+ "page_idx": 5
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Interpretable units: Measures such as CCA/CKA give a number between 0 and 1 for the distance between representations, but it is hard to interpret what is the difference, for example, between a CKA value of 0.9 and value of 0.8. In contrast, if the loss function $\\mathcal { L }$ has meaningful units, then the stitching penalty inherits those, and (for example) a representation $r$ having a penalty of $3 \\%$ in CIFAR-10 accuracy has an operational meaning: if you replace the first layers of the network with $r$ the decrease in accuracy is at most $3 \\%$ . ",
565
+ "bbox": [
566
+ 174,
567
+ 435,
568
+ 825,
569
+ 518
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Invariance: A representation similarity measure should be invariant to operations that do not modify the “quality” of the representation, but it is not always clear what these operations are. For example, CCA and CKA are invariant under orthogonal linear transformations, and some variants of CCA are also invariant under general invertible linear transformations (see Table 1 in Kornblith et al. [2019]). However, it is unclear if these are the natural families. For example, randomly permuting the order of pixels (either at the input or in the latents) is an orthogonal transform, and thus does not affect the CKA. However, this completely destroys the spatial structure of the input, and intuitively should affect the “representation quality.” On the other hand, certain non-orthogonal transforms may still preserve representation quality– for example, the non-invertible transformation of projecting out spurious coordinates. Thus, orthogonal transforms may not be the right invariance class to consider representations. Using stitching we can explicitly ensure invariance under any given family of transformations by adding it to the stitching layer. Concretely, our choice of using a $1 \\times 1$ convolutional stitcher yields much weaker invariance than general orthogonal transforms– and thus, model stitching can predict that shuffling pixels leads to a “worse” representation. ",
576
+ "bbox": [
577
+ 174,
578
+ 525,
579
+ 825,
580
+ 719
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "4 Stitching Connectivity ",
587
+ "text_level": 1,
588
+ "bbox": [
589
+ 176,
590
+ 744,
591
+ 392,
592
+ 762
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "We first focus on a special case of model-stitching, wherein we stitch two identically distributed networks to each other. That is, we train two networks of same architecture, on the same data distribution, but with independent random seeds and independent train samples. This question has been studied before with varied conclusions [Li et al., 2016, Wang et al., 2018]. We find that empirically, two such networks can be stitched to each other at all layers, with close to 0 penalty. This is a new empirical property of SGD trained networks, which we term “stitching connectivity.” ",
599
+ "bbox": [
600
+ 174,
601
+ 780,
602
+ 825,
603
+ 863
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Formally, let $A , B$ be two trained networks of identical architectures with $L$ layers, for a task with objective function $\\mathcal { L }$ . For all $i \\in \\{ 0 , 1 , . . . , L \\}$ , define $S _ { i }$ to be the stitched model where we replace the first $i$ layers of $A$ with those same layers in $B$ (and optimize the stitching layer as usual). That is, $\\begin{array} { r } { S _ { i } : = \\arg \\operatorname* { m i n } _ { S = A _ { > i } \\circ s \\circ B _ { \\leq i } } { \\mathcal { L } } ( S ) } \\end{array}$ . Observe that $S _ { 0 } = A$ and $S _ { L } = B$ , so the sequence of models $\\{ S _ { 0 } , S _ { 1 } , \\ldots , S _ { L } \\}$ gives a kind of “path” between models $A$ and $B$ . Further, due to our family of stitching layer and network architecture $1 \\times 1$ conv stitchers and conv-nets), the stitching layer $s$ can be folded into the adjacent model. Thus, all models $S _ { i }$ have identical architecture as $A$ and $B$ . We say $A$ and $B$ are “stitching-connected” if all the intermediate models $S _ { i }$ have low test loss. ",
610
+ "bbox": [
611
+ 174,
612
+ 90,
613
+ 825,
614
+ 205
615
+ ],
616
+ "page_idx": 6
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Definition 1 (Stitching Connectivity). Let $A , B$ be two networks of identical architectures. We say $A$ and $B$ are stitching-connected if they can be stitched to each other at all layers, with low penalty. That is, if all stitched models $S _ { i }$ , defined as above, have test loss comparable to $A$ . ",
621
+ "bbox": [
622
+ 174,
623
+ 209,
624
+ 825,
625
+ 251
626
+ ],
627
+ "page_idx": 6
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Stitching connectivity is not a trivial property: two networks with identical architectures, but very different internal representations, would fail to be stitching connected. Our main claim is that for a fixed data distribution, almost all minima reached by SGD are stitching-connected to each other. ",
632
+ "bbox": [
633
+ 176,
634
+ 262,
635
+ 825,
636
+ 305
637
+ ],
638
+ "page_idx": 6
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "Conjecture 2 (Stitching Connectivity of SGD, informal). Let $A _ { 1 } , A _ { 2 }$ be two independent and identically-trained networks. That is, networks of the same architecture, trained by SGD with independent random seeds and independent train sets from the same distribution. Then, for natural architectures and data-distributions, the trained models $A _ { 1 }$ and $A _ { 2 }$ are stitching-connected. ",
643
+ "bbox": [
644
+ 176,
645
+ 309,
646
+ 823,
647
+ 366
648
+ ],
649
+ "page_idx": 6
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "This conjecture states a structural property of models that are likely to be output by SGD. If we run the identical training procedure twice, we will almost certainly not produce models with identical parameters. However, these two different parameter settings yield essentially equivalent internal representations– this is what it means to be stitching-connected. ",
654
+ "bbox": [
655
+ 174,
656
+ 376,
657
+ 825,
658
+ 431
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Discussion. Stitching connectivity is similar in spirit to mode connectivity [Garipov et al., 2018, Freeman and Bruna, 2017, Draxler et al., 2018], in that they are both structural properties of the set of typical SGD minimas. Mode connectivity states that typical minima are connected by a low-test-loss path in parameter space. Stitching connectivity does not technically define a path in parameter space– rather, it defines a sequence $S _ { 0 } , S _ { 1 } , \\ldots , S _ { L }$ of low-loss models connecting two endpoint models. For each model in this sequence, all but one layer is identical to one of the endpoint models. Thus, we can informally think of the stitching sequence as a different way of “interpolating” between two models. ",
665
+ "bbox": [
666
+ 174,
667
+ 438,
668
+ 825,
669
+ 536
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "The stitching connectivity of SGD is especially interesting for overparameterized models, since it sheds light on the implicit bias of SGD. In this case, there are exponentially-many global minima of the train loss, even modulo permutation-symmetry. Apriori, it could be the case that each of these minima compute the classification decision in different ways (e.g. by memorizing a particular train set). However, empirically we find that SGD is “biased” towards minima with essentially the same internal representations– in that typical minima can be stitched to each other. ",
676
+ "bbox": [
677
+ 174,
678
+ 541,
679
+ 825,
680
+ 626
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Experiments. Figure 2A demonstrates the stitching-connectivity of SGD via the following experiment. We train a variety of model architectures on CIFAR-10, with two different randomly initialized models per architecture. We consider a ResNet-18, two variants of ResNet-18 with $0 . 5 \\times$ and $2 \\times$ width, a significantly deeper ResNet-164, a feed-forward convolutional network Myrtle-CNN [Page, 2018] and a Vision Transformer [Dosovitskiy et al., 2020] pretrained on CIFAR- $\\cdot 5 \\mathrm { m }$ [Nakkiran et al., 2021]. We stitch the two randomly initialized models at various intermediate layers, forming the stitching sequence $S _ { 0 } , \\ldots S _ { L }$ . Figure 2A plots the test errors of these intermediate stitched models $S _ { i }$ with the first and last point showing the errors of the base models. For all layers $i$ , the test error of the stitched model $S _ { i }$ is close to the error of the base models. A similar result holds for networks trained on disjoint train sets. Full experimental details are provided in Appendix A. ",
687
+ "bbox": [
688
+ 173,
689
+ 631,
690
+ 825,
691
+ 770
692
+ ],
693
+ "page_idx": 6
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "5 All Roads Lead to Rome ",
698
+ "text_level": 1,
699
+ "bbox": [
700
+ 176,
701
+ 789,
702
+ 410,
703
+ 806
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "In this section, we quantify the intuition that “all roads lead to Rome” in representation learning: many diverse choices of train method, label quality, and objective function all lead to similar representations in early layers. However, we find that such training details can affect the representation at later layers. ",
710
+ "bbox": [
711
+ 174,
712
+ 820,
713
+ 825,
714
+ 863
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Comparing self-supervised and supervised methods. If we train models with the same architecture and train set, but alter the training method significantly, what do we expect from the representations? To explore this, we compare the representations of two very different training methods — standard end-to-end supervised training (E2E) versus self-supervised $^ +$ simple classifiers (SSS), that first learn a representation from unlabeled data and then train a simple linear classifier on this representation.3 ",
721
+ "bbox": [
722
+ 176,
723
+ 869,
724
+ 825,
725
+ 911
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "",
732
+ "bbox": [
733
+ 171,
734
+ 92,
735
+ 823,
736
+ 119
737
+ ],
738
+ "page_idx": 7
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "SSS algorithms like SimCLR [Chen et al., 2020b], SwAV [Caron et al., 2021a] and DINO [Caron et al., 2021b] etc have recently emerged as prominent paradigm for training neural networks that achieve comparable accuracy to E2E networks. We stitch the representations of these SSS algorithms to an E2E supervised network (all with a ResNet-50 backbone) trained on ImageNet. While all of these methods achieve similar test accuracy on a ResNet-50 backbone of $7 5 \\% \\pm 1$ (except SimCLR at $6 8 . 8 \\%$ ) [Goyal et al., 2021], they are trained very differently. Figure 2B shows that the SSS trained networks are stitching connected at all layers to the E2E network. This suggests that while the advances in SSL have been significant for learning features without labels, the features themselves are similar in both cases. This is in agreement with prior work which shows that SSS and E2E networks have similar texture-shape bias and make similar errors [Geirhos et al., 2020]. Since certain SSS algorithms have been proven to have small generalization gap [Bansal et al., 2021], the similarity of representations between SSS and E2E algorithms may yield some clues into the generalization mystery of E2E algorithms. A similar experiment for SimCLR with ResNet-18 trained on CIFAR-10 is shown in Appendix B.2, along with the CKA for the same networks. We find that the CKA varies between $0 . 3 5 - 0 . 9$ for different layers, while stitching gets maximum stitching penalty of $3 \\%$ . ",
743
+ "bbox": [
744
+ 174,
745
+ 126,
746
+ 825,
747
+ 333
748
+ ],
749
+ "page_idx": 7
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "Changing the label distribution $\\mathbf { p } ( \\mathbf { y } \\vert \\mathbf { x } )$ : How much does the representation quality depend on label quality? To explore this, we compare the representations of networks with the same input distribution $p ( x )$ , but different label distributions $p ( y | x )$ . We take the CIFAR-10 distribution on inputs $p ( x )$ , and consider several “less informative” label distributions: (1) Coarse labels: We super-class CIFAR-10 classes into a binary task, of Objects (Ship, Truck, etc.) vs. Animals (Cat, Dog, etc.) (2) Label noise: We set $p = \\{ 0 . 1 , 0 . 5 , 1 . \\}$ fraction of labels to random labels. We then stitch these “weak” networks to a standard CIFAR-10 network at varying layers, and measure the stitching penalty incurred in Figure 3A. We find that even with poor label quality, the first half of layers in the “weak” model are “as good as” layers in the standard model (with the exception of the weak network trained on $100 \\%$ noisy labels). These experiments align with the results of Nakkiran and Bansal [2020], which show that neural networks can be sensitive to aspects of the input distribution that are not explicitly encoded in the labels. Full experimental details appear in Appendix A. ",
754
+ "bbox": [
755
+ 174,
756
+ 338,
757
+ 825,
758
+ 506
759
+ ],
760
+ "page_idx": 7
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "These results are in agreement with prior work on vision [Olah et al., 2017], which suggests that the first few layers of a neural network learn general purpose features (such as curve detectors) that are likely to be useful a large variety of tasks. Formalizing the set of pre-training tasks for which such similar representations are learnt is an important direction for future work to understand pretraining. ",
765
+ "bbox": [
766
+ 174,
767
+ 511,
768
+ 825,
769
+ 566
770
+ ],
771
+ "page_idx": 7
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "6 More is Better ",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 174,
779
+ 587,
780
+ 325,
781
+ 604
782
+ ],
783
+ "page_idx": 7
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "Now, we use stitching to quantify the intuition that “more is better” for representations. That is, larger sample size, model size, or train time lead to progressively better representations of the same type. ",
788
+ "bbox": [
789
+ 174,
790
+ 618,
791
+ 823,
792
+ 646
793
+ ],
794
+ "page_idx": 7
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Number of samples: When scaled appropriately, neural network performance improves predictably with the number of training samples (e.g. [Kaplan et al., 2020]). But how does this improvement manifest in their representations? We investigate this by stitching the lower parts of models trained $\\{ 5 K , 1 0 K , 2 5 K \\}$ samples of CIFAR-10 to the upper layers of a model trained with $1 0 K$ samples. ",
799
+ "bbox": [
800
+ 174,
801
+ 652,
802
+ 825,
803
+ 708
804
+ ],
805
+ "page_idx": 7
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "First, as Figure 2C shows, we observe that the models are all stitching compatible— the better representation trained with $2 5 K$ samples can simply be \"plugged in\" to the model trained with fewer samples, and this improves the performance of the stitched network relative to the $1 0 K$ network. Note that there is no theoretical reason to expect this compatibility, better networks could have learnt fundamentally different features from their weaker counterparts. For example, a network trained on few samples could have learnt only “simple features” (presence of sky in the image / presence of horizontal lines), while one trained on many samples may learn only “complex features” (presence of an blue eye / presence of a furry ear), which are not decodable by the weaker network. ",
810
+ "bbox": [
811
+ 174,
812
+ 715,
813
+ 825,
814
+ 825
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Secondly, we find that some layers are more data hungry than others. When stitched at the first few layers, all the models have similar performance, but the performance degrades rapidly with fewer samples in the mid-layers of the network. This suggests that each layer of a neural network has its own sample complexity. As a corollary of this finding, we predict that we can train some of the layers with few samples, freeze them and train the rest of the model with larger number of samples. Indeed, we find that we can recover most of the accuracy of the network by training the first three, and the last three layers of this model (about half of the layers) with just $5 K$ samples, freezing them and training the rest of the model with all the samples to obtain a network within $2 \\%$ accuracy of the original network. See Appendix B.4 for details of the experiment and training plots. This is similar to the \"freeze-training\" experiments suggested by Raghu et al. [2017]. ",
821
+ "bbox": [
822
+ 174,
823
+ 832,
824
+ 825,
825
+ 875
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "image",
831
+ "img_path": "images/7c005a86efaa130cc232bb2c14cff6bbfbdc163b0a8a9b9b512e17ee41195811.jpg",
832
+ "image_caption": [
833
+ "Figure 3: (A) Changing the label distribution: Representations trained on CIFAR-10 with the Object vs. Animals task or with $\\{ 1 0 \\% , 5 0 \\% , 1 0 0 \\% \\}$ label noise and stitched to a network trained on original CIFAR-10 labels. Early layers learn similar representations even when the label distribution is \"less informative\" than training with all labels (B) Increasing training time: Representations at different epochs during training are stitching compatible and early layer converge faster (B) Increasing width: Better representations from a wider network can be stitched with a thinner network to improve performance. All experiments were performed with ResNet-18 on CIFAR-10. "
834
+ ],
835
+ "image_footnote": [],
836
+ "bbox": [
837
+ 179,
838
+ 95,
839
+ 823,
840
+ 228
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "",
847
+ "bbox": [
848
+ 174,
849
+ 363,
850
+ 825,
851
+ 462
852
+ ],
853
+ "page_idx": 8
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "Training time: We observe similar results when we stitch networks trained for different number of epochs. We train a ResNet-18 trained on CIFAR-10 and stitch the representations from the model at $\\{ 4 0 , 8 0 , 1 6 0 \\}$ epochs to the model at the 80-th epoch. As training time increases, Figure 3B shows that the representations improve in a manner that is compatible with the earlier training times. Note that this is a nontrivial statement about neural network training dynamics: It could have been the case that, once a network is trained for very long, its representations move “far away” from its representations near initialization – and thus, stitching would fail. However, we find that the representations at the end of training remain compatible with those in the early stage of training. We also observe that earlier layers converge faster with time, as was shown by Raghu et al. [2017]. ",
858
+ "bbox": [
859
+ 173,
860
+ 467,
861
+ 825,
862
+ 592
863
+ ],
864
+ "page_idx": 8
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Width: Similarly, we train models with the same architecture but varying width multipliers $\\{ 0 . 2 5 \\times , 1 \\times , 2 \\times \\}$ (Figure 3C). We find that “better” models with higher width models can be stitched to those with lower width and improve performance, but not vice versa. The CKA between representations with $0 . 2 5 \\times$ and $2 \\times$ width multiplier is in the range $0 . 7 - 0 . 9$ (See Appendix B.2) ",
869
+ "bbox": [
870
+ 173,
871
+ 598,
872
+ 825,
873
+ 654
874
+ ],
875
+ "page_idx": 8
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "Taken together, these results suggest that neural networks obey a certain kind of modularity — better layers can be plugged in without needing to re-train the whole network from scratch. ",
880
+ "bbox": [
881
+ 174,
882
+ 660,
883
+ 823,
884
+ 689
885
+ ],
886
+ "page_idx": 8
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "7 Conclusion and Future Work ",
891
+ "text_level": 1,
892
+ "bbox": [
893
+ 176,
894
+ 707,
895
+ 449,
896
+ 724
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "As our work demonstrates, model stitching can be a very useful tool to compare representations in interpretable units. Model stitching does have its limitations: it requires training a network, making it more expensive in computation than other measures such as CKA. Additionally, stitching representations from two different architectures can be tricky and requires a careful choice of the stitching family. While we restricted ourselves to stitching the first $l$ layers of a network, stitching can be used to also plug in intermediate layers or parts of layers, and in general to “assemble” a new model from a collection of pre-trained components. ",
903
+ "bbox": [
904
+ 174,
905
+ 738,
906
+ 825,
907
+ 835
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "There are various avenues for future research. All of our results are in the vision domain, but it would be interesting to compare representations in natural language processing, since language tasks tend to have more variety than vision tasks. It would also be interesting to study the representations of adversarially trained networks to diagnose why they lose performance in comparison to standard training. In general, we hope that model stitching will become a part of the standard diagnostic repertoire of the deep learning community. Societal impacts: This paper makes methodological and foundational contributions that do not have direct impact on society. Model stitching can potentially be used to understand and develop better representation learning mechanisms. While this could indirectly lead to future applications, it is premature to predict their positive or negative impacts. ",
914
+ "bbox": [
915
+ 174,
916
+ 842,
917
+ 823,
918
+ 911
919
+ ],
920
+ "page_idx": 8
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "",
925
+ "bbox": [
926
+ 174,
927
+ 92,
928
+ 825,
929
+ 147
930
+ ],
931
+ "page_idx": 9
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "8 Acknowledgements ",
936
+ "text_level": 1,
937
+ "bbox": [
938
+ 174,
939
+ 166,
940
+ 367,
941
+ 184
942
+ ],
943
+ "page_idx": 9
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "YB is supported by IBM Global University awards program and NSF Awards IIS 1409097. PN is supported in part by a Google PhD Fellowship, the Simons Investigator Awards of Boaz Barak and Madhu Sudan, and NSF Awards under grants CCF 1565264, CCF 1715187. BB is supported by NSF award CCF 1565264, a Simons Investigator Fellowship and DARPA grant W911NF2010021. We thank MIT-IBM Watson AI Lab and John Cohn for providing access and support for the Satori compute cluster. ",
948
+ "bbox": [
949
+ 174,
950
+ 198,
951
+ 826,
952
+ 281
953
+ ],
954
+ "page_idx": 9
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "References ",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 174,
962
+ 301,
963
+ 266,
964
+ 318
965
+ ],
966
+ "page_idx": 9
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. ",
971
+ "bbox": [
972
+ 176,
973
+ 325,
974
+ 823,
975
+ 354
976
+ ],
977
+ "page_idx": 9
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Yamini Bansal, Gal Kaplun, and Boaz Barak. For self-supervised learning, rationality implies generalization, provably. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\\equiv$ Srmggo3b3X6. ",
982
+ "bbox": [
983
+ 176,
984
+ 363,
985
+ 823,
986
+ 406
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments, 2021a. ",
993
+ "bbox": [
994
+ 171,
995
+ 415,
996
+ 825,
997
+ 445
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers, 2021b. ",
1004
+ "bbox": [
1005
+ 171,
1006
+ 454,
1007
+ 823,
1008
+ 483
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Mark Chen, Alec Radford, Rewon Child, Jeff Wu, Heewoo Jun, Prafulla Dhariwal, David Luan, and Ilya Sutskever. Generative pretraining from pixels. 2020a. ",
1015
+ "bbox": [
1016
+ 173,
1017
+ 492,
1018
+ 825,
1019
+ 521
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations, 2020b. ",
1026
+ "bbox": [
1027
+ 171,
1028
+ 530,
1029
+ 823,
1030
+ 559
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Adrián Csiszárik, Péter Korösi-Szabó, Ákos K. Matszangosz, Gergely Papp, and Dániel Varga. ˝ Similarity and matching of neural network representations. Advances in Neural Information Processing Systems, 35, 2021. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 569,
1040
+ 826,
1041
+ 613
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale, 2020. ",
1048
+ "bbox": [
1049
+ 173,
1050
+ 622,
1051
+ 825,
1052
+ 679
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Felix Draxler, Kambis Veschgini, Manfred Salmhofer, and Fred Hamprecht. Essentially no barriers in neural network energy landscape. In International conference on machine learning, pages 1309–1318. PMLR, 2018. ",
1059
+ "bbox": [
1060
+ 174,
1061
+ 688,
1062
+ 823,
1063
+ 731
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Jonathan Frankle, Gintare Karolina Dziugaite, Daniel Roy, and Michael Carbin. Linear mode connectivity and the lottery ticket hypothesis. In International Conference on Machine Learning, pages 3259–3269. PMLR, 2020. ",
1070
+ "bbox": [
1071
+ 173,
1072
+ 739,
1073
+ 825,
1074
+ 782
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "C. Daniel Freeman and Joan Bruna. Topology and geometry of half-rectified network optimization, 2017. ",
1081
+ "bbox": [
1082
+ 173,
1083
+ 791,
1084
+ 825,
1085
+ 820
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry Vetrov, and Andrew Gordon Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns, 2018. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 830,
1095
+ 825,
1096
+ 859
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Robert Geirhos, Kantharaju Narayanappa, Benjamin Mitzkus, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. On the surprising similarities between supervised and self-supervised models. CoRR, abs/2010.08377, 2020. URL https://arxiv.org/abs/2010.08377. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 869,
1106
+ 826,
1107
+ 911
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Gabriel Goh, Nick Cammarata $^ \\dagger$ , Chelsea Voss $^ \\dagger$ , Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, 2021. doi: 10.23915/distill.00030. https://distill.pub/2021/multimodal-neurons. ",
1114
+ "bbox": [
1115
+ 174,
1116
+ 90,
1117
+ 823,
1118
+ 133
1119
+ ],
1120
+ "page_idx": 10
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Priya Goyal, Quentin Duval, Jeremy Reizenstein, Matthew Leavitt, Min Xu, Benjamin Lefaudeux, Mannat Singh, Vinicius Reis, Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Ishan Misra. Vissl. https://github.com/facebookresearch/vissl, 2021. ",
1125
+ "bbox": [
1126
+ 176,
1127
+ 141,
1128
+ 823,
1129
+ 184
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "David R Hardoon, Sandor Szedmak, and John Shawe-Taylor. Canonical correlation analysis: An overview with application to learning methods. Neural computation, 16(12):2639–2664, 2004. ",
1136
+ "bbox": [
1137
+ 171,
1138
+ 191,
1139
+ 823,
1140
+ 222
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition, 2015. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 229,
1150
+ 823,
1151
+ 258
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models, 2020. ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 266,
1161
+ 826,
1162
+ 308
1163
+ ],
1164
+ "page_idx": 10
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Don Komarechka. 2021. Images on https://www.macleans.ca/culture/arts/ american-canadian-snowflake-photography/. ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 316,
1172
+ 825,
1173
+ 345
1174
+ ],
1175
+ "page_idx": 10
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey E. Hinton. Similarity of neural network representations revisited. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 3519–3529. PMLR, 2019. URL http://proceedings.mlr.press/v97/kornblith19a. html. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 353,
1183
+ 826,
1184
+ 438
1185
+ ],
1186
+ "page_idx": 10
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Nikolaus Kriegeskorte, Marieke Mur, and Peter Bandettini. Representational similarity analysis - connecting the branches of systems neuroscience. Frontiers in Systems Neuroscience, 2:4, 2008. ISSN 1662-5137. doi: 10.3389/neuro.06.004.2008. URL https://www.frontiersin.org/ article/10.3389/neuro.06.004.2008. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 445,
1194
+ 828,
1195
+ 501
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 991–999, 2015. ",
1202
+ "bbox": [
1203
+ 173,
1204
+ 510,
1205
+ 826,
1206
+ 553
1207
+ ],
1208
+ "page_idx": 10
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 6391–6401, 2018. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 560,
1216
+ 826,
1217
+ 603
1218
+ ],
1219
+ "page_idx": 10
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Yixuan Li, Jason Yosinski, Jeff Clune, Hod Lipson, and John Hopcroft. Convergent learning: Do different neural networks learn the same representations?, 2016. ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 611,
1227
+ 823,
1228
+ 640
1229
+ ],
1230
+ "page_idx": 10
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Shengchao Liu, Dimitris Papailiopoulos, and Dimitris Achlioptas. Bad global minima exist and sgd can reach them. Advances in Neural Information Processing Systems, 33, 2020. ",
1235
+ "bbox": [
1236
+ 173,
1237
+ 647,
1238
+ 821,
1239
+ 678
1240
+ ],
1241
+ "page_idx": 10
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Ari S Morcos, Maithra Raghu, and Samy Bengio. Insights on representational similarity in neural networks with canonical correlation. In NeurIPS, 2018. ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 684,
1249
+ 825,
1250
+ 714
1251
+ ],
1252
+ "page_idx": 10
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Preetum Nakkiran and Yamini Bansal. Distributional generalization: A new kind of generalization. arXiv preprint arXiv:2009.08092, 2020. ",
1257
+ "bbox": [
1258
+ 173,
1259
+ 720,
1260
+ 825,
1261
+ 751
1262
+ ],
1263
+ "page_idx": 10
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Preetum Nakkiran, Behnam Neyshabur, and Hanie Sedghi. The deep bootstrap framework: Good online learners are good offline generalizers, 2021. ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 758,
1271
+ 823,
1272
+ 787
1273
+ ],
1274
+ "page_idx": 10
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Thao Nguyen, Maithra Raghu, and Simon Kornblith. Do wide and deep networks learn the same things? uncovering how neural network representations vary with width and depth. ICLR, 2021. ",
1279
+ "bbox": [
1280
+ 173,
1281
+ 795,
1282
+ 823,
1283
+ 825
1284
+ ],
1285
+ "page_idx": 10
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017. doi: 10.23915/distill.00007. https://distill.pub/2017/feature-visualization. ",
1290
+ "bbox": [
1291
+ 174,
1292
+ 832,
1293
+ 823,
1294
+ 862
1295
+ ],
1296
+ "page_idx": 10
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, and Shan Carter. An overview of early vision in inceptionv1. Distill, 2020. doi: 10.23915/distill.00024.002. https://distill.pub/2020/circuits/early-vision. ",
1301
+ "bbox": [
1302
+ 174,
1303
+ 868,
1304
+ 826,
1305
+ 911
1306
+ ],
1307
+ "page_idx": 10
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "David Page. How to train your resnet. how-to-train-your-resnet-4-architecture/, 2018. ",
1312
+ "bbox": [
1313
+ 176,
1314
+ 92,
1315
+ 598,
1316
+ 119
1317
+ ],
1318
+ "page_idx": 11
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "https://myrtle.ai/ ",
1323
+ "bbox": [
1324
+ 668,
1325
+ 93,
1326
+ 825,
1327
+ 106
1328
+ ],
1329
+ "page_idx": 11
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Maithra Raghu, Justin Gilmer, Jason Yosinski, and Jascha Sohl-Dickstein. SVCCA: singular vector canonical correlation analysis for deep learning dynamics and interpretability. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 6076–6085, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/ dc6a7e655d7e5840e66733e9ee67cc69-Abstract.html. ",
1334
+ "bbox": [
1335
+ 174,
1336
+ 128,
1337
+ 826,
1338
+ 212
1339
+ ],
1340
+ "page_idx": 11
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning internal representations by error propagation. Technical report, California Univ San Diego La Jolla Inst for Cognitive Science, 1985. ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 220,
1348
+ 826,
1349
+ 263
1350
+ ],
1351
+ "page_idx": 11
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "Liwei Wang, Lunjia Hu, Jiayuan Gu, Yue Wu, Zhiqiang Hu, Kun He, and John Hopcroft. Towards understanding learning representations: To what extent do different neural networks learn the same representation, 2018. ",
1356
+ "bbox": [
1357
+ 173,
1358
+ 272,
1359
+ 826,
1360
+ 315
1361
+ ],
1362
+ "page_idx": 11
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Bolei Zhou, Àgata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In Neural Information Processing Systems, 2014. ",
1367
+ "bbox": [
1368
+ 174,
1369
+ 325,
1370
+ 826,
1371
+ 367
1372
+ ],
1373
+ "page_idx": 11
1374
+ }
1375
+ ]
parse/train/ak06J5jNR4/ak06J5jNR4_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ak06J5jNR4/ak06J5jNR4_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJUYGxbCW/rJUYGxbCW.md ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PIXELDEFEND: LEVERAGING GENERATIVE MODELS TO UNDERSTAND AND DEFEND AGAINST ADVERSARIAL EXAMPLES
2
+
3
+ Yang Song
4
+ Stanford University
5
+ yangsong@cs.stanford.edu
6
+
7
+ Taesup Kim Université de Montréal taesup.kim@umontreal.ca
8
+
9
+ Sebastian Nowozin Microsoft Research nowozin@microsoft.com
10
+
11
+ Stefano Ermon Stanford University ermon@cs.stanford.edu
12
+
13
+ Nate Kushman
14
+ Microsoft Research
15
+ nkushman@microsoft.com
16
+
17
+ # ABSTRACT
18
+
19
+ Adversarial perturbations of normal images are usually imperceptible to humans, but they can seriously confuse state-of-the-art machine learning models. What makes them so special in the eyes of image classifiers? In this paper, we show empirically that adversarial examples mainly lie in the low probability regions of the training distribution, regardless of attack types and targeted models. Using statistical hypothesis testing, we find that modern neural density models are surprisingly good at detecting imperceptible image perturbations. Based on this discovery, we devised PixelDefend, a new approach that purifies a maliciously perturbed image by moving it back towards the distribution seen in the training data. The purified image is then run through an unmodified classifier, making our method agnostic to both the classifier and the attacking method. As a result, PixelDefend can be used to protect already deployed models and be combined with other model-specific defenses. Experiments show that our method greatly improves resilience across a wide variety of state-of-the-art attacking methods, increasing accuracy on the strongest attack from $63 \%$ to $84 \%$ for Fashion MNIST and from $32 \%$ to $70 \%$ for CIFAR-10.
20
+
21
+ # 1 INTRODUCTION
22
+
23
+ Recent work has shown that small, carefully chosen modifications to the inputs of a neural network classifier can cause the model to give incorrect labels (Szegedy et al., 2013; Goodfellow et al., 2014). This weakness of neural network models is particularly surprising because the modifications required are often imperceptible, or barely perceptible, to humans. As deep neural networks are being deployed in safety-critical applications such as self-driving cars (Amodei et al., 2016), it becomes increasingly important to develop techniques to handle these kinds of inputs.
24
+
25
+ Rethinking adversarial examples The existence of such adversarial examples seems quite surprising. A neural network classifier can get super-human performance (He et al., 2015) on clean test images, but will give embarrassingly wrong predictions on the same set of images if some imperceptible noise is added. What makes this noise so special to deep neural networks?
26
+
27
+ In this paper, we propose and empirically evaluate the following hypothesis: Even though they have very small deviations from clean images, adversarial examples largely lie in the low probability regions of the distribution that generated the data used to train the model. Therefore, they fool classifiers mainly due to covariate shift. This is analogous to training models on MNIST (LeCun et al., 1998) but testing them on Street View House Numbers (Netzer et al., 2011).
28
+
29
+ To study this hypothesis, we first need to estimate the probability density of the underlying training distribution. To this end, we leverage recent developments in generative models. Specifically, we choose a PixelCNN (van den Oord et al., 2016b) model for its state-of-the-art performance in modeling image distributions (van den Oord et al., 2016a; Salimans et al., 2017) and tractability of evaluating the data likelihood. In the first part of the paper, we show that a well-trained PixelCNN generative model is very sensitive to adversarial inputs, typically giving them several orders of magnitude lower likelihoods compared to those of training and test images.
30
+
31
+ Detecting adversarial examples An important step towards handling adversarial images is the ability to detect them. In order to catch any kind of threat, existing work has utilized confidence estimates from Bayesian neural networks (BNNs) or dropout (Li & Gal, 2017; Feinman et al., 2017). However, if their model is misspecified, the uncertainty estimates can be affected by covariate shift (Shimodaira, 2000). This is problematic in an adversarial setting, since the attacker might be able to make use of the inductive bias from the misspecified classifier to bypass the detection.
32
+
33
+ Protection against the strongest adversary requires a pessimistic perspective—our assumption is that the classifier cannot give reliable predictions for any input outside of the training distribution. Therefore, instead of relying on label uncertainties given by the classifier, we leverage statistical hypothesis testing to detect any input not drawn from the same distribution as training images.
34
+
35
+ Specifically, we first compute the probabilities of all training images under the generative model. Afterwards, for a novel input we compute the probability density at the input and evaluate its rank (in ascending order) among the density values of all training examples. Next, the rank can be used as a test statistic and gives us a $p$ -value for whether or not the image was drawn from the training distribution. This method is general and practical and we show that the $p$ -value enables us to detect adversarial images across a large number of different attacking methods with high probability, even when they differ from clean images by only a few pixel values.
36
+
37
+ Purifying adversarial examples Since adversarial examples are generated from clean images by adding imperceptible perturbations, it is possible to decontaminate them by searching for more probable images within a small distance of the original ones. By limiting the $L ^ { \infty }$ distance1, this image purification procedure generates only imperceptible modifications to the original input, so that the true labels of the purified images remain the same. The resulting purified images have higher probability under the training distribution, so we can expect that a classifier trained on the clean images will have more reliable predictions on the purified images. Moreover, for inputs which are not corrupted by adversarial perturbations the purified results remain in a high density region.
38
+
39
+ We use this intuition to build PixelDefend, an image purification procedure which requires no knowledge of the attack nor the targeted classifier. PixelDefend approximates the training distribution using a PixelCNN model. The constrained optimization problem of finding the highest probability image within an $\epsilon$ -ball of the original is computationally intractable, however, so we approximate it using a greedy decoding procedure. Since PixelDefend does not change the classification model, it can be combined with other adversarial defense techniques, including adversarial training (Goodfellow et al., 2014), to provide synergistic improvements. We show experimentally that PixelDefend performs exceptionally well in practice, leading to state-of-the art results against a large number of attacks, especially when combined with adversarial training.
40
+
41
+ Contributions Our main contributions are as follows:
42
+
43
+ • We show that generative models can be used for detecting adversarially perturbed images and observe that most adversarial examples lie in low probability regions.
44
+ • We introduce a novel family of methods for defending against adversarial attacks based on the idea of purification.
45
+ We show that a defensive technique from this family, PixelDefend, can achieve state-of-theart results on a large number of attacking techniques, improving the accuracy against the strongest adversary on the CIFAR-10 dataset from $32 \%$ to $70 \%$ .
46
+
47
+ # 2 BACKGROUND
48
+
49
+ # 2.1 ATTACKING METHODS
50
+
51
+ Given a test image $\mathbf { X }$ , an attacking method tries to find a small perturbation $\pmb { \Delta }$ with $\| \pmb { \Delta } \| _ { \infty } \le \epsilon _ { \mathrm { a t t a c k } }$ such that a classifier $f$ gives different predictions on $\mathbf { X } ^ { a d v } \triangleq \mathbf { X } + \Delta$ and $\mathbf { X }$ . Here colors in the image are represented by integers from 0 to 255. Each attack method is controlled by a configurable $\epsilon _ { \mathrm { a t t a c k } }$ parameter which sets the maximum perturbation allowed for each pixel in integer increments on the color scale. We only consider white-box attacks in this paper, i.e., the attack methods can get access to weights of the classifier. In the following, we give an introduction to all the attacking methods used in our experiments.
52
+
53
+ Random perturbation (RAND) Random perturbation is arguably the weakest attacking method, and we include it as the simplest baseline. Formally, the randomly perturbed image is given by
54
+
55
+ $$
56
+ { \bf X } ^ { a d v } = { \bf X } + \mathcal { U } ( - \lfloor \epsilon _ { \mathrm { a t t a c k } } \rfloor , \lfloor \epsilon _ { \mathrm { a t t a c k } } \rfloor ) ,
57
+ $$
58
+
59
+ where $\textstyle { \mathcal { U } } ( a , b )$ denotes an element-wise uniform distribution of integers from $[ a , b ]$
60
+
61
+ Fast gradient sign method (FGSM) Goodfellow et al. (2014) proposed the generation of malicious perturbations in the direction of the loss gradient $\nabla _ { \mathbf { X } } L ( \mathbf { X } , y )$ , where $L ( \mathbf { X } , y )$ is the loss function used to train the model. The adversarial examples are computed by
62
+
63
+ $$
64
+ { \bf X } ^ { a d v } = { \bf X } + \epsilon _ { \mathrm { a t t a c k } } \mathrm { s i g n } ( \nabla _ { \bf X } L ( { \bf X } , y ) ) .
65
+ $$
66
+
67
+ Basic iterative method (BIM) Kurakin et al. (2016) tested a simple variant of the fast gradient sign method by applying it multiple times with a smaller step size. Formally, the adversarial examples are computed as
68
+
69
+ $$
70
+ { \bf X } _ { 0 } ^ { a d v } = { \bf X } , { \bf X } _ { n + 1 } ^ { a d v } = \mathrm { C l i p } _ { \bf x } ^ { \epsilon _ { \mathrm { a t a c k } } } \left\{ { \bf X } _ { n } ^ { a d v } + \alpha \mathrm { s i g n } ( \nabla _ { \bf X } L ( { \bf X } _ { n } ^ { a d v } , y ) ) \right\} ,
71
+ $$
72
+
73
+ where $\mathrm { C l i p } _ { \mathbf { X } } ^ { \epsilon _ { \mathrm { a t t a c k } } }$ means we clip the resulting image to be within the $\epsilon _ { \mathrm { a t t a c k } }$ -ball of $\mathbf { X }$ . Following Kurakin et al. (2016), we set $\alpha = 1$ and the number of iterations to be $\left\lfloor \operatorname* { m i n } ( \epsilon _ { \mathrm { a t t a c k } } + 4 , 1 . 2 5 \epsilon _ { \mathrm { a t t a c k } } ) \right\rfloor$ This method is also called Projected Gradient Descent (PGD) in Madry et al. (2017).
74
+
75
+ DeepFool DeepFool (Moosavi-Dezfooli et al., 2016) works by iteratively linearizing the decision boundary and finding the closest adversarial examples with geometric formulas. However, compared to FGSM and BIM, this method is much slower in practice. We clip the resulting image so that its perturbation is no larger than $\epsilon _ { \mathrm { a t t a c k } }$ .
76
+
77
+ Carlini-Wagner (CW) Carlini & Wagner (2017b) proposed an efficient optimization objective for iteratively finding the adversarial examples with the smallest perturbations. As with DeepFool, we clip the output image to make sure the perturbations are limited by $\epsilon _ { \mathrm { a t t a c k } }$ .
78
+
79
+ # 2.2 DEFENSE METHODS
80
+
81
+ Current defense methods generally fall into two classes. They either (1) change the network architecture or training procedure to make it more robust, or (2) modify adversarial examples to reduce their harm. In this paper, we take the following defense methods into comparison.
82
+
83
+ Adversarial training This defense works by generating adversarial examples on-the-fly during training and including them into the training set. FGSM adversarial examples are the most commonly used ones for adversarial training, since they are fast to generate and easy to train. Although training with higher-order adversarial examples (e.g., BIM) has witnessed some success in small datasets (Madry et al., 2017), other work has reported failure in larger ones (Kurakin et al., 2016). We consider both variants in our work.
84
+
85
+ Label smoothing In contrast to adversarial training, label smoothing (Warde-Farley & Goodfellow, 2016) is agnostic to the attack method. It converts one-hot labels to soft targets, where the correct class has value $1 - \epsilon$ while the other (wrong) classes have value $\epsilon / ( N - \bar { 1 } )$ . Here $\epsilon$ is a small constant and $N$ is the number of classes. When the classifier is re-trained on these soft targets rather than the one-hot labels it is significantly more robust to adversarial examples. This method was originally devised to achieve a similar effect as defensive distillation (Papernot et al., 2016c), and their performance is comparable. We didn’t compare to defensive distillation since it is more computationally expensive.
86
+
87
+ Feature squeezing Feature squeezing $\mathrm { { X u } }$ et al., 2017a) is both attack-agnostic and modelagnostic. Given any input image, it first reduces the color range from [0, 255] to a smaller value, and then smooths the image with a median filter. The resulting image is then passed to a classifier for predictions. Since this technique does not depend on attacking methods and classifiers, it can be combined with other defensive methods such as adversarial training, similar to PixelDefend.
88
+
89
+ # 2.3 EXPERIMENT METHODOLOGIES
90
+
91
+ Datasets Two datasets are used in our experiments: Fashion MNIST (Xiao et al., 2017) and CIFAR-10 (Krizhevsky et al.). Fashion MNIST was designed as a more difficult, but drop-in replacement for MNIST (LeCun et al., 1998). Thus it shares all of MNIST’s characteristics, i.e., 60, 000 training examples and 10, 000 test examples where each example is a $2 8 \times 2 8$ gray-scale image associated with a label from 1 of 10 classes. CIFAR-10 is another dataset that is also broadly used for image classification tasks. It consists of 60, 000 examples, where 50, 000 are used for training and 10, 000 for testing, and each sample is a $3 2 \times 3 2$ color image associated with 1 of 10 classes.
92
+
93
+ Models We examine two state-of-the-art deep neural network image classifiers: ResNet (He et al., 2016) and VGG (Simonyan & Zisserman, 2014). The architectures are described in Appendix C.
94
+
95
+ PixelCNN The PixelCNN (van den Oord et al., 2016b; Salimans et al., 2017) is a generative model with tractable likelihood especially designed for images. The model defines the joint distribution over all pixels by factorizing it into a product of conditional distributions.
96
+
97
+ $$
98
+ p _ { \mathrm { C N N } } ( \mathbf { X } ) = \prod _ { i } p _ { \mathrm { C N N } } ( x _ { i } | x _ { 1 : ( i - 1 ) } ) .
99
+ $$
100
+
101
+ The pixel dependencies are in raster scan order (row by row and column by column within each row). We train the PixelCNN model for each dataset using only clean (not perturbed) image samples. In Appendix D, we provide clean sample images from the datasets as well as generated image samples from PixelCNN (see Figure 8 and Figure 9).
102
+
103
+ As a convenient representation of $p _ { \mathrm { C N N } } ( \mathbf { X } )$ for images, we also use the concept of bits per dimension, which is defined as $\mathrm { B P D } ( \mathbf { X } ) \triangleq - \log p _ { \mathrm { C N N } } ( \mathbf { X } ) / ( I \times J \times K \times \log 2 )$ for an image of resolution $I \times J$ and $K$ channels.
104
+
105
+ # 3 DETECTING ADVERSARIAL EXAMPLES
106
+
107
+ Adversarial images are defined with respect to a specific classifier. Intuitively, a maliciously perturbed image that causes one network to give a highly confident incorrect prediction might not fool another network. However, recent work (Papernot et al., 2016a; Liu et al., 2016; Tramèr et al., 2017) has shown that adversarial images can transfer across different classifiers. This indicates that there are some intrinsic properties of adversarial examples that are independent of classifiers.
108
+
109
+ One possibility is that, compared to normal training and test images, adversarial examples have much lower probability densities under the image distribution. As a result, classifiers do not have enough training instances to get familiarized with this part of the input space. The resulting prediction task suffers from covariate shift, and since all of the classifiers are trained on the same dataset, this covariate shift will affect all of them similarly and will likely lead to misclassifications.
110
+
111
+ To empirically verify this hypothesis, we train a PixelCNN model on the CIFAR-10 (Krizhevsky & Hinton, 2009) dataset and use its log-likelihood as an approximation to the true underlying probability density. The adversarial examples are generated with respect to a ResNet (He et al., 2016), which gets $92 \%$ accuracy on the test images. We generate adversarial examples from RAND, FGSM, BIM, DeepFool and CW methods with $\epsilon _ { \mathrm { a t t a c k } } = 8$ . Note that as shown in Figure 1, the resulting adversarial perterbations are barely perceptible to humans.
112
+
113
+ ![](images/f08adab06239984a46d4b77ee6fabaca7d40d3ac138ce08f629e31bcb656bf1d.jpg)
114
+ Figure 1: An image sampled from the CIFAR-10 test dataset and various adversarial examples generated from it. The text above shows the attacking method while the text below shows the predicted label of the ResNet.
115
+
116
+ ![](images/7e219f80073784145f4f5b8e698056f47d0e1bc7934c8580b00b3f76bfe5f436.jpg)
117
+ Figure 2: (a) Likelihoods of different perturbed images with $\epsilon _ { \mathrm { a t t a c k } } = 8$ . (b) Test errors of a ResNet on different adversarial examples.
118
+
119
+ However, the distribution of log-likelihoods show considerable difference between perturbed images and clean images. As summarized in Figure 2, even a $3 \%$ perturbation can lead to systematic decrease of log-likelihoods. Note that the PixelCNN model has no information about the attacking methods for producing those adversarial examples, and no information about the ResNet model either.
120
+
121
+ We can see from Figure 3(b) that random perturbations also push the images outside of the training distribution, even though they do not have the same adverse effect on accuracy. We believe this is due to an inductive bias that is shared by many neural network models but not inherent to all models, as discussed further in Appendix A.
122
+
123
+ Besides qualitative analysis, the log-likelihoods from PixelCNN also provide a quantitative measure for detecting adversarial examples. Combined with permutation test (Efron & Tibshirani, 1994), we can provide a uncertainty value for each input about whether it comes from the training distribution or not. Specifically, let the input $\mathbf { X } ^ { \prime } \overset { \mathrm { i . i . d . } } { \sim } q ( \mathbf { X } )$ and training images $\mathbf { X } _ { 1 } , \cdots , \mathbf { X } _ { N } \overset { \mathrm { i . i . d . } } { \sim } p ( \mathbf { X } )$ . The null hypothesis is $H _ { 0 } : p ( \mathbf { X } ) = { \\overset { \cdot } { q } } ( \mathbf { X } )$ while the alternative is $H _ { 1 } : p ( \mathbf { X } ) \neq q ( \mathbf { X } )$ . We first compute the probabilities give by a PixelCNN for $\mathbf { X } ^ { \prime }$ and $\mathbf { X } _ { 1 } , \cdots , \mathbf { X } _ { N }$ , then use the rank of $p _ { \mathrm { C N N } } ( \mathbf { X } ^ { \prime } )$ in $\{ p _ { \mathrm { C N N } } ( \mathbf { X } _ { 1 } ) , \cdots , \bar { p } _ { \mathrm { C N N } } ( \mathbf { \bar { X } } _ { N } ) \}$ as our test statistic:
124
+
125
+ $$
126
+ T = T ( \mathbf { X } ^ { \prime } ; \mathbf { X } _ { 1 } , \cdots , \mathbf { X } _ { N } ) \triangleq \sum _ { i = 1 } ^ { N } \mathbb { I } [ p _ { \mathrm { C N N } } ( \mathbf { X } _ { i } ) \leq p _ { \mathrm { C N N } } ( \mathbf { X } ^ { \prime } ) ] .
127
+ $$
128
+
129
+ Here $\mathbb { I } [ \cdot ]$ is the indicator function, which equals 1 when the condition inside brackets is true and otherwise equals 0. Let $T _ { i } = T ( { \bf X } _ { i } ; { \bf X } _ { 1 } , \cdot \cdot \cdot , { \bf X } _ { i - 1 } , { \bf X } ^ { \prime } , { \bf X } _ { i + 1 } , \cdot \cdot \cdot , { \bf X } _ { N } )$ . According to the permutation principle, $T _ { i }$ has the same distribution as $T$ under the null hypothesis $H _ { 0 }$ . We can therefore compute the $p$ -value exactly by
130
+
131
+ $$
132
+ p = \frac { 1 } { N + 1 } \left( \sum _ { i = 1 } ^ { N } \mathbb { I } [ T _ { i } \leq T ] + 1 \right) = \frac { T + 1 } { N + 1 } = \frac { 1 } { N + 1 } \left( \sum _ { i = 1 } ^ { N } \mathbb { I } [ p _ { \mathrm { C N N } } ( \mathbf { X } _ { i } ) \leq p _ { \mathrm { C N N } } ( \mathbf { X } ^ { \prime } ) ] + 1 \right) .
133
+ $$
134
+
135
+ ![](images/841fb2606539c7e4c79789b143754a98d8357f97e4cec03ca413c7385fcfd8ef.jpg)
136
+ Figure 3: The distribution of $p$ -values under the PixelCNN generative model. The inputs are more outside of the training distribution if their $p$ -value distribution has a larger deviation from uniform. Here “clean” means clean test images. From definition, the $p$ -values of clean training images have a uniform distribution.
137
+
138
+ ![](images/84c36078978cc3206f8239f356b8f2bdca0f5fa11b8e53dcc42b5f50501efca7.jpg)
139
+ Figure 4: An example of how purification works. The above row shows an image from CIFAR10 test set and various attacking images generated from it. The bottom row shows corresponding purified images. The text below each image is the predicted label given by our ResNet.
140
+
141
+ For CIFAR-10, we provide histograms of $p$ -values for different adversarial examples in Figure 3 and ROC curves of using $p$ -values for detection in Figure 6(a). Note that in the ideal case, the $p$ -value distribution of clean test images should be uniform. The method works especially well for attacks producing larger perturbations, such as RAND, FGSM, and BIM. For DeepFool and CW adversarial examples, we can also observe significant deviations from uniform. As shown in Figure 3(a), the $p$ - value distribution of test images are almost uniform, indicating good generalization of the PixelCNN model.
142
+
143
+ # 4 PURIFYING IMAGES WITH PIXELDEFEND
144
+
145
+ In many circumstances, simply detecting adversarial images is not sufficient. It is often critical to be able to correctly classify images despite such adversarial modifications. In this section we introduce PixelDefend, a specific instance of a new family of defense methods that significantly improves the state-of-the-art performance on advanced attacks, while simultaneously performing well against all other attacks.
146
+
147
+ # Algorithm 1 PixelDefend
148
+
149
+ Input: Image X, Defense parameter $\epsilon _ { \mathrm { d e f e n d } }$ , Pre-trained PixelCNN model $p _ { \mathrm { C N N } }$
150
+ Output: Purified Image $\mathbf { X } ^ { * }$
151
+ 1: $\bar { \mathbf { X } } ^ { * } \mathbf { X }$
152
+ 2: for each row $i$ do
153
+ 3: for each column $j$ do
154
+ 4: for each channel $k$ do
155
+ 5: $x \gets \mathbf { X } [ i , j , k ]$
156
+ 6: Set feasible range $R \gets [ \mathrm { m a x } ( x - \epsilon _ { \mathrm { d e f e n d } } , 0 ) , \mathrm { m i n } ( x + \epsilon _ { \mathrm { d e f e n d } } , 2 5 5 ) ]$
157
+ 7: Compute the 256-way softmax $p _ { \mathrm { C N N } } ( \mathbf { X } ^ { * } )$ .
158
+ 8: Update $\mathbf { X } ^ { * } [ i , j , k ] \gets \mathrm { a r g } \operatorname* { m a x } _ { z \in R } p _ { \mathrm { C N N } } [ i , j , k , z ]$
159
+ 9: end for
160
+ 10: end for
161
+ 11: end for
162
+
163
+ ![](images/9cd8d3d299ff4ff7eed038f5178135903d715fc07f90ba51f32ac6907fe381b5.jpg)
164
+ Figure 5: The bits-per-dimension distributions of purified images from FGSM adversarial examples. We tested two purification methods, L-BFGS-B and greedy decoding, the latter of which is used in PixelDefend. A good purification method should give images that have lower bits per dimension compared to FGSM images and ideally similar bits per dimension compared to clean ones.
165
+
166
+ # 4.1 RETURNING IMAGES TO THE TRAINING DISTRIBUTION
167
+
168
+ The basic idea behind PixelDefend is to purify input images, by making small changes to them in order to move them back towards the training distribution, i.e., move the images towards a highprobability region. We then classify the purified image using any existing classifier. As the example in Figure 4 shows, the purified images can usually be classified correctly.
169
+
170
+ Formally, we have training image distribution $p ( \mathbf { X } )$ , and input image $\mathbf { X }$ of resolution $I \times J$ with $\mathbf { X } [ i , j , k ]$ the pixel at location $( i , j )$ and channel $k \in \{ 1 , \cdots , C \}$ . We wish to find an image $\mathbf { X } ^ { * }$ that maximizes $p ( \mathbf { X } )$ subject to the constraint that $\mathbf { X } ^ { * }$ is within the $\epsilon _ { \mathrm { d e f e n d } }$ -ball of $\mathbf { X }$ :
171
+
172
+ $$
173
+ \begin{array} { c } { \displaystyle { \operatorname* { m a x } _ { \mathbf { X } ^ { * } } p ( \mathbf { X } ^ { * } ) } } \\ { \mathrm { s . t . } \quad \left\| \mathbf { X } ^ { * } - \mathbf { X } \right\| _ { \infty } \leq \epsilon _ { \mathrm { d e f e n d } } . } \end{array}
174
+ $$
175
+
176
+ Here $\epsilon _ { \mathrm { d e f e n d } }$ reflects a trade-off, since large $\epsilon _ { \mathrm { d e f e n d } }$ may change the meaning of $\mathbf { X }$ while small ϵdefend may not be sufficient for returning $\mathbf { X }$ to the correct distribution. In practice, we choose ϵdefend to be some value that overestimates $\epsilon _ { \mathrm { a t t a c k } }$ but still keeps high accuracies on clean images. As in Section 3, we approximate $p ( \mathbf { X } )$ with the PixelCNN distribution $p _ { \mathrm { C N N } } ( \mathbf { X } )$ , which is trained on the same training set as the classifier.
177
+
178
+ However, exact constrained optimization of $p _ { \mathrm { C N N } } ( \mathbf { X } )$ is computationally intractable. Surprisingly, even gradient-based optimization faces great difficulty on that problem. We found that one advanced methods in gradient-based constrained optimization, L-BFGS-B (Byrd et al., 1995) (we use the scipy implementation based on Zhu et al. (1997)), actually decreases $p _ { \mathrm { C N N } } ( \mathbf { X } )$ for most random initializations within the $\epsilon _ { \mathrm { d e f e n d } }$ -ball.
179
+
180
+ For efficient optimization, we instead use a greedy technique described in Algorithm 1, which is similar to the greedy decoding process typically used in sequence-to-sequence models (Sutskever et al., 2014). The method is similar to generating images from PixelCNN, with the additional constraint that the generated image should be within an $\epsilon _ { \mathrm { d e f e n d } }$ -ball of a perturbed image. As an autoregressive model, PixelCNN is slow in image generation. Nonetheless, by caching redundant calculation, Ramachandran et al. (2017) proposes a very fast generation algorithm for PixelCNN. In our experiments, adoption of Ramachandran et al. (2017)’s method greatly increases the speed of PixelDefend. For CIFAR-10 images, PixelDefend on average processes 3.6 images per second on one NVIDIA TITAN Xp GPU.
181
+
182
+ ![](images/9541592e4ea68f210ba02c6038cd122b98e392a4788d54a8ad822f5b222e631c.jpg)
183
+ Figure 6: ROC curves showing the efficacy of using $p$ -values as scores to detect adversarial examples. For computing the ROC, we assign negative labels to training images and positive labels to adversarial images (or clean test images). (a) Original adversarial examples. (b) Purified adversarial examples after PixelDefend.
184
+
185
+ To show the effectiveness of this greedy method compared to L-BFGS-B, we take the first 10 images from CIFAR-10 test set, attack them by FGSM with $\epsilon _ { \mathrm { a t t a c k } } = 8$ , and purify them with L-BFGS-B and PixelDefend respectively. We used random start points for L-BFGS-B and repeated 100 times for each image. As depicted in Figure 5, most L-BFGS-B attempts failed at minimizing the bits per dimension of FGSM adversarial examples. Because of the rugged gradient landscape of PixelCNN, L-BFGS-B even results in images that have lower probabilities. In contrast, PixelDefend works much better in increasing the probabilities of purified images, although their probabilities are still lower compared to clean ones.
186
+
187
+ In Figure 6 and Figure 7, we empirically show that after PixelDefend, purified images are more likely to be drawn from the training distribution. Specifically, Figure 6 shows that the detecting power of $p$ -values greatly decreases for purified images. For DeepFool and CW examples, purification makes them barely distinguishable from normal samples of the data distribution. This is also manifested by Figure 7, as the $p$ -value distributions of purified examples are closer to uniform. Visually, purified images indeed look much cleaner than adversarially perturbed ones. In Appendix E, we provide sampled purified images from Fashion MNIST and CIFAR-10.
188
+
189
+ # 4.2 ADAPTIVE PIXELDEFEND
190
+
191
+ One concern with the approach of purifying images is what happens when we purify a clean image. More generally, we will never know $\epsilon _ { \mathrm { a t t a c k } }$ and if we set $\epsilon _ { \mathrm { d e f e n d } }$ too large for a given attack, then we will modify all images to become the mode image, which would mostly result in misclassifications. One way to avoid this problem is to tune $\epsilon _ { \mathrm { d e f e n d } }$ adaptively based on the probability of the input image under the generative model. In this way, images that already have high probability under the training distribution would have a very low $\epsilon _ { \mathrm { d e f e n d } }$ preventing significant modification, while low probability images would have a high $\epsilon _ { \mathrm { d e f e n d } }$ thus allowing significant modifications. We implemented a very simple thresholding version of this, which sets $\epsilon _ { \mathrm { d e f e n d } }$ to zero if the input image probability is below a threshold value, and otherwise leaves it fixed at a manually chosen setting. In practice, we set this threshold based on knowledge of the set of possible attacks, so strictly speaking, the adaptive version of our technique is no longer attack-agnostic.
192
+
193
+ ![](images/d8ac12f892812f533f4b6b1ae8304e24aeb92180d4e2963b938837985ba1b75c.jpg)
194
+ Figure 7: The distributions of $p$ -values under the PixelCNN model after PixelDefend purification.
195
+
196
+ Table 1: Fashion MNIST $( \epsilon _ { \mathrm { a t t a c k } } = 8 / 2 5 $ , $\epsilon _ { \mathrm { d e f e n d } } = 3 2$ )
197
+
198
+ <table><tr><td>NETWORK</td><td>TRAINING TECHNIQUE</td><td>CLEAN</td><td>RAND</td><td>FGSM</td><td>BIM</td><td>DEEP FOOL</td><td>Cw</td><td>STRONGEST ATTACK</td></tr><tr><td>ResNet</td><td>Normal</td><td>93/93</td><td>89/71</td><td>38/24</td><td>00/00</td><td>06/06</td><td>20/01</td><td>00/00</td></tr><tr><td>VGG</td><td>Normal</td><td>92/92</td><td>91/87</td><td>73/58</td><td>36/08</td><td>49/14</td><td>43/23</td><td>36/08</td></tr><tr><td rowspan="5">ResNet</td><td>Adversarial FGSM</td><td>93/93</td><td>92/89</td><td>85/85</td><td>51/00</td><td>63/07</td><td>67/21</td><td>51/00</td></tr><tr><td>Adversarial BIM</td><td>92/91</td><td>92/91</td><td>84/79</td><td>76/63</td><td>82/72</td><td>81/70</td><td>76/63</td></tr><tr><td>Label Smoothing</td><td>93/93</td><td>91/76</td><td>73/45</td><td>16/00</td><td>29/06</td><td>33/14</td><td>16/00</td></tr><tr><td>Feature Squeezing</td><td>84/84</td><td>84/70</td><td>70/28</td><td>56/25</td><td>83/83</td><td>83/83</td><td>56/25</td></tr><tr><td>Adversarial FGSM + Feature Squeezing</td><td>88/88</td><td>87/82</td><td>80/77</td><td>70/46</td><td>86/82</td><td>84/85</td><td>70/46</td></tr><tr><td>ResNet</td><td>Normal +PixelDefend</td><td>88/88</td><td>88/89</td><td>85/74</td><td>83/76</td><td>87/87</td><td>87/87</td><td>83/74</td></tr><tr><td>VGG</td><td>Normal+PixelDefend</td><td>89/89</td><td>89/89</td><td>87/82</td><td>85/83</td><td>88/88</td><td>88/88</td><td>85/82</td></tr><tr><td rowspan="2">ResNet</td><td>Adversarial FGSM +PixelDefend</td><td>90/89</td><td>91/90</td><td>88/82</td><td>85/76</td><td>90/88</td><td>89/88</td><td>85/76</td></tr><tr><td>Adversarial FGSM +Adaptive PixelDefend</td><td>91/91</td><td>91/91</td><td>88/88</td><td>85/84</td><td>89/90</td><td>89/84</td><td>85/84</td></tr></table>
199
+
200
+ # 4.3 PIXELDEFEND RESULTS
201
+
202
+ We carried out a comprehensive set of experiments to test various defenses versus attacks. Detailed information on experimental settings is provided in Appendix B. All experimental results are summarized in Tab. 1 and Tab. 2. In the upper part of the tables, we show how the various baseline defenses fare against each of the attacks, while in the lower part of the tables we show how our PixelDefend technique works. Each table cell contains accuracies on adversarial examples generated with different $\epsilon _ { \mathrm { a t t a c k } }$ . More specifically, for Fashion MNIST (Tab. 1), we tried $\epsilon _ { \mathrm { a t t a c k } } = 8$ and 25. The cells in Tab. 1 is formated as $x / y$ , where $x$ denotes the accuracy $( \% )$ on images attacked with $\epsilon _ { \mathrm { a t t a c k } } = 8$ , while $y$ denotes the accuracy when $\epsilon _ { \mathrm { a t t a c k } } = 2 5 $ . For CIFAR-10 (Tab. 2), we tried $\epsilon _ { \mathrm { a t t a c k } } = 2$ , 8, and 16, and the cells are formated in a similar way. We use the same $\epsilon _ { \mathrm { d e f e n d } }$ for different ϵattack’s to show that PixelDefend is insensitive to ϵattack.
203
+
204
+ From the tables we observe that adversarial training successfully defends against the basic FGSM attack, but cannot defend against the more advanced ones. This is expected, as training on simple adversarial examples does not guarantee robustness to more complicated attacking techniques. Consistent with Madry et al. (2017), adversarial training with BIM examples is more successful at preventing a wider spectrum of attacks. For example, it improves the accuracy on strongest attack from $2 \%$ to $32 \%$ on CIFAR-10 when $\epsilon _ { \mathrm { a t t a c k } } = 8$ . But the numbers are still not ideal even with respect to BIM attack itself. As in Tab. 2, it only gets $6 \%$ on BIM and $8 \%$ on CW when $\epsilon _ { \mathrm { a t t a c k } } = 1 6$ . We also observe that label smoothing, which learns smoothed predictions so that the gradient $\nabla _ { \mathbf { X } } L ( \mathbf { X } , y )$ becomes very small, is only effective against simple FGSM attack. Model-agnostic methods, such as feature squeezing, can be combined with other defenses for strengthened performance. We observe that combining it with adversarial training indeed makes it more robust. Actually, Tab. 1 and Tab. 2 show that feature squeezing combined with adversarial training dominates using feature squeezing along in all settings. It also gets good performance on DeepFool and CW attacks. However, for iterative attacks with larger perturbations, i.e., BIM, feature squeezing performs poorly. On CIFAR-10, it only gets $2 \%$ and $0 \%$ accuracy on BIM with $\epsilon _ { \mathrm { a t t a c k } } = 8$ and 16 respectively.
205
+
206
+ Table 2: CIFAR-10 $\mathcal { C } _ { \mathrm { a t t a c k } } = 2 / 8 / 1 6$ , $\epsilon _ { \mathrm { d e f e n d } } = 1 6$ )
207
+
208
+ <table><tr><td>NETWORK</td><td>TRAINING TECHNIQUE</td><td>CLEAN</td><td>RAND</td><td>FGSM</td><td>BIM</td><td>DEEP FOOL</td><td>CW</td><td>STRONGEST ATTACK</td></tr><tr><td>ResNet</td><td>Normal</td><td>92/92/92</td><td>92/87/76</td><td>33/15/11</td><td>10/00/00</td><td>12/06/06</td><td>07/00/00</td><td>07/00/00</td></tr><tr><td>VGG</td><td>Normal</td><td>89/89/89</td><td>89/88/80</td><td>60/46/30</td><td>44/02/00</td><td>57/25/11</td><td>37/00/00</td><td>37/00/00</td></tr><tr><td rowspan="5">ResNet</td><td>Adversarial FGSM</td><td>91/91/91</td><td>90/88/84</td><td>88/91/91</td><td>24/07/00</td><td>45/00/00</td><td>20/00/07</td><td>20/00/00</td></tr><tr><td>Adversarial BIM</td><td>87/87/87</td><td>87/87/86</td><td>80/52/34</td><td>74/32/06</td><td>79/48/25</td><td>76/42/08</td><td>74/32/06</td></tr><tr><td>Label Smoothing</td><td>92/92/92</td><td>91/88/77</td><td>73/54/28</td><td>59/08/01</td><td>56/20/10</td><td>30/02/02</td><td>30/02/01</td></tr><tr><td>Feature Squeezing</td><td>84/84/84</td><td>83/82/76</td><td>31/20/18</td><td>13/00/00</td><td>75/75/75</td><td>78/78/78</td><td>13/00/00</td></tr><tr><td>Adversarial FGSM + Feature Squeezing</td><td>86/86/86</td><td>85/84/81</td><td>73/67/55</td><td>55/02/00</td><td>85/85/85</td><td>83/83/83</td><td>55/02/00</td></tr><tr><td>ResNet</td><td>Normal+PixelDefend</td><td>85/85/88</td><td>82/83/84</td><td>73/46/24</td><td>71/46/25</td><td>80/80/80</td><td>78/78/78</td><td>71/46/24</td></tr><tr><td>VGG</td><td>Normal+PixelDefend</td><td>82/82/82</td><td>82/82/84</td><td>80/62/52</td><td>80/61/48</td><td>81/76/76</td><td>81/79/79</td><td>80/61/48</td></tr><tr><td rowspan="2">ResNet</td><td>Adversarial FGSM +PixelDefend</td><td>88/88/86</td><td>86/86/87</td><td>81/68/67</td><td>81/69/56</td><td>85/85/85</td><td>84/84/84</td><td>81/69/56</td></tr><tr><td>Adversarial FGSM +Adaptive PixelDefend</td><td>90/90/90</td><td>86/87/87</td><td>81/70/67</td><td>81/70/56</td><td>82/81/82</td><td>81/80/81</td><td>81/70/56</td></tr></table>
209
+
210
+ PixelDefend, our model-agnostic and attack-agnostic method, performs well on different classifiers (ResNet and VGG) and different attacks without modification. In addition, we can see that augmenting basic adversarial training with PixelDefend can sometimes double the accuracies. We hypothesize that the purified images from PixelDefend are still not perfect, and adversarially trained networks have more toleration for perturbations. This also corroborates the plausibility and benefit of combining PixelDefend with other defenses.
211
+
212
+ Furthermore, PixelDefend can simultaneously obtain accuracy above $70 \%$ for all other attacking techniques, while ensuring that performance on clean images only declines slightly. Models with PixelDefend consistently outperform other methods with respect to the strongest attack. On Fashion MNIST, PixelDefend methods improve the accuracy on strongest attack from $76 \%$ to $8 5 \%$ and $63 \%$ to $84 \%$ . On CIFAR-10, the improvements are even more significant, i.e., from $74 \%$ to $81 \%$ , $32 \%$ to $70 \%$ and $6 \%$ to $56 \%$ , for $\epsilon _ { \mathrm { a t t a c k } } = 2$ , 8, and 16 respectively. In a security-critical scenario, the weakest part of a system determines the overall reliability. Therefore, the outstanding performance of PixelDefend on the strongest attack makes it a valuable and useful addition for improving AI security.
213
+
214
+ # 4.4 END-TO-END ATTACK OF PIXELDEFEND
215
+
216
+ A natural question that arises is whether we can generate a new class of adversarial examples targeted specifically at the combined PixelDefend architecture of first purifying the image and then using an existing classifier to predict the label of the purified image. We have three pieces of empirical evidence to believe that such adversarial examples are hard to find in general. First, we attempted to apply the iterative BIM attack to an end-to-end differentiable version of PixelDefend generated by unrolling the PixelCNN purification process. However we found the resulting network was too deep and led to problems with vanishing gradients (Bengio et al., 1994), resulting in adversarial images that were identical to the original images. Moreover, attacking the whole system is very time consuming. Empirically, it took about 10 hours to generate 100 attacking images with one TITAN $\mathrm { X p }$ GPU which failed to fool PixelDefend. Secondly, we found the optimization problem in Eq. (4.1) was not amenable to gradient descent, as indicated in Figure 5. This makes gradient-based attacks especially difficult. Last but not least, the generative model and classifier are trained separately and have independent parameters. Therefore, the perturbation direction that leads to higher probability images has a smaller correlation with the perturbation direction that results in misclassification. Accordingly, it is harder to find adversarial examples that can fool both of them together. However, we will open source our codes and look forward to any possible attack from the community.
217
+
218
+ # 5 RELATED WORK
219
+
220
+ Most recent work on detecting adversarial examples focuses on adding an outlier class detection module to the classifier, such as Grosse et al. (2017), Gong et al. (2017) and Metzen et al. (2017). Those methods require the classification model to be changed, and are thus not model-agnostic. Feinman et al. (2017) also presents a detection method based on kernel density estimation and Bayesian neural network uncertainty. However, Carlini & Wagner (2017a) shows that all those methods can be bypassed.
221
+
222
+ Grosse et al. (2017) also studied the distribution of adversarial examples from a statistical testing perspective. They reported the same discovery that adversarial examples are outside of the training distribution. However, our work is different from theirs in several important aspects. First, the kernel-based two-sample test used in their paper needs a large number of suspicious inputs, while our method only requires one data point. Second, they mainly tested on first-order methods such as FGSM and JSMA (Papernot et al., 2016b). We show the efficacy of PixelCNN on a wider range of attacking methods (see Figure 3), including both first-order and iterative methods. Third, we further demonstrate that random perturbed inputs are also outside of the training distribution.
223
+
224
+ Some other work has focused on modifying the classifier architecture to increase its robustness, e.g., Gu & Rigazio (2014), Cisse et al. (2017) and Nayebi & Ganguli (2017). Although they have witnessed some success, such modifications of models might limit their representative power and are also not model-agnostic.
225
+
226
+ Our basic idea of moving points to higher-density regions is also present in other machine learning methods not specifically designed for handling adversarial data; for example, the manifold denoising method of Hein & Maier (2007), the direct density gradient estimation of Sasaki et al. (2014), and the denoising autoencoders of Vincent et al. (2008) all move data points from low to high-density regions. In the future some of these methods could be adapted to amortize the purification process directly, that is, to learn a purification network.
227
+
228
+ # 6 CONCLUSION
229
+
230
+ In this work, we discovered that state-of-the-art neural density models, e.g., PixelCNN, can detect small perturbations with high sensitivity. This sensitivity broadly exists for a large number of perturbations generated with different methods. An interesting fact is that PixelCNN is only sensitive in one direction—it is relatively easy to detect perturbations that lead to lower probabilities rather than higher probabilities.
231
+
232
+ Based on the sensitivity of PixelCNN, we utilized statistical hypothesis testing to verify that adversarial examples lie outside of the training distribution. With the permutation test, we give exact $p$ -values which can be used as a uncertainty measure for detecting outlier perturbations.
233
+
234
+ Furthermore, we make use of the sensitivity of generative models to explore the idea of purifying adversarial examples. We propose the PixelDefend algorithm, and experimentally show that returning adversarial examples to high probability regions of the training distribution can significantly decrease their damage to classifiers. Different from many other defensive techniques, PixelDefend is model-agnostic and attack-agnostic, which means it can be combined with other defenses to improve robustness without modifying the classification model. As a result PixelDefend is a practical and effective defense against adversarial inputs.
235
+
236
+ # REFERENCES
237
+
238
+ Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mané. Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016.
239
+
240
+ Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166, 1994.
241
+
242
+ Richard H Byrd, Peihuang Lu, Jorge Nocedal, and Ciyou Zhu. A limited memory algorithm for bound constrained optimization. SIAM Journal on Scientific Computing, 16(5):1190–1208, 1995.
243
+
244
+ Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. arXiv preprint arXiv:1705.07263, 2017a.
245
+
246
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017b.
247
+
248
+ Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In International Conference on Machine Learning, pp. 854–863, 2017.
249
+
250
+ Bradley Efron and Robert J Tibshirani. An introduction to the bootstrap. CRC press, 1994.
251
+
252
+ Reuben Feinman, Ryan R Curtin, Saurabh Shintre, and Andrew B Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017.
253
+
254
+ Zhitao Gong, Wenlu Wang, and Wei-Shinn Ku. Adversarial and clean data are not twins. arXiv preprint arXiv:1704.04960, 2017.
255
+
256
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
257
+
258
+ Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (statistical) detection of adversarial examples. arXiv preprint arXiv:1702.06280, 2017.
259
+
260
+ Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014.
261
+
262
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
263
+
264
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
265
+
266
+ Matthias Hein and Markus Maier. Manifold denoising. In Advances in neural information processing systems, pp. 561–568, 2007.
267
+
268
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
269
+
270
+ Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/\~kriz/cifar.html.
271
+
272
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016.
273
+
274
+ Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
275
+
276
+ Yingzhen Li and Yarin Gal. Dropout inference in bayesian neural networks with alpha-divergences. arXiv preprint arXiv:1703.02914, 2017.
277
+
278
+ Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. arXiv preprint arXiv:1611.02770, 2016.
279
+
280
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
281
+
282
+ Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017.
283
+
284
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2574–2582, 2016.
285
+
286
+ Aran Nayebi and Surya Ganguli. Biologically inspired protection of deep networks from adversarial attacks. arXiv preprint arXiv:1703.09202, 2017.
287
+
288
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011.
289
+
290
+ Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016a.
291
+
292
+ Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In Security and Privacy (EuroS&P), 2016 IEEE European Symposium on, pp. 372–387. IEEE, 2016b.
293
+
294
+ Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016c.
295
+
296
+ Prajit Ramachandran, Tom Le Paine, Pooya Khorrami, Mohammad Babaeizadeh, Shiyu Chang, Yang Zhang, Mark A Hasegawa-Johnson, Roy H Campbell, and Thomas S Huang. Fast generation for convolutional autoregressive models. arXiv preprint arXiv:1704.06001, 2017.
297
+
298
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017.
299
+
300
+ Hiroaki Sasaki, Aapo Hyvärinen, and Masashi Sugiyama. Clustering via mode seeking by direct estimation of the gradient of a log-density. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 19–34. Springer, 2014.
301
+
302
+ Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of statistical planning and inference, 90(2):227–244, 2000.
303
+
304
+ K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
305
+
306
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.
307
+
308
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
309
+
310
+ Florian Tramèr, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. The space of transferable adversarial examples. arXiv preprint arXiv:1704.03453, 2017.
311
+
312
+ Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in Neural Information Processing Systems, pp. 4790–4798, 2016a.
313
+
314
+ Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016b.
315
+
316
+ Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pp. 1096–1103. ACM, 2008.
317
+
318
+ David Warde-Farley and Ian Goodfellow. 11 adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016.
319
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017.
320
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017a.
321
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing mitigates and detects carlini/wagner adversarial examples. arXiv preprint arXiv:1705.10686, 2017b.
322
+ Ciyou Zhu, Richard H Byrd, Peihuang Lu, and Jorge Nocedal. Algorithm 778: L-bfgs-b: Fortran subroutines for large-scale bound-constrained optimization. ACM Transactions on Mathematical Software (TOMS), 23(4):550–560, 1997.
323
+
324
+ # APPENDIX A ON RANDOM PERTURBATIONS
325
+
326
+ One may observe from Figure 3(b) that random perturbations have very low $p$ -values, and thus also live outside of the high density area. Although many classifiers are robust to random noise, it is not a property granted by the dataset. The fact is that robustness to random noise could be from model inductive bias, and there exist classifiers which have high generalization performance on clean images, but can be attacked by small random perturbations.
327
+
328
+ It is easy to construct a concrete classifier that are susceptible to random perturbations. Our ResNet on CIFAR-10 gets $9 2 . 0 \%$ accuracy on the test set and $8 7 . 3 \%$ on randomly perturbed test images with $\epsilon _ { \mathrm { a t t a c k } } = 8$ . According to our PixelCNN, 175 of 10000 test images have a bits per dimension (BPD) larger than 4.5, while the number for random images is 9874. Therefore, we can define a new classifier
329
+
330
+ $$
331
+ \mathrm { R e s N e t ^ { \prime } ( X ) } \triangleq \left\{ \begin{array} { l l } { \mathrm { R e s N e t ( X ) } , } & { \mathrm { B P D } ( \mathbf { X } ) < 4 . 5 } \\ { \mathrm { r a n d o m \ l a b e l } , } & { \mathrm { B P D } ( \mathbf { X } ) \geq 4 . 5 } \end{array} \right. ,
332
+ $$
333
+
334
+ which will get roughly $9 2 \% \times 9 8 2 5 / 1 0 0 0 0 + 1 0 \% \times 1 7 5 / 1 0 0 0 0 \approx 9 0 . 6 \%$ accuracy on the test set, while only $8 7 . 3 \% \times 1 2 6 / 1 0 0 0 0 + 1 0 \% \times 9 8 7 4 / 1 0 0 0 0 \approx 1 1 . 0 \%$ accuracy on the randomly perturbed images. This classifier has comparable generalization performance to the original ResNet, but will give incorrect labels to most randomly perturbed images.
335
+
336
+ # APPENDIX B EXPERIMENTAL SETTINGS
337
+
338
+ Adversarial Training We have tested adversarial training with both FGSM and BIM examples. During training, we take special care of the label leaking problem as noted in Kurakin et al. (2016)— we use the predicted labels of the model to generate adversarial examples, instead of using the true labels. This prevents the adversarially trained network to perform better on adversarial examples than clean images by simply retrieving ground-truth labels. Following Kurakin et al. (2016), we also sample $\epsilon _ { \mathrm { a t t a c k } }$ from a truncated Gaussian distribution for generating FGSM or BIM adversarial examples, so that the adversarially trained network won’t overfit to any specific $\epsilon _ { \mathrm { a t t a c k } }$ . This is different from Madry et al. (2017), where the authors train and test with the same ϵattack.
339
+
340
+ For Fashion MNIST experiments, we randomly sample $\epsilon _ { \mathrm { a t t a c k } }$ from $\mathcal { N } ( 0 , \delta )$ , take the absolute value and truncate it to $[ 0 , 2 \delta ]$ , where $\delta \ : = \ : 8$ or 25. For CIFAR-10 experiments, we follow the same procedure but fix $\delta = 8$ .
341
+
342
+ Feature Squeezing For implementing the feature squeezing defense, we reduce the number of colors to 8 on Fashion MNIST, and use 32 colors for CIFAR-10. The numbers are chosen to make sure color reduction will not lead to significant deterioration of image quality. After color depth reduction, we apply a $2 \times 2$ median filter with reflective paddings, since it is reported in $\mathrm { X u }$ et al. (2017b) to be most effective for preventing CW attacks.
343
+
344
+ Models We use ResNet (62-layer) and VGG (16-layer) as classifiers. In our experiments, normally trained networks have the same architectures as adversarially trained networks. Since the images of Fashion MNIST contain roughly one quarter values of those of CIFAR-10, we use a smaller network for classifying Fashion MNIST. More specifically, we reduce the number of feature maps for Fashion MNIST to 1/4 while keeping the same depths. In practive, VGG is more robust than ResNet due to using of dropout layers. The network architecture details are described in Appendix C. For the PixelCNN generative model, we adopted the implementation of $\mathrm { P i x e l C N N + + }$ (Salimans et al., 2017), but modified the output from mixture of logistic distributions to softmax. The feature maps are also reduced to 1/4 for training PixelCNN on Fashion MNIST.
345
+
346
+ Adaptive Threshold We chose the adaptive threshold discussed in Section 4.2 using validation data. We set the threshold at the lowest value which did not decrease the performance of the strongest adversary. For Fashion MNIST, the threshold of bits per dimension was set to 1.8, and for CIFAR-10 the number was 3.2. As a reference, the mean value of bits per dimension for Fashion MNIST test images is 2.7 and for CIFAR-10 is 3.0. However, we admit that using a validation set to choose the best threshold makes the adaptive version of PixelDefend not strictly attack-agnostic.
347
+
348
+ # APPENDIX C IMAGE CLASSIFIER ARCHITECTURES∗
349
+
350
+ C.1 RESNET CLASSIFIER FOR CIFAR-10 & FASHION MNIST
351
+
352
+ <table><tr><td rowspan=1 colspan=1>NAME</td><td rowspan=1 colspan=2>CONFIGURATION</td></tr><tr><td rowspan=1 colspan=1>Initial Layer</td><td rowspan=1 colspan=2>conv (filter size: 3 × 3,feature maps: 16 (4), stride size: 1 × 1)</td></tr><tr><td rowspan=1 colspan=1>Residual Block 1</td><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)batch normalization &amp;leaky reluconv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)residual addition</td><td rowspan=1 colspan=1>×10 times</td></tr><tr><td rowspan=2 colspan=1>Residual Block 2</td><td rowspan=1 colspan=2>batch normalization&amp; leaky reluconv (filter size: 3 × 3, feature maps: 32 (8), stride size: 2 × 2)batch normalization&amp;leakyreluconv (filter size: 3 × 3, feature maps: 32 (8), stride size: 1 × 1)average pooling &amp; padding &amp; residual addition</td></tr><tr><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv (filter size: 3 × 3, feature maps: 32(8), stride size: 1 × 1)batch normalization&amp;leaky reluconv (filter size: 3 × 3, feature maps: 32(8), stride size: 1 × 1)residual addition</td><td rowspan=1 colspan=1>×9 times</td></tr><tr><td rowspan=2 colspan=1>Residual Block 3</td><td rowspan=1 colspan=2>batch normalization&amp; leaky reluconv (filter size: 3 × 3, feature maps: 64 (16),stride size: 2 × 2)batch normalization &amp; leaky reluconv (filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)average pooling &amp; padding &amp; residual addition</td></tr><tr><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv(filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)batch normalization &amp; leaky reluconv(filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)residual addition</td><td rowspan=1 colspan=1>×9 times</td></tr><tr><td rowspan=1 colspan=1>Pooling Layer</td><td rowspan=1 colspan=2>batch normalization &amp; leaky relu &amp; average pooling</td></tr><tr><td rowspan=1 colspan=1>Output Layer</td><td rowspan=1 colspan=2>fc_10 &amp; softmax</td></tr></table>
353
+
354
+ # C.2 VGG CLASSIFIER FOR CIFAR-10 & FASHION MNIST
355
+
356
+ <table><tr><td rowspan=1 colspan=1>NAME</td><td rowspan=1 colspan=2>CONFIGURATION</td></tr><tr><td rowspan=2 colspan=1>Feature Block 1</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×2 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size: 2 × 2)</td></tr><tr><td rowspan=2 colspan=1>Feature Block 2</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 128 (32), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×2 times</td></tr><tr><td rowspan=1 colspan=1>max pooling (stride size:2 × 2)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=2 colspan=1>Feature Block 3</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 512 (128), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×3 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size: 2 × 2)</td></tr><tr><td rowspan=2 colspan=1>Feature Block 4</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 512 (128), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×3 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size:2× 2) &amp; flatten</td></tr><tr><td rowspan=1 colspan=1>Classifier Block</td><td rowspan=1 colspan=2>dropout &amp; fc_512(128)&amp; reludropout&amp;fc_1O&amp; softmax</td></tr></table>
357
+
358
+ # APPENDIX D SAMPLED IMAGES FROM PIXELCNN
359
+
360
+ # D.1 FASHION MNIST
361
+
362
+ ![](images/a52c9a517dca2176580fff1389c7f949da2bad0c291e18c24545fefdf06d727d.jpg)
363
+ Figure 8: True and generated images from Fashion MNIST. The upper part shows true images sampled from the dataset while the bottom shows generated images from PixelCNN.
364
+
365
+ D.2 CIFAR-10
366
+
367
+ ![](images/31c1a6c112e70b99ae7152ef1092a77c22d51e7cabee2a609f7352a85edd4c55.jpg)
368
+ Figure 9: True and generated images from CIFAR-10. The upper part shows true images sampled from the dataset while the bottom part shows generated images from PixelCNN.
369
+
370
+ # APPENDIX E SAMPLED PURIFIED IMAGES FROM PIXELDEFEND
371
+
372
+ # E.1 FASHION MNIST
373
+
374
+ ![](images/45672d7a01c00ca3bc643f6903a64a18eec8b52de727d98e8a3c13f4bba2bbb2.jpg)
375
+ Figure 10: The upper part shows adversarial images generated from FGSM attack while the bottom part shows corresponding purified images after PixelDefend. Here $\epsilon _ { \mathrm { a t t a c k } } = 2 5 $ and $\epsilon _ { \mathrm { d e f e n d } } = 3 2 $ .
376
+
377
+ # E.2 CIFAR-10
378
+
379
+ ![](images/5a6af051392cefa48293cd2d5b943cf4e7dfb45eaebf9508ebc2ad16fec1b77e.jpg)
380
+ Figure 11: The upper part shows adversarial images generated from FGSM attack while the bottom part shows corresponding purified images by PixelDefend. Here $\epsilon _ { \mathrm { a t t a c k } } = 8$ and $\epsilon _ { \mathrm { d e f e n d } } = 1 6$ .
parse/train/rJUYGxbCW/rJUYGxbCW_content_list.json ADDED
@@ -0,0 +1,1943 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PIXELDEFEND: LEVERAGING GENERATIVE MODELS TO UNDERSTAND AND DEFEND AGAINST ADVERSARIAL EXAMPLES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yang Song \nStanford University \nyangsong@cs.stanford.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 195,
20
+ 421,
21
+ 237
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Taesup Kim Université de Montréal taesup.kim@umontreal.ca ",
28
+ "bbox": [
29
+ 586,
30
+ 195,
31
+ 813,
32
+ 237
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Sebastian Nowozin Microsoft Research nowozin@microsoft.com ",
39
+ "bbox": [
40
+ 183,
41
+ 258,
42
+ 393,
43
+ 300
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Stefano Ermon Stanford University ermon@cs.stanford.edu ",
50
+ "bbox": [
51
+ 588,
52
+ 258,
53
+ 795,
54
+ 300
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Nate Kushman \nMicrosoft Research \nnkushman@microsoft.com ",
61
+ "bbox": [
62
+ 184,
63
+ 321,
64
+ 401,
65
+ 363
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "ABSTRACT ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 454,
75
+ 400,
76
+ 544,
77
+ 415
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Adversarial perturbations of normal images are usually imperceptible to humans, but they can seriously confuse state-of-the-art machine learning models. What makes them so special in the eyes of image classifiers? In this paper, we show empirically that adversarial examples mainly lie in the low probability regions of the training distribution, regardless of attack types and targeted models. Using statistical hypothesis testing, we find that modern neural density models are surprisingly good at detecting imperceptible image perturbations. Based on this discovery, we devised PixelDefend, a new approach that purifies a maliciously perturbed image by moving it back towards the distribution seen in the training data. The purified image is then run through an unmodified classifier, making our method agnostic to both the classifier and the attacking method. As a result, PixelDefend can be used to protect already deployed models and be combined with other model-specific defenses. Experiments show that our method greatly improves resilience across a wide variety of state-of-the-art attacking methods, increasing accuracy on the strongest attack from $63 \\%$ to $84 \\%$ for Fashion MNIST and from $32 \\%$ to $70 \\%$ for CIFAR-10. ",
84
+ "bbox": [
85
+ 233,
86
+ 434,
87
+ 766,
88
+ 654
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 INTRODUCTION ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 176,
98
+ 685,
99
+ 336,
100
+ 700
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Recent work has shown that small, carefully chosen modifications to the inputs of a neural network classifier can cause the model to give incorrect labels (Szegedy et al., 2013; Goodfellow et al., 2014). This weakness of neural network models is particularly surprising because the modifications required are often imperceptible, or barely perceptible, to humans. As deep neural networks are being deployed in safety-critical applications such as self-driving cars (Amodei et al., 2016), it becomes increasingly important to develop techniques to handle these kinds of inputs. ",
107
+ "bbox": [
108
+ 174,
109
+ 718,
110
+ 826,
111
+ 801
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Rethinking adversarial examples The existence of such adversarial examples seems quite surprising. A neural network classifier can get super-human performance (He et al., 2015) on clean test images, but will give embarrassingly wrong predictions on the same set of images if some imperceptible noise is added. What makes this noise so special to deep neural networks? ",
118
+ "bbox": [
119
+ 174,
120
+ 819,
121
+ 825,
122
+ 875
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this paper, we propose and empirically evaluate the following hypothesis: Even though they have very small deviations from clean images, adversarial examples largely lie in the low probability regions of the distribution that generated the data used to train the model. Therefore, they fool classifiers mainly due to covariate shift. This is analogous to training models on MNIST (LeCun et al., 1998) but testing them on Street View House Numbers (Netzer et al., 2011). ",
129
+ "bbox": [
130
+ 176,
131
+ 882,
132
+ 823,
133
+ 922
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "",
140
+ "bbox": [
141
+ 171,
142
+ 103,
143
+ 823,
144
+ 132
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "To study this hypothesis, we first need to estimate the probability density of the underlying training distribution. To this end, we leverage recent developments in generative models. Specifically, we choose a PixelCNN (van den Oord et al., 2016b) model for its state-of-the-art performance in modeling image distributions (van den Oord et al., 2016a; Salimans et al., 2017) and tractability of evaluating the data likelihood. In the first part of the paper, we show that a well-trained PixelCNN generative model is very sensitive to adversarial inputs, typically giving them several orders of magnitude lower likelihoods compared to those of training and test images. ",
151
+ "bbox": [
152
+ 174,
153
+ 138,
154
+ 825,
155
+ 236
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Detecting adversarial examples An important step towards handling adversarial images is the ability to detect them. In order to catch any kind of threat, existing work has utilized confidence estimates from Bayesian neural networks (BNNs) or dropout (Li & Gal, 2017; Feinman et al., 2017). However, if their model is misspecified, the uncertainty estimates can be affected by covariate shift (Shimodaira, 2000). This is problematic in an adversarial setting, since the attacker might be able to make use of the inductive bias from the misspecified classifier to bypass the detection. ",
162
+ "bbox": [
163
+ 174,
164
+ 252,
165
+ 825,
166
+ 335
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Protection against the strongest adversary requires a pessimistic perspective—our assumption is that the classifier cannot give reliable predictions for any input outside of the training distribution. Therefore, instead of relying on label uncertainties given by the classifier, we leverage statistical hypothesis testing to detect any input not drawn from the same distribution as training images. ",
173
+ "bbox": [
174
+ 174,
175
+ 343,
176
+ 825,
177
+ 398
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "Specifically, we first compute the probabilities of all training images under the generative model. Afterwards, for a novel input we compute the probability density at the input and evaluate its rank (in ascending order) among the density values of all training examples. Next, the rank can be used as a test statistic and gives us a $p$ -value for whether or not the image was drawn from the training distribution. This method is general and practical and we show that the $p$ -value enables us to detect adversarial images across a large number of different attacking methods with high probability, even when they differ from clean images by only a few pixel values. ",
184
+ "bbox": [
185
+ 174,
186
+ 406,
187
+ 825,
188
+ 503
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "Purifying adversarial examples Since adversarial examples are generated from clean images by adding imperceptible perturbations, it is possible to decontaminate them by searching for more probable images within a small distance of the original ones. By limiting the $L ^ { \\infty }$ distance1, this image purification procedure generates only imperceptible modifications to the original input, so that the true labels of the purified images remain the same. The resulting purified images have higher probability under the training distribution, so we can expect that a classifier trained on the clean images will have more reliable predictions on the purified images. Moreover, for inputs which are not corrupted by adversarial perturbations the purified results remain in a high density region. ",
195
+ "bbox": [
196
+ 174,
197
+ 520,
198
+ 825,
199
+ 631
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "We use this intuition to build PixelDefend, an image purification procedure which requires no knowledge of the attack nor the targeted classifier. PixelDefend approximates the training distribution using a PixelCNN model. The constrained optimization problem of finding the highest probability image within an $\\epsilon$ -ball of the original is computationally intractable, however, so we approximate it using a greedy decoding procedure. Since PixelDefend does not change the classification model, it can be combined with other adversarial defense techniques, including adversarial training (Goodfellow et al., 2014), to provide synergistic improvements. We show experimentally that PixelDefend performs exceptionally well in practice, leading to state-of-the art results against a large number of attacks, especially when combined with adversarial training. ",
206
+ "bbox": [
207
+ 174,
208
+ 637,
209
+ 826,
210
+ 763
211
+ ],
212
+ "page_idx": 1
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "Contributions Our main contributions are as follows: ",
217
+ "bbox": [
218
+ 178,
219
+ 780,
220
+ 539,
221
+ 794
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "• We show that generative models can be used for detecting adversarially perturbed images and observe that most adversarial examples lie in low probability regions. \n• We introduce a novel family of methods for defending against adversarial attacks based on the idea of purification. \nWe show that a defensive technique from this family, PixelDefend, can achieve state-of-theart results on a large number of attacking techniques, improving the accuracy against the strongest adversary on the CIFAR-10 dataset from $32 \\%$ to $70 \\%$ . ",
228
+ "bbox": [
229
+ 210,
230
+ 801,
231
+ 825,
232
+ 898
233
+ ],
234
+ "page_idx": 1
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "2 BACKGROUND ",
239
+ "text_level": 1,
240
+ "bbox": [
241
+ 176,
242
+ 102,
243
+ 326,
244
+ 118
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "2.1 ATTACKING METHODS ",
251
+ "text_level": 1,
252
+ "bbox": [
253
+ 176,
254
+ 135,
255
+ 370,
256
+ 150
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Given a test image $\\mathbf { X }$ , an attacking method tries to find a small perturbation $\\pmb { \\Delta }$ with $\\| \\pmb { \\Delta } \\| _ { \\infty } \\le \\epsilon _ { \\mathrm { a t t a c k } }$ such that a classifier $f$ gives different predictions on $\\mathbf { X } ^ { a d v } \\triangleq \\mathbf { X } + \\Delta$ and $\\mathbf { X }$ . Here colors in the image are represented by integers from 0 to 255. Each attack method is controlled by a configurable $\\epsilon _ { \\mathrm { a t t a c k } }$ parameter which sets the maximum perturbation allowed for each pixel in integer increments on the color scale. We only consider white-box attacks in this paper, i.e., the attack methods can get access to weights of the classifier. In the following, we give an introduction to all the attacking methods used in our experiments. ",
263
+ "bbox": [
264
+ 173,
265
+ 162,
266
+ 825,
267
+ 263
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Random perturbation (RAND) Random perturbation is arguably the weakest attacking method, and we include it as the simplest baseline. Formally, the randomly perturbed image is given by ",
274
+ "bbox": [
275
+ 171,
276
+ 281,
277
+ 825,
278
+ 310
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "equation",
284
+ "img_path": "images/88fdf1bf5bcf98d728cc80ce5bc2b68fb4c7b43eebce351fdeedee5d1897ea18.jpg",
285
+ "text": "$$\n{ \\bf X } ^ { a d v } = { \\bf X } + \\mathcal { U } ( - \\lfloor \\epsilon _ { \\mathrm { a t t a c k } } \\rfloor , \\lfloor \\epsilon _ { \\mathrm { a t t a c k } } \\rfloor ) ,\n$$",
286
+ "text_format": "latex",
287
+ "bbox": [
288
+ 377,
289
+ 320,
290
+ 619,
291
+ 339
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "where $\\textstyle { \\mathcal { U } } ( a , b )$ denotes an element-wise uniform distribution of integers from $[ a , b ]$ ",
298
+ "bbox": [
299
+ 173,
300
+ 348,
301
+ 714,
302
+ 364
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "Fast gradient sign method (FGSM) Goodfellow et al. (2014) proposed the generation of malicious perturbations in the direction of the loss gradient $\\nabla _ { \\mathbf { X } } L ( \\mathbf { X } , y )$ , where $L ( \\mathbf { X } , y )$ is the loss function used to train the model. The adversarial examples are computed by ",
309
+ "bbox": [
310
+ 174,
311
+ 382,
312
+ 826,
313
+ 424
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "equation",
319
+ "img_path": "images/6f13081640a25abc19110d9211bb705b09252d85e338fbffcf427a41bff2970b.jpg",
320
+ "text": "$$\n{ \\bf X } ^ { a d v } = { \\bf X } + \\epsilon _ { \\mathrm { a t t a c k } } \\mathrm { s i g n } ( \\nabla _ { \\bf X } L ( { \\bf X } , y ) ) .\n$$",
321
+ "text_format": "latex",
322
+ "bbox": [
323
+ 369,
324
+ 434,
325
+ 627,
326
+ 454
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Basic iterative method (BIM) Kurakin et al. (2016) tested a simple variant of the fast gradient sign method by applying it multiple times with a smaller step size. Formally, the adversarial examples are computed as ",
333
+ "bbox": [
334
+ 174,
335
+ 469,
336
+ 826,
337
+ 513
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "equation",
343
+ "img_path": "images/dfccee158267e02117a63f21ef53e9c14a46fff49fb267761d98ce7d93057429.jpg",
344
+ "text": "$$\n{ \\bf X } _ { 0 } ^ { a d v } = { \\bf X } , { \\bf X } _ { n + 1 } ^ { a d v } = \\mathrm { C l i p } _ { \\bf x } ^ { \\epsilon _ { \\mathrm { a t a c k } } } \\left\\{ { \\bf X } _ { n } ^ { a d v } + \\alpha \\mathrm { s i g n } ( \\nabla _ { \\bf X } L ( { \\bf X } _ { n } ^ { a d v } , y ) ) \\right\\} ,\n$$",
345
+ "text_format": "latex",
346
+ "bbox": [
347
+ 271,
348
+ 522,
349
+ 722,
350
+ 542
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "where $\\mathrm { C l i p } _ { \\mathbf { X } } ^ { \\epsilon _ { \\mathrm { a t t a c k } } }$ means we clip the resulting image to be within the $\\epsilon _ { \\mathrm { a t t a c k } }$ -ball of $\\mathbf { X }$ . Following Kurakin et al. (2016), we set $\\alpha = 1$ and the number of iterations to be $\\left\\lfloor \\operatorname* { m i n } ( \\epsilon _ { \\mathrm { a t t a c k } } + 4 , 1 . 2 5 \\epsilon _ { \\mathrm { a t t a c k } } ) \\right\\rfloor$ This method is also called Projected Gradient Descent (PGD) in Madry et al. (2017). ",
357
+ "bbox": [
358
+ 173,
359
+ 553,
360
+ 823,
361
+ 595
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "DeepFool DeepFool (Moosavi-Dezfooli et al., 2016) works by iteratively linearizing the decision boundary and finding the closest adversarial examples with geometric formulas. However, compared to FGSM and BIM, this method is much slower in practice. We clip the resulting image so that its perturbation is no larger than $\\epsilon _ { \\mathrm { a t t a c k } }$ . ",
368
+ "bbox": [
369
+ 173,
370
+ 613,
371
+ 825,
372
+ 670
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Carlini-Wagner (CW) Carlini & Wagner (2017b) proposed an efficient optimization objective for iteratively finding the adversarial examples with the smallest perturbations. As with DeepFool, we clip the output image to make sure the perturbations are limited by $\\epsilon _ { \\mathrm { a t t a c k } }$ . ",
379
+ "bbox": [
380
+ 174,
381
+ 688,
382
+ 825,
383
+ 731
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "2.2 DEFENSE METHODS ",
390
+ "text_level": 1,
391
+ "bbox": [
392
+ 176,
393
+ 752,
394
+ 352,
395
+ 766
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "Current defense methods generally fall into two classes. They either (1) change the network architecture or training procedure to make it more robust, or (2) modify adversarial examples to reduce their harm. In this paper, we take the following defense methods into comparison. ",
402
+ "bbox": [
403
+ 176,
404
+ 779,
405
+ 825,
406
+ 821
407
+ ],
408
+ "page_idx": 2
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "Adversarial training This defense works by generating adversarial examples on-the-fly during training and including them into the training set. FGSM adversarial examples are the most commonly used ones for adversarial training, since they are fast to generate and easy to train. Although training with higher-order adversarial examples (e.g., BIM) has witnessed some success in small datasets (Madry et al., 2017), other work has reported failure in larger ones (Kurakin et al., 2016). We consider both variants in our work. ",
413
+ "bbox": [
414
+ 174,
415
+ 839,
416
+ 826,
417
+ 922
418
+ ],
419
+ "page_idx": 2
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "Label smoothing In contrast to adversarial training, label smoothing (Warde-Farley & Goodfellow, 2016) is agnostic to the attack method. It converts one-hot labels to soft targets, where the correct class has value $1 - \\epsilon$ while the other (wrong) classes have value $\\epsilon / ( N - \\bar { 1 } )$ . Here $\\epsilon$ is a small constant and $N$ is the number of classes. When the classifier is re-trained on these soft targets rather than the one-hot labels it is significantly more robust to adversarial examples. This method was originally devised to achieve a similar effect as defensive distillation (Papernot et al., 2016c), and their performance is comparable. We didn’t compare to defensive distillation since it is more computationally expensive. ",
424
+ "bbox": [
425
+ 173,
426
+ 103,
427
+ 825,
428
+ 215
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Feature squeezing Feature squeezing $\\mathrm { { X u } }$ et al., 2017a) is both attack-agnostic and modelagnostic. Given any input image, it first reduces the color range from [0, 255] to a smaller value, and then smooths the image with a median filter. The resulting image is then passed to a classifier for predictions. Since this technique does not depend on attacking methods and classifiers, it can be combined with other defensive methods such as adversarial training, similar to PixelDefend. ",
435
+ "bbox": [
436
+ 174,
437
+ 228,
438
+ 825,
439
+ 299
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "2.3 EXPERIMENT METHODOLOGIES ",
446
+ "text_level": 1,
447
+ "bbox": [
448
+ 176,
449
+ 315,
450
+ 433,
451
+ 329
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "Datasets Two datasets are used in our experiments: Fashion MNIST (Xiao et al., 2017) and CIFAR-10 (Krizhevsky et al.). Fashion MNIST was designed as a more difficult, but drop-in replacement for MNIST (LeCun et al., 1998). Thus it shares all of MNIST’s characteristics, i.e., 60, 000 training examples and 10, 000 test examples where each example is a $2 8 \\times 2 8$ gray-scale image associated with a label from 1 of 10 classes. CIFAR-10 is another dataset that is also broadly used for image classification tasks. It consists of 60, 000 examples, where 50, 000 are used for training and 10, 000 for testing, and each sample is a $3 2 \\times 3 2$ color image associated with 1 of 10 classes. ",
458
+ "bbox": [
459
+ 174,
460
+ 340,
461
+ 825,
462
+ 439
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "Models We examine two state-of-the-art deep neural network image classifiers: ResNet (He et al., 2016) and VGG (Simonyan & Zisserman, 2014). The architectures are described in Appendix C. ",
469
+ "bbox": [
470
+ 171,
471
+ 452,
472
+ 825,
473
+ 481
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "PixelCNN The PixelCNN (van den Oord et al., 2016b; Salimans et al., 2017) is a generative model with tractable likelihood especially designed for images. The model defines the joint distribution over all pixels by factorizing it into a product of conditional distributions. ",
480
+ "bbox": [
481
+ 174,
482
+ 494,
483
+ 825,
484
+ 537
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "equation",
490
+ "img_path": "images/3b33f33024299e7b1171a53e7a0175d8984971cab0926b5c2aaafba8cb286486.jpg",
491
+ "text": "$$\np _ { \\mathrm { C N N } } ( \\mathbf { X } ) = \\prod _ { i } p _ { \\mathrm { C N N } } ( x _ { i } | x _ { 1 : ( i - 1 ) } ) .\n$$",
492
+ "text_format": "latex",
493
+ "bbox": [
494
+ 382,
495
+ 537,
496
+ 612,
497
+ 571
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "The pixel dependencies are in raster scan order (row by row and column by column within each row). We train the PixelCNN model for each dataset using only clean (not perturbed) image samples. In Appendix D, we provide clean sample images from the datasets as well as generated image samples from PixelCNN (see Figure 8 and Figure 9). ",
504
+ "bbox": [
505
+ 174,
506
+ 571,
507
+ 825,
508
+ 627
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "As a convenient representation of $p _ { \\mathrm { C N N } } ( \\mathbf { X } )$ for images, we also use the concept of bits per dimension, which is defined as $\\mathrm { B P D } ( \\mathbf { X } ) \\triangleq - \\log p _ { \\mathrm { C N N } } ( \\mathbf { X } ) / ( I \\times J \\times K \\times \\log 2 )$ for an image of resolution $I \\times J$ and $K$ channels. ",
515
+ "bbox": [
516
+ 174,
517
+ 633,
518
+ 825,
519
+ 679
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "3 DETECTING ADVERSARIAL EXAMPLES ",
526
+ "text_level": 1,
527
+ "bbox": [
528
+ 176,
529
+ 698,
530
+ 526,
531
+ 713
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "Adversarial images are defined with respect to a specific classifier. Intuitively, a maliciously perturbed image that causes one network to give a highly confident incorrect prediction might not fool another network. However, recent work (Papernot et al., 2016a; Liu et al., 2016; Tramèr et al., 2017) has shown that adversarial images can transfer across different classifiers. This indicates that there are some intrinsic properties of adversarial examples that are independent of classifiers. ",
538
+ "bbox": [
539
+ 174,
540
+ 727,
541
+ 825,
542
+ 797
543
+ ],
544
+ "page_idx": 3
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "One possibility is that, compared to normal training and test images, adversarial examples have much lower probability densities under the image distribution. As a result, classifiers do not have enough training instances to get familiarized with this part of the input space. The resulting prediction task suffers from covariate shift, and since all of the classifiers are trained on the same dataset, this covariate shift will affect all of them similarly and will likely lead to misclassifications. ",
549
+ "bbox": [
550
+ 174,
551
+ 804,
552
+ 825,
553
+ 875
554
+ ],
555
+ "page_idx": 3
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "To empirically verify this hypothesis, we train a PixelCNN model on the CIFAR-10 (Krizhevsky & Hinton, 2009) dataset and use its log-likelihood as an approximation to the true underlying probability density. The adversarial examples are generated with respect to a ResNet (He et al., 2016), which gets $92 \\%$ accuracy on the test images. We generate adversarial examples from RAND, FGSM, BIM, DeepFool and CW methods with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ . Note that as shown in Figure 1, the resulting adversarial perterbations are barely perceptible to humans. ",
560
+ "bbox": [
561
+ 176,
562
+ 881,
563
+ 825,
564
+ 924
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "image",
570
+ "img_path": "images/f08adab06239984a46d4b77ee6fabaca7d40d3ac138ce08f629e31bcb656bf1d.jpg",
571
+ "image_caption": [
572
+ "Figure 1: An image sampled from the CIFAR-10 test dataset and various adversarial examples generated from it. The text above shows the attacking method while the text below shows the predicted label of the ResNet. "
573
+ ],
574
+ "image_footnote": [],
575
+ "bbox": [
576
+ 303,
577
+ 98,
578
+ 687,
579
+ 171
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "image",
585
+ "img_path": "images/7e219f80073784145f4f5b8e698056f47d0e1bc7934c8580b00b3f76bfe5f436.jpg",
586
+ "image_caption": [
587
+ "Figure 2: (a) Likelihoods of different perturbed images with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ . (b) Test errors of a ResNet on different adversarial examples. "
588
+ ],
589
+ "image_footnote": [],
590
+ "bbox": [
591
+ 233,
592
+ 246,
593
+ 761,
594
+ 410
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "",
601
+ "bbox": [
602
+ 176,
603
+ 477,
604
+ 821,
605
+ 520
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "However, the distribution of log-likelihoods show considerable difference between perturbed images and clean images. As summarized in Figure 2, even a $3 \\%$ perturbation can lead to systematic decrease of log-likelihoods. Note that the PixelCNN model has no information about the attacking methods for producing those adversarial examples, and no information about the ResNet model either. ",
612
+ "bbox": [
613
+ 173,
614
+ 526,
615
+ 826,
616
+ 597
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "We can see from Figure 3(b) that random perturbations also push the images outside of the training distribution, even though they do not have the same adverse effect on accuracy. We believe this is due to an inductive bias that is shared by many neural network models but not inherent to all models, as discussed further in Appendix A. ",
623
+ "bbox": [
624
+ 173,
625
+ 603,
626
+ 825,
627
+ 660
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Besides qualitative analysis, the log-likelihoods from PixelCNN also provide a quantitative measure for detecting adversarial examples. Combined with permutation test (Efron & Tibshirani, 1994), we can provide a uncertainty value for each input about whether it comes from the training distribution or not. Specifically, let the input $\\mathbf { X } ^ { \\prime } \\overset { \\mathrm { i . i . d . } } { \\sim } q ( \\mathbf { X } )$ and training images $\\mathbf { X } _ { 1 } , \\cdots , \\mathbf { X } _ { N } \\overset { \\mathrm { i . i . d . } } { \\sim } p ( \\mathbf { X } )$ . The null hypothesis is $H _ { 0 } : p ( \\mathbf { X } ) = { \\\\overset { \\cdot } { q } } ( \\mathbf { X } )$ while the alternative is $H _ { 1 } : p ( \\mathbf { X } ) \\neq q ( \\mathbf { X } )$ . We first compute the probabilities give by a PixelCNN for $\\mathbf { X } ^ { \\prime }$ and $\\mathbf { X } _ { 1 } , \\cdots , \\mathbf { X } _ { N }$ , then use the rank of $p _ { \\mathrm { C N N } } ( \\mathbf { X } ^ { \\prime } )$ in $\\{ p _ { \\mathrm { C N N } } ( \\mathbf { X } _ { 1 } ) , \\cdots , \\bar { p } _ { \\mathrm { C N N } } ( \\mathbf { \\bar { X } } _ { N } ) \\}$ as our test statistic: ",
634
+ "bbox": [
635
+ 173,
636
+ 666,
637
+ 826,
638
+ 770
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "equation",
644
+ "img_path": "images/2049830d3501c2e478d4bdf8a93d601dfa95693dd378e6ef8d40e73e59e984ff.jpg",
645
+ "text": "$$\nT = T ( \\mathbf { X } ^ { \\prime } ; \\mathbf { X } _ { 1 } , \\cdots , \\mathbf { X } _ { N } ) \\triangleq \\sum _ { i = 1 } ^ { N } \\mathbb { I } [ p _ { \\mathrm { C N N } } ( \\mathbf { X } _ { i } ) \\leq p _ { \\mathrm { C N N } } ( \\mathbf { X } ^ { \\prime } ) ] .\n$$",
646
+ "text_format": "latex",
647
+ "bbox": [
648
+ 300,
649
+ 772,
650
+ 696,
651
+ 815
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "Here $\\mathbb { I } [ \\cdot ]$ is the indicator function, which equals 1 when the condition inside brackets is true and otherwise equals 0. Let $T _ { i } = T ( { \\bf X } _ { i } ; { \\bf X } _ { 1 } , \\cdot \\cdot \\cdot , { \\bf X } _ { i - 1 } , { \\bf X } ^ { \\prime } , { \\bf X } _ { i + 1 } , \\cdot \\cdot \\cdot , { \\bf X } _ { N } )$ . According to the permutation principle, $T _ { i }$ has the same distribution as $T$ under the null hypothesis $H _ { 0 }$ . We can therefore compute the $p$ -value exactly by ",
658
+ "bbox": [
659
+ 174,
660
+ 819,
661
+ 825,
662
+ 876
663
+ ],
664
+ "page_idx": 4
665
+ },
666
+ {
667
+ "type": "equation",
668
+ "img_path": "images/d4909f1290510dfbd7e44d742cecb6cbc7df50dd9a9e3452a3e2b0ae5b43a064.jpg",
669
+ "text": "$$\np = \\frac { 1 } { N + 1 } \\left( \\sum _ { i = 1 } ^ { N } \\mathbb { I } [ T _ { i } \\leq T ] + 1 \\right) = \\frac { T + 1 } { N + 1 } = \\frac { 1 } { N + 1 } \\left( \\sum _ { i = 1 } ^ { N } \\mathbb { I } [ p _ { \\mathrm { C N N } } ( \\mathbf { X } _ { i } ) \\leq p _ { \\mathrm { C N N } } ( \\mathbf { X } ^ { \\prime } ) ] + 1 \\right) .\n$$",
670
+ "text_format": "latex",
671
+ "bbox": [
672
+ 187,
673
+ 878,
674
+ 808,
675
+ 922
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "image",
681
+ "img_path": "images/841fb2606539c7e4c79789b143754a98d8357f97e4cec03ca413c7385fcfd8ef.jpg",
682
+ "image_caption": [
683
+ "Figure 3: The distribution of $p$ -values under the PixelCNN generative model. The inputs are more outside of the training distribution if their $p$ -value distribution has a larger deviation from uniform. Here “clean” means clean test images. From definition, the $p$ -values of clean training images have a uniform distribution. "
684
+ ],
685
+ "image_footnote": [],
686
+ "bbox": [
687
+ 199,
688
+ 106,
689
+ 800,
690
+ 347
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "image",
696
+ "img_path": "images/84c36078978cc3206f8239f356b8f2bdca0f5fa11b8e53dcc42b5f50501efca7.jpg",
697
+ "image_caption": [
698
+ "Figure 4: An example of how purification works. The above row shows an image from CIFAR10 test set and various attacking images generated from it. The bottom row shows corresponding purified images. The text below each image is the predicted label given by our ResNet. "
699
+ ],
700
+ "image_footnote": [],
701
+ "bbox": [
702
+ 238,
703
+ 440,
704
+ 756,
705
+ 582
706
+ ],
707
+ "page_idx": 5
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "For CIFAR-10, we provide histograms of $p$ -values for different adversarial examples in Figure 3 and ROC curves of using $p$ -values for detection in Figure 6(a). Note that in the ideal case, the $p$ -value distribution of clean test images should be uniform. The method works especially well for attacks producing larger perturbations, such as RAND, FGSM, and BIM. For DeepFool and CW adversarial examples, we can also observe significant deviations from uniform. As shown in Figure 3(a), the $p$ - value distribution of test images are almost uniform, indicating good generalization of the PixelCNN model. ",
712
+ "bbox": [
713
+ 173,
714
+ 678,
715
+ 826,
716
+ 776
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "4 PURIFYING IMAGES WITH PIXELDEFEND ",
723
+ "text_level": 1,
724
+ "bbox": [
725
+ 174,
726
+ 813,
727
+ 545,
728
+ 829
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "In many circumstances, simply detecting adversarial images is not sufficient. It is often critical to be able to correctly classify images despite such adversarial modifications. In this section we introduce PixelDefend, a specific instance of a new family of defense methods that significantly improves the state-of-the-art performance on advanced attacks, while simultaneously performing well against all other attacks. ",
735
+ "bbox": [
736
+ 174,
737
+ 853,
738
+ 825,
739
+ 922
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Algorithm 1 PixelDefend ",
746
+ "text_level": 1,
747
+ "bbox": [
748
+ 174,
749
+ 103,
750
+ 346,
751
+ 117
752
+ ],
753
+ "page_idx": 6
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Input: Image X, Defense parameter $\\epsilon _ { \\mathrm { d e f e n d } }$ , Pre-trained PixelCNN model $p _ { \\mathrm { C N N } }$ \nOutput: Purified Image $\\mathbf { X } ^ { * }$ \n1: $\\bar { \\mathbf { X } } ^ { * } \\mathbf { X }$ \n2: for each row $i$ do \n3: for each column $j$ do \n4: for each channel $k$ do \n5: $x \\gets \\mathbf { X } [ i , j , k ]$ \n6: Set feasible range $R \\gets [ \\mathrm { m a x } ( x - \\epsilon _ { \\mathrm { d e f e n d } } , 0 ) , \\mathrm { m i n } ( x + \\epsilon _ { \\mathrm { d e f e n d } } , 2 5 5 ) ]$ \n7: Compute the 256-way softmax $p _ { \\mathrm { C N N } } ( \\mathbf { X } ^ { * } )$ . \n8: Update $\\mathbf { X } ^ { * } [ i , j , k ] \\gets \\mathrm { a r g } \\operatorname* { m a x } _ { z \\in R } p _ { \\mathrm { C N N } } [ i , j , k , z ]$ \n9: end for \n10: end for \n11: end for ",
758
+ "bbox": [
759
+ 176,
760
+ 119,
761
+ 718,
762
+ 301
763
+ ],
764
+ "page_idx": 6
765
+ },
766
+ {
767
+ "type": "image",
768
+ "img_path": "images/9cd8d3d299ff4ff7eed038f5178135903d715fc07f90ba51f32ac6907fe381b5.jpg",
769
+ "image_caption": [
770
+ "Figure 5: The bits-per-dimension distributions of purified images from FGSM adversarial examples. We tested two purification methods, L-BFGS-B and greedy decoding, the latter of which is used in PixelDefend. A good purification method should give images that have lower bits per dimension compared to FGSM images and ideally similar bits per dimension compared to clean ones. "
771
+ ],
772
+ "image_footnote": [],
773
+ "bbox": [
774
+ 336,
775
+ 323,
776
+ 655,
777
+ 483
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "4.1 RETURNING IMAGES TO THE TRAINING DISTRIBUTION ",
784
+ "text_level": 1,
785
+ "bbox": [
786
+ 174,
787
+ 585,
788
+ 591,
789
+ 599
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "The basic idea behind PixelDefend is to purify input images, by making small changes to them in order to move them back towards the training distribution, i.e., move the images towards a highprobability region. We then classify the purified image using any existing classifier. As the example in Figure 4 shows, the purified images can usually be classified correctly. ",
796
+ "bbox": [
797
+ 174,
798
+ 611,
799
+ 826,
800
+ 669
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "Formally, we have training image distribution $p ( \\mathbf { X } )$ , and input image $\\mathbf { X }$ of resolution $I \\times J$ with $\\mathbf { X } [ i , j , k ]$ the pixel at location $( i , j )$ and channel $k \\in \\{ 1 , \\cdots , C \\}$ . We wish to find an image $\\mathbf { X } ^ { * }$ that maximizes $p ( \\mathbf { X } )$ subject to the constraint that $\\mathbf { X } ^ { * }$ is within the $\\epsilon _ { \\mathrm { d e f e n d } }$ -ball of $\\mathbf { X }$ : ",
807
+ "bbox": [
808
+ 173,
809
+ 674,
810
+ 825,
811
+ 718
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "equation",
817
+ "img_path": "images/e19de716d9c37c602609b11f571210c98f9c20f8a628a3a71c82302093a0bda4.jpg",
818
+ "text": "$$\n\\begin{array} { c } { \\displaystyle { \\operatorname* { m a x } _ { \\mathbf { X } ^ { * } } p ( \\mathbf { X } ^ { * } ) } } \\\\ { \\mathrm { s . t . } \\quad \\left\\| \\mathbf { X } ^ { * } - \\mathbf { X } \\right\\| _ { \\infty } \\leq \\epsilon _ { \\mathrm { d e f e n d } } . } \\end{array}\n$$",
819
+ "text_format": "latex",
820
+ "bbox": [
821
+ 405,
822
+ 726,
823
+ 598,
824
+ 770
825
+ ],
826
+ "page_idx": 6
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "Here $\\epsilon _ { \\mathrm { d e f e n d } }$ reflects a trade-off, since large $\\epsilon _ { \\mathrm { d e f e n d } }$ may change the meaning of $\\mathbf { X }$ while small ϵdefend may not be sufficient for returning $\\mathbf { X }$ to the correct distribution. In practice, we choose ϵdefend to be some value that overestimates $\\epsilon _ { \\mathrm { a t t a c k } }$ but still keeps high accuracies on clean images. As in Section 3, we approximate $p ( \\mathbf { X } )$ with the PixelCNN distribution $p _ { \\mathrm { C N N } } ( \\mathbf { X } )$ , which is trained on the same training set as the classifier. ",
831
+ "bbox": [
832
+ 173,
833
+ 776,
834
+ 825,
835
+ 848
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "However, exact constrained optimization of $p _ { \\mathrm { C N N } } ( \\mathbf { X } )$ is computationally intractable. Surprisingly, even gradient-based optimization faces great difficulty on that problem. We found that one advanced methods in gradient-based constrained optimization, L-BFGS-B (Byrd et al., 1995) (we use the scipy implementation based on Zhu et al. (1997)), actually decreases $p _ { \\mathrm { C N N } } ( \\mathbf { X } )$ for most random initializations within the $\\epsilon _ { \\mathrm { d e f e n d } }$ -ball. ",
842
+ "bbox": [
843
+ 174,
844
+ 853,
845
+ 825,
846
+ 924
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "For efficient optimization, we instead use a greedy technique described in Algorithm 1, which is similar to the greedy decoding process typically used in sequence-to-sequence models (Sutskever et al., 2014). The method is similar to generating images from PixelCNN, with the additional constraint that the generated image should be within an $\\epsilon _ { \\mathrm { d e f e n d } }$ -ball of a perturbed image. As an autoregressive model, PixelCNN is slow in image generation. Nonetheless, by caching redundant calculation, Ramachandran et al. (2017) proposes a very fast generation algorithm for PixelCNN. In our experiments, adoption of Ramachandran et al. (2017)’s method greatly increases the speed of PixelDefend. For CIFAR-10 images, PixelDefend on average processes 3.6 images per second on one NVIDIA TITAN Xp GPU. ",
853
+ "bbox": [
854
+ 173,
855
+ 103,
856
+ 826,
857
+ 229
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "image",
863
+ "img_path": "images/9541592e4ea68f210ba02c6038cd122b98e392a4788d54a8ad822f5b222e631c.jpg",
864
+ "image_caption": [
865
+ "Figure 6: ROC curves showing the efficacy of using $p$ -values as scores to detect adversarial examples. For computing the ROC, we assign negative labels to training images and positive labels to adversarial images (or clean test images). (a) Original adversarial examples. (b) Purified adversarial examples after PixelDefend. "
866
+ ],
867
+ "image_footnote": [],
868
+ "bbox": [
869
+ 235,
870
+ 252,
871
+ 759,
872
+ 419
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "To show the effectiveness of this greedy method compared to L-BFGS-B, we take the first 10 images from CIFAR-10 test set, attack them by FGSM with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ , and purify them with L-BFGS-B and PixelDefend respectively. We used random start points for L-BFGS-B and repeated 100 times for each image. As depicted in Figure 5, most L-BFGS-B attempts failed at minimizing the bits per dimension of FGSM adversarial examples. Because of the rugged gradient landscape of PixelCNN, L-BFGS-B even results in images that have lower probabilities. In contrast, PixelDefend works much better in increasing the probabilities of purified images, although their probabilities are still lower compared to clean ones. ",
879
+ "bbox": [
880
+ 174,
881
+ 508,
882
+ 825,
883
+ 619
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "In Figure 6 and Figure 7, we empirically show that after PixelDefend, purified images are more likely to be drawn from the training distribution. Specifically, Figure 6 shows that the detecting power of $p$ -values greatly decreases for purified images. For DeepFool and CW examples, purification makes them barely distinguishable from normal samples of the data distribution. This is also manifested by Figure 7, as the $p$ -value distributions of purified examples are closer to uniform. Visually, purified images indeed look much cleaner than adversarially perturbed ones. In Appendix E, we provide sampled purified images from Fashion MNIST and CIFAR-10. ",
890
+ "bbox": [
891
+ 174,
892
+ 626,
893
+ 825,
894
+ 723
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "4.2 ADAPTIVE PIXELDEFEND ",
901
+ "text_level": 1,
902
+ "bbox": [
903
+ 176,
904
+ 744,
905
+ 393,
906
+ 757
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "One concern with the approach of purifying images is what happens when we purify a clean image. More generally, we will never know $\\epsilon _ { \\mathrm { a t t a c k } }$ and if we set $\\epsilon _ { \\mathrm { d e f e n d } }$ too large for a given attack, then we will modify all images to become the mode image, which would mostly result in misclassifications. One way to avoid this problem is to tune $\\epsilon _ { \\mathrm { d e f e n d } }$ adaptively based on the probability of the input image under the generative model. In this way, images that already have high probability under the training distribution would have a very low $\\epsilon _ { \\mathrm { d e f e n d } }$ preventing significant modification, while low probability images would have a high $\\epsilon _ { \\mathrm { d e f e n d } }$ thus allowing significant modifications. We implemented a very simple thresholding version of this, which sets $\\epsilon _ { \\mathrm { d e f e n d } }$ to zero if the input image probability is below a threshold value, and otherwise leaves it fixed at a manually chosen setting. In practice, we set this threshold based on knowledge of the set of possible attacks, so strictly speaking, the adaptive version of our technique is no longer attack-agnostic. ",
913
+ "bbox": [
914
+ 174,
915
+ 770,
916
+ 825,
917
+ 924
918
+ ],
919
+ "page_idx": 7
920
+ },
921
+ {
922
+ "type": "image",
923
+ "img_path": "images/d8ac12f892812f533f4b6b1ae8304e24aeb92180d4e2963b938837985ba1b75c.jpg",
924
+ "image_caption": [
925
+ "Figure 7: The distributions of $p$ -values under the PixelCNN model after PixelDefend purification. "
926
+ ],
927
+ "image_footnote": [],
928
+ "bbox": [
929
+ 197,
930
+ 106,
931
+ 800,
932
+ 344
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "table",
938
+ "img_path": "images/1c77371270d5ac9326269f2a703c1a451eeaad2d30c814c7772dbdfd40390bd4.jpg",
939
+ "table_caption": [
940
+ "Table 1: Fashion MNIST $( \\epsilon _ { \\mathrm { a t t a c k } } = 8 / 2 5 $ , $\\epsilon _ { \\mathrm { d e f e n d } } = 3 2$ ) "
941
+ ],
942
+ "table_footnote": [],
943
+ "table_body": "<table><tr><td>NETWORK</td><td>TRAINING TECHNIQUE</td><td>CLEAN</td><td>RAND</td><td>FGSM</td><td>BIM</td><td>DEEP FOOL</td><td>Cw</td><td>STRONGEST ATTACK</td></tr><tr><td>ResNet</td><td>Normal</td><td>93/93</td><td>89/71</td><td>38/24</td><td>00/00</td><td>06/06</td><td>20/01</td><td>00/00</td></tr><tr><td>VGG</td><td>Normal</td><td>92/92</td><td>91/87</td><td>73/58</td><td>36/08</td><td>49/14</td><td>43/23</td><td>36/08</td></tr><tr><td rowspan=\"5\">ResNet</td><td>Adversarial FGSM</td><td>93/93</td><td>92/89</td><td>85/85</td><td>51/00</td><td>63/07</td><td>67/21</td><td>51/00</td></tr><tr><td>Adversarial BIM</td><td>92/91</td><td>92/91</td><td>84/79</td><td>76/63</td><td>82/72</td><td>81/70</td><td>76/63</td></tr><tr><td>Label Smoothing</td><td>93/93</td><td>91/76</td><td>73/45</td><td>16/00</td><td>29/06</td><td>33/14</td><td>16/00</td></tr><tr><td>Feature Squeezing</td><td>84/84</td><td>84/70</td><td>70/28</td><td>56/25</td><td>83/83</td><td>83/83</td><td>56/25</td></tr><tr><td>Adversarial FGSM + Feature Squeezing</td><td>88/88</td><td>87/82</td><td>80/77</td><td>70/46</td><td>86/82</td><td>84/85</td><td>70/46</td></tr><tr><td>ResNet</td><td>Normal +PixelDefend</td><td>88/88</td><td>88/89</td><td>85/74</td><td>83/76</td><td>87/87</td><td>87/87</td><td>83/74</td></tr><tr><td>VGG</td><td>Normal+PixelDefend</td><td>89/89</td><td>89/89</td><td>87/82</td><td>85/83</td><td>88/88</td><td>88/88</td><td>85/82</td></tr><tr><td rowspan=\"2\">ResNet</td><td>Adversarial FGSM +PixelDefend</td><td>90/89</td><td>91/90</td><td>88/82</td><td>85/76</td><td>90/88</td><td>89/88</td><td>85/76</td></tr><tr><td>Adversarial FGSM +Adaptive PixelDefend</td><td>91/91</td><td>91/91</td><td>88/88</td><td>85/84</td><td>89/90</td><td>89/84</td><td>85/84</td></tr></table>",
944
+ "bbox": [
945
+ 205,
946
+ 421,
947
+ 792,
948
+ 635
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "4.3 PIXELDEFEND RESULTS ",
955
+ "text_level": 1,
956
+ "bbox": [
957
+ 174,
958
+ 667,
959
+ 382,
960
+ 681
961
+ ],
962
+ "page_idx": 8
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "We carried out a comprehensive set of experiments to test various defenses versus attacks. Detailed information on experimental settings is provided in Appendix B. All experimental results are summarized in Tab. 1 and Tab. 2. In the upper part of the tables, we show how the various baseline defenses fare against each of the attacks, while in the lower part of the tables we show how our PixelDefend technique works. Each table cell contains accuracies on adversarial examples generated with different $\\epsilon _ { \\mathrm { a t t a c k } }$ . More specifically, for Fashion MNIST (Tab. 1), we tried $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ and 25. The cells in Tab. 1 is formated as $x / y$ , where $x$ denotes the accuracy $( \\% )$ on images attacked with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ , while $y$ denotes the accuracy when $\\epsilon _ { \\mathrm { a t t a c k } } = 2 5 $ . For CIFAR-10 (Tab. 2), we tried $\\epsilon _ { \\mathrm { a t t a c k } } = 2$ , 8, and 16, and the cells are formated in a similar way. We use the same $\\epsilon _ { \\mathrm { d e f e n d } }$ for different ϵattack’s to show that PixelDefend is insensitive to ϵattack. ",
967
+ "bbox": [
968
+ 173,
969
+ 694,
970
+ 826,
971
+ 833
972
+ ],
973
+ "page_idx": 8
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "From the tables we observe that adversarial training successfully defends against the basic FGSM attack, but cannot defend against the more advanced ones. This is expected, as training on simple adversarial examples does not guarantee robustness to more complicated attacking techniques. Consistent with Madry et al. (2017), adversarial training with BIM examples is more successful at preventing a wider spectrum of attacks. For example, it improves the accuracy on strongest attack from $2 \\%$ to $32 \\%$ on CIFAR-10 when $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ . But the numbers are still not ideal even with respect to BIM attack itself. As in Tab. 2, it only gets $6 \\%$ on BIM and $8 \\%$ on CW when $\\epsilon _ { \\mathrm { a t t a c k } } = 1 6$ . We also observe that label smoothing, which learns smoothed predictions so that the gradient $\\nabla _ { \\mathbf { X } } L ( \\mathbf { X } , y )$ becomes very small, is only effective against simple FGSM attack. Model-agnostic methods, such as feature squeezing, can be combined with other defenses for strengthened performance. We observe that combining it with adversarial training indeed makes it more robust. Actually, Tab. 1 and Tab. 2 show that feature squeezing combined with adversarial training dominates using feature squeezing along in all settings. It also gets good performance on DeepFool and CW attacks. However, for iterative attacks with larger perturbations, i.e., BIM, feature squeezing performs poorly. On CIFAR-10, it only gets $2 \\%$ and $0 \\%$ accuracy on BIM with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ and 16 respectively. ",
978
+ "bbox": [
979
+ 174,
980
+ 840,
981
+ 825,
982
+ 924
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "table",
988
+ "img_path": "images/10883ba06ebf9f7119b414bf4ec59fdcb548a9e4683e717608d83610503cd77e.jpg",
989
+ "table_caption": [
990
+ "Table 2: CIFAR-10 $\\mathcal { C } _ { \\mathrm { a t t a c k } } = 2 / 8 / 1 6$ , $\\epsilon _ { \\mathrm { d e f e n d } } = 1 6$ ) "
991
+ ],
992
+ "table_footnote": [],
993
+ "table_body": "<table><tr><td>NETWORK</td><td>TRAINING TECHNIQUE</td><td>CLEAN</td><td>RAND</td><td>FGSM</td><td>BIM</td><td>DEEP FOOL</td><td>CW</td><td>STRONGEST ATTACK</td></tr><tr><td>ResNet</td><td>Normal</td><td>92/92/92</td><td>92/87/76</td><td>33/15/11</td><td>10/00/00</td><td>12/06/06</td><td>07/00/00</td><td>07/00/00</td></tr><tr><td>VGG</td><td>Normal</td><td>89/89/89</td><td>89/88/80</td><td>60/46/30</td><td>44/02/00</td><td>57/25/11</td><td>37/00/00</td><td>37/00/00</td></tr><tr><td rowspan=\"5\">ResNet</td><td>Adversarial FGSM</td><td>91/91/91</td><td>90/88/84</td><td>88/91/91</td><td>24/07/00</td><td>45/00/00</td><td>20/00/07</td><td>20/00/00</td></tr><tr><td>Adversarial BIM</td><td>87/87/87</td><td>87/87/86</td><td>80/52/34</td><td>74/32/06</td><td>79/48/25</td><td>76/42/08</td><td>74/32/06</td></tr><tr><td>Label Smoothing</td><td>92/92/92</td><td>91/88/77</td><td>73/54/28</td><td>59/08/01</td><td>56/20/10</td><td>30/02/02</td><td>30/02/01</td></tr><tr><td>Feature Squeezing</td><td>84/84/84</td><td>83/82/76</td><td>31/20/18</td><td>13/00/00</td><td>75/75/75</td><td>78/78/78</td><td>13/00/00</td></tr><tr><td>Adversarial FGSM + Feature Squeezing</td><td>86/86/86</td><td>85/84/81</td><td>73/67/55</td><td>55/02/00</td><td>85/85/85</td><td>83/83/83</td><td>55/02/00</td></tr><tr><td>ResNet</td><td>Normal+PixelDefend</td><td>85/85/88</td><td>82/83/84</td><td>73/46/24</td><td>71/46/25</td><td>80/80/80</td><td>78/78/78</td><td>71/46/24</td></tr><tr><td>VGG</td><td>Normal+PixelDefend</td><td>82/82/82</td><td>82/82/84</td><td>80/62/52</td><td>80/61/48</td><td>81/76/76</td><td>81/79/79</td><td>80/61/48</td></tr><tr><td rowspan=\"2\">ResNet</td><td>Adversarial FGSM +PixelDefend</td><td>88/88/86</td><td>86/86/87</td><td>81/68/67</td><td>81/69/56</td><td>85/85/85</td><td>84/84/84</td><td>81/69/56</td></tr><tr><td>Adversarial FGSM +Adaptive PixelDefend</td><td>90/90/90</td><td>86/87/87</td><td>81/70/67</td><td>81/70/56</td><td>82/81/82</td><td>81/80/81</td><td>81/70/56</td></tr></table>",
994
+ "bbox": [
995
+ 173,
996
+ 145,
997
+ 825,
998
+ 344
999
+ ],
1000
+ "page_idx": 9
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "",
1005
+ "bbox": [
1006
+ 174,
1007
+ 377,
1008
+ 825,
1009
+ 503
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "PixelDefend, our model-agnostic and attack-agnostic method, performs well on different classifiers (ResNet and VGG) and different attacks without modification. In addition, we can see that augmenting basic adversarial training with PixelDefend can sometimes double the accuracies. We hypothesize that the purified images from PixelDefend are still not perfect, and adversarially trained networks have more toleration for perturbations. This also corroborates the plausibility and benefit of combining PixelDefend with other defenses. ",
1016
+ "bbox": [
1017
+ 174,
1018
+ 510,
1019
+ 825,
1020
+ 593
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Furthermore, PixelDefend can simultaneously obtain accuracy above $70 \\%$ for all other attacking techniques, while ensuring that performance on clean images only declines slightly. Models with PixelDefend consistently outperform other methods with respect to the strongest attack. On Fashion MNIST, PixelDefend methods improve the accuracy on strongest attack from $76 \\%$ to $8 5 \\%$ and $63 \\%$ to $84 \\%$ . On CIFAR-10, the improvements are even more significant, i.e., from $74 \\%$ to $81 \\%$ , $32 \\%$ to $70 \\%$ and $6 \\%$ to $56 \\%$ , for $\\epsilon _ { \\mathrm { a t t a c k } } = 2$ , 8, and 16 respectively. In a security-critical scenario, the weakest part of a system determines the overall reliability. Therefore, the outstanding performance of PixelDefend on the strongest attack makes it a valuable and useful addition for improving AI security. ",
1027
+ "bbox": [
1028
+ 173,
1029
+ 601,
1030
+ 825,
1031
+ 726
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "4.4 END-TO-END ATTACK OF PIXELDEFEND ",
1038
+ "text_level": 1,
1039
+ "bbox": [
1040
+ 174,
1041
+ 744,
1042
+ 495,
1043
+ 758
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "A natural question that arises is whether we can generate a new class of adversarial examples targeted specifically at the combined PixelDefend architecture of first purifying the image and then using an existing classifier to predict the label of the purified image. We have three pieces of empirical evidence to believe that such adversarial examples are hard to find in general. First, we attempted to apply the iterative BIM attack to an end-to-end differentiable version of PixelDefend generated by unrolling the PixelCNN purification process. However we found the resulting network was too deep and led to problems with vanishing gradients (Bengio et al., 1994), resulting in adversarial images that were identical to the original images. Moreover, attacking the whole system is very time consuming. Empirically, it took about 10 hours to generate 100 attacking images with one TITAN $\\mathrm { X p }$ GPU which failed to fool PixelDefend. Secondly, we found the optimization problem in Eq. (4.1) was not amenable to gradient descent, as indicated in Figure 5. This makes gradient-based attacks especially difficult. Last but not least, the generative model and classifier are trained separately and have independent parameters. Therefore, the perturbation direction that leads to higher probability images has a smaller correlation with the perturbation direction that results in misclassification. Accordingly, it is harder to find adversarial examples that can fool both of them together. However, we will open source our codes and look forward to any possible attack from the community. ",
1050
+ "bbox": [
1051
+ 174,
1052
+ 771,
1053
+ 825,
1054
+ 924
1055
+ ],
1056
+ "page_idx": 9
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "",
1061
+ "bbox": [
1062
+ 174,
1063
+ 103,
1064
+ 825,
1065
+ 174
1066
+ ],
1067
+ "page_idx": 10
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "5 RELATED WORK ",
1072
+ "text_level": 1,
1073
+ "bbox": [
1074
+ 176,
1075
+ 193,
1076
+ 341,
1077
+ 208
1078
+ ],
1079
+ "page_idx": 10
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Most recent work on detecting adversarial examples focuses on adding an outlier class detection module to the classifier, such as Grosse et al. (2017), Gong et al. (2017) and Metzen et al. (2017). Those methods require the classification model to be changed, and are thus not model-agnostic. Feinman et al. (2017) also presents a detection method based on kernel density estimation and Bayesian neural network uncertainty. However, Carlini & Wagner (2017a) shows that all those methods can be bypassed. ",
1084
+ "bbox": [
1085
+ 174,
1086
+ 223,
1087
+ 825,
1088
+ 306
1089
+ ],
1090
+ "page_idx": 10
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Grosse et al. (2017) also studied the distribution of adversarial examples from a statistical testing perspective. They reported the same discovery that adversarial examples are outside of the training distribution. However, our work is different from theirs in several important aspects. First, the kernel-based two-sample test used in their paper needs a large number of suspicious inputs, while our method only requires one data point. Second, they mainly tested on first-order methods such as FGSM and JSMA (Papernot et al., 2016b). We show the efficacy of PixelCNN on a wider range of attacking methods (see Figure 3), including both first-order and iterative methods. Third, we further demonstrate that random perturbed inputs are also outside of the training distribution. ",
1095
+ "bbox": [
1096
+ 174,
1097
+ 314,
1098
+ 825,
1099
+ 426
1100
+ ],
1101
+ "page_idx": 10
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Some other work has focused on modifying the classifier architecture to increase its robustness, e.g., Gu & Rigazio (2014), Cisse et al. (2017) and Nayebi & Ganguli (2017). Although they have witnessed some success, such modifications of models might limit their representative power and are also not model-agnostic. ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 433,
1109
+ 825,
1110
+ 488
1111
+ ],
1112
+ "page_idx": 10
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Our basic idea of moving points to higher-density regions is also present in other machine learning methods not specifically designed for handling adversarial data; for example, the manifold denoising method of Hein & Maier (2007), the direct density gradient estimation of Sasaki et al. (2014), and the denoising autoencoders of Vincent et al. (2008) all move data points from low to high-density regions. In the future some of these methods could be adapted to amortize the purification process directly, that is, to learn a purification network. ",
1117
+ "bbox": [
1118
+ 174,
1119
+ 496,
1120
+ 825,
1121
+ 579
1122
+ ],
1123
+ "page_idx": 10
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "6 CONCLUSION ",
1128
+ "text_level": 1,
1129
+ "bbox": [
1130
+ 176,
1131
+ 598,
1132
+ 318,
1133
+ 614
1134
+ ],
1135
+ "page_idx": 10
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "In this work, we discovered that state-of-the-art neural density models, e.g., PixelCNN, can detect small perturbations with high sensitivity. This sensitivity broadly exists for a large number of perturbations generated with different methods. An interesting fact is that PixelCNN is only sensitive in one direction—it is relatively easy to detect perturbations that lead to lower probabilities rather than higher probabilities. ",
1140
+ "bbox": [
1141
+ 174,
1142
+ 628,
1143
+ 825,
1144
+ 699
1145
+ ],
1146
+ "page_idx": 10
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Based on the sensitivity of PixelCNN, we utilized statistical hypothesis testing to verify that adversarial examples lie outside of the training distribution. With the permutation test, we give exact $p$ -values which can be used as a uncertainty measure for detecting outlier perturbations. ",
1151
+ "bbox": [
1152
+ 176,
1153
+ 707,
1154
+ 825,
1155
+ 748
1156
+ ],
1157
+ "page_idx": 10
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Furthermore, we make use of the sensitivity of generative models to explore the idea of purifying adversarial examples. We propose the PixelDefend algorithm, and experimentally show that returning adversarial examples to high probability regions of the training distribution can significantly decrease their damage to classifiers. Different from many other defensive techniques, PixelDefend is model-agnostic and attack-agnostic, which means it can be combined with other defenses to improve robustness without modifying the classification model. As a result PixelDefend is a practical and effective defense against adversarial inputs. ",
1162
+ "bbox": [
1163
+ 174,
1164
+ 755,
1165
+ 825,
1166
+ 853
1167
+ ],
1168
+ "page_idx": 10
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "REFERENCES ",
1173
+ "text_level": 1,
1174
+ "bbox": [
1175
+ 174,
1176
+ 873,
1177
+ 285,
1178
+ 888
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mané. Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 895,
1188
+ 823,
1189
+ 924
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166, 1994. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 103,
1199
+ 823,
1200
+ 133
1201
+ ],
1202
+ "page_idx": 11
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Richard H Byrd, Peihuang Lu, Jorge Nocedal, and Ciyou Zhu. A limited memory algorithm for bound constrained optimization. SIAM Journal on Scientific Computing, 16(5):1190–1208, 1995. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 141,
1210
+ 823,
1211
+ 171
1212
+ ],
1213
+ "page_idx": 11
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. arXiv preprint arXiv:1705.07263, 2017a. ",
1218
+ "bbox": [
1219
+ 173,
1220
+ 179,
1221
+ 823,
1222
+ 209
1223
+ ],
1224
+ "page_idx": 11
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017b. ",
1229
+ "bbox": [
1230
+ 171,
1231
+ 217,
1232
+ 823,
1233
+ 247
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In International Conference on Machine Learning, pp. 854–863, 2017. ",
1240
+ "bbox": [
1241
+ 176,
1242
+ 256,
1243
+ 825,
1244
+ 299
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Bradley Efron and Robert J Tibshirani. An introduction to the bootstrap. CRC press, 1994. ",
1251
+ "bbox": [
1252
+ 171,
1253
+ 308,
1254
+ 771,
1255
+ 324
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Reuben Feinman, Ryan R Curtin, Saurabh Shintre, and Andrew B Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017. ",
1262
+ "bbox": [
1263
+ 173,
1264
+ 332,
1265
+ 820,
1266
+ 362
1267
+ ],
1268
+ "page_idx": 11
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Zhitao Gong, Wenlu Wang, and Wei-Shinn Ku. Adversarial and clean data are not twins. arXiv preprint arXiv:1704.04960, 2017. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 369,
1276
+ 821,
1277
+ 400
1278
+ ],
1279
+ "page_idx": 11
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
1284
+ "bbox": [
1285
+ 173,
1286
+ 409,
1287
+ 823,
1288
+ 439
1289
+ ],
1290
+ "page_idx": 11
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (statistical) detection of adversarial examples. arXiv preprint arXiv:1702.06280, 2017. ",
1295
+ "bbox": [
1296
+ 173,
1297
+ 446,
1298
+ 823,
1299
+ 477
1300
+ ],
1301
+ "page_idx": 11
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014. ",
1306
+ "bbox": [
1307
+ 173,
1308
+ 486,
1309
+ 823,
1310
+ 515
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 523,
1320
+ 823,
1321
+ 568
1322
+ ],
1323
+ "page_idx": 11
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1328
+ "bbox": [
1329
+ 174,
1330
+ 575,
1331
+ 823,
1332
+ 618
1333
+ ],
1334
+ "page_idx": 11
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Matthias Hein and Markus Maier. Manifold denoising. In Advances in neural information processing systems, pp. 561–568, 2007. ",
1339
+ "bbox": [
1340
+ 171,
1341
+ 627,
1342
+ 825,
1343
+ 656
1344
+ ],
1345
+ "page_idx": 11
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
1350
+ "bbox": [
1351
+ 173,
1352
+ 665,
1353
+ 825,
1354
+ 683
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/\\~kriz/cifar.html. ",
1361
+ "bbox": [
1362
+ 171,
1363
+ 689,
1364
+ 825,
1365
+ 719
1366
+ ],
1367
+ "page_idx": 11
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 728,
1375
+ 823,
1376
+ 757
1377
+ ],
1378
+ "page_idx": 11
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1383
+ "bbox": [
1384
+ 171,
1385
+ 766,
1386
+ 823,
1387
+ 796
1388
+ ],
1389
+ "page_idx": 11
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Yingzhen Li and Yarin Gal. Dropout inference in bayesian neural networks with alpha-divergences. arXiv preprint arXiv:1703.02914, 2017. ",
1394
+ "bbox": [
1395
+ 173,
1396
+ 804,
1397
+ 825,
1398
+ 834
1399
+ ],
1400
+ "page_idx": 11
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. arXiv preprint arXiv:1611.02770, 2016. ",
1405
+ "bbox": [
1406
+ 171,
1407
+ 843,
1408
+ 825,
1409
+ 872
1410
+ ],
1411
+ "page_idx": 11
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
1416
+ "bbox": [
1417
+ 176,
1418
+ 882,
1419
+ 826,
1420
+ 922
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017. ",
1427
+ "bbox": [
1428
+ 171,
1429
+ 103,
1430
+ 823,
1431
+ 132
1432
+ ],
1433
+ "page_idx": 12
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2574–2582, 2016. ",
1438
+ "bbox": [
1439
+ 176,
1440
+ 141,
1441
+ 823,
1442
+ 185
1443
+ ],
1444
+ "page_idx": 12
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Aran Nayebi and Surya Ganguli. Biologically inspired protection of deep networks from adversarial attacks. arXiv preprint arXiv:1703.09202, 2017. ",
1449
+ "bbox": [
1450
+ 173,
1451
+ 194,
1452
+ 821,
1453
+ 223
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011. ",
1460
+ "bbox": [
1461
+ 173,
1462
+ 232,
1463
+ 826,
1464
+ 276
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016a. ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 285,
1474
+ 826,
1475
+ 327
1476
+ ],
1477
+ "page_idx": 12
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In Security and Privacy (EuroS&P), 2016 IEEE European Symposium on, pp. 372–387. IEEE, 2016b. ",
1482
+ "bbox": [
1483
+ 173,
1484
+ 337,
1485
+ 826,
1486
+ 381
1487
+ ],
1488
+ "page_idx": 12
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016c. ",
1493
+ "bbox": [
1494
+ 174,
1495
+ 388,
1496
+ 823,
1497
+ 433
1498
+ ],
1499
+ "page_idx": 12
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "Prajit Ramachandran, Tom Le Paine, Pooya Khorrami, Mohammad Babaeizadeh, Shiyu Chang, Yang Zhang, Mark A Hasegawa-Johnson, Roy H Campbell, and Thomas S Huang. Fast generation for convolutional autoregressive models. arXiv preprint arXiv:1704.06001, 2017. ",
1504
+ "bbox": [
1505
+ 173,
1506
+ 440,
1507
+ 823,
1508
+ 484
1509
+ ],
1510
+ "page_idx": 12
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017. ",
1515
+ "bbox": [
1516
+ 173,
1517
+ 493,
1518
+ 823,
1519
+ 536
1520
+ ],
1521
+ "page_idx": 12
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "Hiroaki Sasaki, Aapo Hyvärinen, and Masashi Sugiyama. Clustering via mode seeking by direct estimation of the gradient of a log-density. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 19–34. Springer, 2014. ",
1526
+ "bbox": [
1527
+ 173,
1528
+ 545,
1529
+ 825,
1530
+ 589
1531
+ ],
1532
+ "page_idx": 12
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of statistical planning and inference, 90(2):227–244, 2000. ",
1537
+ "bbox": [
1538
+ 173,
1539
+ 598,
1540
+ 823,
1541
+ 628
1542
+ ],
1543
+ "page_idx": 12
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. ",
1548
+ "bbox": [
1549
+ 173,
1550
+ 636,
1551
+ 823,
1552
+ 666
1553
+ ],
1554
+ "page_idx": 12
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014. ",
1559
+ "bbox": [
1560
+ 171,
1561
+ 674,
1562
+ 825,
1563
+ 705
1564
+ ],
1565
+ "page_idx": 12
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
1570
+ "bbox": [
1571
+ 173,
1572
+ 713,
1573
+ 825,
1574
+ 743
1575
+ ],
1576
+ "page_idx": 12
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "Florian Tramèr, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. The space of transferable adversarial examples. arXiv preprint arXiv:1704.03453, 2017. ",
1581
+ "bbox": [
1582
+ 169,
1583
+ 751,
1584
+ 823,
1585
+ 781
1586
+ ],
1587
+ "page_idx": 12
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "text": "Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in Neural Information Processing Systems, pp. 4790–4798, 2016a. ",
1592
+ "bbox": [
1593
+ 173,
1594
+ 790,
1595
+ 825,
1596
+ 833
1597
+ ],
1598
+ "page_idx": 12
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016b. ",
1603
+ "bbox": [
1604
+ 171,
1605
+ 843,
1606
+ 825,
1607
+ 871
1608
+ ],
1609
+ "page_idx": 12
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pp. 1096–1103. ACM, 2008. ",
1614
+ "bbox": [
1615
+ 174,
1616
+ 882,
1617
+ 825,
1618
+ 924
1619
+ ],
1620
+ "page_idx": 12
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "David Warde-Farley and Ian Goodfellow. 11 adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016. \nHan Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017. \nWeilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017a. \nWeilin Xu, David Evans, and Yanjun Qi. Feature squeezing mitigates and detects carlini/wagner adversarial examples. arXiv preprint arXiv:1705.10686, 2017b. \nCiyou Zhu, Richard H Byrd, Peihuang Lu, and Jorge Nocedal. Algorithm 778: L-bfgs-b: Fortran subroutines for large-scale bound-constrained optimization. ACM Transactions on Mathematical Software (TOMS), 23(4):550–560, 1997. ",
1625
+ "bbox": [
1626
+ 171,
1627
+ 102,
1628
+ 828,
1629
+ 297
1630
+ ],
1631
+ "page_idx": 13
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "APPENDIX A ON RANDOM PERTURBATIONS ",
1636
+ "text_level": 1,
1637
+ "bbox": [
1638
+ 174,
1639
+ 102,
1640
+ 552,
1641
+ 118
1642
+ ],
1643
+ "page_idx": 14
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "One may observe from Figure 3(b) that random perturbations have very low $p$ -values, and thus also live outside of the high density area. Although many classifiers are robust to random noise, it is not a property granted by the dataset. The fact is that robustness to random noise could be from model inductive bias, and there exist classifiers which have high generalization performance on clean images, but can be attacked by small random perturbations. ",
1648
+ "bbox": [
1649
+ 174,
1650
+ 133,
1651
+ 825,
1652
+ 203
1653
+ ],
1654
+ "page_idx": 14
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "It is easy to construct a concrete classifier that are susceptible to random perturbations. Our ResNet on CIFAR-10 gets $9 2 . 0 \\%$ accuracy on the test set and $8 7 . 3 \\%$ on randomly perturbed test images with $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ . According to our PixelCNN, 175 of 10000 test images have a bits per dimension (BPD) larger than 4.5, while the number for random images is 9874. Therefore, we can define a new classifier ",
1659
+ "bbox": [
1660
+ 173,
1661
+ 210,
1662
+ 825,
1663
+ 280
1664
+ ],
1665
+ "page_idx": 14
1666
+ },
1667
+ {
1668
+ "type": "equation",
1669
+ "img_path": "images/bfbc7526fd64d72b16291bfbfeaca7dbb00235893de16bf7f6b3b068a196976d.jpg",
1670
+ "text": "$$\n\\mathrm { R e s N e t ^ { \\prime } ( X ) } \\triangleq \\left\\{ \\begin{array} { l l } { \\mathrm { R e s N e t ( X ) } , } & { \\mathrm { B P D } ( \\mathbf { X } ) < 4 . 5 } \\\\ { \\mathrm { r a n d o m \\ l a b e l } , } & { \\mathrm { B P D } ( \\mathbf { X } ) \\geq 4 . 5 } \\end{array} \\right. ,\n$$",
1671
+ "text_format": "latex",
1672
+ "bbox": [
1673
+ 328,
1674
+ 285,
1675
+ 665,
1676
+ 320
1677
+ ],
1678
+ "page_idx": 14
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "text": "which will get roughly $9 2 \\% \\times 9 8 2 5 / 1 0 0 0 0 + 1 0 \\% \\times 1 7 5 / 1 0 0 0 0 \\approx 9 0 . 6 \\%$ accuracy on the test set, while only $8 7 . 3 \\% \\times 1 2 6 / 1 0 0 0 0 + 1 0 \\% \\times 9 8 7 4 / 1 0 0 0 0 \\approx 1 1 . 0 \\%$ accuracy on the randomly perturbed images. This classifier has comparable generalization performance to the original ResNet, but will give incorrect labels to most randomly perturbed images. ",
1683
+ "bbox": [
1684
+ 174,
1685
+ 327,
1686
+ 825,
1687
+ 385
1688
+ ],
1689
+ "page_idx": 14
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "APPENDIX B EXPERIMENTAL SETTINGS ",
1694
+ "text_level": 1,
1695
+ "bbox": [
1696
+ 176,
1697
+ 404,
1698
+ 522,
1699
+ 420
1700
+ ],
1701
+ "page_idx": 14
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "Adversarial Training We have tested adversarial training with both FGSM and BIM examples. During training, we take special care of the label leaking problem as noted in Kurakin et al. (2016)— we use the predicted labels of the model to generate adversarial examples, instead of using the true labels. This prevents the adversarially trained network to perform better on adversarial examples than clean images by simply retrieving ground-truth labels. Following Kurakin et al. (2016), we also sample $\\epsilon _ { \\mathrm { a t t a c k } }$ from a truncated Gaussian distribution for generating FGSM or BIM adversarial examples, so that the adversarially trained network won’t overfit to any specific $\\epsilon _ { \\mathrm { a t t a c k } }$ . This is different from Madry et al. (2017), where the authors train and test with the same ϵattack. ",
1706
+ "bbox": [
1707
+ 174,
1708
+ 435,
1709
+ 825,
1710
+ 547
1711
+ ],
1712
+ "page_idx": 14
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "text": "For Fashion MNIST experiments, we randomly sample $\\epsilon _ { \\mathrm { a t t a c k } }$ from $\\mathcal { N } ( 0 , \\delta )$ , take the absolute value and truncate it to $[ 0 , 2 \\delta ]$ , where $\\delta \\ : = \\ : 8$ or 25. For CIFAR-10 experiments, we follow the same procedure but fix $\\delta = 8$ . ",
1717
+ "bbox": [
1718
+ 176,
1719
+ 554,
1720
+ 821,
1721
+ 595
1722
+ ],
1723
+ "page_idx": 14
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "Feature Squeezing For implementing the feature squeezing defense, we reduce the number of colors to 8 on Fashion MNIST, and use 32 colors for CIFAR-10. The numbers are chosen to make sure color reduction will not lead to significant deterioration of image quality. After color depth reduction, we apply a $2 \\times 2$ median filter with reflective paddings, since it is reported in $\\mathrm { X u }$ et al. (2017b) to be most effective for preventing CW attacks. ",
1728
+ "bbox": [
1729
+ 174,
1730
+ 611,
1731
+ 825,
1732
+ 681
1733
+ ],
1734
+ "page_idx": 14
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "text": "Models We use ResNet (62-layer) and VGG (16-layer) as classifiers. In our experiments, normally trained networks have the same architectures as adversarially trained networks. Since the images of Fashion MNIST contain roughly one quarter values of those of CIFAR-10, we use a smaller network for classifying Fashion MNIST. More specifically, we reduce the number of feature maps for Fashion MNIST to 1/4 while keeping the same depths. In practive, VGG is more robust than ResNet due to using of dropout layers. The network architecture details are described in Appendix C. For the PixelCNN generative model, we adopted the implementation of $\\mathrm { P i x e l C N N + + }$ (Salimans et al., 2017), but modified the output from mixture of logistic distributions to softmax. The feature maps are also reduced to 1/4 for training PixelCNN on Fashion MNIST. ",
1739
+ "bbox": [
1740
+ 173,
1741
+ 695,
1742
+ 825,
1743
+ 821
1744
+ ],
1745
+ "page_idx": 14
1746
+ },
1747
+ {
1748
+ "type": "text",
1749
+ "text": "Adaptive Threshold We chose the adaptive threshold discussed in Section 4.2 using validation data. We set the threshold at the lowest value which did not decrease the performance of the strongest adversary. For Fashion MNIST, the threshold of bits per dimension was set to 1.8, and for CIFAR-10 the number was 3.2. As a reference, the mean value of bits per dimension for Fashion MNIST test images is 2.7 and for CIFAR-10 is 3.0. However, we admit that using a validation set to choose the best threshold makes the adaptive version of PixelDefend not strictly attack-agnostic. ",
1750
+ "bbox": [
1751
+ 174,
1752
+ 837,
1753
+ 825,
1754
+ 921
1755
+ ],
1756
+ "page_idx": 14
1757
+ },
1758
+ {
1759
+ "type": "text",
1760
+ "text": "APPENDIX C IMAGE CLASSIFIER ARCHITECTURES∗ ",
1761
+ "text_level": 1,
1762
+ "bbox": [
1763
+ 174,
1764
+ 102,
1765
+ 612,
1766
+ 118
1767
+ ],
1768
+ "page_idx": 15
1769
+ },
1770
+ {
1771
+ "type": "table",
1772
+ "img_path": "images/9c46a54f1aedca3ac9e82f6b3f47bfdd25d25147c12ea0b2a44ada33913ed4d5.jpg",
1773
+ "table_caption": [
1774
+ "C.1 RESNET CLASSIFIER FOR CIFAR-10 & FASHION MNIST "
1775
+ ],
1776
+ "table_footnote": [],
1777
+ "table_body": "<table><tr><td rowspan=1 colspan=1>NAME</td><td rowspan=1 colspan=2>CONFIGURATION</td></tr><tr><td rowspan=1 colspan=1>Initial Layer</td><td rowspan=1 colspan=2>conv (filter size: 3 × 3,feature maps: 16 (4), stride size: 1 × 1)</td></tr><tr><td rowspan=1 colspan=1>Residual Block 1</td><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)batch normalization &amp;leaky reluconv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)residual addition</td><td rowspan=1 colspan=1>×10 times</td></tr><tr><td rowspan=2 colspan=1>Residual Block 2</td><td rowspan=1 colspan=2>batch normalization&amp; leaky reluconv (filter size: 3 × 3, feature maps: 32 (8), stride size: 2 × 2)batch normalization&amp;leakyreluconv (filter size: 3 × 3, feature maps: 32 (8), stride size: 1 × 1)average pooling &amp; padding &amp; residual addition</td></tr><tr><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv (filter size: 3 × 3, feature maps: 32(8), stride size: 1 × 1)batch normalization&amp;leaky reluconv (filter size: 3 × 3, feature maps: 32(8), stride size: 1 × 1)residual addition</td><td rowspan=1 colspan=1>×9 times</td></tr><tr><td rowspan=2 colspan=1>Residual Block 3</td><td rowspan=1 colspan=2>batch normalization&amp; leaky reluconv (filter size: 3 × 3, feature maps: 64 (16),stride size: 2 × 2)batch normalization &amp; leaky reluconv (filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)average pooling &amp; padding &amp; residual addition</td></tr><tr><td rowspan=1 colspan=1>batch normalization &amp; leaky reluconv(filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)batch normalization &amp; leaky reluconv(filter size: 3 × 3,feature maps: 64(16), stride size:1 × 1)residual addition</td><td rowspan=1 colspan=1>×9 times</td></tr><tr><td rowspan=1 colspan=1>Pooling Layer</td><td rowspan=1 colspan=2>batch normalization &amp; leaky relu &amp; average pooling</td></tr><tr><td rowspan=1 colspan=1>Output Layer</td><td rowspan=1 colspan=2>fc_10 &amp; softmax</td></tr></table>",
1778
+ "bbox": [
1779
+ 173,
1780
+ 165,
1781
+ 838,
1782
+ 582
1783
+ ],
1784
+ "page_idx": 15
1785
+ },
1786
+ {
1787
+ "type": "text",
1788
+ "text": "C.2 VGG CLASSIFIER FOR CIFAR-10 & FASHION MNIST ",
1789
+ "text_level": 1,
1790
+ "bbox": [
1791
+ 173,
1792
+ 606,
1793
+ 593,
1794
+ 621
1795
+ ],
1796
+ "page_idx": 15
1797
+ },
1798
+ {
1799
+ "type": "table",
1800
+ "img_path": "images/8f148f1fc6d4a0711f26ea19c7ba43946462fff3fc79810797c6cd151e362b32.jpg",
1801
+ "table_caption": [],
1802
+ "table_footnote": [],
1803
+ "table_body": "<table><tr><td rowspan=1 colspan=1>NAME</td><td rowspan=1 colspan=2>CONFIGURATION</td></tr><tr><td rowspan=2 colspan=1>Feature Block 1</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 16 (4), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×2 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size: 2 × 2)</td></tr><tr><td rowspan=2 colspan=1>Feature Block 2</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 128 (32), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×2 times</td></tr><tr><td rowspan=1 colspan=1>max pooling (stride size:2 × 2)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=2 colspan=1>Feature Block 3</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 512 (128), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×3 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size: 2 × 2)</td></tr><tr><td rowspan=2 colspan=1>Feature Block 4</td><td rowspan=1 colspan=1>conv (filter size: 3 × 3, feature maps: 512 (128), stride size: 1 × 1)batch normalization &amp; relu</td><td rowspan=1 colspan=1>×3 times</td></tr><tr><td rowspan=1 colspan=2>max pooling (stride size:2× 2) &amp; flatten</td></tr><tr><td rowspan=1 colspan=1>Classifier Block</td><td rowspan=1 colspan=2>dropout &amp; fc_512(128)&amp; reludropout&amp;fc_1O&amp; softmax</td></tr></table>",
1804
+ "bbox": [
1805
+ 173,
1806
+ 637,
1807
+ 839,
1808
+ 856
1809
+ ],
1810
+ "page_idx": 15
1811
+ },
1812
+ {
1813
+ "type": "text",
1814
+ "text": "APPENDIX D SAMPLED IMAGES FROM PIXELCNN ",
1815
+ "text_level": 1,
1816
+ "bbox": [
1817
+ 174,
1818
+ 101,
1819
+ 609,
1820
+ 118
1821
+ ],
1822
+ "page_idx": 16
1823
+ },
1824
+ {
1825
+ "type": "text",
1826
+ "text": "D.1 FASHION MNIST ",
1827
+ "text_level": 1,
1828
+ "bbox": [
1829
+ 174,
1830
+ 132,
1831
+ 341,
1832
+ 148
1833
+ ],
1834
+ "page_idx": 16
1835
+ },
1836
+ {
1837
+ "type": "image",
1838
+ "img_path": "images/a52c9a517dca2176580fff1389c7f949da2bad0c291e18c24545fefdf06d727d.jpg",
1839
+ "image_caption": [
1840
+ "Figure 8: True and generated images from Fashion MNIST. The upper part shows true images sampled from the dataset while the bottom shows generated images from PixelCNN. "
1841
+ ],
1842
+ "image_footnote": [],
1843
+ "bbox": [
1844
+ 173,
1845
+ 256,
1846
+ 825,
1847
+ 765
1848
+ ],
1849
+ "page_idx": 16
1850
+ },
1851
+ {
1852
+ "type": "text",
1853
+ "text": "D.2 CIFAR-10 ",
1854
+ "bbox": [
1855
+ 173,
1856
+ 103,
1857
+ 294,
1858
+ 117
1859
+ ],
1860
+ "page_idx": 17
1861
+ },
1862
+ {
1863
+ "type": "image",
1864
+ "img_path": "images/31c1a6c112e70b99ae7152ef1092a77c22d51e7cabee2a609f7352a85edd4c55.jpg",
1865
+ "image_caption": [
1866
+ "Figure 9: True and generated images from CIFAR-10. The upper part shows true images sampled from the dataset while the bottom part shows generated images from PixelCNN. "
1867
+ ],
1868
+ "image_footnote": [],
1869
+ "bbox": [
1870
+ 173,
1871
+ 242,
1872
+ 825,
1873
+ 747
1874
+ ],
1875
+ "page_idx": 17
1876
+ },
1877
+ {
1878
+ "type": "text",
1879
+ "text": "APPENDIX E SAMPLED PURIFIED IMAGES FROM PIXELDEFEND ",
1880
+ "text_level": 1,
1881
+ "bbox": [
1882
+ 174,
1883
+ 101,
1884
+ 714,
1885
+ 118
1886
+ ],
1887
+ "page_idx": 18
1888
+ },
1889
+ {
1890
+ "type": "text",
1891
+ "text": "E.1 FASHION MNIST ",
1892
+ "text_level": 1,
1893
+ "bbox": [
1894
+ 174,
1895
+ 132,
1896
+ 339,
1897
+ 148
1898
+ ],
1899
+ "page_idx": 18
1900
+ },
1901
+ {
1902
+ "type": "image",
1903
+ "img_path": "images/45672d7a01c00ca3bc643f6903a64a18eec8b52de727d98e8a3c13f4bba2bbb2.jpg",
1904
+ "image_caption": [
1905
+ "Figure 10: The upper part shows adversarial images generated from FGSM attack while the bottom part shows corresponding purified images after PixelDefend. Here $\\epsilon _ { \\mathrm { a t t a c k } } = 2 5 $ and $\\epsilon _ { \\mathrm { d e f e n d } } = 3 2 $ . "
1906
+ ],
1907
+ "image_footnote": [],
1908
+ "bbox": [
1909
+ 173,
1910
+ 256,
1911
+ 825,
1912
+ 762
1913
+ ],
1914
+ "page_idx": 18
1915
+ },
1916
+ {
1917
+ "type": "text",
1918
+ "text": "E.2 CIFAR-10 ",
1919
+ "text_level": 1,
1920
+ "bbox": [
1921
+ 173,
1922
+ 103,
1923
+ 294,
1924
+ 117
1925
+ ],
1926
+ "page_idx": 19
1927
+ },
1928
+ {
1929
+ "type": "image",
1930
+ "img_path": "images/5a6af051392cefa48293cd2d5b943cf4e7dfb45eaebf9508ebc2ad16fec1b77e.jpg",
1931
+ "image_caption": [
1932
+ "Figure 11: The upper part shows adversarial images generated from FGSM attack while the bottom part shows corresponding purified images by PixelDefend. Here $\\epsilon _ { \\mathrm { a t t a c k } } = 8$ and $\\epsilon _ { \\mathrm { d e f e n d } } = 1 6$ . "
1933
+ ],
1934
+ "image_footnote": [],
1935
+ "bbox": [
1936
+ 173,
1937
+ 242,
1938
+ 825,
1939
+ 747
1940
+ ],
1941
+ "page_idx": 19
1942
+ }
1943
+ ]
parse/train/rJUYGxbCW/rJUYGxbCW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJUYGxbCW/rJUYGxbCW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
vlm/dev/-ltZ1uw8ZE7/10.png ADDED

Git LFS Details

  • SHA256: 6edb4b1f5434841c696d6776a4b4346c31dc4206fb252ea894e2a174ee718a88
  • Pointer size: 131 Bytes
  • Size of remote file: 629 kB
vlm/dev/-ltZ1uw8ZE7/2.png ADDED

Git LFS Details

  • SHA256: d8def822a303d07f5c65a31b9e61dd50704d63ce25583e2e4bfd7f4555183844
  • Pointer size: 131 Bytes
  • Size of remote file: 557 kB
vlm/dev/-ltZ1uw8ZE7/3.png ADDED

Git LFS Details

  • SHA256: bd00a9eff65a9d2d772d2374bb90389dd22acb45f0090e03c63a6ec645fdb53d
  • Pointer size: 131 Bytes
  • Size of remote file: 590 kB
vlm/dev/-ltZ1uw8ZE7/6.png ADDED

Git LFS Details

  • SHA256: e8edd360ed7ee38b5dcfedf23752b603141bee9fbe82322944e016f7d299c3bc
  • Pointer size: 131 Bytes
  • Size of remote file: 599 kB
vlm/dev/-ltZ1uw8ZE7/9.png ADDED

Git LFS Details

  • SHA256: b28a1615e19b92f631e0e20e4d24fda9fe5dc9c7aba7c3d9a57fc712a06e17be
  • Pointer size: 131 Bytes
  • Size of remote file: 630 kB
vlm/dev/0I3su3mkuL/0.png ADDED

Git LFS Details

  • SHA256: 7db8764d668c3c61dbb65cf032f43d6b953bf34d0e0d516e87c722dae0248d37
  • Pointer size: 131 Bytes
  • Size of remote file: 756 kB
vlm/dev/0I3su3mkuL/1.png ADDED

Git LFS Details

  • SHA256: dea609e50a1729f6de0d15969003cd93944e7704b46d8bea724500ef90fddb7c
  • Pointer size: 131 Bytes
  • Size of remote file: 641 kB
vlm/dev/0I3su3mkuL/10.png ADDED

Git LFS Details

  • SHA256: 7105af65a32bbda5b883e0ce734cd533b271bd74db76a79acfb3948dbc33cd82
  • Pointer size: 131 Bytes
  • Size of remote file: 546 kB
vlm/dev/0I3su3mkuL/11.png ADDED

Git LFS Details

  • SHA256: 5bd4dc50f282fede9f6b497ac1ef22b7457f3c4df831c8062c9b688971da5ec5
  • Pointer size: 131 Bytes
  • Size of remote file: 545 kB
vlm/dev/0I3su3mkuL/12.png ADDED

Git LFS Details

  • SHA256: 2d79551879db94dbc5e51053e9fc20ae9934e2f82f52f443960cf07e808ee952
  • Pointer size: 131 Bytes
  • Size of remote file: 320 kB
vlm/dev/0I3su3mkuL/13.png ADDED

Git LFS Details

  • SHA256: 1e3362918a3fd40b73c7c5dac367ee2453155fd36fc4e98bdb3b59670698070c
  • Pointer size: 131 Bytes
  • Size of remote file: 306 kB
vlm/dev/0I3su3mkuL/14.png ADDED

Git LFS Details

  • SHA256: 83113f7807a79e76461576165c5de2e3a5ad0f9ceec848db95ff1b60044d14a5
  • Pointer size: 131 Bytes
  • Size of remote file: 349 kB
vlm/dev/0I3su3mkuL/15.png ADDED

Git LFS Details

  • SHA256: 49df5857f47987a256db4686ed28d4ac1026777fb6acfa1e64ba4c48e4ded68a
  • Pointer size: 131 Bytes
  • Size of remote file: 560 kB
vlm/dev/0I3su3mkuL/16.png ADDED

Git LFS Details

  • SHA256: 8215107abc127286085ae92224fb851f6f073e9967214cfbb1764beab83384e3
  • Pointer size: 131 Bytes
  • Size of remote file: 254 kB
vlm/dev/0I3su3mkuL/17.png ADDED

Git LFS Details

  • SHA256: b957433504ce5e2178964cb422bfaf9f895569a05707b049f125cb75d38c2c98
  • Pointer size: 131 Bytes
  • Size of remote file: 601 kB
vlm/dev/0I3su3mkuL/18.png ADDED

Git LFS Details

  • SHA256: a88e553ee66567dfde6130cf32417f84338eef139cf2e7f05ec00564a97ca028
  • Pointer size: 131 Bytes
  • Size of remote file: 579 kB
vlm/dev/0I3su3mkuL/19.png ADDED

Git LFS Details

  • SHA256: 030e7b237ae90e98857e7f0340842aa956f124a67c572c3a61eff1a8a0839f4a
  • Pointer size: 131 Bytes
  • Size of remote file: 219 kB
vlm/dev/0I3su3mkuL/2.png ADDED

Git LFS Details

  • SHA256: b22b3eb6cc956879889118e89880f8480f0fd07b00c1a8fa1e36b6d852976af9
  • Pointer size: 131 Bytes
  • Size of remote file: 612 kB
vlm/dev/0I3su3mkuL/3.png ADDED

Git LFS Details

  • SHA256: 0134ac0aeae5283971ba4538766fc230c9353d0863add8e0ce720dce29527062
  • Pointer size: 131 Bytes
  • Size of remote file: 569 kB
vlm/dev/0I3su3mkuL/4.png ADDED

Git LFS Details

  • SHA256: 40231d86fa0cda43cb0e12d4ef368a535b1bc6d5670b1e735a4bd31cde282bfa
  • Pointer size: 131 Bytes
  • Size of remote file: 621 kB
vlm/dev/0I3su3mkuL/5.png ADDED

Git LFS Details

  • SHA256: 15f580cf93c00d560894e30548d0f877af66e8e321c29651e29ae060bfbd6a44
  • Pointer size: 131 Bytes
  • Size of remote file: 722 kB
vlm/dev/0I3su3mkuL/6.png ADDED

Git LFS Details

  • SHA256: faec5bb113867e6a431a4801b13ab494d7af665978a6473738b4ad41f0e46ac3
  • Pointer size: 131 Bytes
  • Size of remote file: 797 kB
vlm/dev/0I3su3mkuL/7.png ADDED

Git LFS Details

  • SHA256: eb21b973229b4f9383f5b8902bdfe45b7ed835ed616d72881acef1bc5726faac
  • Pointer size: 131 Bytes
  • Size of remote file: 627 kB
vlm/dev/0I3su3mkuL/8.png ADDED

Git LFS Details

  • SHA256: f222e66fbe816444f986c26f5fce2bb0eee826bc1a8acdb255d0da939126dcab
  • Pointer size: 131 Bytes
  • Size of remote file: 522 kB
vlm/dev/0I3su3mkuL/9.png ADDED

Git LFS Details

  • SHA256: bd6f59f2c934454dcc6539852052339963c51850cf1d29441cd8df5126614f71
  • Pointer size: 131 Bytes
  • Size of remote file: 574 kB
vlm/dev/0RDcd5Axok/0.png ADDED

Git LFS Details

  • SHA256: df5bb29039544eafadd087c4c988122126d7ff4860168a3ee5dec4165a17a364
  • Pointer size: 131 Bytes
  • Size of remote file: 474 kB
vlm/dev/0RDcd5Axok/1.png ADDED

Git LFS Details

  • SHA256: 9af25edae4c53b22cef4db64ed7ab7c42b6edaf7c94dc4071ba9c4c1fba54b0b
  • Pointer size: 131 Bytes
  • Size of remote file: 501 kB
vlm/dev/0RDcd5Axok/10.png ADDED

Git LFS Details

  • SHA256: d6f530542b945b78f152e7b082e812e5eba40fff3f0c4fa0be20be762aec1b2c
  • Pointer size: 131 Bytes
  • Size of remote file: 523 kB
vlm/dev/0RDcd5Axok/11.png ADDED

Git LFS Details

  • SHA256: be7ed60ebc8befca44f36a1982e803d403a396271fe3da37ad3fdf7adfd64ac2
  • Pointer size: 131 Bytes
  • Size of remote file: 463 kB
vlm/dev/0RDcd5Axok/12.png ADDED

Git LFS Details

  • SHA256: fed9803c00ea2050b3f3373770ea7c1050a36e7009cdf14b469c25b07a13b103
  • Pointer size: 131 Bytes
  • Size of remote file: 484 kB