ZHANGYUXUAN-zR commited on
Commit
1805304
·
verified ·
1 Parent(s): 282e851

Add files using upload-large-folder tool

Browse files
parse/train/B1twdMCab/B1twdMCab.md ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DYNAMIC INTEGRATION OF BACKGROUNDKNOWLEDGE IN NEURAL NLU SYSTEMS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Common-sense or background knowledge is required to understand natural language, but in most neural natural language understanding (NLU) systems, the requisite background knowledge is indirectly acquired from static corpora. We develop a new reading architecture for the dynamic integration of explicit background knowledge in NLU models. A new task-agnostic reading module provides refined word representations to a task-specific NLU architecture by processing background knowledge in the form of free-text statements, together with the taskspecific inputs. Strong performance on the tasks of document question answering (DQA) and recognizing textual entailment (RTE) demonstrate the effectiveness and flexibility of our approach. Analysis shows that our models learn to exploit knowledge selectively and in a semantically appropriate way.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Understanding natural language depends crucially on common-sense or background knowledge, for example, knowledge about what concepts are expressed by the words being read (lexical knowledge), and what relations hold between these concepts (relational knowledge). As a simple illustration, if an agent needs to understand that the statement “King Farouk signed his abdication” is entailed by “King Farouk was exiled to France in 1952, after signing his resignation”, it must know (among other things) that abdication means resignation of a king.
12
+
13
+ In most neural natural language understanding (NLU) systems, the requisite background knowledge is implicitly encoded in the models’ parameters. That is, what background knowledge is present has been learned from task supervision and also by pre-training word embeddings (where distributional information reliably reflects certain kinds of useful background knowledge, such as semantic relatedness). However, acquisition of background knowledge from static training corpora is limiting for two reasons. First, we cannot expect that all background knowledge that could be important for solving an NLU task can be extracted from a limited amount of training data. Second, as the world changes, the facts that may influence how a text is understood will likewise change. In short: building suitably large corpora to capture all relevant information, and keeping the corpus and derived models up to date with changes to the world would be impractical.
14
+
15
+ In this paper, we develop a new architecture for dynamically incorporating external background knowledge in NLU models. Rather than relying only on static knowledge implicitly present in the training data, supplementary knowledge is retrieved from a knowledge base to assist with understanding text inputs. Since NLU systems must necessarily read and understand text inputs, our approach incorporates background knowledge by repurposing this reading machinery—that is, we read the text being understood together with supplementary natural language statements that assert facts (assertions) which are relevant to understanding the content (§2).
16
+
17
+ Our knowledge-augmented NLU systems operate in a series of phases. First, given the text input that the system must understand, which we call the context, a set of relevant supporting assertions is retrieved. While learning to retrieve relevant information for solving NLU tasks is an important question (Nogueira & Cho, 2017; Narasimhan et al., 2016, inter alia), in this work, we focus on learning how to incorporate retrieved information, and use simple heuristic retrieval methods to identify plausibly relevant background from an external knowledge base. Once the supplementary texts have been retrieved, we use a word embedding refinement strategy that incrementally reads the context and retrieved assertions starting with context-independent word embeddings and building successively refined embeddings of the words that ultimately reflect both the relevant supporting assertions and the input context (§3). These contextually refined word embeddings, which serve as dynamic memory to store newly incorporated knowledge, are used in any task-specific reading architecture. The overall architecture is illustrated in Figure 1. Although we are incorporating a new kind of information into the NLU pipeline, a strength of this approach is that the architecture of the reading module is independent of the final NLU task—the only requirement is that the final architecture use word embeddings.
18
+
19
+ We carry out experiments on several different datasets on the tasks of document question answering (DQA) and recognizing textual entailment (RTE) evaluating the impact of our proposed solution with both basic task architectures and a sophisticated task architecture for RTE (§4). We find that our embedding refinement strategy is quite effective (§5). On four standard benchmarks, we show that refinement helps—even refining the embeddings just using the context (and no additional background information) can improve performance significantly, and adding background knowledge helps further. Our results are very competitive, setting a new state-of-the-art on the recent TriviaQA benchmarks which is remarkable considering the simplicity of the chosen task-specific architecture. Finally, we provide a detailed analysis of how knowledge is being used by an RTE system (§6), including experiments showing that our system is capable of making appropriate counterfactual inferences when provided with “false knowledge”.
20
+
21
+ # 2 EXTERNAL KNOWLEDGE AS SUPPLEMENTARY TEXT INPUTS
22
+
23
+ Knowledge resources make information that could potentially be useful for improving NLU available in a variety different formats, such as (subject, predicate, object)-triples, relational databases, and other structured formats. Rather than tailoring our solution to a particular structured representation, we assume that all supplementary information either already exists in natural language statements or can easily be recoded as natural language. In contrast to mapping from unstructured to structured representations, the inverse problem is not terribly difficult. For example, given a triple (monkey, isA, animal) we can construct the free-text assertion “a monkey is an animal” using a few simple rules. Finally, the free-text format means that knowledge that exists only in unstructured text form is usable by our system.
24
+
25
+ A major question that remains to be answered is: given some text that is to be understood, what supplementary knowledge should be incorporated? The retrieval of contextually relevant information from knowledge sources is a complex research topic by itself, and it is likewise crucially dependent on the format of the underlying knowledge base. There are several statistical (Manning et al., 1999) and more recently neural approaches (Mitra & Craswell, 2017) and approaches based on reinforcement learning (Nogueira & Cho, 2017). In this work we make use of a simple heuristic from which we almost exhaustively retrieve all potentially relevant assertions (see $\ S 4$ ), and rely on our reading architecture to learn to extract only relevant information.
26
+
27
+ In the next section, we turn to the question of how to leverage the retrieved supplementary knowledge (encoded as text) in a NLU system.
28
+
29
+ # 3 REFINING WORD EMBEDDINGS BY READING
30
+
31
+ In order to incorporate information from retrieved input texts we propose to compute contextually refined word representations prior to processing the NLU task at hand and pass them to the task in the form of word embeddings. Word embeddings thus serve as a form of memory that not only contains general-purpose knowledge (as in typical neural NLU systems) but also contextual information (including retrieved background knowledge). Our incremental refinement process encodes input texts followed by updates on the word embedding matrix using the encoded input in multiple reading steps. Words are first represented non-contextually (i.e., standard word type embeddings), which can be conceived of as the columns in an embedding matrix $\mathbf { E } ^ { 0 }$ . At each progressive reading step $\ell \geq 1$ , a new embedding matrix $\mathbf { E } ^ { \ell }$ is constructed by refining the embeddings from the previous step ${ \bf E } ^ { \ell - 1 }$ using (user-specified) contextual information $\mathcal { X } ^ { \ell }$ for reading step $\ell$ , which is a set of natural language sequences (i.e., texts). An illustration of our incremental refinement strategy can be found in Figure 1.
32
+
33
+ ![](images/4179c2872f585c02c0f019940fd51a9a5ec1281c1d407152a918799ff98b5b8b.jpg)
34
+ Figure 1: Illustration of our context-dependent, refinement strategy for word representations on an example from the SNLI dataset comprising the premise, hypothesis and additional external information in form of free-text assertions. The reading architecture constructs refinements of word representations incrementally (conceptually represented as columns in a series of embedding matrices) $\mathbf { E } ^ { \ell }$ are incrementally refined by reading the input text and textual renderings of relevant background knowledge before computing the representations used by the task model (in this figure, RTE).
35
+
36
+ In the following, we define this procedure formally. We denote the hidden dimensionality of our model by $n$ and a fully-connected layer by $\mathrm { F C } ( \mathbf { z } ) = \mathbf { W } \mathbf { z } + \mathbf { b } , \mathbf { W } \in \mathbb { R } ^ { n \times m } , \mathbf { b } \in \mathbb { R } ^ { n } , \mathbf { u } \in \mathbb { R } ^ { m }$ .
37
+
38
+ # 3.1 UNREFINED WORD EMBEDDINGS $( \mathbf { E } ^ { 0 }$ )
39
+
40
+ The first representation level consists of non-contextual word representations, that is, word representations that do not depend on any input; these can be conceived of as an embedding matrix $\mathbf { E } ^ { 0 }$ whose columns are indexed by words in $\Sigma ^ { * }$ . The non-contextual word representation $\mathbf { e } _ { w } ^ { 0 }$ for a single word $w$ is computed by using a gated combination of fixed, pre-trained word vectors ${ \bf e } _ { w } ^ { p } \in \mathbb { R } ^ { n ^ { \prime } }$ with learned character-based embeddings $\mathbf { e } _ { w } ^ { c h a r } \in \mathbb { R } ^ { n }$ . The formal definition of this combination is given in Eq. 1:
41
+
42
+ $$
43
+ \begin{array} { r l } & { { \mathbf { e } _ { w } ^ { p ^ { \prime } } } = \mathrm { R e L U } ( { \mathrm { F C } } ( { { \mathbf { e } _ { w } ^ { p } } } ) ) } \\ & { { \mathbf { g } _ { w } } = \sigma \left( { \mathrm { F C } } \left[ \mathbf { e } _ { w } ^ { p ^ { \prime } } \right] \right) } \\ & { { \mathbf { e } _ { w } ^ { 0 } } = \mathbf { g } _ { w } \odot { \mathbf { e } _ { w } ^ { p ^ { \prime } } } + \left( \mathbf { 1 } - \mathbf { g } _ { w } \right) \odot { { \mathbf { e } _ { w } ^ { c h a r } } } . } \end{array}
44
+ $$
45
+
46
+ We compute $\mathbf { e } _ { w } ^ { c h a r }$ using a single-layer convolutional neural network using $n$ convolutional filters of width 5 followed by a max-pooling operation over time. Combining pre-trained with character based word embeddings in such a way is common practice. Our approach follows (Seo et al., 2017; Weissenborn et al., 2017).
47
+
48
+ # 3.2 CONTEXTUALLY REFINED WORD REPRESENTATIONS $( \mathbf { E } ^ { \ell } , \ell \geq 1 )$
49
+
50
+ In order to compute contextually refined word embeddings $\mathbf { E } ^ { \ell }$ given prior representations ${ \bf E } ^ { \ell - 1 }$ we assume a given set of texts $\mathcal { X } ^ { \ell } \overset { \cdot } { = } \{ \mathbf { x } _ { 1 } ^ { \ell } , \mathbf { x } _ { 2 } ^ { \ell } , \ldots \}$ that are to be read at refinement iteration $\ell$ . Each text $\mathbf { \Delta } \mathbf { x } _ { i } ^ { \ell }$ is a sequence of word tokens. We embed all tokens of every $\pmb { x } _ { i } ^ { \ell }$ using the embedding matrix from the previous layer, ${ \bf E } ^ { \ell - 1 }$ . To each word, we concatenate a one-hot vector of length $L$ with position $\ell$ set to 1, indicating which layer is currently being processed.1 Stacking the vectors into a matrix, we obtain a $\mathbf { X } _ { i } ^ { \ell } \in \mathbb { R } ^ { d \times | \mathbf { x } _ { i } ^ { \ell } | }$ . This matrix is processed by a bidirectional recurrent neural network, a BiLSTM (Hochreiter & Schmidhuber, 1997) in this work. The resulting output is further projected to $\hat { \mathbf { X } } _ { i } ^ { \ell }$ by a fully-connected layer followed by a ReLU non-linearity (Eq. 2).
51
+
52
+ $$
53
+ \hat { \mathbf { X } } _ { i } ^ { \ell } = \mathrm { R e L U } ( \mathrm { F C } ( \mathrm { B i L S T M } ( \mathbf { X } _ { i } ^ { \ell } ) ) )
54
+ $$
55
+
56
+ To finally update the previous embedding ${ \bf e } _ { w } ^ { \ell - 1 }$ of word $w$ , we initially maxpool all representations of occurrences matching the lemma of $w$ in every $\pmb { x } \in \mathcal { X } ^ { \ell }$ resulting in $\hat { \mathbf { e } } _ { w } ^ { \ell }$ (Eq. 3). Finally, we combine the context-independent representation ${ \bf e } _ { w }$ with $\hat { \mathbf { e } } _ { w }$ to form a context-sensitive representation ${ \mathbf { e } } _ { w } ^ { \ell }$ via a gated addition which lets the model determine how much to revise the embedding with the newly read information (Eq. 5).
57
+
58
+ $$
59
+ \begin{array} { r l } & { \hat { \mathbf { e } } _ { w } ^ { \ell } = \operatorname* { m a x } \left\{ \hat { \mathbf { x } } _ { k } ^ { \ell } \mid \mathbf { \Delta } x ^ { \ell } \in \mathcal { X } ^ { \ell } , \mathrm { l e m m a } ( x _ { k } ^ { \ell } ) = \mathrm { l e m m a } ( w ) \right\} } \\ & { \mathbf { \Delta } \mathbf { u } _ { w } ^ { \ell } = \sigma \left( \mathrm { F C } \left( \left[ \mathbf { \hat { e } } _ { w } ^ { \ell - 1 } \right] \right) \right) } \\ & { \mathbf { e } _ { w } ^ { \ell } = \mathbf { u } _ { w } ^ { \ell } \odot \mathbf { e } _ { w } ^ { \ell - 1 } + ( \mathbf { 1 } - \mathbf { u } _ { w } ^ { \ell } ) \odot \hat { \mathbf { e } } _ { w } ^ { \ell } } \end{array}
60
+ $$
61
+
62
+ Note that we soften the matching condition for $w$ using lemmatization, $\operatorname { l e m m a } ( w )$ , during the pooling operation of Eq. 3 because contextual information about certain words is usually independent of the current word form $w$ they appear in. As a consequence, this minor linguistic pre-processing step allows for additional interaction between tokens of the same lemma.
63
+
64
+ The important difference between our contextual refinement step and conventional multi-layer (RNN) architectures is the pooling operation that is performed over occurrences of tokens that share the same lemma. This effectively connects different positions within and between different texts with each other thereby mitigating the problems arising from long-distance dependencies. More importantly, however, it allows models to make use of additional input such as relevant background knowledge.
65
+
66
+ # 4 EXPERIMENTAL SETUP
67
+
68
+ We run experiments on four benchmarks for two popular tasks, namely recognizing textual entailment (RTE) and document question answering (DQA). In the following we describe different aspects of our experimental setup in more detail.
69
+
70
+ Task-specific Models Our primary interest is to explore the value of our refinement strategy with relatively generic task architectures. Therefore, we chose basic single-layer bidirectional LSTMs (BiLSTMs) as encoders with a task-specific, feed-forward neural network on top for the final prediction. Such models are common baselines for NLU tasks and can be considered general reading architectures as opposed to the more highly tuned, task-specific NLU systems that are necessary to achieve state-of-the art results. However, since such models frequently underperform more customized architectures, we also add our refinement module to a reimplementation of a state-of-the-art architecture for RTE called ESIM (Chen et al., 2017b).
71
+
72
+ All models are trained end-to-end jointly with the refinement module. For the DQA baseline system we add a simple lemma-in-question feature (liq) as suggested in Weissenborn et al. (2017) when encoding the context to compare against competitive baseline results. We provide the exact model implementations for our BiLSTM baselines and general training details in Appendix A.
73
+
74
+ Question Answering We apply our DQA models on 2 recent DQA benchmark datasets, SQuAD (Rajpurkar et al., 2016) and TriviaQA (Joshi et al., 2017). The task is to predict an answer span within a provided document $\pmb { p }$ given a question $\pmb q$ . Both datasets are large-scale, containing on the order of $1 0 0 \mathrm { k }$ examples. Because TriviaQA is collected via distant supervision the test set is divided into a large but noisy distant supervision part and a much smaller (on the order of hundreds) human verified part. We report results on both. See Appendix A.1 for implementation details.
75
+
76
+ Recognizing Textual Entailment We test on the frequently used SNLI dataset (Bowman et al., 2015), a collection of $5 7 0 k$ sentence pairs, and the more recent MultiNLI dataset $4 3 3 k$ sentence pairs) (Williams et al., 2017). Given two sentences, a premise $\pmb { p }$ and a hypothesis $\pmb q$ , the task is to determine whether $\pmb { p }$ either entails, contradicts or is neutral to $\pmb q$ . See Appendix A.2 for implementation details.
77
+
78
+ Knowledge Source We make use of ConceptNet2 (Speer & Havasi, 2012), a freely-available, multi-lingual semantic network that originated from the Open Mind Common Sense project and incorporates selected knowledge from various other knowledge sources, such as Wiktionary3, Open Multilingual WordNet4, OpenCyc and DBpedia5. It presents information in the form of relational triples.6
79
+
80
+ Assertion Retrieval We would like to obtain information about the relations of words and phrases between $\pmb q$ and $\pmb { p }$ from ConceptNet in order to strengthen the connection between the two sequences. Because assertions $\textbf { \em a }$ in ConceptNet come in form of (subject, predicate, object)-triples $( s , r , o )$ , we retrieve all assertions for which $s$ appears in $\pmb q$ and $o$ appears in $\pmb { p }$ , or vice versa. Because still too many such assertions might be retrieved for an instance, we rank all retrievals based on their respective subject and object. To this end we compute a ranking score which is the inverse product of appearances of the subject and the object in the KB, that is $\mathrm { s c o r e } ( a ) =$ $\begin{array} { r } { ( \sum _ { \pmb { a } ^ { \prime } } \mathbb { I } ( s _ { a ^ { \prime } } = s _ { a } ) \cdot \sum _ { \pmb { a } ^ { \prime } } \mathbb { I } ( o _ { a ^ { \prime } } = o _ { a } ) ) ^ { - 1 } } \end{array}$ , where I denotes the indicator function. This is very related to the popular idf score (inverted document frequency) from information retrieval which ranks terms higher that appear less frequently across different documents. During training and evaluation we only retain the top- $k$ assertions which we specify for the individual experiments separately. Note that (although very rarely) it might happen that no assertions are retrieved at all.
81
+
82
+ Refinement Order When employing our embedding-refinement strategy, we first read the document $( p )$ followed by the question $( q )$ in case of DQA, and the premise $( p )$ followed by the hypothesis $( q )$ for RTE, that is, ${ \boldsymbol { \mathcal { X } } } ^ { 1 } = \{ { \boldsymbol { p } } \}$ and $\mathcal { X } ^ { 2 } = \{ \pmb q \}$ . Additional knowledge in the form of a set of assertions $\mathcal { A }$ is integrated after reading the task-specific input for both DQA and RTE, that is, $\mathcal { X } ^ { 3 } = \mathcal { A }$ . In preliminary experiments we found that the final performance is not significantly sensitive to the order of presentation so we decided to fix our order as defined above.
83
+
84
+ Table 1: Results on the SQuAD development set as well as TriviaQA-Wikipedia and -Web test sets for $n = 3 0 0 -$ dimensional models. TriviaQA results are further divided by distant supervision results (left) and human verified results (right). The model using external knowledge is trained with the top-20/50 retrieved ConceptNet assertions. The liq-feature (lemma-in-question) is only used for the baseline. $^ { 1 } \mathrm { H u }$ et al. (2017), 2Wang et al. (2017), 3Pan et al. (2017).
85
+
86
+ <table><tr><td></td><td colspan="2">SQuAD Dev</td><td colspan="2">TriviaQA Wiki Test</td><td colspan="2">TriviaQA Web Test</td></tr><tr><td>Model</td><td>F1</td><td>Exact</td><td>F1</td><td>Exact</td><td>F1</td><td>Exact</td></tr><tr><td>BiLSTM + liq</td><td>74.3</td><td>63.7</td><td>50.9 / 55.1</td><td>45.2 /48.8</td><td>50.9 / 60.0</td><td>44.2/54.7</td></tr><tr><td>+ reading</td><td>77.8</td><td>67.3</td><td>54.1 / 59.6</td><td>47.5 / 52.2</td><td>54.7 / 65.9</td><td>48.1/60.3</td></tr><tr><td>+ reading + knowledge (20)</td><td>79.2</td><td>69.0</td><td>54.6/60.7</td><td>48.4 / 55.1</td><td>56.9 / 67.3</td><td>50.6 / 61.9</td></tr><tr><td>+ reading + knowledge (50)</td><td>79.6</td><td>69.4</td><td>55.1 / 59.9</td><td>48.6/ 53.4</td><td>56.7 / 68.0</td><td>50.6 / 63.2</td></tr><tr><td>SotA Results</td><td>81.81</td><td>73.21</td><td>46.9 / 55.83</td><td>43.2 /49.33</td><td>48.3/57.63</td><td>44.3/ 53.33</td></tr><tr><td></td><td>82.8²</td><td>75.62</td><td>52.9 / 59.51</td><td>46.9 / 54.51</td><td>52.9 /61.51</td><td>46.7 /57.01</td></tr></table>
87
+
88
+ # 5 RESULTS
89
+
90
+ # 5.1 QUESTION ANSWERING: SQUAD AND TRIVIAQA
91
+
92
+ Table 1 presents our results on two question answering benchmarks. We report results on the SQuAD development set7 and the two more challenging TriviaQA test sets which demonstrate that the introduction of our reading architecture helps consistently with additional gains from using background knowledge. Our systems do even outperform current state-of-the-art models on TriviaQA which is surprising given the simplicity of our task-specific architecture and the complexity of the others. For instance, the system of Hu et al. (2017) uses a complex multi-hop attention mechanism to achieve their results. Even our baseline BiLSTM $^ +$ liq system reaches very competitive results on TriviaQA which is in line with findings of Weissenborn et al. (2017). To verify that it is not the additional computation that gives the performance boosts when using only our reading architecture (without knowledge), we also ran experiments with 2-layer BiLSTMs $\left( + \mathrm { l i q } \right)$ for our baselines which exhibit similar computational complexity to BiLSTM $^ +$ reading. We found that the second layer even hurts performance. This demonstrates that pooling over word/lemma occurrences in a given context between layers, which constitutes the main difference to conventional stacked RNNs, is a powerful, yet simple technique. In any case, the most important finding of these experiments is that knowledge actually helps considerably with up to $2 . 2 / 2 . 9 \%$ improvements on the F1/Exact measures.
93
+
94
+ # 5.2 RECOGNIZING TEXTUAL ENTAILMENT: SNLI AND MULTINLI
95
+
96
+ Table 2 shows the results of our RTE experiments. In general, the introduction of our refinement strategy almost always helps, both with and without external knowledge. When providing additional background knowledge from ConceptNet, our BiLSTM based models improve substantially, while the ESIM-based models improve only on the more difficult MultiNLI dataset. Compared to previously published state-of-the-art systems, our models acquit themselves very well on the MultiNLI benchmark, and competitively on the SNLI benchmark. In parallel to this work, Gong et al. (2017) developed a novel task-specific architecture for RTE that achieves slightly better performance on MultiNLI than our ESIM+reading+knowledge based models.8 It is worth observing that with our knowledge-enhanced embedding architecture, our generic BiLSTM-based task model outperforms ESIM on MultiNLI, which is architecturally much more complex and designed specifically for the RTE task. Finally, we remark that despite careful tuning, our re-implementation of ESIM fails to
97
+
98
+ Table 2: Results on the SNLI as well as MultiNLI-Matched and -Mismatched for $n \_ =$ 300−dimensional models. The model using external knowledge is trained with the top-20 retrieved ConceptNet assertions. 1Chen et al. (2017b), 2Gong et al. (2017). 3Chen et al. (2017a).
99
+
100
+ <table><tr><td></td><td colspan="2">SNLI</td><td colspan="2">MNLI Matched</td><td colspan="2">MNLIMismatched</td></tr><tr><td>Model</td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td></tr><tr><td>BiLSTM</td><td>84.4</td><td>83.4</td><td>70.0</td><td>69.8</td><td>70.2</td><td>69.4</td></tr><tr><td>+ reading</td><td>86.1</td><td>85.4</td><td>75.3</td><td>75.8</td><td>76.3</td><td>74.9</td></tr><tr><td>+ reading + knowledge</td><td>86.5</td><td>85.7</td><td>76.8</td><td>77.3</td><td>77.5</td><td>76.3</td></tr><tr><td>ESIM</td><td>88.2</td><td>87.2</td><td>76.8</td><td>76.3</td><td>77.3</td><td>75.8</td></tr><tr><td>+ reading</td><td>88.0</td><td>87.3</td><td>77.8</td><td>77.8</td><td>78.4</td><td>77.0</td></tr><tr><td>+ reading + knowledge</td><td>87.8</td><td>87.3</td><td>78.8</td><td>78.2</td><td>78.8</td><td>77.0</td></tr><tr><td>SotA Results</td><td></td><td>88.03</td><td></td><td>74.52</td><td></td><td>73.52</td></tr><tr><td></td><td>1 1</td><td>88.61</td><td></td><td>78.83</td><td>1</td><td>77.83</td></tr></table>
101
+
102
+ <table><tr><td>Dim/Data</td><td>1/1k</td><td>3/3k</td><td>10/10k</td><td>30/30k</td><td>100/100k</td><td>300/Full</td></tr><tr><td colspan="7">SNLI</td></tr><tr><td>ESIM</td><td>52.2</td><td>59.3</td><td>69.7</td><td>75.5</td><td>81.3</td><td>88.2</td></tr><tr><td>+ reading</td><td>60.9(+8.7)</td><td>66.0(+6.7)</td><td>71.0(+1.3)</td><td>75.0(-0.5)</td><td>80.6(-0.7)</td><td>88.0(-0.2)</td></tr><tr><td>+ reading + knowledge</td><td>62.9(+2.0)</td><td>68.6(+2.6)</td><td>73.8(+2.8)</td><td>77.4(+2.4)</td><td>81.3(+0.7)</td><td>87.8(-0.2)</td></tr><tr><td colspan="7">MultiNLI Matched + Mismatched</td></tr><tr><td>ESIM</td><td>44.3</td><td>50.0</td><td>55.5</td><td>61.9</td><td>68.1</td><td>76.9</td></tr><tr><td>+ reading</td><td>51.8(+7.5)</td><td>55.8(+5.8)</td><td>60.1(+4.6)</td><td>65.0(+3.1)</td><td>70.7(+2.6)</td><td>78.1(+1.2)</td></tr><tr><td>+ reading + knowledge</td><td>52.4(+0.6)</td><td>57.9(+2.1)</td><td>62.4(+2.3)</td><td>66.6(+1.6)</td><td>71.3(+0.6)</td><td>78.8(+0.7)</td></tr></table>
103
+
104
+ Table 3: Development set results when reducing training data and embedding dimsensionality with PCA. In parenthesis we report the relative differences to the respective result directly above.
105
+
106
+ match the $8 8 \%$ reported in Chen et al. (2017b); however, with MultiNLI, we find that our implementation of ESIM performs considerably better (by approximately $5 \%$ ). The instability of the results suggests, as well as the failure of a custom RTE-architecture to consistently perform well suggests that current SotA RTE models may be overfit to the SNLI dataset.
107
+
108
+ # 5.3 REDUCING TRAINING DATA & DIMENSIONALITY OF PRE-TRAINED WORD EMBEDDINGS
109
+
110
+ We find that there is only little impact when using external knowledge on the RTE task when using a more sophisticated task model such as ESIM. We hypothesize that the attention mechanisms within ESIM jointly with powerful, pre-trained word representations allow for the recovery of some important lexical relations when trained on a large dataset. It follows that by reducing the number of training data and impoverishing pre-trained word representations the impact of using external knowledge should become larger.
111
+
112
+ To test this hypothesis, we gradually impoverish pre-trained word embeddings by reducing their dimensionality with PCA while reducing the number of training instances at the same time.9 Our joint data and dimensionality reduction results are presented in Table 3. They show that there is indeed a slightly larger benefit when employing background knowledge in the more impoverished settings with largest improvements over using only the novel reading architecture when using around $1 0 \mathrm { k }$ examples and reduced dimensionality to 10. However, we observe that the biggest overall impact over the baseline ESIM model stems from our contextual refinement strategy (reading) which is especially pronounced for the 1k and $3 \mathrm { k }$ experiments. This highlights once more the usefulness of our refinement strategy even without the use of additional knowledge.
113
+
114
+ <table><tr><td>p:</td><td>His off-the-cuff style seems am- ateurish [...]</td><td>the net cost of oper- ations.</td><td>but uh these guys [...] file their uh their final exams [.]</td></tr><tr><td>h:</td><td>He didn&#x27;t look like an amateur</td><td>The gross cost. gross antonym net</td><td>These men filed their midterm exams [...] midterm antonym final</td></tr><tr><td>a: →</td><td>look like synonym seem contradiction</td><td>contradiction</td><td>contradiction</td></tr><tr><td>a: →</td><td>look like antonym seem entailment</td><td>gross synonym net entailment</td><td>midterm synonym final entailment</td></tr></table>
115
+
116
+ ![](images/56196af4a40baf9b7d85efc1729eba839557a4afe84711536e71e75d2cfd2253.jpg)
117
+ Table 4: Three examples for the antonym synonym swapping experiment on MultiNLI. p-premise, h-hypothesis, a-assertion, ¯a-swapped assertion.
118
+ Figure 2: Performance differences when ignoring certain types of knowledge, i.e., relation predicates during evaluation. Normalized performance differences are measured on the subset of examples for which an assertion of the respective relation predicate occurs.
119
+
120
+ # 6 ANALYSIS OF KNOWLEDGE UTILIZATION
121
+
122
+ Is additional knowledge used? To verify whether and how our models make use of additional knowledge, we conducted several experiments. First, we evaluated models trained with knowledge on our tasks while not providing any knowledge at test time. This ablation drops performance by $3 . 7 { - } 3 . 9 \%$ accuracy on MultiNLI, and by $4 \%$ F1 on SQuAD. This indicates the model is refining the representations using the provided assertions in a useful way.
123
+
124
+ Are models sensitive to semantics of the provided knowledge? The previous result does not show that the models utilize the provided assertions in any consistent way (it may just reflect a mismatch of training and testing conditions). Therefore, to test our models sensitivity towards the semantics of the assertions, we run an experiment in which we swap the synonym with the antonym predicate in the provided assertions during test time. Because of our heuristic retrieval mechanism, not all such “counterfactuals” will affect the truth of the inference, but we still expect to see a more significant impact. The performance drop on MultiNLI examples for which either a synonym or an antonym-assertion is retrieved is about $10 \%$ for both the BiLSTM and the ESIM model. This very large drop clearly shows that our models are sensitive to the semantics of the provided knowledge. Examples of prediction changes are presented in Table 4. They demonstrate that the system has learned to trust the presented assertions to the point that it will make appropriate counterfactual inferences—that is, the change in knowledge has caused the change in prediction.
125
+
126
+ What knowledge is used? After establishing that our models are somehow sensitive to semantics we wanted to find out which type of knowledge is important for which task. For this analysis we exclude assertions including the most prominent predicates in our knowledge base individually when evaluating our models. The results are presented in Figure 2. They demonstrate that the biggest performance drop in total (blue bars) stems from related to assertions. This very prominent predicate appears much more frequently than other assertions and helps connecting related parts of the 2 input sequences with each other. We believe that related to assertions offer benefits mainly from a modeling perspective by strongly connecting the input sequences with each other and thus bridging long-range dependencies similar to attention. Looking at the relative drops obtained by normalizing the performance differences on the actually affected examples (green) we find that our models depend highly on the presence of antonym and synonym assertions for all tasks as well as partially on is a and derived from assertions. This is an interesting finding which shows that the sensitivity of our models is selective wrt. the type of knowledge and task. The fact that the largest relative impact stems from antonyms is very interesting because it is known that such information is hard to capture with distributional semantics contained in pre-trained word embeddings.
127
+
128
+ # 7 RELATED WORK
129
+
130
+ The role of background knowledge in natural language understanding has long been remarked on, especially in the context of classical models of AI (Schank & Abelson, 1977; Minsky, 2000); however, it has only recently begun to play a role in neural network models of NLU (Ahn et al., 2016; Xu et al., 2016; Long et al., 2017; Dhingra et al., 2017). However, previous efforts have focused on specific tasks or certain kinds of knowledge, whereas we take a step towards a more general-purpose solution for the integration of heterogeneous knowledge for NLU systems by providing a simple, general-purpose reading architecture that can read background knowledge encoded in simple natural language statements, e.g., “abdication is a type of resignation”.
131
+
132
+ Bahdanau et al. (2017) use textual word definitions as a source of information about the embeddings of OOV words. In the area of visual question answering Wu et al. (2016) utilize external knowledge in form of DBpedia comments (short abstracts/definitions) to improve the answering ability of a model. Marino et al. (2017) explicitly incorporate knowledge graphs into an image classification model. Xu et al. (2016) created a recall mechanism into a standard LSTM cell that retrieves pieces of external knowledge encoded by a single representation for a conversation model. Concurrently, Dhingra et al. (2017) exploit linguistic knowledge using MAGE-GRUs, an adapation of GRUs to handle graphs, however, external knowledge has to be present in form of triples. The main difference to our approach is that we incorporate external knowledge in free text form on the word level prior to processing the task at hand which constitutes a more flexible setup. Ahn et al. (2016) exploit knowledge base facts about mentioned entities for neural language models. Bahdanau et al. (2017) and Long et al. (2017) create word embeddings on-the-fly by reading word definitions prior to processing the task at hand. Pilehvar et al. (2017) seamlessly incorporate information about word senses into their representations before solving the downstream NLU task, which is similar. We go one step further by seamlessly integrating all kinds of fine-grained assertions about concepts that might be relevant for the task at hand.
133
+
134
+ Another important aspect of our approach is the notion of dynamically updating wordrepresentations. Tracking and updating concepts, entities or sentences with dynamic memories is a very active research direction (Kumar et al., 2016; Henaff et al., 2017; Ji et al., 2017; Kobayashi et al., 2017). However, those works typically focus on particular tasks whereas our approach is taskagnostic and most importantly allows for the integration of external background knowledge. Other related work includes storing temporary information in weight matrices instead of explicit neural activations (such as word representations) as a biologically more plausible alternative.
135
+
136
+ # 8 CONCLUSION
137
+
138
+ We have presented a novel task-agnostic reading architecture that allows for the dynamic integration of background knowledge into neural NLU models. Our solution, which is based on the incremental refinement of word representations by reading supplementary inputs, is flexible and be used with virtually any existing NLU architecture that rely on word embeddings as input. Our results show that embedding refinement using both the system’s text inputs, as well as supplementary texts encoding background knowledge can yield large improvements. In particular, we have shown that relatively simple task architectures (e.g., based on simple BiLSTM readers) can become competitive with state-of-the-art, task-specific architectures when augmented with our reading architecture.
139
+
140
+ # ACKNOWLEDGMENTS
141
+
142
+ # REFERENCES
143
+
144
+ Sungjin Ahn, Heeyoul Choi, Tanel Parnamaa, and Yoshua Bengio. A neural knowledge language ¨ model. arXiv, 2016.
145
+
146
+ Dzmitry Bahdanau, Tom Bosc, Stanisław Jastrzebski, Edward Grefenstette, Pascal Vincent, and Yoshua Bengio. Learning to compute word embeddings on the fly. arXiv, 2017.
147
+
148
+ Samuel R Bowman, Gabor Angeli, Potts Christopher, and Christopher D Manning. A large annotated corpus for learning natural language inference. In EMNLP. Association for Computational Linguistics, 2015.
149
+
150
+ Qian Chen, Xiaodan Zhu, Zhen-Hua Ling, Si Wei, Hui Jiang, and Diana Inkpen. Recurrent neural network-based sentence encoder with gated attention for natural language inference. arXiv, 2017a.
151
+
152
+ Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, and Hui Jiang. Enhancing and Combining Sequential and Tree LSTM for Natural Language Inference. ACL, 2017b.
153
+
154
+ Bhuwan Dhingra, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Linguistic Knowledge as Memory for Recurrent Neural Networks. arXiv, 2017.
155
+
156
+ Yichen Gong, Heng Luo, and Jian Zhang. Natural language inference over interaction space. arXiv, 2017.
157
+
158
+ Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. In ICLR, 2017.
159
+
160
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
161
+
162
+ Minghao Hu, Yuxing Peng, and Xipeng Qiu. Reinforced mnemonic reader for machine comprehension. arXiv, 2017.
163
+
164
+ Yangfeng Ji, Chenhao Tan, Sebastian Martschat, Yejin Choi, and Noah A Smith. Dynamic entity representations in neural language models. In EMNLP, 2017.
165
+
166
+ Mandar Joshi, Eunsol Choi, Daniel S. Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In ACL, July 2017.
167
+
168
+ Diederik Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. ICLR, 2015.
169
+
170
+ Sosuke Kobayashi, Naoaki Okazaki, and Kentaro Inui. A neural language model for dynamically representing the meanings of unknown words and entities in a discourse. arXiv preprint arXiv:1709.01679, 2017.
171
+
172
+ Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In ICML, pp. 1378–1387, 2016.
173
+
174
+ Teng Long, Emmanuel Bengio, Ryan Lowe, Jackie Chi Kit Cheung, and Doina Precup. World knowledge for reading comprehension: Rare entity prediction with hierarchical lstms using external descriptions. In EMNLP, 2017.
175
+
176
+ Christopher D Manning, Hinrich Schutze, et al. ¨ Foundations of statistical natural language processing, volume 999. MIT Press, 1999.
177
+
178
+ Kenneth Marino, Ruslan Salakhutdinov, and Abhinav Gupta. The more you know: Using knowledge graphs for image classification. CVPR, 2017.
179
+
180
+ Marvin Minsky. Commonsense-based interfaces. Communications of the ACM, 2000.
181
+
182
+ Bhaskar Mitra and Nick Craswell. Neural models for information retrieval. arXiv preprint arXiv:1705.01509, 2017.
183
+
184
+ Karthik Narasimhan, Adam Yala, and Regina Barzilay. Improving information extraction by acquiring external evidence with reinforcement learning. In EMNLP, 2016.
185
+ Rodrigo Nogueira and Kyunghyun Cho. Task-oriented query reformulation with reinforcement learning. In EMNLP, 2017.
186
+ Boyuan Pan, Hao Li, Zhou Zhao, Bin Cao, Deng Cai, and Xiaofei He. Memen: Multi-layer embedding with memory networks for machine comprehension. arXiv, 2017.
187
+ Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In EMNLP, 2014.
188
+ Mohammad Taher Pilehvar, Jose Camacho-Collados, Roberto Navigli, and Nigel Collier. Towards a seamless integration of word senses into downstream nlp applications. In ACL, 2017.
189
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. In SQuAD: 100,000+ Questions for Machine Comprehension of Text, 2016.
190
+ Tim Rocktaschel, Edward Grefenstette, Karl Moritz Hermann, Tom ¨ as Kocisk ´ y, and Phil Blunsom. ´ Reasoning about entailment with neural attention. ICLR, 2015.
191
+ Roger Schank and Robert Abelson. Scripts, Plans, Goals, and Understanding. Psychology Press, 1977.
192
+ Minjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hananneh Hajishirzi. Bi-Directional Attention Flow for Machine Comprehension. In ICLR, 2017.
193
+ Robert Speer and Catherine Havasi. Representing General Relational Knowledge in ConceptNet 5. In LREC, 2012.
194
+ Wenhui Wang, Nan Yang, Furu Wei, Baobao Chang, and Ming Zhou. Gated self-matching networks for reading comprehension and question answering. In ACL, 2017.
195
+ Dirk Weissenborn, Georg Wiese, and Laura Seiffe. Making Neural QA as Simple as Possible but not Simpler. In CoNLL, 2017.
196
+ Adina Williams, Nikita Nangia, and Samuel R Bowman. A broad-coverage challenge corpus for sentence understanding through inference. arXiv, 2017.
197
+ Qi Wu, Peng Wang, Chunhua Shen, Anton van den Hengel, and Anthony Dick. Ask Me Anything: Free-form Visual Question Answering Based on Knowledge from External Sources. CVPR, 2016.
198
+ Zhen Xu, Bingquan Liu, Baoxun Wang, Chengjie Sun, and Xiaolong Wang. Incorporating LooseStructured Knowledge into LSTM with Recall Gate for Conversation Modeling. arXiv, 2016.
199
+
200
+ # A IMPLEMENTATION DETAILS
201
+
202
+ In the following we explain the detailed implementation of our two task-specific, baseline models. We assume to have computed the contextually (un-)refined word representations depending on the setup and embedded our input sequences $\pmb q = ( q _ { 1 } , . . . , q _ { L _ { Q } } )$ and $\pmb { p } = ( p _ { 1 } , . . . , p _ { L _ { P } } )$ to $\mathbf { Q } \in \mathbf { \mathbb { R } } ^ { n \times L _ { Q } }$ and $\mathbf { P } \in \mathbb { R } ^ { n \times L _ { P } }$ , respectively. The word representation update gate in Eq. 4 is initialized with a bias of 1 to refine representations only slightly in the beginning of training. In the following as before, we denote the hidden dimensionality of our model by $n$ and a fully-connected layer by $\mathrm { F C } ( \mathbf { z } ) = \mathbf { W } \mathbf { z } + \mathbf { b }$ , $\mathbf { W } \in \mathbb { R } ^ { n \times m }$ , $\mathbf { b } \in \mathbb { R } ^ { n } , \mathbf { u } \in \mathbb { R } ^ { m }$ .
203
+
204
+ # A.1 QUESTION ANSWERING
205
+
206
+ Encoding In the DQA task $\pmb q$ refers to the question and $\pmb { p }$ to the supporting text. At first we process both sequences by identical BiLSTMs in parallel (Eq. 6) followed by separate linear projections (Eq. 7) .
207
+
208
+ $$
209
+ \begin{array} { r l r l r l } & { \hat { \mathbf { Q } } = \mathrm { B i L S T M } ( \mathbf { Q } ) } & { \quad } & { \hat { \mathbf { P } } = \mathrm { B i L S T M } ( \mathbf { P } ) } & { \quad } & { \hat { \mathbf { Q } } \in \mathbb { R } ^ { 2 n \times L _ { Q } } , \ \hat { \mathbf { P } } \in \mathbb { R } ^ { 2 n \times L _ { P } } } \\ & { \tilde { \mathbf { Q } } = \mathbf { U } _ { Q } \hat { \mathbf { Q } } } & { \quad } & { \tilde { \mathbf { P } } = \mathbf { U } _ { P } \hat { \mathbf { P } } } & { \quad } & { \tilde { \mathbf { Q } } \in \mathbb { R } ^ { n \times L _ { Q } } , \ \tilde { \mathbf { P } } \in \mathbb { R } ^ { n \times L _ { P } } , } \end{array}
210
+ $$
211
+
212
+ ${ \bf U } _ { Q } , { \bf U } _ { P } \in \mathbb { R } ^ { n \times 2 n }$ are initialized by $[ I ; I ]$ where $I \in \mathbb { R } ^ { n \times n }$ is the identity matrix.
213
+
214
+ Prediction Our prediction– or answer layer is the same as in Weissenborn et al. (2017). We first compute a weighted, $n$ -dimensional representation $\tilde { \pmb q }$ of the processed question $\tilde { \mathbf { Q } }$ (Eq. 8).
215
+
216
+ $$
217
+ \begin{array} { l l } { \displaystyle \alpha = \mathrm { s o f t m a x } ( \mathbf { v } _ { q } \tilde { \mathbf { Q } } ) } & { , \mathbf { v } _ { q } \in \mathbb { R } ^ { n } } \\ { \displaystyle \tilde { \mathbf { q } } = \sum _ { i } \alpha _ { i } \tilde { \mathbf { q } } _ { i } } \end{array}
218
+ $$
219
+
220
+ The probability distribution ${ p _ { s } } / p _ { e }$ for the start/end location of the answer is computed by a 2-layer MLP with a ReLU activated, hidden layer $s _ { j }$ as follows:
221
+
222
+ $$
223
+ \begin{array} { r } { \begin{array} { c } { \mathbf { s } _ { j } = \mathrm { R e L U } \left( \mathrm { F C } _ { s } \left( \left[ \begin{array} { c } { \tilde { \mathbf { p } } _ { j } } \\ { \tilde { \mathbf { q } } } \\ { \tilde { \mathbf { p } } _ { j } \odot \tilde { \mathbf { q } } } \end{array} \right] \right) \right) } \\ { p _ { s } ( j ) \propto \mathrm { e x p } ( \mathbf { v } _ { s } \mathbf { s } _ { j } ) \qquad \mathbf { v } _ { s } \in \mathbb { R } ^ { n } } \end{array} \qquad \begin{array} { c } { \mathbf { e } _ { j } = \mathrm { R e L U } \left( \mathrm { F C } _ { e } \left( \left[ \begin{array} { c } { \tilde { \mathbf { p } } _ { j } } \\ { \tilde { \mathbf { q } } } \\ { \tilde { \mathbf { p } } _ { j } \odot \tilde { \mathbf { q } } } \end{array} \right] \right) \right) } \\ { p _ { e } ( j ) \propto \mathrm { e x p } ( \mathbf { v } _ { e } \mathbf { s } _ { j } ) \qquad \mathbf { v } _ { e } \in \mathbb { R } ^ { n } } \end{array} } \end{array}
224
+ $$
225
+
226
+ The model is trained to minimize the cross-entropy loss of the predicted start and end positions, respectively. During evaluation we extract the span $( i , k )$ with the best span-score $p _ { s } ( i ) \cdot p _ { e } ( k )$ of maximum token length $k - i = 1 6$ .
227
+
228
+ # A.2 RECOGNIZING TEXTUAL ENTAILMENT
229
+
230
+ Encoding Analogous to DQA we encode our input sequences by BiLSTMs, however, for RTE we use conditional encoding (Rocktaschel et al., 2015) instead. Therefore, we initially process the ¨ embedded hypothesis $\mathbf { Q }$ by a BiLSTM and use the respective end states of the forward and backward LSTM as initial states for the forward and backward LSTM that processes the embedded premise $\mathbf { P }$ .
231
+
232
+ Prediction We concatenate the outputs of the forward and backward LSTMs processing the premise $\pmb { p }$ , i.e., $\left[ \tilde { \mathbf { p } } _ { t } ^ { f w } ; \tilde { \mathbf { p } } _ { t } ^ { b w } \right] \ \in \ \mathbb { R } ^ { 2 n }$ and run each of the resulting $L _ { P }$ outputs through a fullyconnected layer with ReLU activation $\left( \mathbf { h } _ { t } \right)$ followed by a max-pooling operation over time resulting in a hidden state $\mathbf { h } \in \mathbb { R } ^ { n }$ . Finally, $\mathbf { h }$ is used to predict the RTE label as follows:
233
+
234
+ $$
235
+ \begin{array} { r l } & { \mathbf { h } _ { t } = \mathrm { R e L U } \left( \mathrm { F C } \left( \left[ \boldsymbol { \tilde { \mathbf { p } } } _ { t } ^ { f w } \right] \right) \right) } \\ & { \mathbf { h } = \mathrm { m a x p o o l } \ \mathbf { h } _ { t } } \\ & { p ( c ) \propto \exp ( \mathbf { v } _ { c } \mathbf { h } ) , \ \mathbf { v } _ { c } \in \mathbb { R } ^ { n } } \end{array}
236
+ $$
237
+
238
+ The probability of choosing category $c \in \{$ {entailment, contradiction, neutral $\}$ is defined in Eq. 10. Finally, the model is trained to minimize the cross-entropy loss of the predicted category probability distribution $p$ .
239
+
240
+ # A.3 TRAINING
241
+
242
+ As pre-processing steps we lowercase all inputs and tokenize it. Additionally, we make use of lemmatization as described $\ S 3 . 2$ in which is necessary for matching. As pre-trained word representations we use 300-dimensional word-embeddings from Glove (Pennington et al., 2014). We employed ADAM (Kingma & Ba, 2015) for optimization with an initial learning-rate of $1 0 ^ { - 3 }$ which was halved whenever the F1 measure (DQA) or the accuracy (RTE) dropped on the development set between 1000/2000 minibatches for DQA and RTE respectively. We used mini-batches of size 16 for DQA and 64 for RTE. Additionally, for regularization we make use of dropout with a rate of 0.2 on the computed non-contextual word representations ${ \bf e } _ { w }$ defined in $\ S 3 . 1$ with the same dropout mask for all words in a batch. All our models were trained with 3 different random seeds and the top performance is reported.
parse/train/B1twdMCab/B1twdMCab_content_list.json ADDED
@@ -0,0 +1,1239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DYNAMIC INTEGRATION OF BACKGROUNDKNOWLEDGE IN NEURAL NLU SYSTEMS",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 687,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Common-sense or background knowledge is required to understand natural language, but in most neural natural language understanding (NLU) systems, the requisite background knowledge is indirectly acquired from static corpora. We develop a new reading architecture for the dynamic integration of explicit background knowledge in NLU models. A new task-agnostic reading module provides refined word representations to a task-specific NLU architecture by processing background knowledge in the form of free-text statements, together with the taskspecific inputs. Strong performance on the tasks of document question answering (DQA) and recognizing textual entailment (RTE) demonstrate the effectiveness and flexibility of our approach. Analysis shows that our models learn to exploit knowledge selectively and in a semantically appropriate way. ",
40
+ "bbox": [
41
+ 233,
42
+ 263,
43
+ 764,
44
+ 416
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 440,
55
+ 336,
56
+ 457
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Understanding natural language depends crucially on common-sense or background knowledge, for example, knowledge about what concepts are expressed by the words being read (lexical knowledge), and what relations hold between these concepts (relational knowledge). As a simple illustration, if an agent needs to understand that the statement “King Farouk signed his abdication” is entailed by “King Farouk was exiled to France in 1952, after signing his resignation”, it must know (among other things) that abdication means resignation of a king. ",
63
+ "bbox": [
64
+ 174,
65
+ 472,
66
+ 825,
67
+ 555
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In most neural natural language understanding (NLU) systems, the requisite background knowledge is implicitly encoded in the models’ parameters. That is, what background knowledge is present has been learned from task supervision and also by pre-training word embeddings (where distributional information reliably reflects certain kinds of useful background knowledge, such as semantic relatedness). However, acquisition of background knowledge from static training corpora is limiting for two reasons. First, we cannot expect that all background knowledge that could be important for solving an NLU task can be extracted from a limited amount of training data. Second, as the world changes, the facts that may influence how a text is understood will likewise change. In short: building suitably large corpora to capture all relevant information, and keeping the corpus and derived models up to date with changes to the world would be impractical. ",
74
+ "bbox": [
75
+ 174,
76
+ 563,
77
+ 825,
78
+ 700
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we develop a new architecture for dynamically incorporating external background knowledge in NLU models. Rather than relying only on static knowledge implicitly present in the training data, supplementary knowledge is retrieved from a knowledge base to assist with understanding text inputs. Since NLU systems must necessarily read and understand text inputs, our approach incorporates background knowledge by repurposing this reading machinery—that is, we read the text being understood together with supplementary natural language statements that assert facts (assertions) which are relevant to understanding the content (§2). ",
85
+ "bbox": [
86
+ 174,
87
+ 708,
88
+ 825,
89
+ 805
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Our knowledge-augmented NLU systems operate in a series of phases. First, given the text input that the system must understand, which we call the context, a set of relevant supporting assertions is retrieved. While learning to retrieve relevant information for solving NLU tasks is an important question (Nogueira & Cho, 2017; Narasimhan et al., 2016, inter alia), in this work, we focus on learning how to incorporate retrieved information, and use simple heuristic retrieval methods to identify plausibly relevant background from an external knowledge base. Once the supplementary texts have been retrieved, we use a word embedding refinement strategy that incrementally reads the context and retrieved assertions starting with context-independent word embeddings and building successively refined embeddings of the words that ultimately reflect both the relevant supporting assertions and the input context (§3). These contextually refined word embeddings, which serve as dynamic memory to store newly incorporated knowledge, are used in any task-specific reading architecture. The overall architecture is illustrated in Figure 1. Although we are incorporating a new kind of information into the NLU pipeline, a strength of this approach is that the architecture of the reading module is independent of the final NLU task—the only requirement is that the final architecture use word embeddings. ",
96
+ "bbox": [
97
+ 174,
98
+ 811,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 200
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We carry out experiments on several different datasets on the tasks of document question answering (DQA) and recognizing textual entailment (RTE) evaluating the impact of our proposed solution with both basic task architectures and a sophisticated task architecture for RTE (§4). We find that our embedding refinement strategy is quite effective (§5). On four standard benchmarks, we show that refinement helps—even refining the embeddings just using the context (and no additional background information) can improve performance significantly, and adding background knowledge helps further. Our results are very competitive, setting a new state-of-the-art on the recent TriviaQA benchmarks which is remarkable considering the simplicity of the chosen task-specific architecture. Finally, we provide a detailed analysis of how knowledge is being used by an RTE system (§6), including experiments showing that our system is capable of making appropriate counterfactual inferences when provided with “false knowledge”. ",
118
+ "bbox": [
119
+ 174,
120
+ 208,
121
+ 825,
122
+ 361
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 EXTERNAL KNOWLEDGE AS SUPPLEMENTARY TEXT INPUTS ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 386,
133
+ 709,
134
+ 401
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Knowledge resources make information that could potentially be useful for improving NLU available in a variety different formats, such as (subject, predicate, object)-triples, relational databases, and other structured formats. Rather than tailoring our solution to a particular structured representation, we assume that all supplementary information either already exists in natural language statements or can easily be recoded as natural language. In contrast to mapping from unstructured to structured representations, the inverse problem is not terribly difficult. For example, given a triple (monkey, isA, animal) we can construct the free-text assertion “a monkey is an animal” using a few simple rules. Finally, the free-text format means that knowledge that exists only in unstructured text form is usable by our system. ",
141
+ "bbox": [
142
+ 174,
143
+ 419,
144
+ 825,
145
+ 545
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "A major question that remains to be answered is: given some text that is to be understood, what supplementary knowledge should be incorporated? The retrieval of contextually relevant information from knowledge sources is a complex research topic by itself, and it is likewise crucially dependent on the format of the underlying knowledge base. There are several statistical (Manning et al., 1999) and more recently neural approaches (Mitra & Craswell, 2017) and approaches based on reinforcement learning (Nogueira & Cho, 2017). In this work we make use of a simple heuristic from which we almost exhaustively retrieve all potentially relevant assertions (see $\\ S 4$ ), and rely on our reading architecture to learn to extract only relevant information. ",
152
+ "bbox": [
153
+ 174,
154
+ 551,
155
+ 825,
156
+ 662
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "In the next section, we turn to the question of how to leverage the retrieved supplementary knowledge (encoded as text) in a NLU system. ",
163
+ "bbox": [
164
+ 176,
165
+ 670,
166
+ 820,
167
+ 698
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "3 REFINING WORD EMBEDDINGS BY READING ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 174,
177
+ 722,
178
+ 581,
179
+ 738
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "In order to incorporate information from retrieved input texts we propose to compute contextually refined word representations prior to processing the NLU task at hand and pass them to the task in the form of word embeddings. Word embeddings thus serve as a form of memory that not only contains general-purpose knowledge (as in typical neural NLU systems) but also contextual information (including retrieved background knowledge). Our incremental refinement process encodes input texts followed by updates on the word embedding matrix using the encoded input in multiple reading steps. Words are first represented non-contextually (i.e., standard word type embeddings), which can be conceived of as the columns in an embedding matrix $\\mathbf { E } ^ { 0 }$ . At each progressive reading step $\\ell \\geq 1$ , a new embedding matrix $\\mathbf { E } ^ { \\ell }$ is constructed by refining the embeddings from the previous step ${ \\bf E } ^ { \\ell - 1 }$ using (user-specified) contextual information $\\mathcal { X } ^ { \\ell }$ for reading step $\\ell$ , which is a set of natural language sequences (i.e., texts). An illustration of our incremental refinement strategy can be found in Figure 1. ",
186
+ "bbox": [
187
+ 174,
188
+ 757,
189
+ 825,
190
+ 924
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "image",
196
+ "img_path": "images/4179c2872f585c02c0f019940fd51a9a5ec1281c1d407152a918799ff98b5b8b.jpg",
197
+ "image_caption": [
198
+ "Figure 1: Illustration of our context-dependent, refinement strategy for word representations on an example from the SNLI dataset comprising the premise, hypothesis and additional external information in form of free-text assertions. The reading architecture constructs refinements of word representations incrementally (conceptually represented as columns in a series of embedding matrices) $\\mathbf { E } ^ { \\ell }$ are incrementally refined by reading the input text and textual renderings of relevant background knowledge before computing the representations used by the task model (in this figure, RTE). "
199
+ ],
200
+ "image_footnote": [],
201
+ "bbox": [
202
+ 174,
203
+ 108,
204
+ 818,
205
+ 546
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "In the following, we define this procedure formally. We denote the hidden dimensionality of our model by $n$ and a fully-connected layer by $\\mathrm { F C } ( \\mathbf { z } ) = \\mathbf { W } \\mathbf { z } + \\mathbf { b } , \\mathbf { W } \\in \\mathbb { R } ^ { n \\times m } , \\mathbf { b } \\in \\mathbb { R } ^ { n } , \\mathbf { u } \\in \\mathbb { R } ^ { m }$ . ",
212
+ "bbox": [
213
+ 173,
214
+ 676,
215
+ 825,
216
+ 705
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 UNREFINED WORD EMBEDDINGS $( \\mathbf { E } ^ { 0 }$ ) ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 176,
226
+ 723,
227
+ 483,
228
+ 738
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "The first representation level consists of non-contextual word representations, that is, word representations that do not depend on any input; these can be conceived of as an embedding matrix $\\mathbf { E } ^ { 0 }$ whose columns are indexed by words in $\\Sigma ^ { * }$ . The non-contextual word representation $\\mathbf { e } _ { w } ^ { 0 }$ for a single word $w$ is computed by using a gated combination of fixed, pre-trained word vectors ${ \\bf e } _ { w } ^ { p } \\in \\mathbb { R } ^ { n ^ { \\prime } }$ with learned character-based embeddings $\\mathbf { e } _ { w } ^ { c h a r } \\in \\mathbb { R } ^ { n }$ . The formal definition of this combination is given in Eq. 1: ",
235
+ "bbox": [
236
+ 173,
237
+ 750,
238
+ 825,
239
+ 837
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "equation",
245
+ "img_path": "images/1caffd5f6cb69571609221bdb6081b9c6efdaaa1106a09a1975ee50f4584865d.jpg",
246
+ "text": "$$\n\\begin{array} { r l } & { { \\mathbf { e } _ { w } ^ { p ^ { \\prime } } } = \\mathrm { R e L U } ( { \\mathrm { F C } } ( { { \\mathbf { e } _ { w } ^ { p } } } ) ) } \\\\ & { { \\mathbf { g } _ { w } } = \\sigma \\left( { \\mathrm { F C } } \\left[ \\mathbf { e } _ { w } ^ { p ^ { \\prime } } \\right] \\right) } \\\\ & { { \\mathbf { e } _ { w } ^ { 0 } } = \\mathbf { g } _ { w } \\odot { \\mathbf { e } _ { w } ^ { p ^ { \\prime } } } + \\left( \\mathbf { 1 } - \\mathbf { g } _ { w } \\right) \\odot { { \\mathbf { e } _ { w } ^ { c h a r } } } . } \\end{array}\n$$",
247
+ "text_format": "latex",
248
+ "bbox": [
249
+ 377,
250
+ 842,
251
+ 620,
252
+ 924
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "We compute $\\mathbf { e } _ { w } ^ { c h a r }$ using a single-layer convolutional neural network using $n$ convolutional filters of width 5 followed by a max-pooling operation over time. Combining pre-trained with character based word embeddings in such a way is common practice. Our approach follows (Seo et al., 2017; Weissenborn et al., 2017). ",
259
+ "bbox": [
260
+ 174,
261
+ 103,
262
+ 825,
263
+ 160
264
+ ],
265
+ "page_idx": 3
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "3.2 CONTEXTUALLY REFINED WORD REPRESENTATIONS $( \\mathbf { E } ^ { \\ell } , \\ell \\geq 1 )$ ",
270
+ "text_level": 1,
271
+ "bbox": [
272
+ 176,
273
+ 176,
274
+ 665,
275
+ 191
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "In order to compute contextually refined word embeddings $\\mathbf { E } ^ { \\ell }$ given prior representations ${ \\bf E } ^ { \\ell - 1 }$ we assume a given set of texts $\\mathcal { X } ^ { \\ell } \\overset { \\cdot } { = } \\{ \\mathbf { x } _ { 1 } ^ { \\ell } , \\mathbf { x } _ { 2 } ^ { \\ell } , \\ldots \\}$ that are to be read at refinement iteration $\\ell$ . Each text $\\mathbf { \\Delta } \\mathbf { x } _ { i } ^ { \\ell }$ is a sequence of word tokens. We embed all tokens of every $\\pmb { x } _ { i } ^ { \\ell }$ using the embedding matrix from the previous layer, ${ \\bf E } ^ { \\ell - 1 }$ . To each word, we concatenate a one-hot vector of length $L$ with position $\\ell$ set to 1, indicating which layer is currently being processed.1 Stacking the vectors into a matrix, we obtain a $\\mathbf { X } _ { i } ^ { \\ell } \\in \\mathbb { R } ^ { d \\times | \\mathbf { x } _ { i } ^ { \\ell } | }$ . This matrix is processed by a bidirectional recurrent neural network, a BiLSTM (Hochreiter & Schmidhuber, 1997) in this work. The resulting output is further projected to $\\hat { \\mathbf { X } } _ { i } ^ { \\ell }$ by a fully-connected layer followed by a ReLU non-linearity (Eq. 2). ",
282
+ "bbox": [
283
+ 173,
284
+ 202,
285
+ 825,
286
+ 321
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "equation",
292
+ "img_path": "images/8b7186879d2de941e91faf55f6eb4bd643a07f1dd019ba75f75afe5096b98ebd.jpg",
293
+ "text": "$$\n\\hat { \\mathbf { X } } _ { i } ^ { \\ell } = \\mathrm { R e L U } ( \\mathrm { F C } ( \\mathrm { B i L S T M } ( \\mathbf { X } _ { i } ^ { \\ell } ) ) )\n$$",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 383,
297
+ 347,
298
+ 614,
299
+ 366
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "To finally update the previous embedding ${ \\bf e } _ { w } ^ { \\ell - 1 }$ of word $w$ , we initially maxpool all representations of occurrences matching the lemma of $w$ in every $\\pmb { x } \\in \\mathcal { X } ^ { \\ell }$ resulting in $\\hat { \\mathbf { e } } _ { w } ^ { \\ell }$ (Eq. 3). Finally, we combine the context-independent representation ${ \\bf e } _ { w }$ with $\\hat { \\mathbf { e } } _ { w }$ to form a context-sensitive representation ${ \\mathbf { e } } _ { w } ^ { \\ell }$ via a gated addition which lets the model determine how much to revise the embedding with the newly read information (Eq. 5). ",
306
+ "bbox": [
307
+ 174,
308
+ 381,
309
+ 823,
310
+ 453
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "equation",
316
+ "img_path": "images/9c4bf42150743e181fddb8f891fb068550f13d9d63981b0d24a8f88eae962ce6.jpg",
317
+ "text": "$$\n\\begin{array} { r l } & { \\hat { \\mathbf { e } } _ { w } ^ { \\ell } = \\operatorname* { m a x } \\left\\{ \\hat { \\mathbf { x } } _ { k } ^ { \\ell } \\mid \\mathbf { \\Delta } x ^ { \\ell } \\in \\mathcal { X } ^ { \\ell } , \\mathrm { l e m m a } ( x _ { k } ^ { \\ell } ) = \\mathrm { l e m m a } ( w ) \\right\\} } \\\\ & { \\mathbf { \\Delta } \\mathbf { u } _ { w } ^ { \\ell } = \\sigma \\left( \\mathrm { F C } \\left( \\left[ \\mathbf { \\hat { e } } _ { w } ^ { \\ell - 1 } \\right] \\right) \\right) } \\\\ & { \\mathbf { e } _ { w } ^ { \\ell } = \\mathbf { u } _ { w } ^ { \\ell } \\odot \\mathbf { e } _ { w } ^ { \\ell - 1 } + ( \\mathbf { 1 } - \\mathbf { u } _ { w } ^ { \\ell } ) \\odot \\hat { \\mathbf { e } } _ { w } ^ { \\ell } } \\end{array}\n$$",
318
+ "text_format": "latex",
319
+ "bbox": [
320
+ 315,
321
+ 477,
322
+ 681,
323
+ 558
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "Note that we soften the matching condition for $w$ using lemmatization, $\\operatorname { l e m m a } ( w )$ , during the pooling operation of Eq. 3 because contextual information about certain words is usually independent of the current word form $w$ they appear in. As a consequence, this minor linguistic pre-processing step allows for additional interaction between tokens of the same lemma. ",
330
+ "bbox": [
331
+ 174,
332
+ 560,
333
+ 823,
334
+ 616
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "The important difference between our contextual refinement step and conventional multi-layer (RNN) architectures is the pooling operation that is performed over occurrences of tokens that share the same lemma. This effectively connects different positions within and between different texts with each other thereby mitigating the problems arising from long-distance dependencies. More importantly, however, it allows models to make use of additional input such as relevant background knowledge. ",
341
+ "bbox": [
342
+ 174,
343
+ 623,
344
+ 825,
345
+ 708
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "4 EXPERIMENTAL SETUP ",
352
+ "text_level": 1,
353
+ "bbox": [
354
+ 176,
355
+ 728,
356
+ 398,
357
+ 744
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "We run experiments on four benchmarks for two popular tasks, namely recognizing textual entailment (RTE) and document question answering (DQA). In the following we describe different aspects of our experimental setup in more detail. ",
364
+ "bbox": [
365
+ 174,
366
+ 760,
367
+ 823,
368
+ 801
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Task-specific Models Our primary interest is to explore the value of our refinement strategy with relatively generic task architectures. Therefore, we chose basic single-layer bidirectional LSTMs (BiLSTMs) as encoders with a task-specific, feed-forward neural network on top for the final prediction. Such models are common baselines for NLU tasks and can be considered general reading architectures as opposed to the more highly tuned, task-specific NLU systems that are necessary to achieve state-of-the art results. However, since such models frequently underperform more customized architectures, we also add our refinement module to a reimplementation of a state-of-the-art architecture for RTE called ESIM (Chen et al., 2017b). ",
375
+ "bbox": [
376
+ 174,
377
+ 816,
378
+ 823,
379
+ 887
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "",
386
+ "bbox": [
387
+ 174,
388
+ 103,
389
+ 823,
390
+ 146
391
+ ],
392
+ "page_idx": 4
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "All models are trained end-to-end jointly with the refinement module. For the DQA baseline system we add a simple lemma-in-question feature (liq) as suggested in Weissenborn et al. (2017) when encoding the context to compare against competitive baseline results. We provide the exact model implementations for our BiLSTM baselines and general training details in Appendix A. ",
397
+ "bbox": [
398
+ 174,
399
+ 152,
400
+ 825,
401
+ 208
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "Question Answering We apply our DQA models on 2 recent DQA benchmark datasets, SQuAD (Rajpurkar et al., 2016) and TriviaQA (Joshi et al., 2017). The task is to predict an answer span within a provided document $\\pmb { p }$ given a question $\\pmb q$ . Both datasets are large-scale, containing on the order of $1 0 0 \\mathrm { k }$ examples. Because TriviaQA is collected via distant supervision the test set is divided into a large but noisy distant supervision part and a much smaller (on the order of hundreds) human verified part. We report results on both. See Appendix A.1 for implementation details. ",
408
+ "bbox": [
409
+ 174,
410
+ 256,
411
+ 825,
412
+ 340
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Recognizing Textual Entailment We test on the frequently used SNLI dataset (Bowman et al., 2015), a collection of $5 7 0 k$ sentence pairs, and the more recent MultiNLI dataset $4 3 3 k$ sentence pairs) (Williams et al., 2017). Given two sentences, a premise $\\pmb { p }$ and a hypothesis $\\pmb q$ , the task is to determine whether $\\pmb { p }$ either entails, contradicts or is neutral to $\\pmb q$ . See Appendix A.2 for implementation details. ",
419
+ "bbox": [
420
+ 174,
421
+ 387,
422
+ 825,
423
+ 458
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "Knowledge Source We make use of ConceptNet2 (Speer & Havasi, 2012), a freely-available, multi-lingual semantic network that originated from the Open Mind Common Sense project and incorporates selected knowledge from various other knowledge sources, such as Wiktionary3, Open Multilingual WordNet4, OpenCyc and DBpedia5. It presents information in the form of relational triples.6 ",
430
+ "bbox": [
431
+ 174,
432
+ 505,
433
+ 825,
434
+ 575
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "Assertion Retrieval We would like to obtain information about the relations of words and phrases between $\\pmb q$ and $\\pmb { p }$ from ConceptNet in order to strengthen the connection between the two sequences. Because assertions $\\textbf { \\em a }$ in ConceptNet come in form of (subject, predicate, object)-triples $( s , r , o )$ , we retrieve all assertions for which $s$ appears in $\\pmb q$ and $o$ appears in $\\pmb { p }$ , or vice versa. Because still too many such assertions might be retrieved for an instance, we rank all retrievals based on their respective subject and object. To this end we compute a ranking score which is the inverse product of appearances of the subject and the object in the KB, that is $\\mathrm { s c o r e } ( a ) =$ $\\begin{array} { r } { ( \\sum _ { \\pmb { a } ^ { \\prime } } \\mathbb { I } ( s _ { a ^ { \\prime } } = s _ { a } ) \\cdot \\sum _ { \\pmb { a } ^ { \\prime } } \\mathbb { I } ( o _ { a ^ { \\prime } } = o _ { a } ) ) ^ { - 1 } } \\end{array}$ , where I denotes the indicator function. This is very related to the popular idf score (inverted document frequency) from information retrieval which ranks terms higher that appear less frequently across different documents. During training and evaluation we only retain the top- $k$ assertions which we specify for the individual experiments separately. Note that (although very rarely) it might happen that no assertions are retrieved at all. ",
441
+ "bbox": [
442
+ 173,
443
+ 622,
444
+ 825,
445
+ 792
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "Refinement Order When employing our embedding-refinement strategy, we first read the document $( p )$ followed by the question $( q )$ in case of DQA, and the premise $( p )$ followed by the hypothesis $( q )$ for RTE, that is, ${ \\boldsymbol { \\mathcal { X } } } ^ { 1 } = \\{ { \\boldsymbol { p } } \\}$ and $\\mathcal { X } ^ { 2 } = \\{ \\pmb q \\}$ . Additional knowledge in the form of a set of assertions $\\mathcal { A }$ is integrated after reading the task-specific input for both DQA and RTE, that is, $\\mathcal { X } ^ { 3 } = \\mathcal { A }$ . In preliminary experiments we found that the final performance is not significantly sensitive to the order of presentation so we decided to fix our order as defined above. ",
452
+ "bbox": [
453
+ 174,
454
+ 839,
455
+ 825,
456
+ 922
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "table",
462
+ "img_path": "images/5bb079e29c744778c165585a7b48b1eef8c5f151c2718cf8b50eff1bef71b303.jpg",
463
+ "table_caption": [
464
+ "Table 1: Results on the SQuAD development set as well as TriviaQA-Wikipedia and -Web test sets for $n = 3 0 0 -$ dimensional models. TriviaQA results are further divided by distant supervision results (left) and human verified results (right). The model using external knowledge is trained with the top-20/50 retrieved ConceptNet assertions. The liq-feature (lemma-in-question) is only used for the baseline. $^ { 1 } \\mathrm { H u }$ et al. (2017), 2Wang et al. (2017), 3Pan et al. (2017). "
465
+ ],
466
+ "table_footnote": [],
467
+ "table_body": "<table><tr><td></td><td colspan=\"2\">SQuAD Dev</td><td colspan=\"2\">TriviaQA Wiki Test</td><td colspan=\"2\">TriviaQA Web Test</td></tr><tr><td>Model</td><td>F1</td><td>Exact</td><td>F1</td><td>Exact</td><td>F1</td><td>Exact</td></tr><tr><td>BiLSTM + liq</td><td>74.3</td><td>63.7</td><td>50.9 / 55.1</td><td>45.2 /48.8</td><td>50.9 / 60.0</td><td>44.2/54.7</td></tr><tr><td>+ reading</td><td>77.8</td><td>67.3</td><td>54.1 / 59.6</td><td>47.5 / 52.2</td><td>54.7 / 65.9</td><td>48.1/60.3</td></tr><tr><td>+ reading + knowledge (20)</td><td>79.2</td><td>69.0</td><td>54.6/60.7</td><td>48.4 / 55.1</td><td>56.9 / 67.3</td><td>50.6 / 61.9</td></tr><tr><td>+ reading + knowledge (50)</td><td>79.6</td><td>69.4</td><td>55.1 / 59.9</td><td>48.6/ 53.4</td><td>56.7 / 68.0</td><td>50.6 / 63.2</td></tr><tr><td>SotA Results</td><td>81.81</td><td>73.21</td><td>46.9 / 55.83</td><td>43.2 /49.33</td><td>48.3/57.63</td><td>44.3/ 53.33</td></tr><tr><td></td><td>82.8²</td><td>75.62</td><td>52.9 / 59.51</td><td>46.9 / 54.51</td><td>52.9 /61.51</td><td>46.7 /57.01</td></tr></table>",
468
+ "bbox": [
469
+ 174,
470
+ 101,
471
+ 823,
472
+ 227
473
+ ],
474
+ "page_idx": 5
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "5 RESULTS ",
479
+ "text_level": 1,
480
+ "bbox": [
481
+ 174,
482
+ 330,
483
+ 281,
484
+ 347
485
+ ],
486
+ "page_idx": 5
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "5.1 QUESTION ANSWERING: SQUAD AND TRIVIAQA ",
491
+ "text_level": 1,
492
+ "bbox": [
493
+ 174,
494
+ 362,
495
+ 562,
496
+ 377
497
+ ],
498
+ "page_idx": 5
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Table 1 presents our results on two question answering benchmarks. We report results on the SQuAD development set7 and the two more challenging TriviaQA test sets which demonstrate that the introduction of our reading architecture helps consistently with additional gains from using background knowledge. Our systems do even outperform current state-of-the-art models on TriviaQA which is surprising given the simplicity of our task-specific architecture and the complexity of the others. For instance, the system of Hu et al. (2017) uses a complex multi-hop attention mechanism to achieve their results. Even our baseline BiLSTM $^ +$ liq system reaches very competitive results on TriviaQA which is in line with findings of Weissenborn et al. (2017). To verify that it is not the additional computation that gives the performance boosts when using only our reading architecture (without knowledge), we also ran experiments with 2-layer BiLSTMs $\\left( + \\mathrm { l i q } \\right)$ for our baselines which exhibit similar computational complexity to BiLSTM $^ +$ reading. We found that the second layer even hurts performance. This demonstrates that pooling over word/lemma occurrences in a given context between layers, which constitutes the main difference to conventional stacked RNNs, is a powerful, yet simple technique. In any case, the most important finding of these experiments is that knowledge actually helps considerably with up to $2 . 2 / 2 . 9 \\%$ improvements on the F1/Exact measures. ",
503
+ "bbox": [
504
+ 174,
505
+ 388,
506
+ 825,
507
+ 597
508
+ ],
509
+ "page_idx": 5
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "5.2 RECOGNIZING TEXTUAL ENTAILMENT: SNLI AND MULTINLI ",
514
+ "text_level": 1,
515
+ "bbox": [
516
+ 176,
517
+ 613,
518
+ 647,
519
+ 627
520
+ ],
521
+ "page_idx": 5
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "Table 2 shows the results of our RTE experiments. In general, the introduction of our refinement strategy almost always helps, both with and without external knowledge. When providing additional background knowledge from ConceptNet, our BiLSTM based models improve substantially, while the ESIM-based models improve only on the more difficult MultiNLI dataset. Compared to previously published state-of-the-art systems, our models acquit themselves very well on the MultiNLI benchmark, and competitively on the SNLI benchmark. In parallel to this work, Gong et al. (2017) developed a novel task-specific architecture for RTE that achieves slightly better performance on MultiNLI than our ESIM+reading+knowledge based models.8 It is worth observing that with our knowledge-enhanced embedding architecture, our generic BiLSTM-based task model outperforms ESIM on MultiNLI, which is architecturally much more complex and designed specifically for the RTE task. Finally, we remark that despite careful tuning, our re-implementation of ESIM fails to ",
526
+ "bbox": [
527
+ 173,
528
+ 638,
529
+ 825,
530
+ 792
531
+ ],
532
+ "page_idx": 5
533
+ },
534
+ {
535
+ "type": "table",
536
+ "img_path": "images/b4b780cba1cdfb62e8fe257d8178b67aa104c0e5ade4d9150a955020e7cf2090.jpg",
537
+ "table_caption": [
538
+ "Table 2: Results on the SNLI as well as MultiNLI-Matched and -Mismatched for $n \\_ =$ 300−dimensional models. The model using external knowledge is trained with the top-20 retrieved ConceptNet assertions. 1Chen et al. (2017b), 2Gong et al. (2017). 3Chen et al. (2017a). "
539
+ ],
540
+ "table_footnote": [],
541
+ "table_body": "<table><tr><td></td><td colspan=\"2\">SNLI</td><td colspan=\"2\">MNLI Matched</td><td colspan=\"2\">MNLIMismatched</td></tr><tr><td>Model</td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td></tr><tr><td>BiLSTM</td><td>84.4</td><td>83.4</td><td>70.0</td><td>69.8</td><td>70.2</td><td>69.4</td></tr><tr><td>+ reading</td><td>86.1</td><td>85.4</td><td>75.3</td><td>75.8</td><td>76.3</td><td>74.9</td></tr><tr><td>+ reading + knowledge</td><td>86.5</td><td>85.7</td><td>76.8</td><td>77.3</td><td>77.5</td><td>76.3</td></tr><tr><td>ESIM</td><td>88.2</td><td>87.2</td><td>76.8</td><td>76.3</td><td>77.3</td><td>75.8</td></tr><tr><td>+ reading</td><td>88.0</td><td>87.3</td><td>77.8</td><td>77.8</td><td>78.4</td><td>77.0</td></tr><tr><td>+ reading + knowledge</td><td>87.8</td><td>87.3</td><td>78.8</td><td>78.2</td><td>78.8</td><td>77.0</td></tr><tr><td>SotA Results</td><td></td><td>88.03</td><td></td><td>74.52</td><td></td><td>73.52</td></tr><tr><td></td><td>1 1</td><td>88.61</td><td></td><td>78.83</td><td>1</td><td>77.83</td></tr></table>",
542
+ "bbox": [
543
+ 240,
544
+ 101,
545
+ 756,
546
+ 257
547
+ ],
548
+ "page_idx": 6
549
+ },
550
+ {
551
+ "type": "table",
552
+ "img_path": "images/98af4bfa55b6a47589c87686684538fe96e0ff0dff920d98bbbc4ba0fe1a9d91.jpg",
553
+ "table_caption": [],
554
+ "table_footnote": [],
555
+ "table_body": "<table><tr><td>Dim/Data</td><td>1/1k</td><td>3/3k</td><td>10/10k</td><td>30/30k</td><td>100/100k</td><td>300/Full</td></tr><tr><td colspan=\"7\">SNLI</td></tr><tr><td>ESIM</td><td>52.2</td><td>59.3</td><td>69.7</td><td>75.5</td><td>81.3</td><td>88.2</td></tr><tr><td>+ reading</td><td>60.9(+8.7)</td><td>66.0(+6.7)</td><td>71.0(+1.3)</td><td>75.0(-0.5)</td><td>80.6(-0.7)</td><td>88.0(-0.2)</td></tr><tr><td>+ reading + knowledge</td><td>62.9(+2.0)</td><td>68.6(+2.6)</td><td>73.8(+2.8)</td><td>77.4(+2.4)</td><td>81.3(+0.7)</td><td>87.8(-0.2)</td></tr><tr><td colspan=\"7\">MultiNLI Matched + Mismatched</td></tr><tr><td>ESIM</td><td>44.3</td><td>50.0</td><td>55.5</td><td>61.9</td><td>68.1</td><td>76.9</td></tr><tr><td>+ reading</td><td>51.8(+7.5)</td><td>55.8(+5.8)</td><td>60.1(+4.6)</td><td>65.0(+3.1)</td><td>70.7(+2.6)</td><td>78.1(+1.2)</td></tr><tr><td>+ reading + knowledge</td><td>52.4(+0.6)</td><td>57.9(+2.1)</td><td>62.4(+2.3)</td><td>66.6(+1.6)</td><td>71.3(+0.6)</td><td>78.8(+0.7)</td></tr></table>",
556
+ "bbox": [
557
+ 173,
558
+ 327,
559
+ 825,
560
+ 477
561
+ ],
562
+ "page_idx": 6
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "Table 3: Development set results when reducing training data and embedding dimsensionality with PCA. In parenthesis we report the relative differences to the respective result directly above. ",
567
+ "bbox": [
568
+ 174,
569
+ 487,
570
+ 823,
571
+ 515
572
+ ],
573
+ "page_idx": 6
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "match the $8 8 \\%$ reported in Chen et al. (2017b); however, with MultiNLI, we find that our implementation of ESIM performs considerably better (by approximately $5 \\%$ ). The instability of the results suggests, as well as the failure of a custom RTE-architecture to consistently perform well suggests that current SotA RTE models may be overfit to the SNLI dataset. ",
578
+ "bbox": [
579
+ 174,
580
+ 545,
581
+ 823,
582
+ 602
583
+ ],
584
+ "page_idx": 6
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "5.3 REDUCING TRAINING DATA & DIMENSIONALITY OF PRE-TRAINED WORD EMBEDDINGS ",
589
+ "text_level": 1,
590
+ "bbox": [
591
+ 174,
592
+ 622,
593
+ 728,
594
+ 651
595
+ ],
596
+ "page_idx": 6
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "We find that there is only little impact when using external knowledge on the RTE task when using a more sophisticated task model such as ESIM. We hypothesize that the attention mechanisms within ESIM jointly with powerful, pre-trained word representations allow for the recovery of some important lexical relations when trained on a large dataset. It follows that by reducing the number of training data and impoverishing pre-trained word representations the impact of using external knowledge should become larger. ",
601
+ "bbox": [
602
+ 174,
603
+ 664,
604
+ 825,
605
+ 747
606
+ ],
607
+ "page_idx": 6
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "To test this hypothesis, we gradually impoverish pre-trained word embeddings by reducing their dimensionality with PCA while reducing the number of training instances at the same time.9 Our joint data and dimensionality reduction results are presented in Table 3. They show that there is indeed a slightly larger benefit when employing background knowledge in the more impoverished settings with largest improvements over using only the novel reading architecture when using around $1 0 \\mathrm { k }$ examples and reduced dimensionality to 10. However, we observe that the biggest overall impact over the baseline ESIM model stems from our contextual refinement strategy (reading) which is especially pronounced for the 1k and $3 \\mathrm { k }$ experiments. This highlights once more the usefulness of our refinement strategy even without the use of additional knowledge. ",
612
+ "bbox": [
613
+ 174,
614
+ 755,
615
+ 825,
616
+ 880
617
+ ],
618
+ "page_idx": 6
619
+ },
620
+ {
621
+ "type": "table",
622
+ "img_path": "images/c98c6b91df2f3ba90a252a819d1514601851a13ec375ab2d750bb23ca85893b5.jpg",
623
+ "table_caption": [],
624
+ "table_footnote": [],
625
+ "table_body": "<table><tr><td>p:</td><td>His off-the-cuff style seems am- ateurish [...]</td><td>the net cost of oper- ations.</td><td>but uh these guys [...] file their uh their final exams [.]</td></tr><tr><td>h:</td><td>He didn&#x27;t look like an amateur</td><td>The gross cost. gross antonym net</td><td>These men filed their midterm exams [...] midterm antonym final</td></tr><tr><td>a: →</td><td>look like synonym seem contradiction</td><td>contradiction</td><td>contradiction</td></tr><tr><td>a: →</td><td>look like antonym seem entailment</td><td>gross synonym net entailment</td><td>midterm synonym final entailment</td></tr></table>",
626
+ "bbox": [
627
+ 173,
628
+ 101,
629
+ 825,
630
+ 212
631
+ ],
632
+ "page_idx": 7
633
+ },
634
+ {
635
+ "type": "image",
636
+ "img_path": "images/56196af4a40baf9b7d85efc1729eba839557a4afe84711536e71e75d2cfd2253.jpg",
637
+ "image_caption": [
638
+ "Table 4: Three examples for the antonym synonym swapping experiment on MultiNLI. p-premise, h-hypothesis, a-assertion, ¯a-swapped assertion. ",
639
+ "Figure 2: Performance differences when ignoring certain types of knowledge, i.e., relation predicates during evaluation. Normalized performance differences are measured on the subset of examples for which an assertion of the respective relation predicate occurs. "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 173,
644
+ 265,
645
+ 828,
646
+ 430
647
+ ],
648
+ "page_idx": 7
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "6 ANALYSIS OF KNOWLEDGE UTILIZATION ",
653
+ "text_level": 1,
654
+ "bbox": [
655
+ 174,
656
+ 511,
657
+ 549,
658
+ 526
659
+ ],
660
+ "page_idx": 7
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Is additional knowledge used? To verify whether and how our models make use of additional knowledge, we conducted several experiments. First, we evaluated models trained with knowledge on our tasks while not providing any knowledge at test time. This ablation drops performance by $3 . 7 { - } 3 . 9 \\%$ accuracy on MultiNLI, and by $4 \\%$ F1 on SQuAD. This indicates the model is refining the representations using the provided assertions in a useful way. ",
665
+ "bbox": [
666
+ 174,
667
+ 542,
668
+ 825,
669
+ 613
670
+ ],
671
+ "page_idx": 7
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Are models sensitive to semantics of the provided knowledge? The previous result does not show that the models utilize the provided assertions in any consistent way (it may just reflect a mismatch of training and testing conditions). Therefore, to test our models sensitivity towards the semantics of the assertions, we run an experiment in which we swap the synonym with the antonym predicate in the provided assertions during test time. Because of our heuristic retrieval mechanism, not all such “counterfactuals” will affect the truth of the inference, but we still expect to see a more significant impact. The performance drop on MultiNLI examples for which either a synonym or an antonym-assertion is retrieved is about $10 \\%$ for both the BiLSTM and the ESIM model. This very large drop clearly shows that our models are sensitive to the semantics of the provided knowledge. Examples of prediction changes are presented in Table 4. They demonstrate that the system has learned to trust the presented assertions to the point that it will make appropriate counterfactual inferences—that is, the change in knowledge has caused the change in prediction. ",
676
+ "bbox": [
677
+ 174,
678
+ 628,
679
+ 825,
680
+ 796
681
+ ],
682
+ "page_idx": 7
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "What knowledge is used? After establishing that our models are somehow sensitive to semantics we wanted to find out which type of knowledge is important for which task. For this analysis we exclude assertions including the most prominent predicates in our knowledge base individually when evaluating our models. The results are presented in Figure 2. They demonstrate that the biggest performance drop in total (blue bars) stems from related to assertions. This very prominent predicate appears much more frequently than other assertions and helps connecting related parts of the 2 input sequences with each other. We believe that related to assertions offer benefits mainly from a modeling perspective by strongly connecting the input sequences with each other and thus bridging long-range dependencies similar to attention. Looking at the relative drops obtained by normalizing the performance differences on the actually affected examples (green) we find that our models depend highly on the presence of antonym and synonym assertions for all tasks as well as partially on is a and derived from assertions. This is an interesting finding which shows that the sensitivity of our models is selective wrt. the type of knowledge and task. The fact that the largest relative impact stems from antonyms is very interesting because it is known that such information is hard to capture with distributional semantics contained in pre-trained word embeddings. ",
687
+ "bbox": [
688
+ 174,
689
+ 811,
690
+ 823,
691
+ 924
692
+ ],
693
+ "page_idx": 7
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "",
698
+ "bbox": [
699
+ 174,
700
+ 103,
701
+ 825,
702
+ 202
703
+ ],
704
+ "page_idx": 8
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "7 RELATED WORK ",
709
+ "text_level": 1,
710
+ "bbox": [
711
+ 176,
712
+ 241,
713
+ 343,
714
+ 257
715
+ ],
716
+ "page_idx": 8
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "The role of background knowledge in natural language understanding has long been remarked on, especially in the context of classical models of AI (Schank & Abelson, 1977; Minsky, 2000); however, it has only recently begun to play a role in neural network models of NLU (Ahn et al., 2016; Xu et al., 2016; Long et al., 2017; Dhingra et al., 2017). However, previous efforts have focused on specific tasks or certain kinds of knowledge, whereas we take a step towards a more general-purpose solution for the integration of heterogeneous knowledge for NLU systems by providing a simple, general-purpose reading architecture that can read background knowledge encoded in simple natural language statements, e.g., “abdication is a type of resignation”. ",
721
+ "bbox": [
722
+ 174,
723
+ 284,
724
+ 825,
725
+ 396
726
+ ],
727
+ "page_idx": 8
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Bahdanau et al. (2017) use textual word definitions as a source of information about the embeddings of OOV words. In the area of visual question answering Wu et al. (2016) utilize external knowledge in form of DBpedia comments (short abstracts/definitions) to improve the answering ability of a model. Marino et al. (2017) explicitly incorporate knowledge graphs into an image classification model. Xu et al. (2016) created a recall mechanism into a standard LSTM cell that retrieves pieces of external knowledge encoded by a single representation for a conversation model. Concurrently, Dhingra et al. (2017) exploit linguistic knowledge using MAGE-GRUs, an adapation of GRUs to handle graphs, however, external knowledge has to be present in form of triples. The main difference to our approach is that we incorporate external knowledge in free text form on the word level prior to processing the task at hand which constitutes a more flexible setup. Ahn et al. (2016) exploit knowledge base facts about mentioned entities for neural language models. Bahdanau et al. (2017) and Long et al. (2017) create word embeddings on-the-fly by reading word definitions prior to processing the task at hand. Pilehvar et al. (2017) seamlessly incorporate information about word senses into their representations before solving the downstream NLU task, which is similar. We go one step further by seamlessly integrating all kinds of fine-grained assertions about concepts that might be relevant for the task at hand. ",
732
+ "bbox": [
733
+ 174,
734
+ 404,
735
+ 825,
736
+ 625
737
+ ],
738
+ "page_idx": 8
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Another important aspect of our approach is the notion of dynamically updating wordrepresentations. Tracking and updating concepts, entities or sentences with dynamic memories is a very active research direction (Kumar et al., 2016; Henaff et al., 2017; Ji et al., 2017; Kobayashi et al., 2017). However, those works typically focus on particular tasks whereas our approach is taskagnostic and most importantly allows for the integration of external background knowledge. Other related work includes storing temporary information in weight matrices instead of explicit neural activations (such as word representations) as a biologically more plausible alternative. ",
743
+ "bbox": [
744
+ 174,
745
+ 632,
746
+ 825,
747
+ 729
748
+ ],
749
+ "page_idx": 8
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "8 CONCLUSION ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 176,
757
+ 768,
758
+ 318,
759
+ 785
760
+ ],
761
+ "page_idx": 8
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "We have presented a novel task-agnostic reading architecture that allows for the dynamic integration of background knowledge into neural NLU models. Our solution, which is based on the incremental refinement of word representations by reading supplementary inputs, is flexible and be used with virtually any existing NLU architecture that rely on word embeddings as input. Our results show that embedding refinement using both the system’s text inputs, as well as supplementary texts encoding background knowledge can yield large improvements. In particular, we have shown that relatively simple task architectures (e.g., based on simple BiLSTM readers) can become competitive with state-of-the-art, task-specific architectures when augmented with our reading architecture. ",
766
+ "bbox": [
767
+ 174,
768
+ 811,
769
+ 825,
770
+ 924
771
+ ],
772
+ "page_idx": 8
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "ACKNOWLEDGMENTS ",
777
+ "text_level": 1,
778
+ "bbox": [
779
+ 176,
780
+ 103,
781
+ 357,
782
+ 118
783
+ ],
784
+ "page_idx": 9
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "REFERENCES ",
789
+ "text_level": 1,
790
+ "bbox": [
791
+ 174,
792
+ 136,
793
+ 287,
794
+ 151
795
+ ],
796
+ "page_idx": 9
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Sungjin Ahn, Heeyoul Choi, Tanel Parnamaa, and Yoshua Bengio. A neural knowledge language ¨ model. arXiv, 2016. ",
801
+ "bbox": [
802
+ 171,
803
+ 159,
804
+ 825,
805
+ 188
806
+ ],
807
+ "page_idx": 9
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Dzmitry Bahdanau, Tom Bosc, Stanisław Jastrzebski, Edward Grefenstette, Pascal Vincent, and Yoshua Bengio. Learning to compute word embeddings on the fly. arXiv, 2017. ",
812
+ "bbox": [
813
+ 174,
814
+ 195,
815
+ 820,
816
+ 226
817
+ ],
818
+ "page_idx": 9
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Samuel R Bowman, Gabor Angeli, Potts Christopher, and Christopher D Manning. A large annotated corpus for learning natural language inference. In EMNLP. Association for Computational Linguistics, 2015. ",
823
+ "bbox": [
824
+ 173,
825
+ 233,
826
+ 825,
827
+ 276
828
+ ],
829
+ "page_idx": 9
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "Qian Chen, Xiaodan Zhu, Zhen-Hua Ling, Si Wei, Hui Jiang, and Diana Inkpen. Recurrent neural network-based sentence encoder with gated attention for natural language inference. arXiv, 2017a. ",
834
+ "bbox": [
835
+ 173,
836
+ 285,
837
+ 825,
838
+ 327
839
+ ],
840
+ "page_idx": 9
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, and Hui Jiang. Enhancing and Combining Sequential and Tree LSTM for Natural Language Inference. ACL, 2017b. ",
845
+ "bbox": [
846
+ 176,
847
+ 335,
848
+ 823,
849
+ 364
850
+ ],
851
+ "page_idx": 9
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Bhuwan Dhingra, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Linguistic Knowledge as Memory for Recurrent Neural Networks. arXiv, 2017. ",
856
+ "bbox": [
857
+ 174,
858
+ 372,
859
+ 823,
860
+ 401
861
+ ],
862
+ "page_idx": 9
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Yichen Gong, Heng Luo, and Jian Zhang. Natural language inference over interaction space. arXiv, 2017. ",
867
+ "bbox": [
868
+ 176,
869
+ 410,
870
+ 823,
871
+ 439
872
+ ],
873
+ "page_idx": 9
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. In ICLR, 2017. ",
878
+ "bbox": [
879
+ 173,
880
+ 446,
881
+ 821,
882
+ 477
883
+ ],
884
+ "page_idx": 9
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997. ",
889
+ "bbox": [
890
+ 174,
891
+ 484,
892
+ 805,
893
+ 501
894
+ ],
895
+ "page_idx": 9
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Minghao Hu, Yuxing Peng, and Xipeng Qiu. Reinforced mnemonic reader for machine comprehension. arXiv, 2017. ",
900
+ "bbox": [
901
+ 174,
902
+ 507,
903
+ 820,
904
+ 537
905
+ ],
906
+ "page_idx": 9
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Yangfeng Ji, Chenhao Tan, Sebastian Martschat, Yejin Choi, and Noah A Smith. Dynamic entity representations in neural language models. In EMNLP, 2017. ",
911
+ "bbox": [
912
+ 176,
913
+ 545,
914
+ 821,
915
+ 575
916
+ ],
917
+ "page_idx": 9
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Mandar Joshi, Eunsol Choi, Daniel S. Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In ACL, July 2017. ",
922
+ "bbox": [
923
+ 174,
924
+ 582,
925
+ 821,
926
+ 612
927
+ ],
928
+ "page_idx": 9
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. ICLR, 2015. ",
933
+ "bbox": [
934
+ 171,
935
+ 619,
936
+ 789,
937
+ 636
938
+ ],
939
+ "page_idx": 9
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Sosuke Kobayashi, Naoaki Okazaki, and Kentaro Inui. A neural language model for dynamically representing the meanings of unknown words and entities in a discourse. arXiv preprint arXiv:1709.01679, 2017. ",
944
+ "bbox": [
945
+ 173,
946
+ 643,
947
+ 825,
948
+ 686
949
+ ],
950
+ "page_idx": 9
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In ICML, pp. 1378–1387, 2016. ",
955
+ "bbox": [
956
+ 174,
957
+ 694,
958
+ 825,
959
+ 738
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Teng Long, Emmanuel Bengio, Ryan Lowe, Jackie Chi Kit Cheung, and Doina Precup. World knowledge for reading comprehension: Rare entity prediction with hierarchical lstms using external descriptions. In EMNLP, 2017. ",
966
+ "bbox": [
967
+ 174,
968
+ 746,
969
+ 825,
970
+ 789
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Christopher D Manning, Hinrich Schutze, et al. ¨ Foundations of statistical natural language processing, volume 999. MIT Press, 1999. ",
977
+ "bbox": [
978
+ 174,
979
+ 796,
980
+ 821,
981
+ 825
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Kenneth Marino, Ruslan Salakhutdinov, and Abhinav Gupta. The more you know: Using knowledge graphs for image classification. CVPR, 2017. ",
988
+ "bbox": [
989
+ 173,
990
+ 834,
991
+ 823,
992
+ 863
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Marvin Minsky. Commonsense-based interfaces. Communications of the ACM, 2000. ",
999
+ "bbox": [
1000
+ 173,
1001
+ 871,
1002
+ 738,
1003
+ 887
1004
+ ],
1005
+ "page_idx": 9
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Bhaskar Mitra and Nick Craswell. Neural models for information retrieval. arXiv preprint arXiv:1705.01509, 2017. ",
1010
+ "bbox": [
1011
+ 173,
1012
+ 895,
1013
+ 821,
1014
+ 924
1015
+ ],
1016
+ "page_idx": 9
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Karthik Narasimhan, Adam Yala, and Regina Barzilay. Improving information extraction by acquiring external evidence with reinforcement learning. In EMNLP, 2016. \nRodrigo Nogueira and Kyunghyun Cho. Task-oriented query reformulation with reinforcement learning. In EMNLP, 2017. \nBoyuan Pan, Hao Li, Zhou Zhao, Bin Cao, Deng Cai, and Xiaofei He. Memen: Multi-layer embedding with memory networks for machine comprehension. arXiv, 2017. \nJeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In EMNLP, 2014. \nMohammad Taher Pilehvar, Jose Camacho-Collados, Roberto Navigli, and Nigel Collier. Towards a seamless integration of word senses into downstream nlp applications. In ACL, 2017. \nPranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. In SQuAD: 100,000+ Questions for Machine Comprehension of Text, 2016. \nTim Rocktaschel, Edward Grefenstette, Karl Moritz Hermann, Tom ¨ as Kocisk ´ y, and Phil Blunsom. ´ Reasoning about entailment with neural attention. ICLR, 2015. \nRoger Schank and Robert Abelson. Scripts, Plans, Goals, and Understanding. Psychology Press, 1977. \nMinjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hananneh Hajishirzi. Bi-Directional Attention Flow for Machine Comprehension. In ICLR, 2017. \nRobert Speer and Catherine Havasi. Representing General Relational Knowledge in ConceptNet 5. In LREC, 2012. \nWenhui Wang, Nan Yang, Furu Wei, Baobao Chang, and Ming Zhou. Gated self-matching networks for reading comprehension and question answering. In ACL, 2017. \nDirk Weissenborn, Georg Wiese, and Laura Seiffe. Making Neural QA as Simple as Possible but not Simpler. In CoNLL, 2017. \nAdina Williams, Nikita Nangia, and Samuel R Bowman. A broad-coverage challenge corpus for sentence understanding through inference. arXiv, 2017. \nQi Wu, Peng Wang, Chunhua Shen, Anton van den Hengel, and Anthony Dick. Ask Me Anything: Free-form Visual Question Answering Based on Knowledge from External Sources. CVPR, 2016. \nZhen Xu, Bingquan Liu, Baoxun Wang, Chengjie Sun, and Xiaolong Wang. Incorporating LooseStructured Knowledge into LSTM with Recall Gate for Conversation Modeling. arXiv, 2016. ",
1021
+ "bbox": [
1022
+ 171,
1023
+ 98,
1024
+ 826,
1025
+ 665
1026
+ ],
1027
+ "page_idx": 10
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "A IMPLEMENTATION DETAILS ",
1032
+ "text_level": 1,
1033
+ "bbox": [
1034
+ 176,
1035
+ 102,
1036
+ 441,
1037
+ 118
1038
+ ],
1039
+ "page_idx": 11
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "In the following we explain the detailed implementation of our two task-specific, baseline models. We assume to have computed the contextually (un-)refined word representations depending on the setup and embedded our input sequences $\\pmb q = ( q _ { 1 } , . . . , q _ { L _ { Q } } )$ and $\\pmb { p } = ( p _ { 1 } , . . . , p _ { L _ { P } } )$ to $\\mathbf { Q } \\in \\mathbf { \\mathbb { R } } ^ { n \\times L _ { Q } }$ and $\\mathbf { P } \\in \\mathbb { R } ^ { n \\times L _ { P } }$ , respectively. The word representation update gate in Eq. 4 is initialized with a bias of 1 to refine representations only slightly in the beginning of training. In the following as before, we denote the hidden dimensionality of our model by $n$ and a fully-connected layer by $\\mathrm { F C } ( \\mathbf { z } ) = \\mathbf { W } \\mathbf { z } + \\mathbf { b }$ , $\\mathbf { W } \\in \\mathbb { R } ^ { n \\times m }$ , $\\mathbf { b } \\in \\mathbb { R } ^ { n } , \\mathbf { u } \\in \\mathbb { R } ^ { m }$ . ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 133,
1047
+ 825,
1048
+ 234
1049
+ ],
1050
+ "page_idx": 11
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "A.1 QUESTION ANSWERING ",
1055
+ "text_level": 1,
1056
+ "bbox": [
1057
+ 174,
1058
+ 251,
1059
+ 385,
1060
+ 266
1061
+ ],
1062
+ "page_idx": 11
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Encoding In the DQA task $\\pmb q$ refers to the question and $\\pmb { p }$ to the supporting text. At first we process both sequences by identical BiLSTMs in parallel (Eq. 6) followed by separate linear projections (Eq. 7) . ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 277,
1070
+ 823,
1071
+ 320
1072
+ ],
1073
+ "page_idx": 11
1074
+ },
1075
+ {
1076
+ "type": "equation",
1077
+ "img_path": "images/fe62f82ac6a6f1bf28fbde74206b1003acdb0c2a05a2ab85b8a2008ce2505840.jpg",
1078
+ "text": "$$\n\\begin{array} { r l r l r l } & { \\hat { \\mathbf { Q } } = \\mathrm { B i L S T M } ( \\mathbf { Q } ) } & { \\quad } & { \\hat { \\mathbf { P } } = \\mathrm { B i L S T M } ( \\mathbf { P } ) } & { \\quad } & { \\hat { \\mathbf { Q } } \\in \\mathbb { R } ^ { 2 n \\times L _ { Q } } , \\ \\hat { \\mathbf { P } } \\in \\mathbb { R } ^ { 2 n \\times L _ { P } } } \\\\ & { \\tilde { \\mathbf { Q } } = \\mathbf { U } _ { Q } \\hat { \\mathbf { Q } } } & { \\quad } & { \\tilde { \\mathbf { P } } = \\mathbf { U } _ { P } \\hat { \\mathbf { P } } } & { \\quad } & { \\tilde { \\mathbf { Q } } \\in \\mathbb { R } ^ { n \\times L _ { Q } } , \\ \\tilde { \\mathbf { P } } \\in \\mathbb { R } ^ { n \\times L _ { P } } , } \\end{array}\n$$",
1079
+ "text_format": "latex",
1080
+ "bbox": [
1081
+ 222,
1082
+ 344,
1083
+ 769,
1084
+ 390
1085
+ ],
1086
+ "page_idx": 11
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "${ \\bf U } _ { Q } , { \\bf U } _ { P } \\in \\mathbb { R } ^ { n \\times 2 n }$ are initialized by $[ I ; I ]$ where $I \\in \\mathbb { R } ^ { n \\times n }$ is the identity matrix. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 395,
1094
+ 709,
1095
+ 412
1096
+ ],
1097
+ "page_idx": 11
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Prediction Our prediction– or answer layer is the same as in Weissenborn et al. (2017). We first compute a weighted, $n$ -dimensional representation $\\tilde { \\pmb q }$ of the processed question $\\tilde { \\mathbf { Q } }$ (Eq. 8). ",
1102
+ "bbox": [
1103
+ 169,
1104
+ 426,
1105
+ 825,
1106
+ 458
1107
+ ],
1108
+ "page_idx": 11
1109
+ },
1110
+ {
1111
+ "type": "equation",
1112
+ "img_path": "images/1b70b8b7d2af90950e7f947584147f2ca227298812bc4981f4ade4239cc21ab5.jpg",
1113
+ "text": "$$\n\\begin{array} { l l } { \\displaystyle \\alpha = \\mathrm { s o f t m a x } ( \\mathbf { v } _ { q } \\tilde { \\mathbf { Q } } ) } & { , \\mathbf { v } _ { q } \\in \\mathbb { R } ^ { n } } \\\\ { \\displaystyle \\tilde { \\mathbf { q } } = \\sum _ { i } \\alpha _ { i } \\tilde { \\mathbf { q } } _ { i } } \\end{array}\n$$",
1114
+ "text_format": "latex",
1115
+ "bbox": [
1116
+ 387,
1117
+ 483,
1118
+ 609,
1119
+ 540
1120
+ ],
1121
+ "page_idx": 11
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "The probability distribution ${ p _ { s } } / p _ { e }$ for the start/end location of the answer is computed by a 2-layer MLP with a ReLU activated, hidden layer $s _ { j }$ as follows: ",
1126
+ "bbox": [
1127
+ 171,
1128
+ 553,
1129
+ 825,
1130
+ 583
1131
+ ],
1132
+ "page_idx": 11
1133
+ },
1134
+ {
1135
+ "type": "equation",
1136
+ "img_path": "images/712b33c86b15ad3144e95511d425f620acb03e93151542ea9b4066f29aa0aee6.jpg",
1137
+ "text": "$$\n\\begin{array} { r } { \\begin{array} { c } { \\mathbf { s } _ { j } = \\mathrm { R e L U } \\left( \\mathrm { F C } _ { s } \\left( \\left[ \\begin{array} { c } { \\tilde { \\mathbf { p } } _ { j } } \\\\ { \\tilde { \\mathbf { q } } } \\\\ { \\tilde { \\mathbf { p } } _ { j } \\odot \\tilde { \\mathbf { q } } } \\end{array} \\right] \\right) \\right) } \\\\ { p _ { s } ( j ) \\propto \\mathrm { e x p } ( \\mathbf { v } _ { s } \\mathbf { s } _ { j } ) \\qquad \\mathbf { v } _ { s } \\in \\mathbb { R } ^ { n } } \\end{array} \\qquad \\begin{array} { c } { \\mathbf { e } _ { j } = \\mathrm { R e L U } \\left( \\mathrm { F C } _ { e } \\left( \\left[ \\begin{array} { c } { \\tilde { \\mathbf { p } } _ { j } } \\\\ { \\tilde { \\mathbf { q } } } \\\\ { \\tilde { \\mathbf { p } } _ { j } \\odot \\tilde { \\mathbf { q } } } \\end{array} \\right] \\right) \\right) } \\\\ { p _ { e } ( j ) \\propto \\mathrm { e x p } ( \\mathbf { v } _ { e } \\mathbf { s } _ { j } ) \\qquad \\mathbf { v } _ { e } \\in \\mathbb { R } ^ { n } } \\end{array} } \\end{array}\n$$",
1138
+ "text_format": "latex",
1139
+ "bbox": [
1140
+ 220,
1141
+ 607,
1142
+ 776,
1143
+ 674
1144
+ ],
1145
+ "page_idx": 11
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "The model is trained to minimize the cross-entropy loss of the predicted start and end positions, respectively. During evaluation we extract the span $( i , k )$ with the best span-score $p _ { s } ( i ) \\cdot p _ { e } ( k )$ of maximum token length $k - i = 1 6$ . ",
1150
+ "bbox": [
1151
+ 176,
1152
+ 685,
1153
+ 823,
1154
+ 729
1155
+ ],
1156
+ "page_idx": 11
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "A.2 RECOGNIZING TEXTUAL ENTAILMENT ",
1161
+ "text_level": 1,
1162
+ "bbox": [
1163
+ 174,
1164
+ 746,
1165
+ 486,
1166
+ 761
1167
+ ],
1168
+ "page_idx": 11
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Encoding Analogous to DQA we encode our input sequences by BiLSTMs, however, for RTE we use conditional encoding (Rocktaschel et al., 2015) instead. Therefore, we initially process the ¨ embedded hypothesis $\\mathbf { Q }$ by a BiLSTM and use the respective end states of the forward and backward LSTM as initial states for the forward and backward LSTM that processes the embedded premise $\\mathbf { P }$ . ",
1173
+ "bbox": [
1174
+ 173,
1175
+ 772,
1176
+ 825,
1177
+ 842
1178
+ ],
1179
+ "page_idx": 11
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Prediction We concatenate the outputs of the forward and backward LSTMs processing the premise $\\pmb { p }$ , i.e., $\\left[ \\tilde { \\mathbf { p } } _ { t } ^ { f w } ; \\tilde { \\mathbf { p } } _ { t } ^ { b w } \\right] \\ \\in \\ \\mathbb { R } ^ { 2 n }$ and run each of the resulting $L _ { P }$ outputs through a fullyconnected layer with ReLU activation $\\left( \\mathbf { h } _ { t } \\right)$ followed by a max-pooling operation over time resulting in a hidden state $\\mathbf { h } \\in \\mathbb { R } ^ { n }$ . Finally, $\\mathbf { h }$ is used to predict the RTE label as follows: ",
1184
+ "bbox": [
1185
+ 174,
1186
+ 858,
1187
+ 825,
1188
+ 924
1189
+ ],
1190
+ "page_idx": 11
1191
+ },
1192
+ {
1193
+ "type": "equation",
1194
+ "img_path": "images/5d4220abb85b1672b7fe8fc779957bfbb7f34f1b3816c2cf3ac5e4bba30e81a2.jpg",
1195
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { h } _ { t } = \\mathrm { R e L U } \\left( \\mathrm { F C } \\left( \\left[ \\boldsymbol { \\tilde { \\mathbf { p } } } _ { t } ^ { f w } \\right] \\right) \\right) } \\\\ & { \\mathbf { h } = \\mathrm { m a x p o o l } \\ \\mathbf { h } _ { t } } \\\\ & { p ( c ) \\propto \\exp ( \\mathbf { v } _ { c } \\mathbf { h } ) , \\ \\mathbf { v } _ { c } \\in \\mathbb { R } ^ { n } } \\end{array}\n$$",
1196
+ "text_format": "latex",
1197
+ "bbox": [
1198
+ 393,
1199
+ 121,
1200
+ 602,
1201
+ 203
1202
+ ],
1203
+ "page_idx": 12
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "The probability of choosing category $c \\in \\{$ {entailment, contradiction, neutral $\\}$ is defined in Eq. 10. Finally, the model is trained to minimize the cross-entropy loss of the predicted category probability distribution $p$ . ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 208,
1211
+ 823,
1212
+ 251
1213
+ ],
1214
+ "page_idx": 12
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "A.3 TRAINING ",
1219
+ "text_level": 1,
1220
+ "bbox": [
1221
+ 174,
1222
+ 267,
1223
+ 290,
1224
+ 281
1225
+ ],
1226
+ "page_idx": 12
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "As pre-processing steps we lowercase all inputs and tokenize it. Additionally, we make use of lemmatization as described $\\ S 3 . 2$ in which is necessary for matching. As pre-trained word representations we use 300-dimensional word-embeddings from Glove (Pennington et al., 2014). We employed ADAM (Kingma & Ba, 2015) for optimization with an initial learning-rate of $1 0 ^ { - 3 }$ which was halved whenever the F1 measure (DQA) or the accuracy (RTE) dropped on the development set between 1000/2000 minibatches for DQA and RTE respectively. We used mini-batches of size 16 for DQA and 64 for RTE. Additionally, for regularization we make use of dropout with a rate of 0.2 on the computed non-contextual word representations ${ \\bf e } _ { w }$ defined in $\\ S 3 . 1$ with the same dropout mask for all words in a batch. All our models were trained with 3 different random seeds and the top performance is reported. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 292,
1234
+ 825,
1235
+ 433
1236
+ ],
1237
+ "page_idx": 12
1238
+ }
1239
+ ]
parse/train/B1twdMCab/B1twdMCab_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1twdMCab/B1twdMCab_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJehNfW0-/BJehNfW0-.md ADDED
@@ -0,0 +1,427 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DO GANS LEARN THE DISTRIBUTION? SOME THEORY AND EMPIRICS
2
+
3
+ # Sanjeev Arora
4
+
5
+ Department of Computer Science Princeton University Princeton, NJ 08544, USA arora@cs.princeton.edu
6
+
7
+ Andrej Risteski
8
+ Applied Mathematics Department and IDSS
9
+ Massachusetts Institute of Technology
10
+ Cambridge, MA 02139, USA
11
+ risteski@mit.edu
12
+
13
+ # Yi Zhang
14
+
15
+ Department of Computer Science Princeton University Princeton, NJ 08544, USA y.zhang@cs.princeton.edu
16
+
17
+ # ABSTRACT
18
+
19
+ Do GANS (Generative Adversarial Nets) actually learn the target distribution? The foundational paper of Goodfellow et al. (2014) suggested they do, if they were given “sufficiently large” deep nets, sample size, and computation time. A recent theoretical analysis in Arora et al. (2017) raised doubts whether the same holds when discriminator has bounded size. It showed that the training objective can approach its optimum value even if the generated distribution has very low support —in other words, the training objective is unable to prevent mode collapse. The current paper makes two contributions. (1) It proposes a novel test for estimating support size using the birthday paradox of discrete probability. Using this evidence is presented that well-known GANs approaches do learn distributions of fairly low support. (2) It theoretically studies encoder-decoder GANs architectures (e.g., BiGAN/ALI), which were proposed to learn more meaningful features via GANs and (consequently) to also solve the mode-collapse issue. Our result shows that such encoder-decoder training objectives also cannot guarantee learning of the full distribution because they cannot prevent serious mode collapse. More seriously, they cannot prevent learning meaningless codes for data, contrary to usual intuition.
20
+
21
+ # 1 INTRODUCTION
22
+
23
+ From the earliest papers on Generative Adversarial Networks the question has been raised whether or not they actually come close to learning the distribution they are trained with (henceforth refered to as the target distribution)? These methods train a generator deep net that converts a random seed into a realistic-looking image. Concurrently they train a discriminator deep net to discriminate between its output and real images, which in turn is used to produce gradient feedback to improve the generator net. In practice the generator deep net starts producing realistic outputs by the end, and the objective approaches its optimal value. But does this mean the deep net has learnt the target distribution of real images? Standard analysis introduced in Goodfellow et al. (2014) shows that given “sufficiently large” generator and discriminator, sample size, and computation time the training does succeed in learning the underlying distribution arbitrarily closely (measured in JensenShannon divergence). But this does not settle the question of what happens with realistic sample and net sizes.
24
+
25
+ Note that GANs differ from many previous methods for learning distributions in that they do not provide an estimate of a measure of distributional fit —e.g., perplexity score. Therefore researchers have probed their performance using surrogate qualitative tests, which were usually designed to rule out the most obvious failure mode of the training, namely, that the GAN has simply memorized the training data. One test checks the similarity of each generated image to the nearest images in the training set. Another takes two random seeds $s _ { 1 } , s _ { 2 }$ that produced realistic images and checks the images produced using seeds lying on the line joining $s _ { 1 } , s _ { 2 }$ . If such “interpolating” images are reasonable and original as well, then this may be taken as evidence that the generated distribution has many novel images. Yet other tests check for existence of semantically meaningful directions in the latent space, meaning that varying the seed along these directions leads to predictable changes e.g., (in case of images of human faces) changes in facial hair, or pose. A recent test proposed by Wu et al. (2016) checks the log-likelihoods of GANs using Annealed Importance Sampling, whose results indicate the mismatch between generator’s distribution and the target distribution. Poole et al. (2016) proposed a method to trade-off between sample quality and sample diversity but they don’t provide a clear definition or a quantitative metric of sample diversity.
26
+
27
+ Recently a new theoretical analysis of GANs with finite sample sizes and finite discriminator size Arora et al. (2017) revealed the possibility that training objective can sometimes approach optimality even if the generator is far from having actually learnt the distribution. Specifically, if the discriminator has size $p$ , then the training objective could be $\epsilon$ close to optimal even though the output distribution is supported on only $O ( \bar { p } \log p / \epsilon ^ { 2 } )$ images. By contrast one imagines that the target distribution usually must have very large support. For example, the set of all possible images of human faces (a frequent setting in GANs work) must involve all combinations of hair color/style, facial features, complexion, expression, pose, lighting, race, etc., and thus the possible set of images of faces approaches infinity. The above paper raises the possibility that the discriminator may be unable to meaningfully distinguish such a diverse target distribution from a trained distribution with fairly small support. Furthermore, the paper notes that this failure mode is different from the one usually feared, namely the generator memorizing training samples. The analysis of Arora et al. (2017) raises the possibility that the trained distribution has small support, and yet all its samples could be completely disjoint from the training samples.
28
+
29
+ However, the above analysis was only a theoretical one, exhibiting a particular near-equilibrium solution that can happen from certain hyper-parameter combinations. It left open the possibility that real-life GANs training avoids such solutions thanks to some not-as-yet-understood property of SGD, or hyper-parameter choices. Thus further experimental investigation seems necessary. And yet it seems difficult at first sight to do such an empirical evaluation of the support size of a distribution: it is not humanly possible to go through hundreds of thousands of images, whereas automated tests of image similarity can be thrown off by small changes in lighting, pose etc.
30
+
31
+ The current paper makes two important contributions. On the empirical side it introduces a new test for the support size of the trained distribution, and uses it to find that unfortunately these mode collapse problems do arise in many well-regarded GAN training methods. On the theoretical side we prove the limitations of encoder-decoder frameworks like BiGAN (Donahue et al., 2017) and Adversarially Learned Inference or ALI (Dumoulin et al., 2017), which, inspired by autoencoder models, require the setup to learn an inference mechanism as well as a generative mechanism. The result of Arora et al. (2017) applies only to standard GAN training objectives (including JS and Wasserstein), but not to encoder-decoder setups. The clear hope in defining encoder-decoder setups is that the encoding mechanism “inverts” the generator and thus forces the generator to learn meaningful featurizations of data that are useful in downstream applications. In fact it has often been proposed that this need to learn meaningful featurizations will also solve the mode collapse problem: (Dumoulin et al., 2017) provide experiments on 2-dimensional mixtures of Gaussians suggesting this phenomenon. Our analysis shows not only that encoder-decoder training objectives cannot avoid mode collapse, but that they also cannot enforce learning of meaningful codes/features.
32
+
33
+ # 1.1 BIRTHDAY PARADOX TEST FOR SUPPORT SIZE
34
+
35
+ Let’s consider a simple test that estimates the support size of a discrete distribution. Suppose a√ distribution has support $N$ . The famous birthday paradox1 says that a batch of about $\sqrt { N }$ samples would be likely to have a duplicate. Thus our proposed birthday paradox test for GANs is as follows.
36
+
37
+ # Birthday Paradox Test
38
+
39
+ (a) Sample a batch of $s$ images from the generator.
40
+ (b) Use an automated measure of image similarity to flag the $\sim 2 0$ most similar pairs in the batch.
41
+ (c) Visually inspect the flagged pairs and check for duplicates.
42
+ (d) Repeat.
43
+
44
+ If this test reveals that batches of size $s$ have duplicate images with good probability, then suspect that the distribution has support size about $s ^ { 2 }$ . Note that the test is not definitive, because the distribution could assign a probability $1 0 \%$ to a single image, and be uniform on a huge number of other images. Then the test would be likely to find a duplicate even with 20 samples, though the true support size is huge. But such nonuniformity (a lot of probability being assigned to a few images) is the only failure mode of the birthday paradox test calculation, and such nonuniformity would itself be considered a failure mode of GANs training. This is captured in the following theorems:
45
+
46
+ Theorem 1. Given a discrete probability distribution $P$ on a set $\Omega$ , if there exists a subset $S \subseteq \Omega$ of size $N$ such that $\begin{array} { r } { \sum _ { s \in S } P ( s ) \bar { \geq } \rho , } \end{array}$ , then the probability of encountering at least one collision among $M$ i.i.d. samples from $\begin{array} { r } { P i s \ge 1 - \exp \bigl ( - \frac { ( M ^ { 2 } - M ) \rho } { 2 N } \bigr ) } \end{array}$
47
+
48
+ Theorem 2. Given a discrete probability distribution $P$ on a set $\Omega ,$ , if the probability of encountering at least one collision among $M$ i.i.d. samples from $P$ is $\gamma ,$ , then for $\rho = 1 - o ( 1 )$ , there exists $a$ subset $S \subseteq \Omega$ such that $\begin{array} { r } { \sum _ { s \in S } P ( s ) \ge \rho w i t h s i z e \le \frac { 2 M \rho ^ { 2 } } { ( - 3 + \sqrt { 9 + \frac { 2 4 } { M } \ln \frac { 1 } { 1 - \gamma } } ) - 2 M ( 1 - \rho ) ^ { 2 } } } \end{array}$ , under realistic assumptions on parameters.
49
+
50
+ The proofs of these theorems are included in Appendix A. It is important to note that Theorem 1 and 2 do not assume that the tested distribution is uniform. In fact, Theorem 2 clarifies that if one can consistently see collisions in batches, then the distribution has a major component distribution that has limited support size but is almost indistinguishable from the full distribution via sampling a small number of samples. Thus the distribution effectively has small support size, which is what one should care about when sampling from it. Furthermore, without any further assumption, to accurately estimate the support size of an arbitrary distribution that has $n$ modes, $\Omega ( n / \log n )$ samples need to be seen, rendering it practically infeasible for a human examiner (Valiant & Valiant, 2011).
51
+
52
+ # 2 BIRTHDAY PARADOX TEST FOR GANS: EXPERIMENTAL DETAILS
53
+
54
+ In the GAN setting, the distribution is continuous, not discrete. When support size is infinite then in a finite sample, we should not expect exact duplicate images where every pixel is identical. Thus a priori one imagines the birthday paradox test to completely not work. But surprisingly, it still works if we look for near-duplicates. Given a finite sample, we select the 20 closest pairs according to some heuristic metric, thus obtaining a candidate pool of potential near-duplicates inspect. Then we visually identify if any of them would be considered duplicates by humans. Our test were done using two datasets, CelebA (faces) (Liu et al., 2015) and CIFAR-10 (Krizhevsky, 2009) . Note that CelebA reasonably balanced, since the constructors intentionally made it unbiased (it contains ten thousand identities, each of which has twenty images). Also, we report in Appendix B results on the Bedroom dataset from the LSUN (Yu et al., 2015).
55
+
56
+ For faces, we find Euclidean distance in pixel space works well as a heuristic similarity measure, probably because the samples are centered and aligned. For CIFAR-10, we pre-train a discriminative CNN for the full classification problem, and use the top layer representation as an embedding. Heuristic similarity is then measured as the Euclidean distance in the embedding space. These metrics can be crude, but note that improving them can only lower our estimate of the support size, since a better similarity measure can only increase the number of duplicates found. Thus our reported estimates should be considered as upper bounds on the support size of the distribution.
57
+
58
+ Note: Some GANs (and also older methods such as variational autoencoders) implicitly or explicitly apply noise to the training and generated images. This seems useful if the goal is to compute a perplexity score, which involves the model being able to assign a nonzero probability to every image.
59
+
60
+ Such noised images are usually very blurry and the birthday paradox test does not work well for them, primarily because the automated measure of similarity no longer works well. Even visually judging similarity of noised images is difficult. Thus our experiments work best with GANs that generate sharper, realistic images.
61
+
62
+ # 2.1 RESULTS ON CELEBA DATASET
63
+
64
+ We test the following methods, doing the birthday paradox test with Euclidean distance in pixel space as the heuristic similarity measure For judging whether two images are the same, we set the criterion that the two faces are not exactly identical but look like doppelgangers. (Of course, in real life the only doppelgangers we know are usually twins.)
65
+
66
+ • DCGAN —unconditional, with JSD objective as described in Goodfellow et al. (2014) and Radford et al. (2015).
67
+ • $\mathrm { M I X } +$ GAN protocol introduced in Arora et al. (2017), specifically, MIX $+$ DCGAN with 3 mixture components.
68
+ • ALI (Dumoulin et al., 2017) (or equivalently BiGANs (Donahue et al., 2017)).2
69
+
70
+ For fair comparison, we set the discriminator of ALI (or BiGANs) to be roughly the same in size as that of the DCGAN model, since the results of Section 2.1.1 below suggests that the discriminator size has a strong effect on diversity of the learnt distribution.
71
+
72
+ We find that with probability $\geq 5 0 \%$ , a batch of $\sim 8 0 0$ samples contains at least one pair of duplicates for both DCGAN and MIX $+$ DCGAN. Figure 1 displays duplicates and their nearest neighbors in training set. These results suggest that the support size of the distribution is less than $8 0 0 ^ { 2 } \approx 6 4 0 0 0 0$ , being at the same order of the size of the training set, but this distribution is not just memorizing the training set (see the dashed boxes).
73
+
74
+ ALI (or BiGANs) appears to be more diverse, in that collisions appear with $5 0 \%$ probability only with a batch size of 1200, implying a support size of a million. This is 6x the training set, but still much smaller than the diversity one would expect among human faces3. Nevertheless, these tests do support the suggestion in Dumoulin et al. (2017) and Donahue et al. (2017) that the bidirectional structure prevents some of the mode collapse observed in usual GANs.
75
+
76
+ # 2.1.1 DIVERSITY VS DISCRIMINATOR SIZE
77
+
78
+ The analysis of Arora et al Arora et al. (2017) suggested that the support size could be as low as near-linear in the capacity of the discriminator; in other words, there is a near-equilibrium in which a distribution of such a small support could suffice to fool the best discriminator. So it is worth investigating whether training in real life allows generator nets to exploit this “loophole” in the training that we now know is in principle available to them.
79
+
80
+ While a comprehensive test is beyond the scope of this paper, we do a first test with a simplistic version of discriminator size (i.e., capacity). We build DCGANs with increasingly larger discriminators while fixing the other hyper-parameters. The discriminator used here is a 5-layer Convolutional Neural Network such that the number of output channels of each layer is $1 \times , 2 \times , 4 \times , 8 \times d i m$ where dim is chosen to be 16, 24, . . . , 120, 128. Thus the discriminator size should be proportional to $d i m ^ { 2 }$ . Figure 2 suggests that in this simple setup the diversity of the learnt distribution does indeed grow near-linearly with the discriminator size.
81
+
82
+ # 2.2 RESULTS FOR CIFAR-10
83
+
84
+ On CIFAR-10, Euclidean distance in pixel space is not informative. So we adopt a classifying CNN with 3 convolutional layers, 2 fully-connected layer and a 10-class soft-max output pretrained with a multi-class classification objective, and use its top layer features as embeddings for similarity test using Euclidean distance. Firstly, we find that the result of the test is affected by the quality of samples. If the training uses noised samples (with noise being added either explicitly or implicitly in the objective) then the generated samples are also quite noisy. Then the most similar samples in a batch tend to be blurry blobs of low quality. Indeed, when we test a DCGAN (even the best variant with 7.16 Inception Score reported in Huang et al. (2016)), the pairs returned are mostly blobs.
85
+
86
+ ![](images/8c91f1594d9e91edd4e6cc6191589853afaa61e45429ed93a20f37b50b4a9bf6.jpg)
87
+ Figure 1: Most similar pairs found in batches of 800 generated faces samples from a DCGAN, a MIX $\dotplus$ DCGAN (with 3 component) and an ALI. Each pair is from a different batch. Shown in dashed boxes are the nearest neighbors in training data.
88
+
89
+ ![](images/87ea0319de44ee6e301898d95a72d704c53012dc96f41513814c445137e2bf58.jpg)
90
+ Figure 2: Diversity’s dependence on discriminator size. The diversity is measured as the square of the batch size needed to encounter collision w.p. $\geq 5 0 \%$ v.s. size of discriminator.
91
+
92
+ To get meaningful test results, we turn to a Stacked GAN which is the state-of-the-art generative model on CIFAR-10 (Inception Score 8.59 (Huang et al., 2016)). It also generates the most reallooking images. Since this model is trained by conditioning on class label, we measure its diversity within each class separately. The batch sizes needed for duplicates are shown in Table 1. Duplicate samples shown in Figure 3.
93
+
94
+ Table 1: Class specific batch size needed to encounter duplicate samples with $> 5 0 \%$ probability, from a Stacked GAN trained on CIFAR-10
95
+
96
+ <table><tr><td rowspan=1 colspan=1>Aeroplane</td><td rowspan=1 colspan=1>Auto-Mobile</td><td rowspan=1 colspan=1>Bird</td><td rowspan=1 colspan=1>Cat</td><td rowspan=1 colspan=1>Deer</td><td rowspan=1 colspan=1>Dog</td><td rowspan=1 colspan=1>Frog</td><td rowspan=1 colspan=1>Horse</td><td rowspan=1 colspan=1>Ship</td><td rowspan=1 colspan=1>Truck</td></tr><tr><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>300</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>200</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>100</td></tr></table>
97
+
98
+ ![](images/d0e837fdc8641815e1db8fc001e0f7e71bf7f90c4183ff97f04fc48de57c968f.jpg)
99
+ Figure 3: Duplicate pairs found in a batch of 1000 generated CIFAR-10 samples from a Stacked GAN.a)-b):pairs of duplicate samples; c): nearest neighbor of b) in the training set.
100
+
101
+ We check whether the detected duplicates are close to any of the training images, by looking for the nearest neighbor in the training set using our heuristic similarity measure and visually inspecting the closest suspects. We find that the closest image is quite different from the duplicates, suggesting the issue with GANs is indeed lack of diversity (low support size) instead of memorizing training set.
102
+
103
+ # 3 LIMITATIONS OF ENCODER-DECODER GAN ARCHITECTURES
104
+
105
+ We recall the Adversarial Feature Learning (BiGAN) setup from Donahue et al. (2017). The “generative” player consists of two parts: a generator $G$ and an encoder $E$ . The generator takes as input a latent variable $z$ and produces a sample $G ( z )$ ; the encoder takes as input a data sample $x$ and produces a guess for the latent variable $E ( x )$ . This produces two joint distributions over pairs of latent variables and data samples: $( z , G ( z ) )$ and $( E ( x ) , x )$ . The goal of the ��generative” player is to convince the discriminator that these two distributions are the same, whereas the discriminator is being trained to distinguish between them. In the ideal case, the hope is that the “generative” player converges to $( z , G ( z ) )$ and $( E ( x ) , x )$ both being jointly distributed as $p ( z , x )$ where $p$ is the joint distribution of the latent variables and data – i.e. $G ( z )$ is distributed as $p ( x | z )$ : the true generator distribution; and $E ( x )$ is distributed as $p ( z | x )$ : the true encoder distribution.
106
+
107
+ Using usual min-max formalism for adversarial training, the BiGAN objective is written as:
108
+
109
+ $$
110
+ \operatorname* { m i n } _ { G , E } \operatorname* { m a x } _ { D } | \ \operatorname* { \mathbb { E } } _ { x \sim \hat { \mu } } \phi ( D ( x , E ( x ) ) ) - \operatorname* { \mathbb { E } } _ { z \sim \hat { \nu } } \phi ( D ( G ( z ) , z ) ) |
111
+ $$
112
+
113
+ where $\hat { \mu }$ is the empirical distribution over data samples $x$ ; $\hat { \nu }$ is a distribution over random “seeds” for the latent variables: typically sampled from a simple distribution like a standard Gaussian; and $\phi$ is a concave “measuring” function. (The standard choice is log, though other options have been proposed in the literature.) For our purposes, we will assume that $\phi$ outputs values in the range $[ - \Delta , \Delta ] , \Delta \geq 1$ , and is $L _ { \phi }$ -Lipschitz.
114
+
115
+ For ease of exposition we will refer to $\mu$ as the image distribution. The proof is more elegant if we assume that $\mu$ consists of images that have been noised —concretely, think of replacing every 100th pixel by Gaussian noise. Such noised images would of course look fine to our eyes, and we would expect the learnt encoder/decoder to not be affected by this noise. For concreteness, we will take the seed/code distribution $\nu$ to be a spherical zero-mean Gaussian (in an arbitrary dimension and with an arbitrary variance). 4
116
+
117
+ Furthermore, we will assume that Domain $( \mu ) = \mathbb { R } ^ { d }$ , $\mathrm { D o m a i n } ( \nu ) = \mathbb { R } ^ { \tilde { d } }$ with $\tilde { d } < d$ (we think of $\widetilde d \ll d$ , which is certainly the case in practice). As in Arora et al. (2017) we assume that discriminators are $L$ -lipschitz with respect to their trainable parameters, and the support size of the generator’s distribution will depend upon this $L$ and the capacity $p$ $\left( = \right.$ number of parameters) of the discriminator.
118
+
119
+ Theorem 3 (Main). There exists a generator $G$ of support $\frac { p \Delta ^ { 2 } \log ^ { 2 } ( p \Delta L L _ { \phi } / \epsilon ) } { \epsilon ^ { 2 } }$ and an encoder $E$ with at most $\tilde { d }$ non-zero weights, s.t. for all discriminators $D$ that are $L$ -Lipschitz and have capacity less than $p$ , it holds that
120
+
121
+ $$
122
+ \begin{array} { r } { | \underset { x \sim \mu } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) - \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \epsilon } \end{array}
123
+ $$
124
+
125
+ The interpretation of the above theorem is as stated before: the encoder $E$ has very small complexity (we will subsequently specify it precisely and show it simply extracts noise from the input $x$ ); the generator $G$ is a small-support distribution (so presumably far from the true data distribution). Nevertheless, the value of the BiGAN objective is small. The argument of Arora et al. (2017) seems unable to apply to this setting. It is a simple concentration/epsilon-net argument showing that the discriminator of capacity $p$ cannot distinguish between a generator that samples from $\mu$ versus one that memorizes a subset of $\frac { p \log p } { \epsilon ^ { 2 } }$ random images in $\mu$ and outputs one randomly from this subset. By contrast, in the current setting we need to say what happens with the encoder.
126
+
127
+ The precise noise model: Denoting by $\tilde { \mu }$ the distribution of unnnoised images, and $\nu$ the distribution of seeds/codes, we define the distribution of noised images $\mu$ as the following distribution: to produce a sample in $\mu$ take a sample $\tilde { x }$ from $\tilde { \mu }$ and $z$ from $\nu$ independently and output $x = \tilde { x } \circledast z$ , which is defined as
128
+
129
+ $$
130
+ x _ { i } = \left\{ \begin{array} { l l } { z _ { \frac { i } { \lfloor \frac { d } { \tilde { d } } \rfloor } } , } & { \mathrm { i f ~ } i \equiv 0 ( \bmod \lfloor \frac { d } { { \tilde { d } } } \rfloor ) } \\ { \tilde { x } _ { i } , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
131
+ $$
132
+
133
+ In other words, set every $\textstyle { \big \lfloor } { \frac { d } { \tilde { d } } } { \big \rfloor }$ -th to one of the coordinates of $z$ . In practical settings, $\widetilde d \ll d$ is usually chosen, so noising $\tilde { d }$ coordinates out of all $d$ will have no visually noticeable effect. 5
134
+
135
+ 3.1 PROOF SKETCH, THEOREM 3; DETAILED PROOF IN APPENDIX
136
+
137
+ The main idea is to show the existence of the generator/encoder pair via a probabilistic construction that is shown to succeed with high probability.
138
+
139
+ • Encoder $E$ : The encoder just extracts the noise from the noised image (by selecting the relevant $\tilde { d }$ coordinates). Namely, $E ( \tilde { x } \circledast z ) = z$ . (So the code is just gaussian noise and has no meaningful content.) It’s easy to see this can be captured using a ReLU network with $\tilde { d }$ weights: we can simply connect the $i$ -th output to the $( i \lfloor \frac { d } { \tilde { d } } \rfloor )$ -th input using an edge of weight 1.
140
+
141
+ • Generator $G$ : This is designed to produce a distribution of support size $m : =$ p∆2 log2(p∆LLφ/)2 . We first define a partition of Domain(ν) = Rd˜ into m equal-measure blocks under $\nu$ . Next, we sample $m$ samples $x _ { 1 } ^ { * } , x _ { 2 } ^ { * } , \ldots , x _ { m } ^ { * }$ from the image distribution. which z lies, and define the generator as G(z) = x∗ind(z) to be the index of the block in the partition in . Since the set of samples $x _ { i } ^ { * } : i \in [ m ]$ is random, this specifies a distribution over generators. We prove that with high probability, one of these generators satisfies the statement of Theorem 3. Moreover, we show that such a generator can be easily implemented using a ReLU network of complexity $O ( m d )$ in Theorem 5.
142
+
143
+ The basic intuition of the proof is as follows. We will call a set $T$ of samples from $\nu$ non-colliding if no two lie in the same block. Let $\mathcal { T } _ { n c }$ be the distribution over non-colliding sets $\{ z _ { 1 } , z _ { 2 } , \dots , z _ { m } \}$ , s.t. each $z _ { i }$ is sampled independently from the conditional distribution of $\nu$ inside the i-th block.
144
+
145
+ First, we notice that under the distribution for $G$ we defined, it holds that
146
+
147
+ $$
148
+ \underset { x \sim \mu } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) = \underset { x \sim \tilde { \mu } , z \sim \nu } { \mathbb { E } } \phi ( D ( x \circledast z , z ) ) = \underset { G } { \mathbb { E } } \underset { z \sim \nu } { \mathbb { E } } \phi ( G ( z ) , z )
149
+ $$
150
+
151
+ In other words, the “expected” encoder correctly matches the expectation of $\phi ( D ( x , E ( x ) ) )$ , so that the discriminator is fooled. We want to show that $\mathbb { E } _ { G } \mathbb { E } _ { z \sim \nu } \phi ( G ( z ) , z )$ concentrates enough around this expectation, as a function of the randomness in $G$ , so that we can say with high probability over the choice of $G$ , $| \mathbb { E } _ { x \sim \mu } \phi ( D ( x , E ( x ) ) ) - \mathbb { E } _ { z \sim \nu } \phi ( G ( z ) , z ) |$ is small. We handle the concentration argument in two steps:
152
+
153
+ First, we note that we can calculate the expectation of $\phi \bigl ( D ( G ( z ) , z ) \bigr )$ when $z \sim \nu$ by calculating the empirical expectation over $m$ -sized non-colliding sets $T$ sampled according to $\mathcal { T } _ { n c }$ . Namely, as we show in Lemma D.1:
154
+
155
+ $$
156
+ \begin{array} { r } { \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = \underset { T \sim { \mathcal { T } _ { n c } } z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) } \end{array}
157
+ $$
158
+
159
+ Thus, we have reduced our task to arguing about the concentration of $\mathbb { E } _ { T \sim \mathcal { T } _ { n c } } \mathbb { E } _ { z \sim T } \phi ( D ( G ( z ) , z ) )$ (viewed as a random variable in $G$ ). Towards this, we consider the random variable $\mathbb { E } _ { z \sim T } \phi ( D ( G ( z ) , z ) )$ as a function of the randomness in $G$ and $T$ both. Since $T$ is a non-colliding set of samples, we can write
160
+
161
+ $$
162
+ \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = f ( x _ { i } ^ { * } , z _ { i } , i \in [ m ] )
163
+ $$
164
+
165
+ for some function $f$ , where the random variables $\boldsymbol { x } _ { i } ^ { * }$ , $z _ { i }$ are all mutually independent – thus use McDiarmid’s inequality to argue about the concentration of $f$ in terms of both $T$ and $G$ .
166
+
167
+ From this, we can use Markov’s inequality to argue that all but an exponentially small (in $p$ ) fraction of encoders $G$ satisfy that: for all but an exponentially small (in $p _ { \ell }$ ) fraction of non-colliding sets $T$ , $| \mathbb { E } _ { z \sim T } \phi ( D ( G ( z ) , z ) ) - \mathbb { E } _ { G } \mathbb { E } _ { T \sim T _ { n c } } \mathbb { E } _ { z \sim T } \phi ( D ( G ( z ) , z ) ) |$ is small. Note that this has to hold for all discriminators $D - { \bf s } 0$ we need to additionally build an epsilon-net, and union bound over all discriminators, similarly as in Arora et al. (2017). Then, it’s easy to extrapolate that for such $G$ ,
168
+
169
+ $$
170
+ \big | \operatorname* { \mathbb { E } } _ { T \sim \mathcal { T } _ { n c } } \operatorname* { \mathbb { E } } _ { z \sim T } \phi ( D ( G ( z ) , z ) ) - \operatorname* { \mathbb { E } } _ { G } \operatorname* { \mathbb { E } } _ { T \sim \mathcal { T } _ { n c } } \operatorname* { \mathbb { E } } _ { z \sim T } \phi ( D ( G ( z ) , z ) ) |
171
+ $$
172
+
173
+ is small, as we want. The details are in Lemma D.2 in the Appendix.
174
+
175
+ # 4 CONCLUSIONS
176
+
177
+ The paper reveals gaps in current thinking about GANs, and hopes to stimulate further theoretical and empirical study. GANs research has always struggled with the issue of mode collapse, and recent theoretical analysis of Arora et al. (2017) shows that the GANs training objective is not capable of preventing mode collapse. This exhibits the existence of bad solutions in the optimization landscape. This in itself is not definitive, since existence of bad solutions is also known for the more traditional classification tasks Zhang et al. (2017), where heldout sets can nevertheless prove that a good solution has been reached. The difference in case of GANs is lack of an obvious way to establish that training succeeded.
178
+
179
+ Our new Birthday Paradox test gives a new benchmark for testing the support size (i.e., diversity of images) in a distribution. Though it may appear weak, experiments using this test suggest that current GANs approaches, specifically, the ones that produce images of higher visual quality, do suffer mode collapse. Our rough experiments also suggest —again in line with the previous theoretical analysis—that the size of the distribution’s support scales near-linearly with discriminator capacity.
180
+
181
+ Researchers have raised the possibility that the best use of GANs is not distribution learning but feature learning. Encoder-decoder GAN architectures seem promising since they try to force the generator to use “meaningful” encodings of the image. While such architectures do exhibit slightly better diversity in our experiments, our theoretical result suggest that the the encoder-decoder objective is also unable to avoid mode collapse, furthermore, also fails to guarantee meaningful codes.
182
+
183
+ # REFERENCES
184
+
185
+ Sanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and equilibrium in generative adversarial nets (gans). arXiv preprint arXiv:1703.00573, 2017.
186
+
187
+ Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. In ¨ International Conference on Learning Features (ICLR), 2017.
188
+
189
+ Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially learned inference. In International Conference on Learning Features (ICLR), 2017.
190
+
191
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
192
+
193
+ Xun Huang, Yixuan Li, Omid Poursaeed, John Hopcroft, and Serge Belongie. Stacked generative adversarial networks. arXiv preprint arXiv:1612.04357, 2016.
194
+
195
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In International Conference on Learning Representations (ICLR), 2014.
196
+
197
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
198
+
199
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015.
200
+
201
+ Ben Poole, Alexander A Alemi, Jascha Sohl-Dickstein, and Anelia Angelova. Improved generator objectives for gans. arXiv preprint arXiv:1612.02780, 2016.
202
+
203
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
204
+
205
+ Gregory Valiant and Paul Valiant. Estimating the unseen: an n/log (n)-sample estimator for entropy and support size, shown optimal via new clts. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pp. 685–694. ACM, 2011.
206
+
207
+ Michael J Wiener. Bounds on birthday attack times. 2005.
208
+
209
+ Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. arXiv preprint arXiv:1611.04273, 2016.
210
+
211
+ Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
212
+
213
+ C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017.
214
+
215
+ # A BIRTHDAY PARADOX CALCULATION
216
+
217
+ In this section, we prove the statemts of Theorems 1 and 2.
218
+
219
+ Proof of Theorem 1.
220
+
221
+ $$
222
+ \begin{array} { l } { \displaystyle \geq 1 - 1 \times ( 1 - \frac { \rho } { N } ) \times ( 1 - \frac { 2 \rho } { N } ) \times \cdots \times ( 1 - \frac { ( M - 1 ) \rho } { N } ) } \\ { \displaystyle \geq 1 - \exp ( - \frac { ( M ^ { 2 } - M ) \rho } { 2 N } ) } \end{array}
223
+ $$
224
+
225
+ We use the fact that the worst case is when the $\rho$ probability mass is uniformly distributed on $S$
226
+
227
+ Proof of Theorem 2. Suppose $X _ { 1 } , X _ { 2 } , \ldots$ are i.i.d. samples from the discrete distribution $P$ . We define $T \ = \ \operatorname* { i n f } \{ t \ \geq \ 2 , X _ { t } \ \in \ \{ X _ { 1 } , X _ { 2 } , \ldots , X _ { t - 1 } \} \}$ to be the collision time and also we use $\beta ~ = ~ { \frac { 1 } { \operatorname* { P r } [ T = 2 ] } } ~ = ~ { \frac { 1 } { \sum _ { X \in \Omega } P ( X ) ^ { 2 } } }$ = P 1P (X)2 as a surrogate for the uniformity of P . According Theorem 3 in Wiener (2005), √ $P r [ T \geq M ]$ can be upper-bounded using $\beta$ . Specifically, with $\beta > 1 0 0 0$ and $M \leq 2 { \sqrt { \beta \ln \beta } }$ , which is usually true when $P$ is the distribution of a generative model of images,
228
+
229
+ $$
230
+ \mathrm { P r } [ T \ge M ] \ge \exp ( - \frac { M ^ { 2 } } { 2 \beta } - \frac { M ^ { 3 } } { 6 \beta ^ { 2 } } )
231
+ $$
232
+
233
+ To estimate $\beta$ , we notice that
234
+
235
+ $\operatorname* { P r } [ T \geq M ] = 1 - \operatorname* { P r } [ T \leq M ] = 1 - \operatorname* { P r }$ [there is at least a collision among $M ] = 1 - \gamma \geq \exp ( - \frac { M ^ { 2 } } { 2 \beta } - \frac { M ^ { 3 } } { 6 \beta ^ { 2 } } )$
236
+
237
+ which immediately implies
238
+
239
+ $$
240
+ \beta \leq { \frac { 2 M } { - 3 + { \sqrt { 9 + { \frac { 2 4 } { M } } \ln { \frac { 1 } { 1 - \gamma } } } } } } = \beta ^ { * }
241
+ $$
242
+
243
+ This gives us a upper-bound of the uniformity of distribution $P$ , which we can utilize. Let $S \subseteq \Omega$ be the smallest set with probability mass $\geq \rho$ and suppose it size is $N$ . To estimate the largest possible $N$ such that the previous inequality holds, we let
244
+
245
+ $$
246
+ \frac { 1 } { ( \frac { \rho } { N } ) ^ { 2 } N + ( 1 - \rho ) ^ { 2 } } \leq \beta ^ { * }
247
+ $$
248
+
249
+ from which we obtain
250
+
251
+ $$
252
+ N \leq { \frac { 2 M \rho ^ { 2 } } { ( - 3 + { \sqrt { 9 + { \frac { 2 4 } { M } } \ln { \frac { 1 } { 1 - \gamma } } } } ) - 2 M ( 1 - \rho ) ^ { 2 } } }
253
+ $$
254
+
255
+ # B EXPLORATORY RESULTS ON BEDROOM DATASET
256
+
257
+ We test DCGANs trained on the trained on $6 4 \times 6 4$ center cropped Bedroom dataset(LSUN) using Euclidean distance to extract collision candidates since it is impossible to train a CNN classifier on such single-category (bedroom) dataset. We notice that the most similar pairs are likely to be the corrupted samples with the same noise pattern (top-5 collision candidates all contain such patterns). When ignoring the noisy pairs, the most similar ”clean” pairs are not even similar according to human eyes. This implies that the distribution puts significant probability on noise patterns, which can be seen as a form of under-fitting (also reported in the DCGAN paper). We manually counted the number of samples with a fixed noise pattern from a batch of 900 i.i.d samples. We find 43 such corrupted samples among the 900 generated images, which implies $4 3 / 9 0 0 \approx 5 \%$ probability.
258
+
259
+ ![](images/50a90eccb8141eacb69c250c7386f8053c31de83d4cf01a83bf3206ffb998d07.jpg)
260
+
261
+ Figure 4: Randomly generated samples from a DCGAN trained on Bedroom dataset. Note that there are corrupted images with a fixed noise pattern (emphasized in red boxes).
262
+
263
+ C BIRTHDAY PARADOX TEST FOR VAES
264
+
265
+ ![](images/fe13e23bc7a3a4909cc2dca43aa79f84daac4976c555edd9668302f6d35ac943.jpg)
266
+ Figure 5: Collision candidates found in Variation Auto-Encoder samples. The duplicated samples are frequently blurry ones because the crucial features (eyes, hair, mouth) of VAE samples are not as distinctive as those of GANs’.
267
+
268
+ Given these findings, it is natural to wonder about the diversity of distributions learned using earlier methods such as Variational Auto-Encoders Kingma & Welling (2014) (VAEs). Instead of using feedback from the discriminator, these methods train the generator net using feedback from an approximate perplexity calculation. Thus the analysis of Arora et al. (2017) does not apply as is to such methods and it is conceivable they exhibit higher diversity. However, we find the birthday paradox test difficult to run since samples from a VAE trained on CelebA are not realistic or sharp enough for a human to definitively conclude whether or not two images are almost the same. Fig 5 shows examples of collision candidates found in batches of 400 samples; clearly some indicative parts (hair, eyes, mouth, etc.) are quite blurry in VAE samples.
269
+
270
+ # D BIGAN’S DON’T EVADE THE CURSE OF LOW DIVERSITY
271
+
272
+ We recall the basic notation from the main part: the image distribution will be denoted as $\mu$ , and the code/seed distribution as $\nu$ , which we assume is a spherical Gaussian. For concreteness, we assumed the domain of $\tilde { \mu }$ is $\mathbb { R } ^ { d }$ and the domain of $\nu$ is $\mathbb { R } ^ { \bar { d } }$ with $\tilde { d } \leq d$ . (As we said, we are thinking of $\widetilde d \ll d$ .)
273
+
274
+ We also introduced the quantity m := p∆2 log2(p∆LLφ/)2 .
275
+
276
+ Before proving Theorem 3, let’s note that the claim can easily be made into a finite-sample version. Namely:
277
+
278
+ Corollary D.1 (Main, finite sample version). There exists a generator $G$ of support $m$ , s.t. if $\hat { \mu }$ is the uniform distribution over a training set $S$ of size at least $m$ , and $\hat { \nu }$ is the uniform distribution over a sample $T$ from $\nu$ of size at least $m$ , for all discriminators $D$ that are $L$ -Lipschitz and have less than $p$ parameters, with probability $1 - \exp ( - \Omega ( p ) )$ over the choice of training set $S , T$ we have:
279
+
280
+ $$
281
+ \begin{array} { r } { | \underset { x \sim \hat { \mu } } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) - \underset { z \sim \hat { \nu } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \epsilon } \end{array}
282
+ $$
283
+
284
+ Proof. As is noted in Theorem B.2 in Arora et al. (2017), we can build a LLφ - net for the discriminators with a size bounded by $e ^ { p \log ( L L _ { \phi } p / \epsilon ) }$ . By Chernoff and union bounding over the points in the $\frac { \epsilon } { L L _ { \phi } }$ -net, with probability at least $1 - \exp ( - \Omega ( p ) )$ over the choice of a training set $S$ , we have
285
+
286
+ $$
287
+ | \underset { x \sim \mu } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) - \underset { x \sim \hat { \mu } } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) | \leq \frac { \epsilon } { 2 }
288
+ $$
289
+
290
+ for all discriminators $D$ with capacity at most $p$ . Similarly, with probability at least $1 - \exp ( - \Omega ( p ) )$ over the choice of a noise set $T$ ,
291
+
292
+ $$
293
+ | \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { z \sim \hat { \nu } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \frac { \epsilon } { 2 }
294
+ $$
295
+
296
+ Union bounding over these two events, we get the statement of the Corollary.
297
+
298
+ Spelling out the distribution over generators more explicitly, we will in fact show:
299
+
300
+ Theorem 4 (Main, more detailed). Let $G$ follow the distribution over generators defined in Section 3. With probability $\begin{array} { r } { 1 - \exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) , } \end{array}$ ) over the choice of $G$ , for all discriminators $D$ that are $L$ -Lipschitz and have capacity bounded by $p$ :
301
+
302
+ $$
303
+ \begin{array} { r } { | \underset { x \sim \mu } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) - \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \epsilon } \end{array}
304
+ $$
305
+
306
+ # D.1 PROOF OF THE MAIN CLAIM
307
+
308
+ Let us recall we call a set $T$ of samples from $\nu$ non-colliding if no two lie in the same block and we denoted $\mathcal { T } _ { n c }$ to be the distribution over non-colliding sets $\{ z _ { 1 } , z _ { 2 } , \dots , z _ { m } \}$ , s.t. each $z _ { i }$ is sampled independently from the conditional distribution of $\nu$ inside the i-th block of the partition.
309
+
310
+ First, notice the following Lemma:
311
+
312
+ Lemma D.1 (Reducing to expectations over non-colliding sets). Let $G$ be a fixed generator, and $D$ a fixed discriminator. Then,
313
+
314
+ $$
315
+ \begin{array} { r } { \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = \underset { T \sim { \mathcal { T } _ { n c } } z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) } \end{array}
316
+ $$
317
+
318
+ Proof. By definition,
319
+
320
+ $$
321
+ \underset { T \sim \mathcal { T } _ { n c } } { \mathbb { E } } \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \underset { z _ { i } \sim ( \mathcal { T } _ { n c } ) _ { i } } { \mathbb { E } } \phi ( D ( G ( z _ { i } ) , z _ { i } ) )
322
+ $$
323
+
324
+ where $( \mathcal { T } _ { n c } ) _ { i }$ is the conditional distribution of $\nu$ in the $i$ -th block of the partition. However, since the blocks form an equipartitioning, we have
325
+
326
+ $$
327
+ \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \underset { z _ { i } \sim ( \mathcal T _ { n c } ) _ { i } } { \mathbb { E } } \phi ( D ( G ( z _ { i } ) , z _ { i } ) ) = \sum _ { i = 1 } ^ { m } \underset { z \sim \nu } { \operatorname* { P r } } \left( z \mathrm { b e l o n g s ~ t o ~ c e l l } ~ i \right) \underset { z _ { i } \sim ( \mathcal T _ { n c } ) _ { i } } { \mathbb { E } } \phi ( D ( G ( z _ { i } ) , z _ { i } ) )
328
+ $$
329
+
330
+ Lemma D.2 (Concentration of good generators). With probability $\begin{array} { r } { 1 - \exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) ) } \end{array}$ over the choice of $G$ ,
331
+
332
+ $$
333
+ | \underset { T \sim T _ { n c } } { \mathbb { E } } \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { G T \sim T _ { n c } } { \mathbb { E } } \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \epsilon
334
+ $$
335
+
336
+ for all discriminators $D$ of capacity at most $p$ .
337
+
338
+ Proof. Consider $\mathbb { E } _ { z \sim T } \phi ( D ( G ( z ) , z ) )$ as a random variable in $T \sim \tau _ { n c }$ and $G$ for a fixed $D$ . We can write
339
+
340
+ $$
341
+ \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = f ( x _ { i } ^ { * } , z _ { i } , i \in [ m ] )
342
+ $$
343
+
344
+ where the random variables $x _ { i } ^ { * } , z _ { i }$ are all mutually independent. Note that the arguments that $f$ is a function of are all independent variables, so we can apply McDiarmid’s inequality. Towards that, let’s denote by $z _ { - i }$ the vector of all inputs to $f$ , except for $z _ { i }$ . Notice that
345
+
346
+ $$
347
+ | f ( z _ { - i } , z _ { i } ) - f ( z _ { - i } , \tilde { z } _ { i } ) | \leq \frac { 1 } { m } , \forall i \in [ m ]
348
+ $$
349
+
350
+ (as changing $z _ { i }$ to $\tilde { z } _ { i }$ only affect one out of the $m$ terms in $E _ { z \sim T } \phi ( D ( G ( z ) , z ) ) )$ . Analogously we have
351
+
352
+ $$
353
+ | f ( x _ { - i } ^ { * } , x _ { i } ^ { * } ) - f ( x _ { - i } ^ { * } , \tilde { x } _ { i } ^ { * } ) | \leq \frac { 1 } { m } , \forall i \in [ m ]
354
+ $$
355
+
356
+ Denoting $R _ { D , T , G } = f ( x _ { i } ^ { * } , z _ { i } , i \in [ m ] ) - \mathbb { E } _ { T , G } [ f ( x _ { i } ^ { * } , z _ { i } , i \in [ m ] ) ]$ , by McDiarmid we get
357
+
358
+ $$
359
+ \operatorname* { P r } _ { T , G } ( | R _ { D , T , G } | \geq \epsilon ) \leq \exp ( - \Omega ( m \epsilon ^ { 2 } ) )
360
+ $$
361
+
362
+ Building a $\frac { \epsilon } { L L _ { \phi } }$ -net for the discriminators and union bounding over the points in the net, we get that $\mathrm { P r } _ { T , G } ( \exists D , | \tilde { R _ { D , T , G } } | \geq \epsilon / 2 ) \leq \exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) )$ . On the other hand, we also have
363
+
364
+ $$
365
+ \operatorname* { P r } _ { T , G } ( \exists D , | R _ { D , T , G } | \ge \epsilon / 2 ) = \underset { G } { \mathbb { E } } [ \operatorname* { P r } ( \exists D , | R _ { D , T , G } | \ge \epsilon ) ]
366
+ $$
367
+
368
+ so by Markov’s inequality, with probability $1 - \exp ( - \Omega ( p \log ( \Delta / \epsilon ) )$ over the choice of $G$ , ,
369
+
370
+ $$
371
+ \operatorname* { P r } _ { T } ( \exists D , | R _ { D , T , G } | \ge \epsilon / 2 ) ] \le \exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) )
372
+ $$
373
+
374
+ Let us denote by ${ \tilde { T } } ( G )$ the sets $T$ , s.t. $\forall D , | R _ { D , T , G } | ~ \le ~ \epsilon / 2$ . Then, with probability $1 \ : -$ $\exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) )$ ) over the choice of $G$ , we have that for all $D$ of capacity at most $p$ ,
375
+
376
+ $$
377
+ \begin{array} { r l } & { \underset { T \leq r \mathcal { T } } { \mathbb { E } } \ \underset { \mathcal { F } ^ { \prime } \times T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { G , T \leq r \mathcal { T } } { \mathbb { E } } \ \underset { \mathcal { E } \times T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | } \\ & { \leq \displaystyle \int _ { T \in \bar { T } ( G _ { x } ) } \ \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { G , T \leq r \mathcal { T } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | d T _ { n c } ( T ) } \\ & { + \displaystyle \int _ { T \not \in \bar { T } ( G _ { x } ) } \ \underset { z \sim T } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { G , T \leq r \mathcal { T } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | d T _ { n c } ( T ) } \\ & { \leq \epsilon / 2 + \exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) ) } \\ & { \leq \epsilon / 2 + O ( ( \epsilon / \Delta ) ^ { p } ) } \\ & { \leq \epsilon } \end{array}
378
+ $$
379
+
380
+ which is what we want.
381
+
382
+ With these in mind, we can prove the main theorem:
383
+
384
+ Proof of Theorem 3. From Lemma D.1 and Lemma D.2 we get that with probability 1 − $\exp ( - \Omega ( p \log ( \Delta / \epsilon ) ) )$ ) over the choice of $G$ ,
385
+
386
+ $$
387
+ | \underset { z \sim \nu } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) - \underset { G , T \sim \mathcal { T } _ { G } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) | \leq \epsilon
388
+ $$
389
+
390
+ for all discriminators $D$ of capacity at most $p$ . On the other hand, it’s easy to see that
391
+
392
+ $$
393
+ \underset { G , T \sim \mathcal { T } _ { G } } { \mathbb { E } } \phi ( D ( G ( z ) , z ) ) = \underset { x \sim \tilde { \mu } , z \sim \nu } { \mathbb { E } } \phi ( D ( x \circledast z , z ) )
394
+ $$
395
+
396
+ Furthermore,
397
+
398
+ $$
399
+ \underset { x \sim \mu } { \mathbb { E } } \phi ( D ( x , E ( x ) ) ) = \underset { x \sim \tilde { \mu } , z \sim \nu } { \mathbb { E } } \phi ( D ( x \circledast z , z ) )
400
+ $$
401
+
402
+ by the definition of $E ( x )$ , which proves the statement of the theorem.
403
+
404
+ # D.2 REPRESENTABILITY RESULTS
405
+
406
+ In this section, we show that a generator $G$ of the type we described in the previous section can be implemented easily using a ReLU network. The encoder can be parametrized by the set $x _ { 1 } ^ { * }$ ${ } _ { 1 } ^ { * } , x _ { 2 } ^ { * } , \ldots , x _ { m } ^ { * }$ of “memorized” training samples. The high-level overview of the network is rather obvious: we partition $\mathbb { R } ^ { \tilde { d } }$ into equal-measure blocks; subsequently, for a noise sample $z$ , we determine which block it belongs to, and output the corresponding sample $\boldsymbol { x } _ { i } ^ { * }$ , which is memorized in the weights of the network.
407
+
408
+ Theorem 5. Let $G$ be the generator determined by the samples $x _ { 1 } ^ { * }$ , $x _ { 2 } ^ { * } , \ldots , x _ { m } ^ { * } \in { \mathbb { R } } ^ { d }$ , i.e. $G ( z ) =$ $x _ { i n d ( z ) } ^ { * } \circledast z$ . For any , there exists a ReLU network with $O ( m d )$ non-zero weights, which implements a function $\tilde { G }$ , s.t. $\Vert \tilde { G } ( \nu ) - G ( \nu ) \Vert _ { T V } \leq \delta$ , where $\Vert \cdot \Vert _ { T V }$ denotes total variation distance.6
409
+
410
+ Proof. The construction of the network is pictorially depicted on Figure D.2. We expand on each of the individual parts of the network.
411
+
412
+ First, we show how to implement the partitioning into sectors. The easiest way to do this is to use the fact that the coordinates of a spherical Gaussian are independent, and simply partition each dimension separately into equimeasure blocks, depending on the value of $| z _ { i } |$ : the absolute value of the $i$ -th coordinate. Concretely, without loss of generality, let’s assume $m \stackrel { \cdot } { = } k ^ { \tilde { d } }$ , for some $k \in \mathbb N$ . Let us denote by $\tau _ { i } \in \mathbb { R } : i \in \dot { [ k ] }$ , $\tau _ { 0 } = 0$ the real-numbers, s.t. $\begin{array} { r } { \operatorname* { P r } _ { z _ { i } \sim \nu _ { i } } [ | z _ { i } | \in ( \tau _ { i - 1 } , \tau _ { i } ) ] = \frac { 1 } { k } } \end{array}$ . . We will associate to each $d$ -tuple $( i _ { 1 } , i _ { 2 } , \dots , i _ { d } ) \in [ k ] ^ { d }$ the cell $\{ z \in \mathbb { R } ^ { \tilde { d } } : | z _ { j } | \in ( \tau _ { i _ { j } - 1 } , \tau _ { i _ { j } } ) , \forall j \in [ \tilde { d } ] \}$ . These blocks clearly equipartition $\mathbb { R } ^ { \tilde { d } }$ with respect to the Gaussian measure.
413
+
414
+ Inferring the $\tilde { d }$ -tuple after calculating the absolute values $| z _ { j } |$ (which is trivially representable as a ReLU network as $\operatorname* { m a x } ( 0 , z _ { j } ) + \operatorname* { m a x } ( 0 , - z _ { j } ) )$ can be done using the “selector” circuit introduced in ‘Arora et al. (2017). Namely, by Lemma 3 there, there exists a ReLU network with $O ( k )$ nonzero weights that takes $| z _ { j } |$ as input and outputs $k$ numbers $( b _ { j , 1 } , b _ { j , 2 } , \dots , b _ { j , k } )$ , s.t. $b _ { j , i _ { j } } = 1$ and $b _ { j , l } = 0 , j \neq i _ { j }$ with probability $1 - \delta$ over the randomness of $z _ { j } , j \in [ \tilde { d } ]$ .
415
+
416
+ Since we care about $G ( \nu )$ and $\tilde { G } ( \nu )$ being close in total variation distance only, we can focus on the case where all $z _ { j }$ are such that $b _ { j , i _ { j } } = 1$ and $b _ { j , l } = 0 , j \neq i _ { j }$ for some indices $i _ { j }$ .
417
+
418
+ We wish to now “turn on” the memorized weights for the corresponding block in the partition. To do this, we first pass the calculated $\tilde { d }$ -tuple through a network which interprets it as a number in $k$ -ary and calculates it’s equivalent decimal representation. This is easily implementable as a ReLU network with $O ( \tilde { d } k )$ weights calculating $\begin{array} { r } { L = \sum _ { j = 1 } ^ { \tilde { d } } k ^ { j } \sum _ { l = 1 } ^ { k } b _ { j , l } i _ { j } } \end{array}$ . Then, we use use a simple circuit with $O ( m )$ non-zero weights to output $m$ numbers $\left( B _ { 1 } , B _ { 2 } , \ldots , B _ { m } \right)$ , s.t. $B _ { L } \ = \ 1$ and $B _ { i } = 0 , i \neq L$ (implemented in the obvious way). The subnetwork of $B _ { i }$ will be responsiple for the $i$ -th memorized sample.
419
+
420
+ Namely, we attach to each coordinate $B _ { i }$ a curcuit with fan-out of degree $d$ , s.t. the weight of edge $j \in [ d ]$ is $x _ { i , j } ^ { * }$ . Let’s denote these outputs as $F _ { i , j } , i \in [ m ] , j \in [ d ]$ and let ${ \tilde { F } } _ { i } : i \in [ d ]$ be defined as $\begin{array} { r } { \tilde { F } _ { i } = \sum _ { j = 1 } ^ { m } F _ { i , j } } \end{array}$ . It’s easy to see since $B _ { i } = 0 , i \neq L$ that $\tilde { F } _ { i } = x _ { L , i } ^ { * }$ .
421
+
422
+ Finally, the operation $\circledast$ can be trivially implemented using additional $d$ weights: we simply connect each output $i$ either to $z _ { \frac { i } { \lfloor \frac { d } { d } \rfloor } }$ if $i \equiv 0 ( \mathrm { \ m o d } \lfloor \frac { d } { \tilde { d } } \rfloor )$ or to $\tilde { F } _ { i }$ otherwise.
423
+
424
+ Adding up the sizes of the individual components, we see the total number of non-zero weights is $O ( m d )$ , as we wanted.
425
+
426
+ ![](images/8d4bc8efa8ef04438e1abc181556be8beb9ee6ab17819dd3dd628f1eec7915e0.jpg)
427
+ Figure 6: A ReLU implementation of a memorizing generator
parse/train/BJehNfW0-/BJehNfW0-_content_list.json ADDED
@@ -0,0 +1,2088 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DO GANS LEARN THE DISTRIBUTION? SOME THEORY AND EMPIRICS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 821,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Sanjeev Arora ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 184,
20
+ 171,
21
+ 285,
22
+ 184
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Department of Computer Science Princeton University Princeton, NJ 08544, USA arora@cs.princeton.edu ",
29
+ "bbox": [
30
+ 184,
31
+ 185,
32
+ 405,
33
+ 239
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Andrej Risteski \nApplied Mathematics Department and IDSS \nMassachusetts Institute of Technology \nCambridge, MA 02139, USA \nristeski@mit.edu ",
40
+ "bbox": [
41
+ 522,
42
+ 170,
43
+ 813,
44
+ 239
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Yi Zhang ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 184,
54
+ 262,
55
+ 251,
56
+ 275
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Department of Computer Science Princeton University Princeton, NJ 08544, USA y.zhang@cs.princeton.edu ",
63
+ "bbox": [
64
+ 184,
65
+ 276,
66
+ 421,
67
+ 330
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "ABSTRACT ",
74
+ "text_level": 1,
75
+ "bbox": [
76
+ 454,
77
+ 367,
78
+ 544,
79
+ 382
80
+ ],
81
+ "page_idx": 0
82
+ },
83
+ {
84
+ "type": "text",
85
+ "text": "Do GANS (Generative Adversarial Nets) actually learn the target distribution? The foundational paper of Goodfellow et al. (2014) suggested they do, if they were given “sufficiently large” deep nets, sample size, and computation time. A recent theoretical analysis in Arora et al. (2017) raised doubts whether the same holds when discriminator has bounded size. It showed that the training objective can approach its optimum value even if the generated distribution has very low support —in other words, the training objective is unable to prevent mode collapse. The current paper makes two contributions. (1) It proposes a novel test for estimating support size using the birthday paradox of discrete probability. Using this evidence is presented that well-known GANs approaches do learn distributions of fairly low support. (2) It theoretically studies encoder-decoder GANs architectures (e.g., BiGAN/ALI), which were proposed to learn more meaningful features via GANs and (consequently) to also solve the mode-collapse issue. Our result shows that such encoder-decoder training objectives also cannot guarantee learning of the full distribution because they cannot prevent serious mode collapse. More seriously, they cannot prevent learning meaningless codes for data, contrary to usual intuition. ",
86
+ "bbox": [
87
+ 233,
88
+ 400,
89
+ 764,
90
+ 635
91
+ ],
92
+ "page_idx": 0
93
+ },
94
+ {
95
+ "type": "text",
96
+ "text": "1 INTRODUCTION ",
97
+ "text_level": 1,
98
+ "bbox": [
99
+ 176,
100
+ 662,
101
+ 336,
102
+ 679
103
+ ],
104
+ "page_idx": 0
105
+ },
106
+ {
107
+ "type": "text",
108
+ "text": "From the earliest papers on Generative Adversarial Networks the question has been raised whether or not they actually come close to learning the distribution they are trained with (henceforth refered to as the target distribution)? These methods train a generator deep net that converts a random seed into a realistic-looking image. Concurrently they train a discriminator deep net to discriminate between its output and real images, which in turn is used to produce gradient feedback to improve the generator net. In practice the generator deep net starts producing realistic outputs by the end, and the objective approaches its optimal value. But does this mean the deep net has learnt the target distribution of real images? Standard analysis introduced in Goodfellow et al. (2014) shows that given “sufficiently large” generator and discriminator, sample size, and computation time the training does succeed in learning the underlying distribution arbitrarily closely (measured in JensenShannon divergence). But this does not settle the question of what happens with realistic sample and net sizes. ",
109
+ "bbox": [
110
+ 174,
111
+ 694,
112
+ 825,
113
+ 861
114
+ ],
115
+ "page_idx": 0
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "Note that GANs differ from many previous methods for learning distributions in that they do not provide an estimate of a measure of distributional fit —e.g., perplexity score. Therefore researchers have probed their performance using surrogate qualitative tests, which were usually designed to rule out the most obvious failure mode of the training, namely, that the GAN has simply memorized the training data. One test checks the similarity of each generated image to the nearest images in the training set. Another takes two random seeds $s _ { 1 } , s _ { 2 }$ that produced realistic images and checks the images produced using seeds lying on the line joining $s _ { 1 } , s _ { 2 }$ . If such “interpolating” images are reasonable and original as well, then this may be taken as evidence that the generated distribution has many novel images. Yet other tests check for existence of semantically meaningful directions in the latent space, meaning that varying the seed along these directions leads to predictable changes e.g., (in case of images of human faces) changes in facial hair, or pose. A recent test proposed by Wu et al. (2016) checks the log-likelihoods of GANs using Annealed Importance Sampling, whose results indicate the mismatch between generator’s distribution and the target distribution. Poole et al. (2016) proposed a method to trade-off between sample quality and sample diversity but they don’t provide a clear definition or a quantitative metric of sample diversity. ",
120
+ "bbox": [
121
+ 174,
122
+ 867,
123
+ 823,
124
+ 924
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "",
131
+ "bbox": [
132
+ 174,
133
+ 103,
134
+ 825,
135
+ 256
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "Recently a new theoretical analysis of GANs with finite sample sizes and finite discriminator size Arora et al. (2017) revealed the possibility that training objective can sometimes approach optimality even if the generator is far from having actually learnt the distribution. Specifically, if the discriminator has size $p$ , then the training objective could be $\\epsilon$ close to optimal even though the output distribution is supported on only $O ( \\bar { p } \\log p / \\epsilon ^ { 2 } )$ images. By contrast one imagines that the target distribution usually must have very large support. For example, the set of all possible images of human faces (a frequent setting in GANs work) must involve all combinations of hair color/style, facial features, complexion, expression, pose, lighting, race, etc., and thus the possible set of images of faces approaches infinity. The above paper raises the possibility that the discriminator may be unable to meaningfully distinguish such a diverse target distribution from a trained distribution with fairly small support. Furthermore, the paper notes that this failure mode is different from the one usually feared, namely the generator memorizing training samples. The analysis of Arora et al. (2017) raises the possibility that the trained distribution has small support, and yet all its samples could be completely disjoint from the training samples. ",
142
+ "bbox": [
143
+ 174,
144
+ 263,
145
+ 825,
146
+ 457
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "However, the above analysis was only a theoretical one, exhibiting a particular near-equilibrium solution that can happen from certain hyper-parameter combinations. It left open the possibility that real-life GANs training avoids such solutions thanks to some not-as-yet-understood property of SGD, or hyper-parameter choices. Thus further experimental investigation seems necessary. And yet it seems difficult at first sight to do such an empirical evaluation of the support size of a distribution: it is not humanly possible to go through hundreds of thousands of images, whereas automated tests of image similarity can be thrown off by small changes in lighting, pose etc. ",
153
+ "bbox": [
154
+ 174,
155
+ 464,
156
+ 823,
157
+ 563
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "The current paper makes two important contributions. On the empirical side it introduces a new test for the support size of the trained distribution, and uses it to find that unfortunately these mode collapse problems do arise in many well-regarded GAN training methods. On the theoretical side we prove the limitations of encoder-decoder frameworks like BiGAN (Donahue et al., 2017) and Adversarially Learned Inference or ALI (Dumoulin et al., 2017), which, inspired by autoencoder models, require the setup to learn an inference mechanism as well as a generative mechanism. The result of Arora et al. (2017) applies only to standard GAN training objectives (including JS and Wasserstein), but not to encoder-decoder setups. The clear hope in defining encoder-decoder setups is that the encoding mechanism “inverts” the generator and thus forces the generator to learn meaningful featurizations of data that are useful in downstream applications. In fact it has often been proposed that this need to learn meaningful featurizations will also solve the mode collapse problem: (Dumoulin et al., 2017) provide experiments on 2-dimensional mixtures of Gaussians suggesting this phenomenon. Our analysis shows not only that encoder-decoder training objectives cannot avoid mode collapse, but that they also cannot enforce learning of meaningful codes/features. ",
164
+ "bbox": [
165
+ 174,
166
+ 569,
167
+ 825,
168
+ 763
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "1.1 BIRTHDAY PARADOX TEST FOR SUPPORT SIZE ",
175
+ "text_level": 1,
176
+ "bbox": [
177
+ 176,
178
+ 785,
179
+ 531,
180
+ 797
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "Let’s consider a simple test that estimates the support size of a discrete distribution. Suppose a√ distribution has support $N$ . The famous birthday paradox1 says that a batch of about $\\sqrt { N }$ samples would be likely to have a duplicate. Thus our proposed birthday paradox test for GANs is as follows. ",
187
+ "bbox": [
188
+ 174,
189
+ 811,
190
+ 823,
191
+ 856
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "Birthday Paradox Test ",
198
+ "text_level": 1,
199
+ "bbox": [
200
+ 418,
201
+ 109,
202
+ 580,
203
+ 125
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "(a) Sample a batch of $s$ images from the generator. \n(b) Use an automated measure of image similarity to flag the $\\sim 2 0$ most similar pairs in the batch. \n(c) Visually inspect the flagged pairs and check for duplicates. \n(d) Repeat. ",
210
+ "bbox": [
211
+ 230,
212
+ 128,
213
+ 756,
214
+ 215
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "If this test reveals that batches of size $s$ have duplicate images with good probability, then suspect that the distribution has support size about $s ^ { 2 }$ . Note that the test is not definitive, because the distribution could assign a probability $1 0 \\%$ to a single image, and be uniform on a huge number of other images. Then the test would be likely to find a duplicate even with 20 samples, though the true support size is huge. But such nonuniformity (a lot of probability being assigned to a few images) is the only failure mode of the birthday paradox test calculation, and such nonuniformity would itself be considered a failure mode of GANs training. This is captured in the following theorems: ",
221
+ "bbox": [
222
+ 173,
223
+ 234,
224
+ 826,
225
+ 333
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Theorem 1. Given a discrete probability distribution $P$ on a set $\\Omega$ , if there exists a subset $S \\subseteq \\Omega$ of size $N$ such that $\\begin{array} { r } { \\sum _ { s \\in S } P ( s ) \\bar { \\geq } \\rho , } \\end{array}$ , then the probability of encountering at least one collision among $M$ i.i.d. samples from $\\begin{array} { r } { P i s \\ge 1 - \\exp \\bigl ( - \\frac { ( M ^ { 2 } - M ) \\rho } { 2 N } \\bigr ) } \\end{array}$ ",
232
+ "bbox": [
233
+ 174,
234
+ 337,
235
+ 825,
236
+ 386
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Theorem 2. Given a discrete probability distribution $P$ on a set $\\Omega ,$ , if the probability of encountering at least one collision among $M$ i.i.d. samples from $P$ is $\\gamma ,$ , then for $\\rho = 1 - o ( 1 )$ , there exists $a$ subset $S \\subseteq \\Omega$ such that $\\begin{array} { r } { \\sum _ { s \\in S } P ( s ) \\ge \\rho w i t h s i z e \\le \\frac { 2 M \\rho ^ { 2 } } { ( - 3 + \\sqrt { 9 + \\frac { 2 4 } { M } \\ln \\frac { 1 } { 1 - \\gamma } } ) - 2 M ( 1 - \\rho ) ^ { 2 } } } \\end{array}$ , under realistic assumptions on parameters. ",
243
+ "bbox": [
244
+ 173,
245
+ 388,
246
+ 825,
247
+ 458
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "The proofs of these theorems are included in Appendix A. It is important to note that Theorem 1 and 2 do not assume that the tested distribution is uniform. In fact, Theorem 2 clarifies that if one can consistently see collisions in batches, then the distribution has a major component distribution that has limited support size but is almost indistinguishable from the full distribution via sampling a small number of samples. Thus the distribution effectively has small support size, which is what one should care about when sampling from it. Furthermore, without any further assumption, to accurately estimate the support size of an arbitrary distribution that has $n$ modes, $\\Omega ( n / \\log n )$ samples need to be seen, rendering it practically infeasible for a human examiner (Valiant & Valiant, 2011). ",
254
+ "bbox": [
255
+ 173,
256
+ 468,
257
+ 825,
258
+ 580
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "2 BIRTHDAY PARADOX TEST FOR GANS: EXPERIMENTAL DETAILS ",
265
+ "text_level": 1,
266
+ "bbox": [
267
+ 173,
268
+ 599,
269
+ 743,
270
+ 616
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "In the GAN setting, the distribution is continuous, not discrete. When support size is infinite then in a finite sample, we should not expect exact duplicate images where every pixel is identical. Thus a priori one imagines the birthday paradox test to completely not work. But surprisingly, it still works if we look for near-duplicates. Given a finite sample, we select the 20 closest pairs according to some heuristic metric, thus obtaining a candidate pool of potential near-duplicates inspect. Then we visually identify if any of them would be considered duplicates by humans. Our test were done using two datasets, CelebA (faces) (Liu et al., 2015) and CIFAR-10 (Krizhevsky, 2009) . Note that CelebA reasonably balanced, since the constructors intentionally made it unbiased (it contains ten thousand identities, each of which has twenty images). Also, we report in Appendix B results on the Bedroom dataset from the LSUN (Yu et al., 2015). ",
277
+ "bbox": [
278
+ 173,
279
+ 631,
280
+ 825,
281
+ 770
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "For faces, we find Euclidean distance in pixel space works well as a heuristic similarity measure, probably because the samples are centered and aligned. For CIFAR-10, we pre-train a discriminative CNN for the full classification problem, and use the top layer representation as an embedding. Heuristic similarity is then measured as the Euclidean distance in the embedding space. These metrics can be crude, but note that improving them can only lower our estimate of the support size, since a better similarity measure can only increase the number of duplicates found. Thus our reported estimates should be considered as upper bounds on the support size of the distribution. ",
288
+ "bbox": [
289
+ 174,
290
+ 776,
291
+ 825,
292
+ 875
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "Note: Some GANs (and also older methods such as variational autoencoders) implicitly or explicitly apply noise to the training and generated images. This seems useful if the goal is to compute a perplexity score, which involves the model being able to assign a nonzero probability to every image. ",
299
+ "bbox": [
300
+ 176,
301
+ 882,
302
+ 823,
303
+ 924
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Such noised images are usually very blurry and the birthday paradox test does not work well for them, primarily because the automated measure of similarity no longer works well. Even visually judging similarity of noised images is difficult. Thus our experiments work best with GANs that generate sharper, realistic images. ",
310
+ "bbox": [
311
+ 174,
312
+ 103,
313
+ 825,
314
+ 160
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "2.1 RESULTS ON CELEBA DATASET ",
321
+ "text_level": 1,
322
+ "bbox": [
323
+ 176,
324
+ 176,
325
+ 431,
326
+ 190
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "We test the following methods, doing the birthday paradox test with Euclidean distance in pixel space as the heuristic similarity measure For judging whether two images are the same, we set the criterion that the two faces are not exactly identical but look like doppelgangers. (Of course, in real life the only doppelgangers we know are usually twins.) ",
333
+ "bbox": [
334
+ 176,
335
+ 202,
336
+ 825,
337
+ 258
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "• DCGAN —unconditional, with JSD objective as described in Goodfellow et al. (2014) and Radford et al. (2015). \n• $\\mathrm { M I X } +$ GAN protocol introduced in Arora et al. (2017), specifically, MIX $+$ DCGAN with 3 mixture components. \n• ALI (Dumoulin et al., 2017) (or equivalently BiGANs (Donahue et al., 2017)).2 ",
344
+ "bbox": [
345
+ 215,
346
+ 271,
347
+ 825,
348
+ 353
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "For fair comparison, we set the discriminator of ALI (or BiGANs) to be roughly the same in size as that of the DCGAN model, since the results of Section 2.1.1 below suggests that the discriminator size has a strong effect on diversity of the learnt distribution. ",
355
+ "bbox": [
356
+ 176,
357
+ 364,
358
+ 823,
359
+ 407
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "We find that with probability $\\geq 5 0 \\%$ , a batch of $\\sim 8 0 0$ samples contains at least one pair of duplicates for both DCGAN and MIX $+$ DCGAN. Figure 1 displays duplicates and their nearest neighbors in training set. These results suggest that the support size of the distribution is less than $8 0 0 ^ { 2 } \\approx 6 4 0 0 0 0$ , being at the same order of the size of the training set, but this distribution is not just memorizing the training set (see the dashed boxes). ",
366
+ "bbox": [
367
+ 174,
368
+ 414,
369
+ 823,
370
+ 484
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "ALI (or BiGANs) appears to be more diverse, in that collisions appear with $5 0 \\%$ probability only with a batch size of 1200, implying a support size of a million. This is 6x the training set, but still much smaller than the diversity one would expect among human faces3. Nevertheless, these tests do support the suggestion in Dumoulin et al. (2017) and Donahue et al. (2017) that the bidirectional structure prevents some of the mode collapse observed in usual GANs. ",
377
+ "bbox": [
378
+ 174,
379
+ 491,
380
+ 825,
381
+ 560
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "2.1.1 DIVERSITY VS DISCRIMINATOR SIZE ",
388
+ "text_level": 1,
389
+ "bbox": [
390
+ 176,
391
+ 577,
392
+ 483,
393
+ 590
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "The analysis of Arora et al Arora et al. (2017) suggested that the support size could be as low as near-linear in the capacity of the discriminator; in other words, there is a near-equilibrium in which a distribution of such a small support could suffice to fool the best discriminator. So it is worth investigating whether training in real life allows generator nets to exploit this “loophole” in the training that we now know is in principle available to them. ",
400
+ "bbox": [
401
+ 174,
402
+ 601,
403
+ 825,
404
+ 670
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "While a comprehensive test is beyond the scope of this paper, we do a first test with a simplistic version of discriminator size (i.e., capacity). We build DCGANs with increasingly larger discriminators while fixing the other hyper-parameters. The discriminator used here is a 5-layer Convolutional Neural Network such that the number of output channels of each layer is $1 \\times , 2 \\times , 4 \\times , 8 \\times d i m$ where dim is chosen to be 16, 24, . . . , 120, 128. Thus the discriminator size should be proportional to $d i m ^ { 2 }$ . Figure 2 suggests that in this simple setup the diversity of the learnt distribution does indeed grow near-linearly with the discriminator size. ",
411
+ "bbox": [
412
+ 174,
413
+ 678,
414
+ 825,
415
+ 775
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "2.2 RESULTS FOR CIFAR-10 ",
422
+ "text_level": 1,
423
+ "bbox": [
424
+ 174,
425
+ 791,
426
+ 390,
427
+ 806
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "On CIFAR-10, Euclidean distance in pixel space is not informative. So we adopt a classifying CNN with 3 convolutional layers, 2 fully-connected layer and a 10-class soft-max output pretrained with a multi-class classification objective, and use its top layer features as embeddings for similarity test using Euclidean distance. Firstly, we find that the result of the test is affected by the quality of samples. If the training uses noised samples (with noise being added either explicitly or implicitly in the objective) then the generated samples are also quite noisy. Then the most similar samples in a batch tend to be blurry blobs of low quality. Indeed, when we test a DCGAN (even the best variant with 7.16 Inception Score reported in Huang et al. (2016)), the pairs returned are mostly blobs. ",
434
+ "bbox": [
435
+ 174,
436
+ 819,
437
+ 825,
438
+ 861
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "image",
444
+ "img_path": "images/8c91f1594d9e91edd4e6cc6191589853afaa61e45429ed93a20f37b50b4a9bf6.jpg",
445
+ "image_caption": [
446
+ "Figure 1: Most similar pairs found in batches of 800 generated faces samples from a DCGAN, a MIX $\\dotplus$ DCGAN (with 3 component) and an ALI. Each pair is from a different batch. Shown in dashed boxes are the nearest neighbors in training data. "
447
+ ],
448
+ "image_footnote": [],
449
+ "bbox": [
450
+ 179,
451
+ 102,
452
+ 816,
453
+ 477
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "image",
459
+ "img_path": "images/87ea0319de44ee6e301898d95a72d704c53012dc96f41513814c445137e2bf58.jpg",
460
+ "image_caption": [
461
+ "Figure 2: Diversity’s dependence on discriminator size. The diversity is measured as the square of the batch size needed to encounter collision w.p. $\\geq 5 0 \\%$ v.s. size of discriminator. "
462
+ ],
463
+ "image_footnote": [],
464
+ "bbox": [
465
+ 326,
466
+ 560,
467
+ 671,
468
+ 699
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "",
475
+ "bbox": [
476
+ 174,
477
+ 776,
478
+ 825,
479
+ 847
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "To get meaningful test results, we turn to a Stacked GAN which is the state-of-the-art generative model on CIFAR-10 (Inception Score 8.59 (Huang et al., 2016)). It also generates the most reallooking images. Since this model is trained by conditioning on class label, we measure its diversity within each class separately. The batch sizes needed for duplicates are shown in Table 1. Duplicate samples shown in Figure 3. ",
486
+ "bbox": [
487
+ 176,
488
+ 854,
489
+ 823,
490
+ 924
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "table",
496
+ "img_path": "images/a43db70f8c8bdf3b92c77572620389da87f46bd465f3b927038016fdbc8897eb.jpg",
497
+ "table_caption": [
498
+ "Table 1: Class specific batch size needed to encounter duplicate samples with $> 5 0 \\%$ probability, from a Stacked GAN trained on CIFAR-10 "
499
+ ],
500
+ "table_footnote": [],
501
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Aeroplane</td><td rowspan=1 colspan=1>Auto-Mobile</td><td rowspan=1 colspan=1>Bird</td><td rowspan=1 colspan=1>Cat</td><td rowspan=1 colspan=1>Deer</td><td rowspan=1 colspan=1>Dog</td><td rowspan=1 colspan=1>Frog</td><td rowspan=1 colspan=1>Horse</td><td rowspan=1 colspan=1>Ship</td><td rowspan=1 colspan=1>Truck</td></tr><tr><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>300</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>200</td><td rowspan=1 colspan=1>500</td><td rowspan=1 colspan=1>100</td></tr></table>",
502
+ "bbox": [
503
+ 217,
504
+ 101,
505
+ 779,
506
+ 131
507
+ ],
508
+ "page_idx": 5
509
+ },
510
+ {
511
+ "type": "image",
512
+ "img_path": "images/d0e837fdc8641815e1db8fc001e0f7e71bf7f90c4183ff97f04fc48de57c968f.jpg",
513
+ "image_caption": [
514
+ "Figure 3: Duplicate pairs found in a batch of 1000 generated CIFAR-10 samples from a Stacked GAN.a)-b):pairs of duplicate samples; c): nearest neighbor of b) in the training set. "
515
+ ],
516
+ "image_footnote": [],
517
+ "bbox": [
518
+ 181,
519
+ 190,
520
+ 821,
521
+ 542
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "We check whether the detected duplicates are close to any of the training images, by looking for the nearest neighbor in the training set using our heuristic similarity measure and visually inspecting the closest suspects. We find that the closest image is quite different from the duplicates, suggesting the issue with GANs is indeed lack of diversity (low support size) instead of memorizing training set. ",
528
+ "bbox": [
529
+ 174,
530
+ 617,
531
+ 825,
532
+ 672
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "3 LIMITATIONS OF ENCODER-DECODER GAN ARCHITECTURES ",
539
+ "text_level": 1,
540
+ "bbox": [
541
+ 176,
542
+ 696,
543
+ 715,
544
+ 713
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "We recall the Adversarial Feature Learning (BiGAN) setup from Donahue et al. (2017). The “generative” player consists of two parts: a generator $G$ and an encoder $E$ . The generator takes as input a latent variable $z$ and produces a sample $G ( z )$ ; the encoder takes as input a data sample $x$ and produces a guess for the latent variable $E ( x )$ . This produces two joint distributions over pairs of latent variables and data samples: $( z , G ( z ) )$ and $( E ( x ) , x )$ . The goal of the “generative” player is to convince the discriminator that these two distributions are the same, whereas the discriminator is being trained to distinguish between them. In the ideal case, the hope is that the “generative” player converges to $( z , G ( z ) )$ and $( E ( x ) , x )$ both being jointly distributed as $p ( z , x )$ where $p$ is the joint distribution of the latent variables and data – i.e. $G ( z )$ is distributed as $p ( x | z )$ : the true generator distribution; and $E ( x )$ is distributed as $p ( z | x )$ : the true encoder distribution. ",
551
+ "bbox": [
552
+ 173,
553
+ 731,
554
+ 825,
555
+ 871
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "Using usual min-max formalism for adversarial training, the BiGAN objective is written as: ",
562
+ "bbox": [
563
+ 171,
564
+ 877,
565
+ 774,
566
+ 892
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "equation",
572
+ "img_path": "images/d2eff99d3dbec5dfa347f06512576c54fd21b95dd2bda7f8597a1313ae95c8a9.jpg",
573
+ "text": "$$\n\\operatorname* { m i n } _ { G , E } \\operatorname* { m a x } _ { D } | \\ \\operatorname* { \\mathbb { E } } _ { x \\sim \\hat { \\mu } } \\phi ( D ( x , E ( x ) ) ) - \\operatorname* { \\mathbb { E } } _ { z \\sim \\hat { \\nu } } \\phi ( D ( G ( z ) , z ) ) |\n$$",
574
+ "text_format": "latex",
575
+ "bbox": [
576
+ 323,
577
+ 904,
578
+ 676,
579
+ 928
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "where $\\hat { \\mu }$ is the empirical distribution over data samples $x$ ; $\\hat { \\nu }$ is a distribution over random “seeds” for the latent variables: typically sampled from a simple distribution like a standard Gaussian; and $\\phi$ is a concave “measuring” function. (The standard choice is log, though other options have been proposed in the literature.) For our purposes, we will assume that $\\phi$ outputs values in the range $[ - \\Delta , \\Delta ] , \\Delta \\geq 1$ , and is $L _ { \\phi }$ -Lipschitz. ",
586
+ "bbox": [
587
+ 174,
588
+ 103,
589
+ 825,
590
+ 174
591
+ ],
592
+ "page_idx": 6
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "For ease of exposition we will refer to $\\mu$ as the image distribution. The proof is more elegant if we assume that $\\mu$ consists of images that have been noised —concretely, think of replacing every 100th pixel by Gaussian noise. Such noised images would of course look fine to our eyes, and we would expect the learnt encoder/decoder to not be affected by this noise. For concreteness, we will take the seed/code distribution $\\nu$ to be a spherical zero-mean Gaussian (in an arbitrary dimension and with an arbitrary variance). 4 ",
597
+ "bbox": [
598
+ 173,
599
+ 180,
600
+ 825,
601
+ 265
602
+ ],
603
+ "page_idx": 6
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "Furthermore, we will assume that Domain $( \\mu ) = \\mathbb { R } ^ { d }$ , $\\mathrm { D o m a i n } ( \\nu ) = \\mathbb { R } ^ { \\tilde { d } }$ with $\\tilde { d } < d$ (we think of $\\widetilde d \\ll d$ , which is certainly the case in practice). As in Arora et al. (2017) we assume that discriminators are $L$ -lipschitz with respect to their trainable parameters, and the support size of the generator’s distribution will depend upon this $L$ and the capacity $p$ $\\left( = \\right.$ number of parameters) of the discriminator. ",
608
+ "bbox": [
609
+ 173,
610
+ 272,
611
+ 825,
612
+ 345
613
+ ],
614
+ "page_idx": 6
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "Theorem 3 (Main). There exists a generator $G$ of support $\\frac { p \\Delta ^ { 2 } \\log ^ { 2 } ( p \\Delta L L _ { \\phi } / \\epsilon ) } { \\epsilon ^ { 2 } }$ and an encoder $E$ with at most $\\tilde { d }$ non-zero weights, s.t. for all discriminators $D$ that are $L$ -Lipschitz and have capacity less than $p$ , it holds that ",
619
+ "bbox": [
620
+ 173,
621
+ 347,
622
+ 825,
623
+ 397
624
+ ],
625
+ "page_idx": 6
626
+ },
627
+ {
628
+ "type": "equation",
629
+ "img_path": "images/f3cdb98b594255e4185754dfe381207b8473a8f0d2beeff848664e42fb638a9c.jpg",
630
+ "text": "$$\n\\begin{array} { r } { | \\underset { x \\sim \\mu } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) - \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\epsilon } \\end{array}\n$$",
631
+ "text_format": "latex",
632
+ "bbox": [
633
+ 339,
634
+ 409,
635
+ 658,
636
+ 433
637
+ ],
638
+ "page_idx": 6
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "The interpretation of the above theorem is as stated before: the encoder $E$ has very small complexity (we will subsequently specify it precisely and show it simply extracts noise from the input $x$ ); the generator $G$ is a small-support distribution (so presumably far from the true data distribution). Nevertheless, the value of the BiGAN objective is small. The argument of Arora et al. (2017) seems unable to apply to this setting. It is a simple concentration/epsilon-net argument showing that the discriminator of capacity $p$ cannot distinguish between a generator that samples from $\\mu$ versus one that memorizes a subset of $\\frac { p \\log p } { \\epsilon ^ { 2 } }$ random images in $\\mu$ and outputs one randomly from this subset. By contrast, in the current setting we need to say what happens with the encoder. ",
643
+ "bbox": [
644
+ 173,
645
+ 445,
646
+ 825,
647
+ 560
648
+ ],
649
+ "page_idx": 6
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "The precise noise model: Denoting by $\\tilde { \\mu }$ the distribution of unnnoised images, and $\\nu$ the distribution of seeds/codes, we define the distribution of noised images $\\mu$ as the following distribution: to produce a sample in $\\mu$ take a sample $\\tilde { x }$ from $\\tilde { \\mu }$ and $z$ from $\\nu$ independently and output $x = \\tilde { x } \\circledast z$ , which is defined as ",
654
+ "bbox": [
655
+ 173,
656
+ 565,
657
+ 825,
658
+ 621
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "equation",
664
+ "img_path": "images/3ba86d5179606f24de20d19432de06b9ef4adffbb43b83b3c20d151fed6a46ed.jpg",
665
+ "text": "$$\nx _ { i } = \\left\\{ \\begin{array} { l l } { z _ { \\frac { i } { \\lfloor \\frac { d } { \\tilde { d } } \\rfloor } } , } & { \\mathrm { i f ~ } i \\equiv 0 ( \\bmod \\lfloor \\frac { d } { { \\tilde { d } } } \\rfloor ) } \\\\ { \\tilde { x } _ { i } , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
666
+ "text_format": "latex",
667
+ "bbox": [
668
+ 382,
669
+ 618,
670
+ 614,
671
+ 662
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "In other words, set every $\\textstyle { \\big \\lfloor } { \\frac { d } { \\tilde { d } } } { \\big \\rfloor }$ -th to one of the coordinates of $z$ . In practical settings, $\\widetilde d \\ll d$ is usually chosen, so noising $\\tilde { d }$ coordinates out of all $d$ will have no visually noticeable effect. 5 ",
678
+ "bbox": [
679
+ 174,
680
+ 666,
681
+ 821,
682
+ 702
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "3.1 PROOF SKETCH, THEOREM 3; DETAILED PROOF IN APPENDIX ",
689
+ "bbox": [
690
+ 174,
691
+ 717,
692
+ 642,
693
+ 733
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "The main idea is to show the existence of the generator/encoder pair via a probabilistic construction that is shown to succeed with high probability. ",
700
+ "bbox": [
701
+ 173,
702
+ 743,
703
+ 825,
704
+ 772
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "• Encoder $E$ : The encoder just extracts the noise from the noised image (by selecting the relevant $\\tilde { d }$ coordinates). Namely, $E ( \\tilde { x } \\circledast z ) = z$ . (So the code is just gaussian noise and has no meaningful content.) It’s easy to see this can be captured using a ReLU network with $\\tilde { d }$ weights: we can simply connect the $i$ -th output to the $( i \\lfloor \\frac { d } { \\tilde { d } } \\rfloor )$ -th input using an edge of weight 1. ",
711
+ "bbox": [
712
+ 215,
713
+ 784,
714
+ 825,
715
+ 859
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "• Generator $G$ : This is designed to produce a distribution of support size $m : =$ p∆2 log2(p∆LLφ/\u000f)\u000f2 . We first define a partition of Domain(ν) = Rd˜ into m equal-measure blocks under $\\nu$ . Next, we sample $m$ samples $x _ { 1 } ^ { * } , x _ { 2 } ^ { * } , \\ldots , x _ { m } ^ { * }$ from the image distribution. which z lies, and define the generator as G(z) = x∗ind(z) to be the index of the block in the partition in . Since the set of samples $x _ { i } ^ { * } : i \\in [ m ]$ is random, this specifies a distribution over generators. We prove that with high probability, one of these generators satisfies the statement of Theorem 3. Moreover, we show that such a generator can be easily implemented using a ReLU network of complexity $O ( m d )$ in Theorem 5. ",
722
+ "bbox": [
723
+ 215,
724
+ 103,
725
+ 825,
726
+ 239
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "The basic intuition of the proof is as follows. We will call a set $T$ of samples from $\\nu$ non-colliding if no two lie in the same block. Let $\\mathcal { T } _ { n c }$ be the distribution over non-colliding sets $\\{ z _ { 1 } , z _ { 2 } , \\dots , z _ { m } \\}$ , s.t. each $z _ { i }$ is sampled independently from the conditional distribution of $\\nu$ inside the i-th block. ",
733
+ "bbox": [
734
+ 176,
735
+ 251,
736
+ 826,
737
+ 294
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "First, we notice that under the distribution for $G$ we defined, it holds that ",
744
+ "bbox": [
745
+ 176,
746
+ 300,
747
+ 651,
748
+ 315
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "equation",
754
+ "img_path": "images/19a615169fa433d3fbd5ee8509a2687caa15d8477499d99113fd24eea46d0cb7.jpg",
755
+ "text": "$$\n\\underset { x \\sim \\mu } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) = \\underset { x \\sim \\tilde { \\mu } , z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( x \\circledast z , z ) ) = \\underset { G } { \\mathbb { E } } \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( G ( z ) , z )\n$$",
756
+ "text_format": "latex",
757
+ "bbox": [
758
+ 274,
759
+ 321,
760
+ 722,
761
+ 345
762
+ ],
763
+ "page_idx": 7
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "In other words, the “expected” encoder correctly matches the expectation of $\\phi ( D ( x , E ( x ) ) )$ , so that the discriminator is fooled. We want to show that $\\mathbb { E } _ { G } \\mathbb { E } _ { z \\sim \\nu } \\phi ( G ( z ) , z )$ concentrates enough around this expectation, as a function of the randomness in $G$ , so that we can say with high probability over the choice of $G$ , $| \\mathbb { E } _ { x \\sim \\mu } \\phi ( D ( x , E ( x ) ) ) - \\mathbb { E } _ { z \\sim \\nu } \\phi ( G ( z ) , z ) |$ is small. We handle the concentration argument in two steps: ",
768
+ "bbox": [
769
+ 173,
770
+ 353,
771
+ 825,
772
+ 424
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "First, we note that we can calculate the expectation of $\\phi \\bigl ( D ( G ( z ) , z ) \\bigr )$ when $z \\sim \\nu$ by calculating the empirical expectation over $m$ -sized non-colliding sets $T$ sampled according to $\\mathcal { T } _ { n c }$ . Namely, as we show in Lemma D.1: ",
779
+ "bbox": [
780
+ 176,
781
+ 429,
782
+ 823,
783
+ 472
784
+ ],
785
+ "page_idx": 7
786
+ },
787
+ {
788
+ "type": "equation",
789
+ "img_path": "images/22541dfb26212b80bd03f9ccbef0d9588e41f8b985586c4f698fc352a2de6aac.jpg",
790
+ "text": "$$\n\\begin{array} { r } { \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = \\underset { T \\sim { \\mathcal { T } _ { n c } } z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) } \\end{array}\n$$",
791
+ "text_format": "latex",
792
+ "bbox": [
793
+ 336,
794
+ 479,
795
+ 658,
796
+ 503
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "Thus, we have reduced our task to arguing about the concentration of $\\mathbb { E } _ { T \\sim \\mathcal { T } _ { n c } } \\mathbb { E } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) )$ (viewed as a random variable in $G$ ). Towards this, we consider the random variable $\\mathbb { E } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) )$ as a function of the randomness in $G$ and $T$ both. Since $T$ is a non-colliding set of samples, we can write ",
803
+ "bbox": [
804
+ 173,
805
+ 511,
806
+ 825,
807
+ 566
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "equation",
813
+ "img_path": "images/7e18c5278df12687a334d9bb81761b13cd0f74c14172956fe1c5fa40e52e0bfb.jpg",
814
+ "text": "$$\n\\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = f ( x _ { i } ^ { * } , z _ { i } , i \\in [ m ] )\n$$",
815
+ "text_format": "latex",
816
+ "bbox": [
817
+ 364,
818
+ 574,
819
+ 633,
820
+ 597
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "for some function $f$ , where the random variables $\\boldsymbol { x } _ { i } ^ { * }$ , $z _ { i }$ are all mutually independent – thus use McDiarmid’s inequality to argue about the concentration of $f$ in terms of both $T$ and $G$ . ",
827
+ "bbox": [
828
+ 169,
829
+ 603,
830
+ 823,
831
+ 632
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "From this, we can use Markov’s inequality to argue that all but an exponentially small (in $p$ ) fraction of encoders $G$ satisfy that: for all but an exponentially small (in $p _ { \\ell }$ ) fraction of non-colliding sets $T$ , $| \\mathbb { E } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) ) - \\mathbb { E } _ { G } \\mathbb { E } _ { T \\sim T _ { n c } } \\mathbb { E } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) ) |$ is small. Note that this has to hold for all discriminators $D - { \\bf s } 0$ we need to additionally build an epsilon-net, and union bound over all discriminators, similarly as in Arora et al. (2017). Then, it’s easy to extrapolate that for such $G$ , ",
838
+ "bbox": [
839
+ 173,
840
+ 638,
841
+ 825,
842
+ 709
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "equation",
848
+ "img_path": "images/9edd78c19aac1e9a458fd754d9f8807b1eab7fcf7fe1dc2d2c0b9640aed49411.jpg",
849
+ "text": "$$\n\\big | \\operatorname* { \\mathbb { E } } _ { T \\sim \\mathcal { T } _ { n c } } \\operatorname* { \\mathbb { E } } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) ) - \\operatorname* { \\mathbb { E } } _ { G } \\operatorname* { \\mathbb { E } } _ { T \\sim \\mathcal { T } _ { n c } } \\operatorname* { \\mathbb { E } } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) ) |\n$$",
850
+ "text_format": "latex",
851
+ "bbox": [
852
+ 303,
853
+ 715,
854
+ 694,
855
+ 739
856
+ ],
857
+ "page_idx": 7
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "is small, as we want. The details are in Lemma D.2 in the Appendix. ",
862
+ "bbox": [
863
+ 173,
864
+ 746,
865
+ 622,
866
+ 761
867
+ ],
868
+ "page_idx": 7
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "4 CONCLUSIONS ",
873
+ "text_level": 1,
874
+ "bbox": [
875
+ 174,
876
+ 781,
877
+ 330,
878
+ 797
879
+ ],
880
+ "page_idx": 7
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "The paper reveals gaps in current thinking about GANs, and hopes to stimulate further theoretical and empirical study. GANs research has always struggled with the issue of mode collapse, and recent theoretical analysis of Arora et al. (2017) shows that the GANs training objective is not capable of preventing mode collapse. This exhibits the existence of bad solutions in the optimization landscape. This in itself is not definitive, since existence of bad solutions is also known for the more traditional classification tasks Zhang et al. (2017), where heldout sets can nevertheless prove that a good solution has been reached. The difference in case of GANs is lack of an obvious way to establish that training succeeded. ",
885
+ "bbox": [
886
+ 173,
887
+ 811,
888
+ 825,
889
+ 924
890
+ ],
891
+ "page_idx": 7
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Our new Birthday Paradox test gives a new benchmark for testing the support size (i.e., diversity of images) in a distribution. Though it may appear weak, experiments using this test suggest that current GANs approaches, specifically, the ones that produce images of higher visual quality, do suffer mode collapse. Our rough experiments also suggest —again in line with the previous theoretical analysis—that the size of the distribution’s support scales near-linearly with discriminator capacity. ",
896
+ "bbox": [
897
+ 174,
898
+ 103,
899
+ 825,
900
+ 174
901
+ ],
902
+ "page_idx": 8
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Researchers have raised the possibility that the best use of GANs is not distribution learning but feature learning. Encoder-decoder GAN architectures seem promising since they try to force the generator to use “meaningful” encodings of the image. While such architectures do exhibit slightly better diversity in our experiments, our theoretical result suggest that the the encoder-decoder objective is also unable to avoid mode collapse, furthermore, also fails to guarantee meaningful codes. ",
907
+ "bbox": [
908
+ 174,
909
+ 180,
910
+ 825,
911
+ 251
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "REFERENCES ",
918
+ "text_level": 1,
919
+ "bbox": [
920
+ 176,
921
+ 271,
922
+ 285,
923
+ 286
924
+ ],
925
+ "page_idx": 8
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Sanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and equilibrium in generative adversarial nets (gans). arXiv preprint arXiv:1703.00573, 2017. ",
930
+ "bbox": [
931
+ 174,
932
+ 295,
933
+ 821,
934
+ 323
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Jeff Donahue, Philipp Krahenb ¨ uhl, and Trevor Darrell. Adversarial feature learning. In ¨ International Conference on Learning Features (ICLR), 2017. ",
941
+ "bbox": [
942
+ 176,
943
+ 332,
944
+ 820,
945
+ 361
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially learned inference. In International Conference on Learning Features (ICLR), 2017. ",
952
+ "bbox": [
953
+ 174,
954
+ 369,
955
+ 821,
956
+ 412
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
963
+ "bbox": [
964
+ 173,
965
+ 421,
966
+ 823,
967
+ 464
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Xun Huang, Yixuan Li, Omid Poursaeed, John Hopcroft, and Serge Belongie. Stacked generative adversarial networks. arXiv preprint arXiv:1612.04357, 2016. ",
974
+ "bbox": [
975
+ 171,
976
+ 472,
977
+ 823,
978
+ 502
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In International Conference on Learning Representations (ICLR), 2014. ",
985
+ "bbox": [
986
+ 173,
987
+ 510,
988
+ 821,
989
+ 540
990
+ ],
991
+ "page_idx": 8
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
996
+ "bbox": [
997
+ 173,
998
+ 547,
999
+ 692,
1000
+ 564
1001
+ ],
1002
+ "page_idx": 8
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. ",
1007
+ "bbox": [
1008
+ 174,
1009
+ 571,
1010
+ 821,
1011
+ 602
1012
+ ],
1013
+ "page_idx": 8
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Ben Poole, Alexander A Alemi, Jascha Sohl-Dickstein, and Anelia Angelova. Improved generator objectives for gans. arXiv preprint arXiv:1612.02780, 2016. ",
1018
+ "bbox": [
1019
+ 174,
1020
+ 609,
1021
+ 823,
1022
+ 638
1023
+ ],
1024
+ "page_idx": 8
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
1029
+ "bbox": [
1030
+ 174,
1031
+ 647,
1032
+ 823,
1033
+ 676
1034
+ ],
1035
+ "page_idx": 8
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Gregory Valiant and Paul Valiant. Estimating the unseen: an n/log (n)-sample estimator for entropy and support size, shown optimal via new clts. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pp. 685–694. ACM, 2011. ",
1040
+ "bbox": [
1041
+ 174,
1042
+ 685,
1043
+ 823,
1044
+ 728
1045
+ ],
1046
+ "page_idx": 8
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Michael J Wiener. Bounds on birthday attack times. 2005. ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 737,
1054
+ 558,
1055
+ 752
1056
+ ],
1057
+ "page_idx": 8
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. arXiv preprint arXiv:1611.04273, 2016. ",
1062
+ "bbox": [
1063
+ 173,
1064
+ 761,
1065
+ 823,
1066
+ 790
1067
+ ],
1068
+ "page_idx": 8
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. ",
1073
+ "bbox": [
1074
+ 174,
1075
+ 799,
1076
+ 821,
1077
+ 842
1078
+ ],
1079
+ "page_idx": 8
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017. ",
1084
+ "bbox": [
1085
+ 176,
1086
+ 849,
1087
+ 823,
1088
+ 880
1089
+ ],
1090
+ "page_idx": 8
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "A BIRTHDAY PARADOX CALCULATION ",
1095
+ "text_level": 1,
1096
+ "bbox": [
1097
+ 174,
1098
+ 102,
1099
+ 509,
1100
+ 118
1101
+ ],
1102
+ "page_idx": 9
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "In this section, we prove the statemts of Theorems 1 and 2. ",
1107
+ "bbox": [
1108
+ 173,
1109
+ 133,
1110
+ 560,
1111
+ 148
1112
+ ],
1113
+ "page_idx": 9
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Proof of Theorem 1. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 162,
1121
+ 305,
1122
+ 178
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "equation",
1128
+ "img_path": "images/a65eecbd17ce5d700f192eedaccf8612897432a0535c82e1d6b74485d7185818.jpg",
1129
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\geq 1 - 1 \\times ( 1 - \\frac { \\rho } { N } ) \\times ( 1 - \\frac { 2 \\rho } { N } ) \\times \\cdots \\times ( 1 - \\frac { ( M - 1 ) \\rho } { N } ) } \\\\ { \\displaystyle \\geq 1 - \\exp ( - \\frac { ( M ^ { 2 } - M ) \\rho } { 2 N } ) } \\end{array}\n$$",
1130
+ "text_format": "latex",
1131
+ "bbox": [
1132
+ 290,
1133
+ 222,
1134
+ 683,
1135
+ 287
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "We use the fact that the worst case is when the $\\rho$ probability mass is uniformly distributed on $S$ ",
1142
+ "bbox": [
1143
+ 176,
1144
+ 290,
1145
+ 799,
1146
+ 305
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Proof of Theorem 2. Suppose $X _ { 1 } , X _ { 2 } , \\ldots$ are i.i.d. samples from the discrete distribution $P$ . We define $T \\ = \\ \\operatorname* { i n f } \\{ t \\ \\geq \\ 2 , X _ { t } \\ \\in \\ \\{ X _ { 1 } , X _ { 2 } , \\ldots , X _ { t - 1 } \\} \\}$ to be the collision time and also we use $\\beta ~ = ~ { \\frac { 1 } { \\operatorname* { P r } [ T = 2 ] } } ~ = ~ { \\frac { 1 } { \\sum _ { X \\in \\Omega } P ( X ) ^ { 2 } } }$ = P 1P (X)2 as a surrogate for the uniformity of P . According Theorem 3 in Wiener (2005), √ $P r [ T \\geq M ]$ can be upper-bounded using $\\beta$ . Specifically, with $\\beta > 1 0 0 0$ and $M \\leq 2 { \\sqrt { \\beta \\ln \\beta } }$ , which is usually true when $P$ is the distribution of a generative model of images, ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 340,
1156
+ 826,
1157
+ 416
1158
+ ],
1159
+ "page_idx": 9
1160
+ },
1161
+ {
1162
+ "type": "equation",
1163
+ "img_path": "images/10ec5a3cb602c99c10bcb136fce5e01f37a1b41b93e9bf5d64e564578385964b.jpg",
1164
+ "text": "$$\n\\mathrm { P r } [ T \\ge M ] \\ge \\exp ( - \\frac { M ^ { 2 } } { 2 \\beta } - \\frac { M ^ { 3 } } { 6 \\beta ^ { 2 } } )\n$$",
1165
+ "text_format": "latex",
1166
+ "bbox": [
1167
+ 382,
1168
+ 422,
1169
+ 614,
1170
+ 457
1171
+ ],
1172
+ "page_idx": 9
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "To estimate $\\beta$ , we notice that ",
1177
+ "bbox": [
1178
+ 174,
1179
+ 469,
1180
+ 366,
1181
+ 484
1182
+ ],
1183
+ "page_idx": 9
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "$\\operatorname* { P r } [ T \\geq M ] = 1 - \\operatorname* { P r } [ T \\leq M ] = 1 - \\operatorname* { P r }$ [there is at least a collision among $M ] = 1 - \\gamma \\geq \\exp ( - \\frac { M ^ { 2 } } { 2 \\beta } - \\frac { M ^ { 3 } } { 6 \\beta ^ { 2 } } )$ ",
1188
+ "bbox": [
1189
+ 171,
1190
+ 492,
1191
+ 870,
1192
+ 525
1193
+ ],
1194
+ "page_idx": 9
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "which immediately implies ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 530,
1202
+ 354,
1203
+ 545
1204
+ ],
1205
+ "page_idx": 9
1206
+ },
1207
+ {
1208
+ "type": "equation",
1209
+ "img_path": "images/09339f8c34eaca615bc2e31c2704f99ebabe61cb656a1e46d65ea922f1fcca01.jpg",
1210
+ "text": "$$\n\\beta \\leq { \\frac { 2 M } { - 3 + { \\sqrt { 9 + { \\frac { 2 4 } { M } } \\ln { \\frac { 1 } { 1 - \\gamma } } } } } } = \\beta ^ { * }\n$$",
1211
+ "text_format": "latex",
1212
+ "bbox": [
1213
+ 383,
1214
+ 541,
1215
+ 612,
1216
+ 587
1217
+ ],
1218
+ "page_idx": 9
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "This gives us a upper-bound of the uniformity of distribution $P$ , which we can utilize. Let $S \\subseteq \\Omega$ be the smallest set with probability mass $\\geq \\rho$ and suppose it size is $N$ . To estimate the largest possible $N$ such that the previous inequality holds, we let ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 588,
1226
+ 825,
1227
+ 631
1228
+ ],
1229
+ "page_idx": 9
1230
+ },
1231
+ {
1232
+ "type": "equation",
1233
+ "img_path": "images/7005431ae5788cf2f14f0c0cc37e92ee5911df445ca2e017a86e52609d6f0d90.jpg",
1234
+ "text": "$$\n\\frac { 1 } { ( \\frac { \\rho } { N } ) ^ { 2 } N + ( 1 - \\rho ) ^ { 2 } } \\leq \\beta ^ { * }\n$$",
1235
+ "text_format": "latex",
1236
+ "bbox": [
1237
+ 411,
1238
+ 636,
1239
+ 584,
1240
+ 670
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "from which we obtain ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 684,
1250
+ 320,
1251
+ 698
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "equation",
1257
+ "img_path": "images/d6a0f349b44534a56db9cf6e477ea28919f69acfeae2539de0cf287d044a68ae.jpg",
1258
+ "text": "$$\nN \\leq { \\frac { 2 M \\rho ^ { 2 } } { ( - 3 + { \\sqrt { 9 + { \\frac { 2 4 } { M } } \\ln { \\frac { 1 } { 1 - \\gamma } } } } ) - 2 M ( 1 - \\rho ) ^ { 2 } } }\n$$",
1259
+ "text_format": "latex",
1260
+ "bbox": [
1261
+ 343,
1262
+ 702,
1263
+ 653,
1264
+ 747
1265
+ ],
1266
+ "page_idx": 9
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "B EXPLORATORY RESULTS ON BEDROOM DATASET ",
1271
+ "text_level": 1,
1272
+ "bbox": [
1273
+ 173,
1274
+ 794,
1275
+ 612,
1276
+ 811
1277
+ ],
1278
+ "page_idx": 9
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "We test DCGANs trained on the trained on $6 4 \\times 6 4$ center cropped Bedroom dataset(LSUN) using Euclidean distance to extract collision candidates since it is impossible to train a CNN classifier on such single-category (bedroom) dataset. We notice that the most similar pairs are likely to be the corrupted samples with the same noise pattern (top-5 collision candidates all contain such patterns). When ignoring the noisy pairs, the most similar ”clean” pairs are not even similar according to human eyes. This implies that the distribution puts significant probability on noise patterns, which can be seen as a form of under-fitting (also reported in the DCGAN paper). We manually counted the number of samples with a fixed noise pattern from a batch of 900 i.i.d samples. We find 43 such corrupted samples among the 900 generated images, which implies $4 3 / 9 0 0 \\approx 5 \\%$ probability. ",
1283
+ "bbox": [
1284
+ 173,
1285
+ 825,
1286
+ 825,
1287
+ 924
1288
+ ],
1289
+ "page_idx": 9
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "",
1294
+ "bbox": [
1295
+ 171,
1296
+ 103,
1297
+ 823,
1298
+ 132
1299
+ ],
1300
+ "page_idx": 10
1301
+ },
1302
+ {
1303
+ "type": "image",
1304
+ "img_path": "images/50a90eccb8141eacb69c250c7386f8053c31de83d4cf01a83bf3206ffb998d07.jpg",
1305
+ "image_caption": [],
1306
+ "image_footnote": [],
1307
+ "bbox": [
1308
+ 315,
1309
+ 172,
1310
+ 673,
1311
+ 454
1312
+ ],
1313
+ "page_idx": 10
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Figure 4: Randomly generated samples from a DCGAN trained on Bedroom dataset. Note that there are corrupted images with a fixed noise pattern (emphasized in red boxes). ",
1318
+ "bbox": [
1319
+ 171,
1320
+ 489,
1321
+ 823,
1322
+ 518
1323
+ ],
1324
+ "page_idx": 10
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "C BIRTHDAY PARADOX TEST FOR VAES ",
1329
+ "bbox": [
1330
+ 174,
1331
+ 558,
1332
+ 522,
1333
+ 574
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "image",
1339
+ "img_path": "images/fe13e23bc7a3a4909cc2dca43aa79f84daac4976c555edd9668302f6d35ac943.jpg",
1340
+ "image_caption": [
1341
+ "Figure 5: Collision candidates found in Variation Auto-Encoder samples. The duplicated samples are frequently blurry ones because the crucial features (eyes, hair, mouth) of VAE samples are not as distinctive as those of GANs’. "
1342
+ ],
1343
+ "image_footnote": [],
1344
+ "bbox": [
1345
+ 204,
1346
+ 616,
1347
+ 794,
1348
+ 707
1349
+ ],
1350
+ "page_idx": 10
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Given these findings, it is natural to wonder about the diversity of distributions learned using earlier methods such as Variational Auto-Encoders Kingma & Welling (2014) (VAEs). Instead of using feedback from the discriminator, these methods train the generator net using feedback from an approximate perplexity calculation. Thus the analysis of Arora et al. (2017) does not apply as is to such methods and it is conceivable they exhibit higher diversity. However, we find the birthday paradox test difficult to run since samples from a VAE trained on CelebA are not realistic or sharp enough for a human to definitively conclude whether or not two images are almost the same. Fig 5 shows examples of collision candidates found in batches of 400 samples; clearly some indicative parts (hair, eyes, mouth, etc.) are quite blurry in VAE samples. ",
1355
+ "bbox": [
1356
+ 173,
1357
+ 797,
1358
+ 825,
1359
+ 924
1360
+ ],
1361
+ "page_idx": 10
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "D BIGAN’S DON’T EVADE THE CURSE OF LOW DIVERSITY ",
1366
+ "text_level": 1,
1367
+ "bbox": [
1368
+ 173,
1369
+ 102,
1370
+ 678,
1371
+ 118
1372
+ ],
1373
+ "page_idx": 11
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "We recall the basic notation from the main part: the image distribution will be denoted as $\\mu$ , and the code/seed distribution as $\\nu$ , which we assume is a spherical Gaussian. For concreteness, we assumed the domain of $\\tilde { \\mu }$ is $\\mathbb { R } ^ { d }$ and the domain of $\\nu$ is $\\mathbb { R } ^ { \\bar { d } }$ with $\\tilde { d } \\leq d$ . (As we said, we are thinking of $\\widetilde d \\ll d$ .) ",
1378
+ "bbox": [
1379
+ 173,
1380
+ 132,
1381
+ 826,
1382
+ 194
1383
+ ],
1384
+ "page_idx": 11
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "We also introduced the quantity m := p∆2 log2(p∆LLφ/\u000f)2 . ",
1389
+ "bbox": [
1390
+ 173,
1391
+ 199,
1392
+ 549,
1393
+ 220
1394
+ ],
1395
+ "page_idx": 11
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Before proving Theorem 3, let’s note that the claim can easily be made into a finite-sample version. Namely: ",
1400
+ "bbox": [
1401
+ 173,
1402
+ 226,
1403
+ 823,
1404
+ 255
1405
+ ],
1406
+ "page_idx": 11
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Corollary D.1 (Main, finite sample version). There exists a generator $G$ of support $m$ , s.t. if $\\hat { \\mu }$ is the uniform distribution over a training set $S$ of size at least $m$ , and $\\hat { \\nu }$ is the uniform distribution over a sample $T$ from $\\nu$ of size at least $m$ , for all discriminators $D$ that are $L$ -Lipschitz and have less than $p$ parameters, with probability $1 - \\exp ( - \\Omega ( p ) )$ over the choice of training set $S , T$ we have: ",
1411
+ "bbox": [
1412
+ 173,
1413
+ 257,
1414
+ 825,
1415
+ 315
1416
+ ],
1417
+ "page_idx": 11
1418
+ },
1419
+ {
1420
+ "type": "equation",
1421
+ "img_path": "images/602409aab06bdad4534fa7b7e3196a1df07043a8bcb3c6926ceb0c36e2d83944.jpg",
1422
+ "text": "$$\n\\begin{array} { r } { | \\underset { x \\sim \\hat { \\mu } } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) - \\underset { z \\sim \\hat { \\nu } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\epsilon } \\end{array}\n$$",
1423
+ "text_format": "latex",
1424
+ "bbox": [
1425
+ 339,
1426
+ 319,
1427
+ 658,
1428
+ 344
1429
+ ],
1430
+ "page_idx": 11
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Proof. As is noted in Theorem B.2 in Arora et al. (2017), we can build a \u000fLLφ - net for the discriminators with a size bounded by $e ^ { p \\log ( L L _ { \\phi } p / \\epsilon ) }$ . By Chernoff and union bounding over the points in the $\\frac { \\epsilon } { L L _ { \\phi } }$ -net, with probability at least $1 - \\exp ( - \\Omega ( p ) )$ over the choice of a training set $S$ , we have ",
1435
+ "bbox": [
1436
+ 173,
1437
+ 364,
1438
+ 825,
1439
+ 415
1440
+ ],
1441
+ "page_idx": 11
1442
+ },
1443
+ {
1444
+ "type": "equation",
1445
+ "img_path": "images/038e3c7d702110626a8a83adb6cf26ea62eb34150acb38f1c74064c716ab53a1.jpg",
1446
+ "text": "$$\n| \\underset { x \\sim \\mu } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) - \\underset { x \\sim \\hat { \\mu } } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) | \\leq \\frac { \\epsilon } { 2 }\n$$",
1447
+ "text_format": "latex",
1448
+ "bbox": [
1449
+ 334,
1450
+ 422,
1451
+ 663,
1452
+ 452
1453
+ ],
1454
+ "page_idx": 11
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "for all discriminators $D$ with capacity at most $p$ . Similarly, with probability at least $1 - \\exp ( - \\Omega ( p ) )$ over the choice of a noise set $T$ , ",
1459
+ "bbox": [
1460
+ 173,
1461
+ 457,
1462
+ 820,
1463
+ 486
1464
+ ],
1465
+ "page_idx": 11
1466
+ },
1467
+ {
1468
+ "type": "equation",
1469
+ "img_path": "images/ad81f8b9c2d2d38c92ee6e7fa6a36262a169af1e9092836ac0ac794736eb95a1.jpg",
1470
+ "text": "$$\n| \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { z \\sim \\hat { \\nu } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\frac { \\epsilon } { 2 }\n$$",
1471
+ "text_format": "latex",
1472
+ "bbox": [
1473
+ 339,
1474
+ 489,
1475
+ 658,
1476
+ 516
1477
+ ],
1478
+ "page_idx": 11
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Union bounding over these two events, we get the statement of the Corollary. ",
1483
+ "bbox": [
1484
+ 176,
1485
+ 521,
1486
+ 678,
1487
+ 536
1488
+ ],
1489
+ "page_idx": 11
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Spelling out the distribution over generators more explicitly, we will in fact show: ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 571,
1497
+ 709,
1498
+ 588
1499
+ ],
1500
+ "page_idx": 11
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Theorem 4 (Main, more detailed). Let $G$ follow the distribution over generators defined in Section 3. With probability $\\begin{array} { r } { 1 - \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) , } \\end{array}$ ) over the choice of $G$ , for all discriminators $D$ that are $L$ -Lipschitz and have capacity bounded by $p$ : ",
1505
+ "bbox": [
1506
+ 174,
1507
+ 590,
1508
+ 826,
1509
+ 633
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "equation",
1515
+ "img_path": "images/03786949094b1f9cf45b66bef10036f4d06dea5bf927643e6c90d27f913481f5.jpg",
1516
+ "text": "$$\n\\begin{array} { r } { | \\underset { x \\sim \\mu } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) - \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\epsilon } \\end{array}\n$$",
1517
+ "text_format": "latex",
1518
+ "bbox": [
1519
+ 341,
1520
+ 645,
1521
+ 656,
1522
+ 669
1523
+ ],
1524
+ "page_idx": 11
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "D.1 PROOF OF THE MAIN CLAIM ",
1529
+ "text_level": 1,
1530
+ "bbox": [
1531
+ 176,
1532
+ 688,
1533
+ 413,
1534
+ 703
1535
+ ],
1536
+ "page_idx": 11
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "Let us recall we call a set $T$ of samples from $\\nu$ non-colliding if no two lie in the same block and we denoted $\\mathcal { T } _ { n c }$ to be the distribution over non-colliding sets $\\{ z _ { 1 } , z _ { 2 } , \\dots , z _ { m } \\}$ , s.t. each $z _ { i }$ is sampled independently from the conditional distribution of $\\nu$ inside the i-th block of the partition. ",
1541
+ "bbox": [
1542
+ 173,
1543
+ 713,
1544
+ 825,
1545
+ 757
1546
+ ],
1547
+ "page_idx": 11
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "First, notice the following Lemma: ",
1552
+ "bbox": [
1553
+ 174,
1554
+ 762,
1555
+ 403,
1556
+ 777
1557
+ ],
1558
+ "page_idx": 11
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Lemma D.1 (Reducing to expectations over non-colliding sets). Let $G$ be a fixed generator, and $D$ a fixed discriminator. Then, ",
1563
+ "bbox": [
1564
+ 173,
1565
+ 781,
1566
+ 821,
1567
+ 810
1568
+ ],
1569
+ "page_idx": 11
1570
+ },
1571
+ {
1572
+ "type": "equation",
1573
+ "img_path": "images/40d58d5e9443c84538e53a873ae0c0bc84e7b62ed28d82d8b0846998160590dd.jpg",
1574
+ "text": "$$\n\\begin{array} { r } { \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = \\underset { T \\sim { \\mathcal { T } _ { n c } } z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) } \\end{array}\n$$",
1575
+ "text_format": "latex",
1576
+ "bbox": [
1577
+ 338,
1578
+ 814,
1579
+ 658,
1580
+ 839
1581
+ ],
1582
+ "page_idx": 11
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "Proof. By definition, ",
1587
+ "bbox": [
1588
+ 173,
1589
+ 867,
1590
+ 313,
1591
+ 882
1592
+ ],
1593
+ "page_idx": 11
1594
+ },
1595
+ {
1596
+ "type": "equation",
1597
+ "img_path": "images/7a23c37f10de3aa94ba83e73d1294cfa619596cc6e0679f334d7dba5dc59874d.jpg",
1598
+ "text": "$$\n\\underset { T \\sim \\mathcal { T } _ { n c } } { \\mathbb { E } } \\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\underset { z _ { i } \\sim ( \\mathcal { T } _ { n c } ) _ { i } } { \\mathbb { E } } \\phi ( D ( G ( z _ { i } ) , z _ { i } ) )\n$$",
1599
+ "text_format": "latex",
1600
+ "bbox": [
1601
+ 294,
1602
+ 887,
1603
+ 702,
1604
+ 928
1605
+ ],
1606
+ "page_idx": 11
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "where $( \\mathcal { T } _ { n c } ) _ { i }$ is the conditional distribution of $\\nu$ in the $i$ -th block of the partition. However, since the blocks form an equipartitioning, we have ",
1611
+ "bbox": [
1612
+ 171,
1613
+ 102,
1614
+ 823,
1615
+ 132
1616
+ ],
1617
+ "page_idx": 12
1618
+ },
1619
+ {
1620
+ "type": "equation",
1621
+ "img_path": "images/a6490f08420d0920554c82751668df8f1ad3aedca3cef73e0b8c119e5757f76c.jpg",
1622
+ "text": "$$\n\\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\underset { z _ { i } \\sim ( \\mathcal T _ { n c } ) _ { i } } { \\mathbb { E } } \\phi ( D ( G ( z _ { i } ) , z _ { i } ) ) = \\sum _ { i = 1 } ^ { m } \\underset { z \\sim \\nu } { \\operatorname* { P r } } \\left( z \\mathrm { b e l o n g s ~ t o ~ c e l l } ~ i \\right) \\underset { z _ { i } \\sim ( \\mathcal T _ { n c } ) _ { i } } { \\mathbb { E } } \\phi ( D ( G ( z _ { i } ) , z _ { i } ) )\n$$",
1623
+ "text_format": "latex",
1624
+ "bbox": [
1625
+ 200,
1626
+ 135,
1627
+ 795,
1628
+ 202
1629
+ ],
1630
+ "page_idx": 12
1631
+ },
1632
+ {
1633
+ "type": "text",
1634
+ "text": "Lemma D.2 (Concentration of good generators). With probability $\\begin{array} { r } { 1 - \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) ) } \\end{array}$ over the choice of $G$ , ",
1635
+ "bbox": [
1636
+ 173,
1637
+ 233,
1638
+ 825,
1639
+ 263
1640
+ ],
1641
+ "page_idx": 12
1642
+ },
1643
+ {
1644
+ "type": "equation",
1645
+ "img_path": "images/2849de81a513fed674729ca8b5a5bb4c29d6ab57db6fb4db963b3a453ad47841.jpg",
1646
+ "text": "$$\n| \\underset { T \\sim T _ { n c } } { \\mathbb { E } } \\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { G T \\sim T _ { n c } } { \\mathbb { E } } \\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\epsilon\n$$",
1647
+ "text_format": "latex",
1648
+ "bbox": [
1649
+ 289,
1650
+ 267,
1651
+ 709,
1652
+ 291
1653
+ ],
1654
+ "page_idx": 12
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "for all discriminators $D$ of capacity at most $p$ . ",
1659
+ "bbox": [
1660
+ 171,
1661
+ 295,
1662
+ 478,
1663
+ 310
1664
+ ],
1665
+ "page_idx": 12
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "Proof. Consider $\\mathbb { E } _ { z \\sim T } \\phi ( D ( G ( z ) , z ) )$ as a random variable in $T \\sim \\tau _ { n c }$ and $G$ for a fixed $D$ . We can write ",
1670
+ "bbox": [
1671
+ 173,
1672
+ 324,
1673
+ 823,
1674
+ 352
1675
+ ],
1676
+ "page_idx": 12
1677
+ },
1678
+ {
1679
+ "type": "equation",
1680
+ "img_path": "images/6cc1ec2f919c47ccc07da93657f32245a6d2f0afb352e024ee7ee9bba5699099.jpg",
1681
+ "text": "$$\n\\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = f ( x _ { i } ^ { * } , z _ { i } , i \\in [ m ] )\n$$",
1682
+ "text_format": "latex",
1683
+ "bbox": [
1684
+ 364,
1685
+ 352,
1686
+ 632,
1687
+ 375
1688
+ ],
1689
+ "page_idx": 12
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "where the random variables $x _ { i } ^ { * } , z _ { i }$ are all mutually independent. Note that the arguments that $f$ is a function of are all independent variables, so we can apply McDiarmid’s inequality. Towards that, let’s denote by $z _ { - i }$ the vector of all inputs to $f$ , except for $z _ { i }$ . Notice that ",
1694
+ "bbox": [
1695
+ 176,
1696
+ 376,
1697
+ 821,
1698
+ 419
1699
+ ],
1700
+ "page_idx": 12
1701
+ },
1702
+ {
1703
+ "type": "equation",
1704
+ "img_path": "images/29c3210411dc82773d75cde462ada1b6fb01be1e76c1afc3c536597f25a2a82a.jpg",
1705
+ "text": "$$\n| f ( z _ { - i } , z _ { i } ) - f ( z _ { - i } , \\tilde { z } _ { i } ) | \\leq \\frac { 1 } { m } , \\forall i \\in [ m ]\n$$",
1706
+ "text_format": "latex",
1707
+ "bbox": [
1708
+ 364,
1709
+ 422,
1710
+ 633,
1711
+ 453
1712
+ ],
1713
+ "page_idx": 12
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "(as changing $z _ { i }$ to $\\tilde { z } _ { i }$ only affect one out of the $m$ terms in $E _ { z \\sim T } \\phi ( D ( G ( z ) , z ) ) )$ . Analogously we have ",
1718
+ "bbox": [
1719
+ 174,
1720
+ 455,
1721
+ 823,
1722
+ 483
1723
+ ],
1724
+ "page_idx": 12
1725
+ },
1726
+ {
1727
+ "type": "equation",
1728
+ "img_path": "images/5fa67049bbc5a0ceb65b8eabe1f7d6a3907cd435cc584d19a70536c819372f7c.jpg",
1729
+ "text": "$$\n| f ( x _ { - i } ^ { * } , x _ { i } ^ { * } ) - f ( x _ { - i } ^ { * } , \\tilde { x } _ { i } ^ { * } ) | \\leq \\frac { 1 } { m } , \\forall i \\in [ m ]\n$$",
1730
+ "text_format": "latex",
1731
+ "bbox": [
1732
+ 356,
1733
+ 479,
1734
+ 640,
1735
+ 510
1736
+ ],
1737
+ "page_idx": 12
1738
+ },
1739
+ {
1740
+ "type": "text",
1741
+ "text": "Denoting $R _ { D , T , G } = f ( x _ { i } ^ { * } , z _ { i } , i \\in [ m ] ) - \\mathbb { E } _ { T , G } [ f ( x _ { i } ^ { * } , z _ { i } , i \\in [ m ] ) ]$ , by McDiarmid we get ",
1742
+ "bbox": [
1743
+ 171,
1744
+ 517,
1745
+ 759,
1746
+ 535
1747
+ ],
1748
+ "page_idx": 12
1749
+ },
1750
+ {
1751
+ "type": "equation",
1752
+ "img_path": "images/423026c15b84beea4db2e5e1d9333d501d42863b89b3a33976fa3d8e666c4406.jpg",
1753
+ "text": "$$\n\\operatorname* { P r } _ { T , G } ( | R _ { D , T , G } | \\geq \\epsilon ) \\leq \\exp ( - \\Omega ( m \\epsilon ^ { 2 } ) )\n$$",
1754
+ "text_format": "latex",
1755
+ "bbox": [
1756
+ 372,
1757
+ 539,
1758
+ 625,
1759
+ 564
1760
+ ],
1761
+ "page_idx": 12
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "text": "Building a $\\frac { \\epsilon } { L L _ { \\phi } }$ -net for the discriminators and union bounding over the points in the net, we get that $\\mathrm { P r } _ { T , G } ( \\exists D , | \\tilde { R _ { D , T , G } } | \\geq \\epsilon / 2 ) \\leq \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) )$ . On the other hand, we also have ",
1766
+ "bbox": [
1767
+ 173,
1768
+ 568,
1769
+ 825,
1770
+ 602
1771
+ ],
1772
+ "page_idx": 12
1773
+ },
1774
+ {
1775
+ "type": "equation",
1776
+ "img_path": "images/3464ec0a90e6ed136dd138a85dc0eb7085f2d2afc858e639bedbc96f4be6005d.jpg",
1777
+ "text": "$$\n\\operatorname* { P r } _ { T , G } ( \\exists D , | R _ { D , T , G } | \\ge \\epsilon / 2 ) = \\underset { G } { \\mathbb { E } } [ \\operatorname* { P r } ( \\exists D , | R _ { D , T , G } | \\ge \\epsilon ) ]\n$$",
1778
+ "text_format": "latex",
1779
+ "bbox": [
1780
+ 315,
1781
+ 606,
1782
+ 681,
1783
+ 628
1784
+ ],
1785
+ "page_idx": 12
1786
+ },
1787
+ {
1788
+ "type": "text",
1789
+ "text": "so by Markov’s inequality, with probability $1 - \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) )$ over the choice of $G$ , , ",
1790
+ "bbox": [
1791
+ 171,
1792
+ 633,
1793
+ 781,
1794
+ 650
1795
+ ],
1796
+ "page_idx": 12
1797
+ },
1798
+ {
1799
+ "type": "equation",
1800
+ "img_path": "images/8fff647684f1dde6ee4fe93ebafd94147d58b81402052cda28ca4cf298312631.jpg",
1801
+ "text": "$$\n\\operatorname* { P r } _ { T } ( \\exists D , | R _ { D , T , G } | \\ge \\epsilon / 2 ) ] \\le \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) )\n$$",
1802
+ "text_format": "latex",
1803
+ "bbox": [
1804
+ 326,
1805
+ 654,
1806
+ 669,
1807
+ 676
1808
+ ],
1809
+ "page_idx": 12
1810
+ },
1811
+ {
1812
+ "type": "text",
1813
+ "text": "Let us denote by ${ \\tilde { T } } ( G )$ the sets $T$ , s.t. $\\forall D , | R _ { D , T , G } | ~ \\le ~ \\epsilon / 2$ . Then, with probability $1 \\ : -$ $\\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) )$ ) over the choice of $G$ , we have that for all $D$ of capacity at most $p$ , ",
1814
+ "bbox": [
1815
+ 173,
1816
+ 681,
1817
+ 825,
1818
+ 712
1819
+ ],
1820
+ "page_idx": 12
1821
+ },
1822
+ {
1823
+ "type": "equation",
1824
+ "img_path": "images/feab6bf4b47640019d53b7d5cee76fb279cc81fe450f2ee0f5cb779065c9de38.jpg",
1825
+ "text": "$$\n\\begin{array} { r l } & { \\underset { T \\leq r \\mathcal { T } } { \\mathbb { E } } \\ \\underset { \\mathcal { F } ^ { \\prime } \\times T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { G , T \\leq r \\mathcal { T } } { \\mathbb { E } } \\ \\underset { \\mathcal { E } \\times T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | } \\\\ & { \\leq \\displaystyle \\int _ { T \\in \\bar { T } ( G _ { x } ) } \\ \\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { G , T \\leq r \\mathcal { T } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | d T _ { n c } ( T ) } \\\\ & { + \\displaystyle \\int _ { T \\not \\in \\bar { T } ( G _ { x } ) } \\ \\underset { z \\sim T } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { G , T \\leq r \\mathcal { T } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | d T _ { n c } ( T ) } \\\\ & { \\leq \\epsilon / 2 + \\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) ) } \\\\ & { \\leq \\epsilon / 2 + O ( ( \\epsilon / \\Delta ) ^ { p } ) } \\\\ & { \\leq \\epsilon } \\end{array}\n$$",
1826
+ "text_format": "latex",
1827
+ "bbox": [
1828
+ 263,
1829
+ 715,
1830
+ 732,
1831
+ 867
1832
+ ],
1833
+ "page_idx": 12
1834
+ },
1835
+ {
1836
+ "type": "text",
1837
+ "text": "which is what we want. ",
1838
+ "bbox": [
1839
+ 173,
1840
+ 887,
1841
+ 328,
1842
+ 902
1843
+ ],
1844
+ "page_idx": 12
1845
+ },
1846
+ {
1847
+ "type": "text",
1848
+ "text": "With these in mind, we can prove the main theorem: ",
1849
+ "bbox": [
1850
+ 176,
1851
+ 103,
1852
+ 516,
1853
+ 118
1854
+ ],
1855
+ "page_idx": 13
1856
+ },
1857
+ {
1858
+ "type": "text",
1859
+ "text": "Proof of Theorem 3. From Lemma D.1 and Lemma D.2 we get that with probability 1 − $\\exp ( - \\Omega ( p \\log ( \\Delta / \\epsilon ) ) )$ ) over the choice of $G$ , ",
1860
+ "bbox": [
1861
+ 173,
1862
+ 133,
1863
+ 823,
1864
+ 164
1865
+ ],
1866
+ "page_idx": 13
1867
+ },
1868
+ {
1869
+ "type": "equation",
1870
+ "img_path": "images/db117dd10efdf231f6fff7b8689915cafea465f5437c2e0fbfaa52680a79fad4.jpg",
1871
+ "text": "$$\n| \\underset { z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) - \\underset { G , T \\sim \\mathcal { T } _ { G } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) | \\leq \\epsilon\n$$",
1872
+ "text_format": "latex",
1873
+ "bbox": [
1874
+ 326,
1875
+ 170,
1876
+ 669,
1877
+ 194
1878
+ ],
1879
+ "page_idx": 13
1880
+ },
1881
+ {
1882
+ "type": "text",
1883
+ "text": "for all discriminators $D$ of capacity at most $p$ . On the other hand, it’s easy to see that ",
1884
+ "bbox": [
1885
+ 173,
1886
+ 200,
1887
+ 730,
1888
+ 217
1889
+ ],
1890
+ "page_idx": 13
1891
+ },
1892
+ {
1893
+ "type": "equation",
1894
+ "img_path": "images/6751c0a949652d192282d36162c9e1a8689329620e9f9af3e7e5cc7af004e413.jpg",
1895
+ "text": "$$\n\\underset { G , T \\sim \\mathcal { T } _ { G } } { \\mathbb { E } } \\phi ( D ( G ( z ) , z ) ) = \\underset { x \\sim \\tilde { \\mu } , z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( x \\circledast z , z ) )\n$$",
1896
+ "text_format": "latex",
1897
+ "bbox": [
1898
+ 330,
1899
+ 222,
1900
+ 666,
1901
+ 247
1902
+ ],
1903
+ "page_idx": 13
1904
+ },
1905
+ {
1906
+ "type": "text",
1907
+ "text": "Furthermore, ",
1908
+ "bbox": [
1909
+ 173,
1910
+ 253,
1911
+ 261,
1912
+ 268
1913
+ ],
1914
+ "page_idx": 13
1915
+ },
1916
+ {
1917
+ "type": "equation",
1918
+ "img_path": "images/c3c5f15cb97927e768fd1bff8e26a4f67c4c7d771a92ab5f7cdffac36d90a2f2.jpg",
1919
+ "text": "$$\n\\underset { x \\sim \\mu } { \\mathbb { E } } \\phi ( D ( x , E ( x ) ) ) = \\underset { x \\sim \\tilde { \\mu } , z \\sim \\nu } { \\mathbb { E } } \\phi ( D ( x \\circledast z , z ) )\n$$",
1920
+ "text_format": "latex",
1921
+ "bbox": [
1922
+ 341,
1923
+ 266,
1924
+ 655,
1925
+ 291
1926
+ ],
1927
+ "page_idx": 13
1928
+ },
1929
+ {
1930
+ "type": "text",
1931
+ "text": "by the definition of $E ( x )$ , which proves the statement of the theorem. ",
1932
+ "bbox": [
1933
+ 174,
1934
+ 295,
1935
+ 627,
1936
+ 310
1937
+ ],
1938
+ "page_idx": 13
1939
+ },
1940
+ {
1941
+ "type": "text",
1942
+ "text": "D.2 REPRESENTABILITY RESULTS ",
1943
+ "text_level": 1,
1944
+ "bbox": [
1945
+ 176,
1946
+ 348,
1947
+ 423,
1948
+ 363
1949
+ ],
1950
+ "page_idx": 13
1951
+ },
1952
+ {
1953
+ "type": "text",
1954
+ "text": "In this section, we show that a generator $G$ of the type we described in the previous section can be implemented easily using a ReLU network. The encoder can be parametrized by the set $x _ { 1 } ^ { * }$ ${ } _ { 1 } ^ { * } , x _ { 2 } ^ { * } , \\ldots , x _ { m } ^ { * }$ of “memorized” training samples. The high-level overview of the network is rather obvious: we partition $\\mathbb { R } ^ { \\tilde { d } }$ into equal-measure blocks; subsequently, for a noise sample $z$ , we determine which block it belongs to, and output the corresponding sample $\\boldsymbol { x } _ { i } ^ { * }$ , which is memorized in the weights of the network. ",
1955
+ "bbox": [
1956
+ 173,
1957
+ 373,
1958
+ 825,
1959
+ 462
1960
+ ],
1961
+ "page_idx": 13
1962
+ },
1963
+ {
1964
+ "type": "text",
1965
+ "text": "Theorem 5. Let $G$ be the generator determined by the samples $x _ { 1 } ^ { * }$ , $x _ { 2 } ^ { * } , \\ldots , x _ { m } ^ { * } \\in { \\mathbb { R } } ^ { d }$ , i.e. $G ( z ) =$ $x _ { i n d ( z ) } ^ { * } \\circledast z$ . For any , there exists a ReLU network with $O ( m d )$ non-zero weights, which implements a function $\\tilde { G }$ , s.t. $\\Vert \\tilde { G } ( \\nu ) - G ( \\nu ) \\Vert _ { T V } \\leq \\delta$ , where $\\Vert \\cdot \\Vert _ { T V }$ denotes total variation distance.6 ",
1966
+ "bbox": [
1967
+ 173,
1968
+ 465,
1969
+ 825,
1970
+ 518
1971
+ ],
1972
+ "page_idx": 13
1973
+ },
1974
+ {
1975
+ "type": "text",
1976
+ "text": "Proof. The construction of the network is pictorially depicted on Figure D.2. We expand on each of the individual parts of the network. ",
1977
+ "bbox": [
1978
+ 174,
1979
+ 545,
1980
+ 823,
1981
+ 574
1982
+ ],
1983
+ "page_idx": 13
1984
+ },
1985
+ {
1986
+ "type": "text",
1987
+ "text": "First, we show how to implement the partitioning into sectors. The easiest way to do this is to use the fact that the coordinates of a spherical Gaussian are independent, and simply partition each dimension separately into equimeasure blocks, depending on the value of $| z _ { i } |$ : the absolute value of the $i$ -th coordinate. Concretely, without loss of generality, let’s assume $m \\stackrel { \\cdot } { = } k ^ { \\tilde { d } }$ , for some $k \\in \\mathbb N$ . Let us denote by $\\tau _ { i } \\in \\mathbb { R } : i \\in \\dot { [ k ] }$ , $\\tau _ { 0 } = 0$ the real-numbers, s.t. $\\begin{array} { r } { \\operatorname* { P r } _ { z _ { i } \\sim \\nu _ { i } } [ | z _ { i } | \\in ( \\tau _ { i - 1 } , \\tau _ { i } ) ] = \\frac { 1 } { k } } \\end{array}$ . . We will associate to each $d$ -tuple $( i _ { 1 } , i _ { 2 } , \\dots , i _ { d } ) \\in [ k ] ^ { d }$ the cell $\\{ z \\in \\mathbb { R } ^ { \\tilde { d } } : | z _ { j } | \\in ( \\tau _ { i _ { j } - 1 } , \\tau _ { i _ { j } } ) , \\forall j \\in [ \\tilde { d } ] \\}$ . These blocks clearly equipartition $\\mathbb { R } ^ { \\tilde { d } }$ with respect to the Gaussian measure. ",
1988
+ "bbox": [
1989
+ 173,
1990
+ 580,
1991
+ 826,
1992
+ 691
1993
+ ],
1994
+ "page_idx": 13
1995
+ },
1996
+ {
1997
+ "type": "text",
1998
+ "text": "Inferring the $\\tilde { d }$ -tuple after calculating the absolute values $| z _ { j } |$ (which is trivially representable as a ReLU network as $\\operatorname* { m a x } ( 0 , z _ { j } ) + \\operatorname* { m a x } ( 0 , - z _ { j } ) )$ can be done using the “selector” circuit introduced in ‘Arora et al. (2017). Namely, by Lemma 3 there, there exists a ReLU network with $O ( k )$ nonzero weights that takes $| z _ { j } |$ as input and outputs $k$ numbers $( b _ { j , 1 } , b _ { j , 2 } , \\dots , b _ { j , k } )$ , s.t. $b _ { j , i _ { j } } = 1$ and $b _ { j , l } = 0 , j \\neq i _ { j }$ with probability $1 - \\delta$ over the randomness of $z _ { j } , j \\in [ \\tilde { d } ]$ . ",
1999
+ "bbox": [
2000
+ 173,
2001
+ 698,
2002
+ 825,
2003
+ 775
2004
+ ],
2005
+ "page_idx": 13
2006
+ },
2007
+ {
2008
+ "type": "text",
2009
+ "text": "Since we care about $G ( \\nu )$ and $\\tilde { G } ( \\nu )$ being close in total variation distance only, we can focus on the case where all $z _ { j }$ are such that $b _ { j , i _ { j } } = 1$ and $b _ { j , l } = 0 , j \\neq i _ { j }$ for some indices $i _ { j }$ . ",
2010
+ "bbox": [
2011
+ 174,
2012
+ 781,
2013
+ 821,
2014
+ 813
2015
+ ],
2016
+ "page_idx": 13
2017
+ },
2018
+ {
2019
+ "type": "text",
2020
+ "text": "We wish to now “turn on” the memorized weights for the corresponding block in the partition. To do this, we first pass the calculated $\\tilde { d }$ -tuple through a network which interprets it as a number in $k$ -ary and calculates it’s equivalent decimal representation. This is easily implementable as a ReLU network with $O ( \\tilde { d } k )$ weights calculating $\\begin{array} { r } { L = \\sum _ { j = 1 } ^ { \\tilde { d } } k ^ { j } \\sum _ { l = 1 } ^ { k } b _ { j , l } i _ { j } } \\end{array}$ . Then, we use use a simple circuit with $O ( m )$ non-zero weights to output $m$ numbers $\\left( B _ { 1 } , B _ { 2 } , \\ldots , B _ { m } \\right)$ , s.t. $B _ { L } \\ = \\ 1$ and $B _ { i } = 0 , i \\neq L$ (implemented in the obvious way). The subnetwork of $B _ { i }$ will be responsiple for the $i$ -th memorized sample. ",
2021
+ "bbox": [
2022
+ 176,
2023
+ 818,
2024
+ 821,
2025
+ 848
2026
+ ],
2027
+ "page_idx": 13
2028
+ },
2029
+ {
2030
+ "type": "text",
2031
+ "text": "",
2032
+ "bbox": [
2033
+ 173,
2034
+ 102,
2035
+ 825,
2036
+ 181
2037
+ ],
2038
+ "page_idx": 14
2039
+ },
2040
+ {
2041
+ "type": "text",
2042
+ "text": "Namely, we attach to each coordinate $B _ { i }$ a curcuit with fan-out of degree $d$ , s.t. the weight of edge $j \\in [ d ]$ is $x _ { i , j } ^ { * }$ . Let’s denote these outputs as $F _ { i , j } , i \\in [ m ] , j \\in [ d ]$ and let ${ \\tilde { F } } _ { i } : i \\in [ d ]$ be defined as $\\begin{array} { r } { \\tilde { F } _ { i } = \\sum _ { j = 1 } ^ { m } F _ { i , j } } \\end{array}$ . It’s easy to see since $B _ { i } = 0 , i \\neq L$ that $\\tilde { F } _ { i } = x _ { L , i } ^ { * }$ . ",
2043
+ "bbox": [
2044
+ 173,
2045
+ 186,
2046
+ 825,
2047
+ 238
2048
+ ],
2049
+ "page_idx": 14
2050
+ },
2051
+ {
2052
+ "type": "text",
2053
+ "text": "Finally, the operation $\\circledast$ can be trivially implemented using additional $d$ weights: we simply connect each output $i$ either to $z _ { \\frac { i } { \\lfloor \\frac { d } { d } \\rfloor } }$ if $i \\equiv 0 ( \\mathrm { \\ m o d } \\lfloor \\frac { d } { \\tilde { d } } \\rfloor )$ or to $\\tilde { F } _ { i }$ otherwise. ",
2054
+ "bbox": [
2055
+ 173,
2056
+ 243,
2057
+ 825,
2058
+ 285
2059
+ ],
2060
+ "page_idx": 14
2061
+ },
2062
+ {
2063
+ "type": "text",
2064
+ "text": "Adding up the sizes of the individual components, we see the total number of non-zero weights is $O ( m d )$ , as we wanted. ",
2065
+ "bbox": [
2066
+ 173,
2067
+ 290,
2068
+ 823,
2069
+ 319
2070
+ ],
2071
+ "page_idx": 14
2072
+ },
2073
+ {
2074
+ "type": "image",
2075
+ "img_path": "images/8d4bc8efa8ef04438e1abc181556be8beb9ee6ab17819dd3dd628f1eec7915e0.jpg",
2076
+ "image_caption": [
2077
+ "Figure 6: A ReLU implementation of a memorizing generator "
2078
+ ],
2079
+ "image_footnote": [],
2080
+ "bbox": [
2081
+ 364,
2082
+ 127,
2083
+ 683,
2084
+ 621
2085
+ ],
2086
+ "page_idx": 15
2087
+ }
2088
+ ]
parse/train/BJehNfW0-/BJehNfW0-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJehNfW0-/BJehNfW0-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJgqqsAct7/BJgqqsAct7.md ADDED
@@ -0,0 +1,472 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NON-VACUOUS GENERALIZATION BOUNDS AT THE IM-AGENET SCALE: A PAC-BAYESIAN COMPRESSIONAPPROACH
2
+
3
+ Wenda Zhou
4
+ Columbia University
5
+ New York, NY
6
+ wz2335@columbia.edu
7
+ Victor Veitch
8
+ Columbia University
9
+ New York, NY
10
+ victorveitch@gmail.com
11
+
12
+ Morgane Austern Columbia University New York, NY ma3293@columbia.edu
13
+
14
+ Ryan P. Adams Princeton University Princeton, NJ rpa@princeton.edu
15
+
16
+ Peter Orbanz
17
+ Columbia University
18
+ New York, NY
19
+ porbanz@stat.columbia.edu
20
+
21
+ # ABSTRACT
22
+
23
+ Modern neural networks are highly overparameterized, with capacity to substantially overfit to training data. Nevertheless, these networks often generalize well in practice. It has also been observed that trained networks can often be “compressed” to much smaller representations. The purpose of this paper is to connect these two empirical observations. Our main technical result is a generalization bound for compressed networks based on the compressed size that, combined with off-theshelf compression algorithms, leads to state-of-the-art generalization guarantees. In particular, we provide the first non-vacuous generalization guarantees for realistic architectures applied to the ImageNet classification problem. Additionally, we show that compressibility of models that tend to overfit is limited. Empirical results show that an increase in overfitting increases the number of bits required to describe a trained network.
24
+
25
+ # 1 INTRODUCTION
26
+
27
+ A pivotal question in machine learning is why deep networks perform well despite overparameterization. These models often have many more parameters than the number of examples they are trained on, which enables them to drastically overfit to training data (Zhang et al., 2017a). In common practice, however, such networks perform well on previously unseen data.
28
+
29
+ Explaining the generalization performance of neural networks is an active area of current research. Attempts have been made at adapting classical measures such as VC-dimension (Harvey et al., 2017) or margin/norm bounds (Neyshabur et al., 2018; Bartlett et al., 2017), but such approaches have yielded bounds that are vacuous by orders of magnitudes. Other authors have explored modifications of the training procedure to obtain networks with provable generalization guarantees (Dziugaite & Roy, 2017; 2018). Such procedures often differ substantially from standard procedures used by practitioners, and empirical evidence suggests that they fail to improve performance in practice (Wilson et al., 2017).
30
+
31
+ We begin with an empirical observation: it is often possible to “compress” trained neural networks by finding essentially equivalent models that can be described in a much smaller number of bits; see Cheng et al. (2018) for a survey. Inspired by classical results relating small model size and generalization performance (often known as Occam’s razor), we establish a new generalization bound based on the effective compressed size of a trained neural network. Combining this bound with off-the-shelf compression schemes yields the first non-vacuous generalization bounds in practical problems. The main contribution of the present paper is the demonstration that, unlike many other measures, this measure is effective in the deep-learning regime.
32
+
33
+ Generalization bound arguments typically identify some notion of complexity of a learning problem, and bound generalization error in terms of that complexity. Conceptually, the notion of complexity we identify is:
34
+
35
+ complexity $=$ compressed size − remaining structure.
36
+
37
+ The first term on the right-hand side represents the link between generalization and explicit compression. The second term corrects for superfluous structure that remains in the compressed representation. For instance, the predictions of trained neural networks are often robust to perturbations of the network weights. Thus, a representation of a neural network by its weights carries some irrelevant information. We show that accounting for this robustness can substantially reduce effective complexity.
38
+
39
+ Our results allow us to derive explicit generalization guarantees using off-the-shelf neural network compression schemes. In particular:
40
+
41
+ • The generalization bound can be evaluated by compressing a trained network, measuring the effective compressed size, and substituting this value into the bound. • Using off-the-shelf neural network compression schemes with this recipe yields bounds that are state-of-the-art, including the first non-vacuous bounds for modern convolutional neural nets.
42
+
43
+ The above result takes a compression algorithm and outputs a generalization bound on nets compressed by that algorithm. We provide a complementary result by showing that if a model tends to overfit then there is an absolute limit on how much it can be compressed. We consider a classifier as a (measurable) function of a random training set, so the classifier is viewed as a random variable. We show that the entropy of this random variable is lower bounded by a function of the expected degree of overfitting. Additionally, we use the randomization tests of Zhang et al. (2017a) to show empirically that increased overfitting implies worse compressibility, for a fixed compression scheme.
44
+
45
+ The relationship between small model size and generalization is hardly new: the idea is a variant of Occam’s razor, and has been used explicitly in classical generalization theory (Rissanen, 1986; Blumer et al., 1987; MacKay, 1992; Hinton & van Camp, 1993; Rasmussen & Ghahramani, 2001). However, the use of highly overparameterized models in deep learning seems to directly contradict the Occam principle. Indeed, the study of generalization and the study of compression in deep learning has been largely disjoint; the later has been primarily motivated by computational and storage limitations, such as those arising from applications on mobile devices (Cheng et al., 2018). Our results show that Occam type arguments remain powerful in the deep learning regime. The link between compression and generalization is also used in work by Arora et al. (2018), who study compressibility arising from a form of noise stability. Our results are substantially different, and closer in spirit to the work of Dziugaite & Roy (2017); see Section 3 for a detailed discussion.
46
+
47
+ Zhang et al. (2017a) study the problem of generalization in deep learning empirically. They observe that standard deep net architectures—which generalize well on real-world data—are able to achieve perfect training accuracy on randomly labelled data. Of course, in this case the test error is no better than random guessing. Accordingly, any approach to controlling generalization error of deep nets must selectively and preferentially bound the generalization error of models that are actually plausible outputs of the training procedure applied to real-world data. Following Langford & Caruana (2002); Dziugaite & Roy (2017); Neyshabur et al. (2018), we make use of the PAC-Bayesian framework (McAllester, 1999; Catoni, 2007; McAllester, 2013). This framework allows us to encode prior beliefs about which learned models are plausible as a (prior) distribution $\pi$ over possible parameter settings. The main challenge in developing a bound in the PAC-Bayes framework bound is to articulate a distribution $\pi$ that encodes the relative plausibilities of possible outputs of the training procedure. The key insight is that, implicitly, any compression scheme is a statement about model plausibilities: good compression is achieved by assigning short codes to the most probable models, and so the probable models are those with short codes.
48
+
49
+ # 2 GENERALIZATION AND THE PAC-BAYESIAN PRINCIPLE
50
+
51
+ In this section, we recall some background and notation from statistical learning theory. Our aim is to learn a classifier using data examples. Each example $( x , y )$ consists of some features $x \in \mathcal { X }$ and a label $y \in \mathcal { V }$ . It is assumed that the data are drawn identically and independently from some data generating distribution, $( X _ { i } , Y _ { i } ) \stackrel { i i d } { \sim } \mathcal { D }$ . The goal of learning is to choose a hypothesis $h : \mathcal { X } \to \mathcal { Y }$ that predicts the label from the features. The quality of the prediction is measured by specifying some loss function $L$ ; the value $L ( h ( x ) , y )$ is a measure of the failure of hypothesis $h$ to explain example $( x , y )$ . The overall quality of a hypothesis $h$ is measured by the risk under the data generating distribution:
52
+
53
+ $$
54
+ L ( h ) = \mathbb { E } _ { ( X , Y ) \sim { \mathcal { D } } } [ L ( h ( X ) , Y ) ] .
55
+ $$
56
+
57
+ Generally, the data generating distribution is unknown. Instead, we assume access to training data $S _ { n } \stackrel { \cdot } { = } \{ ( x _ { 1 } , y _ { 1 } ) , \stackrel { - } { , } . . . , ( x _ { n } , \stackrel { \cdot } { y } _ { n } ) \}$ , a sample of $n$ points drawn i.i.d. from the data generating distribution. The true risk is estimated by the empirical risk:
58
+
59
+ $$
60
+ \begin{array} { r } { \hat { L } ( h ) = \frac { 1 } { n } \sum _ { ( x , y ) \in S } L ( h ( x ) , y ) . } \end{array}
61
+ $$
62
+
63
+ The task of the learner is to use the training data to choose a hypothesis $\hat { h }$ from among some prespecified set of possible hypothesis $\mathcal { H }$ , the hypothesis class. The standard approach to learning is to choose a hypothesis $\hat { h }$ that (approximately) minimizes the empirical risk. This induces a dependency between the choice of hypothesis and the estimate of the hypothesis’ quality. Because of this, it can happen that $\hat { h }$ overfits to the training data: $\hat { L } ( \hat { h } ) \ll L ( \hat { h } )$ . The generalization error $L ( \hat { h } ) - \hat { L } ( \hat { h } )$ measures the degree of overfitting. In this paper, we consider an image classification problem, where $x _ { i }$ is an image and $y _ { i }$ the associated label for that image. The selected hypothesis is a deep neural network. We mostly consider the $0 - 1$ loss, that is, $L ( h \bar { ( } x ) , y ) = 0$ if the prediction is correct and $L ( h ( x ) , y ) = 1$ otherwise.
64
+
65
+ We use the PAC-Bayesian framework to establish bounds on generalization error. In general, a PACBayesian bound attempts to control the generalization error of a stochastic classifier by measuring the discrepancy between a pre-specified random classifier (often called prior), and the classifier of interest. Conceptually, PAC-Bayes bounds have the form:
66
+
67
+ $$
68
+ \mathrm { g e n e r a l i z a t i o n } \mathrm { e r r o r } \mathrm { o f } \rho \le O \left( \sqrt { { \mathrm { K L } } ( \rho , \pi ) / n } \right) ,
69
+ $$
70
+
71
+ where $n$ is the number of training examples, $\pi$ denotes the prior, and $\rho$ denotes the classifier of interest (often called posterior).
72
+
73
+ More formally, we write $L ( \rho ) = \mathbb { E } _ { h \sim \rho } [ L ( h ) ]$ for the risk of the random estimator. The fundamental bound in PAC-Bayesian theory is (Catoni, 2007, Thm. 1.2.6):
74
+
75
+ Theorem 2.1 (PAC-Bayes). Let $L$ be a $\{ 0 , 1 \}$ -valued loss function, let $\pi$ be some probability measure on the hypothesis class, and let $\alpha > 1 , \epsilon > 0$ . Then, with probability at least $1 - \epsilon$ over the distribution of the sample:
76
+
77
+ $$
78
+ L ( \rho ) \leq \operatorname* { i n f } _ { \lambda > 1 } \Phi _ { \lambda / n } ^ { - 1 } \left\{ { \hat { L } } ( \rho ) + { \frac { \alpha } { \lambda } } \left[ { \mathrm { K L } } ( \rho , \pi ) - \log \epsilon + 2 \log \left( { \frac { \log ( \alpha ^ { 2 } \lambda ) } { \log \alpha } } \right) \right] \right\} ,
79
+ $$
80
+
81
+ where we define $\Phi _ { \gamma } ^ { - 1 } \ : a s$
82
+
83
+ $$
84
+ \Phi _ { \gamma } ^ { - 1 } ( x ) = \frac { 1 - e ^ { - \gamma x } } { 1 - e ^ { - \gamma } } .
85
+ $$
86
+
87
+ Remark 2.2. The above formulation of the PAC-Bayesian theorem is somewhat more opaque than other formulations (e.g., McAllester, 2003; 2013; Neyshabur et al., 2018). This form is significantly tighter when $\operatorname { K L } / n$ is large. See Bégin et al. (2014); Laviolette (2017) for a unified treatment of PAC-Bayesian bounds.
88
+
89
+ The quality of a PAC-Bayes bound depends on the discrepancy between the PAC-Bayes prior $\pi$ — encoding the learned models we think are plausible—and $\rho$ , which is the actual output of the learning procedure. The main challenge is finding good choices for the PAC-Bayes prior $\pi$ , for which the value of $\operatorname { K L } ( \rho , \pi )$ is both small and computable.
90
+
91
+ # 3 RELATIONSHIP TO PREVIOUS WORK
92
+
93
+ Generalization. The question of which properties of real-world networks explain good generalization behavior has attracted considerable attention (Langford, 2002; Langford & Caruana, 2002; Hinton & van Camp, 1993; Hochreiter & Schmidhuber, 1997; Baldassi et al., 2015; 2016; Chaudhari et al., 2017; Keskar et al., 2017; Dziugaite & Roy, 2017; Schmidt-Hieber, 2017; Neyshabur et al.,
94
+
95
+ 2017; 2018; Arora et al., 2018); see Arora (2017) for a review of recent advances. Such results typically identify a property of real-world networks, formalize it as a mathematical definition, and then use this definition to prove a generalization bound. Generally, the bounds are very loose relative to the true generalization error, which can be estimated by evaluating performance on held-out data. Their purpose is not to quantify the actual generalization error, but rather to give qualitative evidence that the property underpinning the generalization bound is indeed relevant to generalization performance. The present paper can be seen in this tradition: we propose compressibility as a key signature of performant real-world deep nets, and we give qualitative evidence for this thesis in the form of a generalization bound.
96
+
97
+ The idea that compressibility leads to generalization has a long history in machine learning. Minimum description length (MDL) is an early formalization of the idea (Rissanen, 1986). Hinton & van Camp (1993) applied MDL to very small networks, already recognizing the importance of weight quantization and stochasticity. More recently, Arora et al. (2018) consider the connection between compression and generalization in large-scale deep learning. The main idea is to compute a measure of noise-stability of the network, and show that it implies the existence of a simpler network with nearly the same performance. A variant of a known compression bound (see (McAllester, 2013) for a PAC-Bayesian formulation) is then applied to bound the generalization error of this simpler network in terms of its code length. In contrast, the present paper develops a tool to leverage existing neural network compression algorithms to obtain strong generalization bounds. The two papers are complementary: we establish non-vacuous bounds, and hence establish a quantitative connection between generalization and compression. An important contribution of Arora et al. (2018) is obtaining a quantity measuring the compressibility of a neural network; in contrast, we apply a compression algorithm and witness its performance. We note that their compression scheme is very different from the sparsity-inducing compression schemes (Cheng et al., 2018) we use in our experiments. Which properties of deep networks allow them to be sparsely compressed remains an open question.
98
+
99
+ To strengthen a naïve Occam bound, we use the idea that deep networks are insensitive to mild perturbations of their weights, and that this insensitivity leads to good generalization behavior. This concept has also been widely studied (e.g., Langford, 2002; Langford & Caruana, 2002; Hinton & van Camp, 1993; Hochreiter & Schmidhuber, 1997; Baldassi et al., 2015; 2016; Chaudhari et al., 2017; Keskar et al., 2017; Dziugaite & Roy, 2017; Neyshabur et al., 2018). As we do, some of these papers use a PAC-Bayes approach (Langford & Caruana, 2002; Dziugaite & Roy, 2017; Neyshabur et al., 2018). Neyshabur et al. (2018) arrive at a bound for non-random classifiers by computing the tolerance of a given deep net to noise, and bounding the difference between that net and a stochastic net to which they apply a PAC-Bayes bound. Like the present paper, Langford & Caruana (2002); Dziugaite & Roy (2017) work with a random classifier given by considering a normal distribution over the weights centered at the output of the training procedure. We borrow the observation of Dziugaite & Roy (2017) that the stochastic network is a convenient formalization of perturbation robustness.
100
+
101
+ The approaches to generalization most closely related to ours are, in summary:
102
+
103
+ <table><tr><td>Reference</td><td>Structure</td><td>Non-Vacuous</td><td></td></tr><tr><td></td><td></td><td>MNIST</td><td>ImageNet</td></tr><tr><td>Dziugaite &amp; Roy (2017)</td><td>Perturbation Robustness Perturbation Robustness</td><td>√</td><td>×</td></tr><tr><td>Neyshabur et al. (2018)</td><td></td><td>X</td><td>×</td></tr><tr><td>Arora et al. (2018) Present paper</td><td>Compressibility (from Perturbation Robustness) Compressibility and Perturbation Robustness</td><td>X</td><td>X</td></tr></table>
104
+
105
+ These represent the best known generalization guarantees for deep neural networks. Our bound provides the first non-vacuous generalization guarantee for the ImageNet classification task, the de facto standard problem for which deep learning dominates. It is also largely agnostic to model architecture: we apply the same argument to both fully connected and convolutional networks. This is in contrast to some existing approaches that require extra analysis to extend bounds for fully connected networks to bounds for convolutional networks (Neyshabur et al., 2018; Konstantinos et al.; Arora et al., 2018).
106
+
107
+ Compression. The effectiveness of our work relies on the existence of good neural network compression algorithms. Neural network compression has been the subject of extensive interest in the last few years, motivated by engineering requirements such as computational or power constraints. We apply a relatively simple strategy in this paper in the line of Han et al. (2016), but we note that our bound is compatible with most forms of compression. See Cheng et al. (2018) for a survey of recent results in this field.
108
+
109
+ # 4 MAIN RESULT
110
+
111
+ We first describe a simple Occam’s razor type bound that translates the quality of a compression into a generalization bound for the compressed model. The idea is to choose the PAC-Bayes prior $\pi$ such that greater probability mass is assigned to models with short code length. In fact, the bound stated in this section may be obtained as a simple weighted union bound, and a variation is reported in McAllester (2013). However, embedding this bound in the PAC-Bayesian framework allows us to combine this idea, reflecting the explicit compressible structure of trained networks, with other ideas reflecting different properties of trained networks.
112
+
113
+ We consider a non-random classifier by taking the PAC-Bayes posterior $\rho$ to be a point mass at $\hat { h }$ , the output of the training (plus compression) procedure. Recall that computing the PAC-Bayes bound effectively reduces to computing $\operatorname { K L } ( \rho , \pi )$ .
114
+
115
+ Theorem 4.1. Let $| h | _ { c }$ denote the number of bits required to represent hypothesis $h$ using some pre-specified coding c. Let $\rho$ denote the point mass at the compressed model $\hat { h }$ . Let m denote any probability measure on the positive integers. There exists a prior $\pi _ { c }$ such that:
116
+
117
+ $$
118
+ \begin{array} { r } { \mathrm { K L } ( \rho , \pi _ { c } ) \leq | \hat { h } | _ { c } \log 2 - \log ( m ( | \hat { h } | _ { c } ) ) . } \end{array}
119
+ $$
120
+
121
+ This result relies only on the quality of the chosen coding and is agnostic to whether a lossy compression is applied to the model ahead of time. In practice, the code $c$ is chosen to reflect some explicit structure—e.g., sparsity—that is imposed by a lossy compression.
122
+
123
+ Proof. Let $\mathcal { H } _ { c } \subseteq \mathcal { H }$ denote the set of estimators that correspond to decoded points, and note that $\hat { h } \in \mathcal { H } _ { c }$ by construction. Consider the measure $\pi _ { c }$ on $\mathcal { H } _ { c }$ :
124
+
125
+ $$
126
+ \pi _ { c } ( h ) = \frac { 1 } { Z } m ( | h | _ { c } ) 2 ^ { - | h | _ { c } } , \ \mathrm { w h e r e } \ Z = \sum _ { h \in \mathcal { H } _ { c } } m ( | h | _ { c } ) 2 ^ { - | h | _ { c } } .
127
+ $$
128
+
129
+ As $c$ is injective on $\mathcal { H } _ { c }$ , we have that $Z \leq 1$ . We may thus directly compute the KL-divergence from the definition to obtain the claimed result. □
130
+
131
+ Remark 4.2. To apply the bound in practice, we must make a choice of $m$ . A pragmatic solution is to simply consider a bound on the size of the model to be selected (e.g. in many cases it is reasonable to assume that the encoded model is smaller than $2 ^ { 6 4 }$ bytes, which is $2 ^ { 7 2 }$ bits), and then consider $m$ to be uniform over all possible lengths.
132
+
133
+ # 4.1 USING ROBUSTNESS TO WEIGHT PERTURBATIONS
134
+
135
+ The simple bound above applies to an estimator that is compressible in the sense that its encoded length with respect to some fixed code is short. However, such a strategy does not consider any structure on the hypothesis space $\mathcal { H }$ . In practice, compression schemes will often fail to exploit some structure, and generalization bounds can be (substantially) improved by accounting for this fact. We empirically observe that trained neural networks are often tolerant to low levels of discretization of the trained weights, and also tolerant to some low level of added noise in the trained weights. Additionally, quantization is an essential step in numerous compression strategies (Han et al., 2016). We construct a PAC-Bayes bound that reflects this structure.
136
+
137
+ This analysis requires a compression scheme specified in more detail. We assume that the output of the compression procedure is a triplet $\bar { ( S , C , Q ) }$ , where $S = \{ s _ { 1 } , \dotsc , s _ { k } \} \subseteq \{ 1 , \dotsc , p \}$ denotes the location of the non-zero weights, $C = \{ c _ { 1 } , \ldots , c _ { r } \} \subseteq \mathbb { R }$ is a codebook, and $Q = ( q _ { 1 } , \ldots , q _ { k } ) , q _ { i } \in \{ 1 , \ldots , r \}$ denotes the quantized values. Most state-of-the-art compression schemes can be formalized in this manner (Han et al., 2016).
138
+
139
+ Given such a triplet, we define the corresponding weight $w ( S , Q , C ) \in \mathbb { R } ^ { p }$ as:
140
+
141
+ $$
142
+ w _ { i } ( S , Q , C ) = { \left\{ \begin{array} { l l } { c _ { q _ { j } } } & { { \mathrm { ~ i f ~ } } i = s _ { j } , } \\ { 0 } & { { \mathrm { ~ o t h e r w i s e } } . } \end{array} \right. }
143
+ $$
144
+
145
+ Following Langford $\&$ Caruana (2002); Dziugaite & Roy (2017), we bound the generalization error of a stochastic estimator given by applying independent random normal noise to the nonzero weights of the network. Formally, we consider the (degenerate) multivariate normal centered at $w$ : $\rho \sim \mathcal { N } ( w , \sigma ^ { 2 } J )$ , with $J$ being a diagonal matrix such that $J _ { i i } = 1$ if $i \in S$ and $J _ { i i } = 0$ otherwise.
146
+
147
+ Theorem 4.3. Let $( S , C , Q )$ be the output of a compression scheme, and let $\rho _ { S , C , Q }$ be the stochastic estimator given by the weights decoded from the triplet and variance $\sigma ^ { 2 }$ . Let c denote some arbitrary (fixed) coding scheme and let m denote an arbitrary distribution on the positive integers. Then, for any $\tau > 0$ , there is some $P A C$ -Bayes prior $\pi$ such that:
148
+
149
+ $$
150
+ \begin{array} { l } { \displaystyle \mathrm { K L } ( \rho _ { S , C , Q } , \pi ) \leq ( k \lceil \log r \rceil + | S | _ { c } + | C | _ { c } ) \log 2 - \log m ( k \lceil \log r \rceil + | S | _ { c } + | C | _ { c } ) } \\ { \displaystyle \qquad + \sum _ { i = 1 } ^ { k } \mathrm { K L } \Big ( \mathrm { N o r m a l } ( c _ { q _ { i } } , \sigma ^ { 2 } ) , \sum _ { j = 1 } ^ { r } \mathrm { N o r m a l } ( c _ { j } , \tau ^ { 2 } ) \Big ) . } \end{array}
151
+ $$
152
+
153
+ Note that we have written the KL-divergence of a distribution with a unnormalized measure (the last term), and in particular this term may (and often will) be negative. We defer the construction of the prior $\pi$ and the proof of Theorem 4.3 to the supplementary material.
154
+
155
+ Remark 4.4. We may obtain the first term $k \lceil \log r \rceil + | S | _ { c } + | C | _ { c }$ from the simple Occam’s bound described in Theorem 4.1 by choosing the coding of the quantized values $Q$ as a simple array of integers of the correct bit length. The second term thus describes the adjustment (or number of bits we “gain back”) from considering neighbouring estimators.
156
+
157
+ # 5 GENERALIZATION BOUNDS IN PRACTICE
158
+
159
+ In this section we present examples combining our theoretical arguments with state-of-the-art neural network compression schemes.1 Recall that almost all other approaches to bounding generalization error of deep neural networks yield vacuous bounds for realistic problems. The one exception is Dziugaite & Roy (2017), which succeeds by retraining the network in order to optimize the generalization bound. We give two examples applying our generalization bounds to the models output by modern neural net compression schemes. In contrast to earlier results, this leads immediately to non-vacuous bounds on realistic problems. The strength of the Occam bound provides evidence that the connection between compressibility and generalization has substantive explanatory power.
160
+
161
+ We report $9 5 \%$ confidence bounds based on the measured effective compressed size of the networks. The bounds are achieved by combining the PAC-Bayes bound Theorem 2.1 with Theorem 4.3, showing that $\operatorname { K L } ( \rho , \pi )$ is bounded by the “effective compressed size”. We note a small technical modification: we choose the prior variance $\tau ^ { 2 }$ layerwise by a grid search, this adds a negligible contribution to the effective size (see Appendix A.1 for the technical details of the bound).
162
+
163
+ LeNet-5 on MNIST. Our first experiment is performed on the MNIST dataset, a dataset of $6 0 \mathrm { k }$ grayscale images of handwritten digits. We fit the LeNet-5 (LeCun et al., 1998) network, one of the first convolutional networks. LeNet-5 has two convolutional layers and two fully connected layers, for a total of $4 3 1 \mathrm { k }$ parameters.
164
+
165
+ We apply a pruning and quantization strategy similar to that described in Han et al. (2016). We prune the network using Dynamic Network Surgery (Guo et al., 2016), pruning all but $1 . 5 \%$ of the network weights. We then quantize the non-zero weights using a codebook with 4 bits. The location of the non-zero coordinates are stored in compressed sparse row format, with the index differences encoded using arithmetic compression.
166
+
167
+ We consider the stochastic classifier given by adding Gaussian noise to each non-zero coordinate before each forward pass. We add Gaussian noise with standard deviation equal to $5 \%$ of the difference between the largest and smallest weight in the filter. This results in a negligible drop in classification performance.We obtain a bound on the training error of $4 6 \%$ (with $9 \hat { 5 } \%$ confidence). The effective size of the compressed model is measured to be 6.23 KiB.
168
+
169
+ ImageNet. The ImageNet dataset (Russakovsky et al., 2015) is a dataset of about 1.2 million natural images, categorized into 1000 different classes. ImageNet is substantially more complex than the MNIST dataset, and classical architectures are correspondingly more complicated. For example, AlexNet (Krizhevsky et al., 2012) and VGG-16 (Simonoyan & Zisserman, 2014) contain 61 and 128 million parameters, respectively. Non-vacuous bounds for such models are still out of reach when applying our bound with current compression techniques. However, motivated by computational restrictions, there has been extensive interest in designing more parsimonious architectures that achieve comparable or better performance with significantly fewer parameters (Iandola et al., 2016; Howard et al., 2017; Zhang et al., 2017b). By combining neural net compression schemes with parsimonious models of this kind, we demonstrate a non-vacuous bounds on models with better performance than AlexNet.
170
+
171
+ Our simple Occam bound requires only minimal assumptions, and can be directly applied to existing compressed networks. For example, Iandola et al. (2016) introduce the SqueezeNet architecture, and explicitly study its compressibility. They obtain a model with better performance than AlexNet but that can be written in 0.47 MiB. A direct application of our naïve Occam bound yields non-vacuous bound on the test error of $9 8 . 6 \%$ (with $9 5 \%$ confidence). To apply our stronger bound—taking into account the noise robustness—we train and compress a network from scratch. We consider Mobilenet 0.5 (Howard et al., 2017), which in its uncompressed form has better performance and smaller size than SqueezeNet (Iandola et al., 2016).
172
+
173
+ Zhu & Gupta (2017) study pruning of MobileNet in the context of energy-efficient inference in resource-constrained environments. We use their pruning scheme with some small adjustments. In particular, we use Dynamic Network Surgery (Guo et al., 2016) as our pruning method but follow a similar schedule. We prune $6 7 \%$ of the total parameters. The pruned model achieves a validation accuracy of $6 0 \%$ . We quantize the weights using a codebook strategy (Han et al., 2016). We consider the stochastic classifier given by adding Gaussian noise to the non-zero weights, with the variance set in each layer so as not to degrade our prediction performance. For simplicity, we ignore biases and batch normalization parameters in our bound, as they represent a negligible fraction of the parameters. We consider top-1 accuracy (whether the most probable guess is correct) and top-5 accuracy (whether any of the 5 most probable guesses is correct). The final “effective compressed size” is $3 5 0 \mathrm { K i B }$ . The stochastic network has a top-1 accuracy of $6 5 \%$ on the training data, and top-5 accuracy of $8 7 \%$ on the training data. The small effective compressed size and high training data accuracy yield non-vacuous bounds for top-1 and top-5 test error. See Appendix B for the details of the experiment.
174
+
175
+ Table 1: Summary of bounds obtained from compression
176
+
177
+ <table><tr><td>Dataset</td><td>Orig. size</td><td>Comp. size</td><td>Robust. Adj.</td><td>Eff. Size</td><td>Error Bound</td><td></td></tr><tr><td>MNIST</td><td>168.4KiB</td><td>8.1KiB</td><td>1.88KiB</td><td>6.23KiB</td><td>Top 1 &lt;46%</td><td>Top5</td></tr><tr><td>ImageNet</td><td>5.93MiB</td><td>452KiB</td><td>102KiB</td><td>350KiB</td><td>&lt; 96.5%</td><td>NA &lt;89%</td></tr></table>
178
+
179
+ # 6 LIMITS ON COMPRESSIBILITY
180
+
181
+ We have shown that compression results directly imply generalization bounds, and that these may be applied effectively to obtain non-vacuous bounds on neural networks. In this section, we provide a complementary view: overfitting implies a limit on compressibility.
182
+
183
+ Theory. We first prove that the entropy of estimators that tend to overfit is bounded in terms of the expected degree of overfitting. That implies the estimators fail to compress on average. As previously, consider a sample $S _ { n } = \{ ( { \overset { - } { x } } _ { 1 } , y _ { 1 } ) , \dots , ( x _ { n } , y _ { n } ) \}$ sampled i.i.d. from some distribution $\mathcal { D }$ , and an
184
+
185
+ estimator (or selection procedure) $\hat { h }$ , which we consider as a (random) function of the training data. The key observation is:
186
+
187
+ $$
188
+ \begin{array} { r } { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \in S _ { n } ) = \mathbb { E } ( \hat { L } ( \hat { h } ) ) , } \\ { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \notin S _ { n } ) = \mathbb { E } ( L ( \hat { h } ) ) . } \end{array}
189
+ $$
190
+
191
+ That is, the probability of misclassifying an example in the training data is smaller than the probability of misclassifying a fresh example, and the expected strength of this difference is determined by the expected degree of overfitting. By Bayes’ rule, we thus see that the more $\hat { h }$ overfits, the better it is able to distinguish a sample from the training and testing set. Such an estimator $\hat { h }$ must thus “remember” a significant portion of the training data set, and its entropy is thus lower bounded by the entropy of its “memory”.
192
+
193
+ Theorem 6.1. Let $L$ , $\hat { L } _ { : }$ , and $\hat { h }$ be as in the text immediately preceeding the theorem. For simplicity, assume that both the sample space $\mathcal { X } \times \mathcal { V }$ and the hypothesis set $\mathcal { H }$ are discrete. Then,
194
+
195
+ $$
196
+ H ( \hat { h } ) \geq n g ( \mathbb { E } [ \hat { L } ( \hat { h } ) ] , \mathbb { E } [ L ( \hat { h } ) ] ) ,
197
+ $$
198
+
199
+ where g denotes some non-negative function (given explicitly in the proof).
200
+
201
+ We defer the proof to the supplementary material.
202
+
203
+ Experiments. We now study this effect empirically. The basic tool is the randomization test of Zhang et al. (2017a): we consider a fixed architecture and a number of datasets produced by randomly relabeling the categories of some fraction of examples from a real-world dataset.
204
+
205
+ If the model has sufficiently high capacity, it can be fit with approximately zero training loss on each dataset. In this case, the generalization error is given by the fraction of examples that have been randomly relabeled. We apply a standard neural net compression tool to each of the trained models, and we observe that the models with worse generalization require more bits to describe in practice.
206
+
207
+ For simplicity, we consider the CIFAR-10 dataset, a collection of 40000 images categorized into 10 classes. We fit the ResNet (He et al., 2016) architecture with 56 layers with no pre-processing and no penalization
208
+
209
+ ![](images/afd7d26de8b0910af21268b092a9afd51a10212b51314349fb68c87db36277b4.jpg)
210
+ Figure 1: Training performance after pruning at varying levels of label randomization.
211
+
212
+ on the CIFAR-10 dataset where the labels are subjected to varying levels of randomization. As noted in Zhang et al. (2017a), the network is able to achieve $1 0 0 \%$ training accuracy no matter the level of randomization.
213
+
214
+ We then compress the networks fitted on each level of label randomization by pruning to a given target sparsity. Surprisingly, all networks are able to achieve $5 0 \%$ sparsity with essentially no loss of training accuracy, even on completely random labels. However, we observe that as the compression level increases further, the scenarios with more randomization exhibit a faster decay in training accuracy, see Figure 1. This is consistent with the fact that network size controls generalization error.
215
+
216
+ # 7 DISCUSSION
217
+
218
+ It has been a long standing observation by practitioners that despite the large capacity of models used in deep learning practice, empirical results demonstrate good generalization performance. We show that with no modifications, a standard engineering pipeline of training and compressing a network leads to demonstrable and non-vacuous generalization guarantees. These are the first such results on networks and problems at a practical scale, and mirror the experience of practitioners that best results are often achieved without heavy regularization or modifications to the optimizer (Wilson et al., 2017).
219
+
220
+ The connection between compression and generalization raises a number of important questions. Foremost, what are its limitations? The fact that our bounds are non-vacuous implies the link between compression and generalization is non-trivial. However, the bounds are far from tight. If significantly better compression rates were achievable, the resulting bounds would even be of practical value. For example, if a network trained on ImageNet to $9 0 \%$ training and $7 0 \%$ testing accuracy could be compressed to an effective size of 30 KiB—about one order of magnitude smaller than our current compression—that would yield a sharp bound on the generalization error.
221
+
222
+ # 8 ACKNOWLEDGEMENTS
223
+
224
+ We acknowledge computing resources from Columbia University’s Shared Research Computing Facility project, which is supported by NIH Research Facility Improvement Grant 1G20RR030893- 01, and associated funds from the New York State Empire State Development, Division of Science Technology and Innovation (NYSTAR) Contract C090171, both awarded April 15, 2010
225
+
226
+ # REFERENCES
227
+
228
+ S. Arora, R. Ge, B. Neyshabur, and Y. Zhang. Stronger generalization bounds for deep nets via a compression approach, February 2018.
229
+ Sanjeev Arora. Generalization Theory and Deep Nets, An introduction. http://www. offconvex.org/2017/12/08/generalization1/, 2017.
230
+ Carlo Baldassi, Alessandro Ingrosso, Carlo Lucibello, Luca Saglietti, and Riccardo Zecchina. Subdominant dense clusters allow for simple learning and high computational performance in neural networks with discrete synapses. Phys. Rev. Lett., 115:128101, Sep 2015.
231
+ Carlo Baldassi, Christian Borgs, Jennifer T. Chayes, Alessandro Ingrosso, Carlo Lucibello, Luca Saglietti, and Riccardo Zecchina. Unreasonable effectiveness of learning neural networks: From accessible states and robust ensembles to basic algorithmic schemes. Proceedings of the National Academy of Sciences, 113(48):E7655–E7662, 2016.
232
+ Peter Bartlett, Dylan J. Foster, and Matus Telgarsky. Spectrally-normalized margin bounds for neural networks, 2017.
233
+ Anselm Blumer, Andrzej Ehrenfeucht, David Haussler, and Manfred K. Warmuth. Occam’s razor. Information Processing Letters, 24(6):377 – 380, 1987.
234
+ Luc Bégin, Pascal Germain, François Laviolette, and Jean-Francis Roy. PAC-Bayesian Theory for Transductive Learning. In Samuel Kaski and Jukka Corander (eds.), Proceedings of the Seventeenth International Conference on Artificial Intelligence and Statistics, volume 33 of Proceedings of Machine Learning Research, pp. 105–113, Reykjavik, Iceland, 22–25 Apr 2014. PMLR. URL http://proceedings.mlr.press/v33/begin14.html.
235
+ Olivier Catoni. Pac-Bayesian supervised classification: the thermodynamics of statistical learning, volume 56 of Institute of Mathematical Statistics Lecture Notes—Monograph Series. Institute of Mathematical Statistics, Beachwood, OH, 2007.
236
+ Pratik Chaudhari, Anna Choromanska, Stefano Soatto, Yann LeCun, Carlo Baldassi, Christian Borgs, Jennifer Chayes, Levent Sagun, and Riccardo Zecchina. Entropy-SGD: Biasing gradient descent into wide valleys. In International Conference on Learning Representations, 2017.
237
+ Y. Cheng, D. Wang, P. Zhou, and T. Zhang. Model compression and acceleration for deep neural networks: The principles, progress, and challenges. IEEE Signal Processing Magazine, 35(1): 126–136, Jan 2018.
238
+ Gintare Karolina Dziugaite and Daniel M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Conference on Uncertainty in Artificial Intelligence, 2017.
239
+
240
+ Gintare Karolina Dziugaite and Daniel M. Roy. Entropy-sgd optimizes the prior of a pac-bayes bound: Generalization properties of entropy-sgd and data-dependent priors. In International Conference on Machine Learning, 2018.
241
+
242
+ Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient DNNs. In Advances in Neural Information Processing Systems, 2016.
243
+
244
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In International Conference on Learning Representations, 2016.
245
+
246
+ Nick Harvey, Christopher Liaw, and Abbas Mehrabian. Nearly-tight VC-dimension bounds for piecewise linear neural networks. In Satyen Kale and Ohad Shamir (eds.), Proceedings of the 2017 Conference on Learning Theory, volume 65 of Proceedings of Machine Learning Research, pp. 1064–1068, Amsterdam, Netherlands, 07–10 Jul 2017. PMLR.
247
+
248
+ Kaiming He, Xiangyu Zhang, Shaoqin Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, June 2016.
249
+
250
+ Geoffrey E. Hinton and Drew van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the Sixth Annual Conference on Computational Learning Theory, pp. 5–13, 1993.
251
+
252
+ Sepp Hochreiter and Jürgen Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, January 1997.
253
+
254
+ Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications, 2017.
255
+
256
+ Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and $< 0 . 5 \mathrm { m b }$ model size. arXiv:1602.07360, 2016.
257
+
258
+ Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Representations, 2017.
259
+
260
+ P. Konstantinos, M. Davies, and P. Vandergheynst. PAC-Bayesian Margin Bounds for Convolutional Neural Networks - Technical Report.
261
+
262
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems, pp. 1097–1105. 2012.
263
+
264
+ John Langford. Quantitatively tight sample complexity bounds. PhD thesis, Carnegie Mellon University, 2002.
265
+
266
+ John Langford and Rich Caruana. (not) bounding the true error. In Advances in Neural Information Processing Systems, pp. 809–816, 2002.
267
+
268
+ François Laviolette. A tutorial on pac-bayesian theory. Talk at the NIPS 2017 Workshop: (Almost) 50 Shades of PAC-Bayesian Learning: PAC-Bayesian trends and insights, 2017. URL https: //bguedj.github.io/nips2017/pdf/laviolette_nips2017.pdf.
269
+
270
+ Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 11 1998.
271
+
272
+ David MacKay. Bayesian model comparison and backprop nets. In Advances in Neural Information Processing Systems, pp. 839–846. 1992.
273
+
274
+ David McAllester. Simplified pac-bayesian margin bounds. In Bernhard Schölkopf and Manfred K. Warmuth (eds.), Learning Theory and Kernel Machines, pp. 203–215, Berlin, Heidelberg, 2003. Springer Berlin Heidelberg. ISBN 978-3-540-45167-9.
275
+
276
+ David A. McAllester. Some PAC-Bayesian theorems. Machine Learning, 37(3):355–363, Dec 1999.
277
+
278
+ David A. McAllester. A PAC-Bayesian tutorial with A dropout bound, 2013.
279
+
280
+ Behnam Neyshabur, Srinadh Bhojanapalli, David Mcallester, and Nati Srebro. Exploring generalization in deep learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, pp. 5947–5956. 2017.
281
+
282
+ Behnam Neyshabur, Srinadh Bhojanapalli, and Nathan Srebro. A PAC-bayesian approach to spectrally-normalized margin bounds for neural networks. In International Conference on Learning Representations, 2018.
283
+
284
+ Carl Edward Rasmussen and Zoubin Ghahramani. Occam’s razor. In Advances in Neural Information Processing Systems (NIPS), 2001.
285
+
286
+ Jorma Rissanen. Stochastic complexity and modeling. Ann. Statist., 14(3):1080–1100, 09 1986.
287
+
288
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 12 2015.
289
+
290
+ J. Schmidt-Hieber. Nonparametric regression using deep neural networks with relu activation function, August 2017.
291
+
292
+ Karen Simonoyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations. 2014.
293
+
294
+ Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, pp. 4148–4158. 2017.
295
+
296
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations, 2017a.
297
+
298
+ Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices, 2017b.
299
+
300
+ Michael Zhu and Suyog Gupta. To prune, or not to prune: exploring the efficacy of model pruning for model compression. In NIPS Workshop on Machine Learning on the Phone and other Consumer Devices, 12 2017.
301
+
302
+ # A PROOF OF THEOREM 4.3
303
+
304
+ In this section we describe the construction of the prior $\pi$ and prove the bound on the KL-divergence claimed in Theorem 4.3. Intuitively, we would like to express our prior as a mixture over all possible decoded points of the compression algorithm. More precisely, define the mixture component $\pi _ { S , Q , C }$ associated with a triplet $( S , Q , C )$ as:
305
+
306
+ $$
307
+ \pi _ { S , Q , C } = \mathrm { N o r m a l } ( w ( S , Q , C ) , \tau ^ { 2 } ) .
308
+ $$
309
+
310
+ We then define our prior $\pi$ as a weighted mixture over all triplets, weighted by the code length of the triplet:
311
+
312
+ $$
313
+ \pi \propto \sum _ { S , Q , C } m ( | S | _ { c } + | C | _ { c } + k \lceil \log r \rceil ) 2 ^ { - | S | _ { c } - | C | _ { c } - k \lceil \log r \rceil } \pi _ { S , Q , C } ,
314
+ $$
315
+
316
+ where the sum is taken over all $S$ and $C$ which are representable by our code, and all $Q \ =$ $( q _ { 1 } , \ldots , q _ { k } ) \in \{ 1 , \ldots , r \} ^ { k }$ . In practice, $S$ takes values in all possible subsets of $\{ 1 , \ldots , p \}$ , and $C$ takes values in $F ^ { r }$ , where $F \subseteq \mathbb { R }$ is a chosen finite subset of representable real numbers (such as those that may be represented by IEEE-754 single precision numbers), and $r$ is a chosen quantization level. We now give the proof of Theorem 4.3.
317
+
318
+ Proof. We have that:
319
+
320
+ $$
321
+ \pi = \frac { 1 } { Z } \sum _ { S , Q , C } m ( | S | _ { c } + | C | _ { c } + k \lceil \log r \rceil ) 2 ^ { - | S | _ { c } - | C | _ { c } - k \lceil \log r \rceil } \pi _ { S , Q , C } ,
322
+ $$
323
+
324
+ where we must have $Z \leq 1$ by the same argument as in the proof of Theorem 4.1
325
+
326
+ Suppose that the output of our compression algorithm is a triplet $( \hat { S } , \hat { Q } , \hat { C } )$ . We recall that our posterior $\rho$ is given by a normal centered at $w ( \hat { S } , \hat { Q } , \hat { C } )$ with variance $\sigma ^ { 2 }$ , and we may thus compute the KL-divergence:
327
+
328
+ $$
329
+ \begin{array} { r l } & { \displaystyle \mathrm { \mathop { X L } } ( \rho , \pi ) \leq \mathrm { \mathop { K L } } \left( \rho , \displaystyle \sum _ { s , Q , C } m ( | S | _ { c } + | C | _ { c } + k / \log r ] ) 2 ^ { - | S | _ { c } - | C | _ { c } - k / \log r ] } \pi _ { S , Q , C } \right) } \\ & { \qquad \leq \mathrm { \mathop { K L } } \left( \rho , \displaystyle \sum _ { Q } m ( | \hat { S } | _ { c } + | \hat { C } | _ { c } + \hat { k } / \log \hat { r } ] ) 2 ^ { - | \hat { S } | _ { c } - | \hat { C } | _ { c } - \hat { k } / \log \hat { r } | } \pi _ { \hat { S } , Q , \hat { C } } \right) } \\ & { \qquad \leq \big ( | \hat { S } | _ { c } + | \hat { C } | _ { c } + \hat { k } / \log \hat { r } | \big ) \log 2 + \log m ( | \hat { S } | _ { c } + | \hat { C } | _ { c } + \hat { k } / \log \hat { r } | ) + \mathrm { \mathop { K L } } \left( \rho , \displaystyle \sum _ { Q } \pi _ { \hat { S } , Q , \hat { C } } \right) . } \end{array}
330
+ $$
331
+
332
+ We are now left with the mixture term, which is a mixture of $r ^ { k }$ many terms in dimension $k$ , and thus computationally untractable. However, we note that we are in a special case where the mixture itself is independent across coordinates. Indeed, let $\phi _ { \tau }$ denote the density of the univariate normal distribution with mean 0 and variance $\tau ^ { 2 }$ , we note that we may write the mixture as:
333
+
334
+ $$
335
+ \begin{array} { r } { \Big ( \displaystyle \sum _ { Q } \pi _ { \hat { S } , Q , \hat { C } } \Big ) ( x ) = \displaystyle \sum _ { q ^ { 1 } , \dots , q ^ { k } = 1 } ^ { r } \prod _ { i = 1 } ^ { k } \phi _ { \tau } ( x _ { i } - \hat { c } _ { q ^ { i } } ) } \\ { = \displaystyle \prod _ { i = 1 } ^ { k } \sum _ { q ^ { i } = 1 } ^ { r } \phi _ { \tau } ( x _ { i } - \hat { c } _ { q ^ { i } } ) . } \end{array}
336
+ $$
337
+
338
+ Additionally, as our chosen stochastic estimator $\rho$ is independent over the coordinates, the KLdivergence decomposes over the coordinates, to obtain:
339
+
340
+ $$
341
+ \mathrm { K L } \left( \rho , \sum _ { Q } \pi _ { \hat { S } , Q , \hat { C } } \right) = \sum _ { i = 1 } ^ { k } \mathrm { K L } \left( \rho _ { i } , \sum _ { q ^ { i } = 1 } ^ { r } \mathrm { N o r m a l } \left( \hat { c } _ { q ^ { i } } , \tau ^ { 2 } \right) \right) .
342
+ $$
343
+
344
+ Plugging the above computation into (13) gives the desired result.
345
+
346
+ # A.1 DETAILS IN PRACTICAL USES OF THE BOUND
347
+
348
+ Although Theorem 4.3 contains the main mathematical contents of our bound, applying the bound in a fully correct fashion requires some amount of minutiae and book-keeping we detail in this section. In particular, we are required to select a number of parameters (such as the prior variances). We extend the bound to account for such unrestricted (and possibly data-dependent) parameter selection. Typically, such adjustments have a negligible effect on the computed bounds.
349
+
350
+ Theorem A.1 (Union Bound for Discrete Parameters). Let $\pi _ { \xi }$ , $\xi \in \Xi$ , denote a family of priors parameterized by a discrete parameter $\xi$ , which takes values in a finite set Ξ. There exists a prior $\pi$ such that for any posterior $\rho$ and any $\xi \in \Xi$ :
351
+
352
+ $$
353
+ \mathrm { K L } ( \rho , \pi ) \leq \mathrm { K L } ( \rho , \pi _ { \xi } ) + \log \vert \Xi \vert .
354
+ $$
355
+
356
+ Proof. We define $\pi$ as a uniform mixture of the $\pi _ { \xi }$
357
+
358
+ $$
359
+ \pi = { \frac { 1 } { | \Xi | } } \sum _ { \xi \in \Xi } \pi _ { \xi } .
360
+ $$
361
+
362
+ We then have that:
363
+
364
+ $$
365
+ \operatorname { K L } ( \rho , \pi ) = \mathbb { E } _ { X \sim \rho } \log { \frac { d \rho } { d \pi } } ,
366
+ $$
367
+
368
+ but we can note that $\begin{array} { r } { \frac { d \rho } { d \pi } \leq | \Xi | \frac { d \rho } { d \pi _ { \xi } } } \end{array}$ , from which we deduce that:
369
+
370
+ $$
371
+ \mathrm { K L } ( \rho , \pi ) \leq \mathrm { K L } ( \rho , \pi _ { \xi } ) + \log \vert \Xi \vert .
372
+ $$
373
+
374
+ We make liberal use of this variant to control a number of discrete parameters which are chosen empirically (such as the quantization resolution at each layer). We also use this bound to control a number of continuous quantities (such as the prior variances) by discretizing these quantities as IEEE-754 single precision (32 bit) floating point numbers.
375
+
376
+ # B EXPERIMENT DETAILS
377
+
378
+ # B.1 LENET-5
379
+
380
+ We train the baseline model for LeNet-5 using stochastic gradient descent with momentum and no data augmentation. The batch size is set to 1024, and the learning rate is decayed using an inverse time decay starting at 0.01 and decaying every 125 steps. We apply a small $\ell _ { 2 }$ penalty of 0.005. We train a total of 20000 steps.
381
+
382
+ We carry out the pruning using Dynamic Network Surgery (Guo et al., 2016). The threshold is selected per layer as the mean of the layer coefficients offset by a constant multiple of the standard deviation of the coefficients, where the multiple is piecewise constant starting at 0.0 and ending at 4.0. We choose the pruning probability as a piecewise constant starting at 1.0 and decaying to $1 \bar { 0 } ^ { - 3 }$ We train for 30000 steps using the ADAM optimizer.
383
+
384
+ We quantize all the weights using a 4 bit codebook (Han et al., 2016) per layer initialized using $k$ -means. A single cluster in each weight is given to be exactly zero and contains the pruned weights. The remaining clusters centers are learned using the ADAM optimizer over 1000 steps.
385
+
386
+ # B.2 MOBILENET
387
+
388
+ MobileNets are a class of networks that make use of depthwise separable convolutions. Each layer is composed of two convolutions, with one depthwise convolution and one pointwise convolution. We use the pre-trained MobileNet model provided by Google as our baseline model. We then prune the pointwise (and fully connected) layers only, using Dynamic Network Surgery. The threshold is set for each weight as a quantile of the absolute values of the coordinates, which is increased according to the schedule given in (Zhu & Gupta, 2017). As the lower layers are smaller and more sensitive, we scale the target sparsity for each layer according to the size of the layer. The target sparsity is scaled linearly between $6 5 \%$ and $7 5 \%$ as a proportion of the number of elements in the layer compared to the largest layer (the final layer). We use stochastic gradient descent with momentum and decay the learning with an inverse time decay schedule, starting at $1 0 ^ { - 3 }$ and decaying by 0.05 every 2000 steps. We use a minibatch size of 64 and train for a total of 300000 steps, but tune the pruning schedule so that the target sparsity is reached after 200000 steps.
389
+
390
+ We quantize the weights by using a codebook for each layer with 6 bits for all layers except the last fully connected layer which only has 5 bits. The pointwise and fully connected codebooks have a reserved encoding for exact 0, whereas the non-pruned depthwise codebooks are fully learned. We initialize the cluster assignment using $k$ -means and train the cluster centers for 20000 steps with stochastic gradient with momentum with a learning rate of $1 0 ^ { - 4 }$ . Note that we also modify the batch normalization moving average parameters in this step so that it adapts faster, choosing .99 as the momentum parameter for the moving averages.
391
+
392
+ To witness noise robustness, we only add noise to the pointwise and fully connected layer. We are able to add Gaussian noise with standard deviation equal to $2 \%$ of the difference in magnitude between the largest and smallest coordinate in the layer for the fully connected layer. For pointwise layers we add noise equal to $1 \%$ of the difference scaled linearly by the relative size of the layer compared to the fully connected layer. These quantities were chosen to minimally degrade the training performance while obtaining good improvements on the generalization bound: in our case, we observe that the top-1 training accuracy is reduced to $6 5 \%$ with noise applied from $6 7 \%$ without noise.
393
+
394
+ # C PROOF THAT OVERFITTING IMPLIES HIGH CLASSIFIER ENTROPY
395
+
396
+ As previously, consider a sample $S = \{ ( x _ { 1 } , y _ { 1 } ) , \dots , ( x _ { n } , y _ { n } ) \}$ sampled i.i.d. from some distribution $\mathcal { D }$ , and an estimator (or selection procedure) $\hat { h }$ . The statement that $\hat { h }$ overfits may then be captured in terms of the training and testing error of $\hat { h }$ , namely that $\hat { L } ( \hat { h } ) \ll L ( \hat { h } )$ . We note that this statement depends on the randomness of the sample through its impact on $\hat { h }$ , and we will make the interpretation precise momentarily.
397
+
398
+ Such an estimator $\hat { h }$ that overfits may be transformed into a procedure which discriminates between samples from the training and testing set. Indeed, let $( x , y ) \in \mathcal { X } \times \mathcal { Y }$ be drawn from an independent mixture of the uniform distribution on $S$ and the data-generating distribution $\mathcal { D }$ , where by independent we mean that $I _ { ( x , y ) \in S }$ is independent of $S$ . Then, we have by Bayes rule that:
399
+
400
+ $$
401
+ \begin{array} { r l } { \mathbb { P } ( ( x , y ) \in S \mid L ( \hat { h } ( x ) , y ) = 1 ) = } \\ & { } \\ { \frac { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \in S ) } { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \in S ) + \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \notin S ) } , } \end{array}
402
+ $$
403
+
404
+ where the probability is taken with respect to the distribution of $( x , y )$ . By the definition of in-sample and out-of-sample loss, we have by independence that:
405
+
406
+ $$
407
+ \begin{array} { r } { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \in S ) = \mathbb { E } ( \hat { L } ( \hat { h } ) ) , } \\ { \mathbb { P } ( L ( \hat { h } ( x ) , y ) = 1 \mid ( x , y ) \notin S ) = \mathbb { E } ( L ( \hat { h } ) ) . } \end{array}
408
+ $$
409
+
410
+ We may thus rewrite (19) (and its analogue conditional probability on the event $L ( \hat { h } ( x ) , y ) = 0 ,$ ) to obtain:
411
+
412
+ $$
413
+ \begin{array} { r l } & { \mathbb { P } ( ( x , y ) \in S \mid L ( \hat { h } ( x ) , y ) = 1 ) = \left( 1 + \frac { \mathbb { E } ( L ( \hat { h } ) ) } { \mathbb { E } ( \hat { L } ( \hat { h } ) ) } \right) ^ { - 1 } , } \\ & { \mathbb { P } ( ( x , y ) \in S \mid L ( \hat { h } ( x ) , y ) = 0 ) = \left( 1 + \frac { 1 - \mathbb { E } ( L ( \hat { h } ) ) } { 1 - \mathbb { E } ( \hat { L } ( \hat { h } ) ) } \right) ^ { - 1 } . } \end{array}
414
+ $$
415
+
416
+ We thus see that the more $\hat { h }$ overfits, the better it is able to distinguish a sample from the training and testing set. Such an estimator $\hat { h }$ must thus “remember” a significant portion of the training data set,
417
+
418
+ and its entropy is thus lower bounded by the entropy of its “memory”. Quantitatively, we note that the quality of $\hat { h }$ as a discriminator between the training and testing set is captured by the quantities
419
+
420
+ $$
421
+ p _ { n } = \Big ( 1 + \frac { \mathbb { E } ( L ( \hat { h } ) ) } { \mathbb { E } ( \hat { L } ( \hat { h } ) ) } \Big ) ^ { - 1 } , q _ { n } = \Big ( 1 + \frac { 1 - \mathbb { E } ( L ( \hat { h } ) ) } { 1 - \mathbb { E } ( \hat { L } ( \hat { h } ) ) } \Big ) ^ { - 1 } , l _ { n } = \frac { 1 } { 2 } \mathbb { E } [ \hat { L } ( \hat { h } ) + L ( \hat { h } ) ] .
422
+ $$
423
+
424
+ We may interpret $p _ { n }$ as the average proportion of false positives and $q _ { n }$ as the average proportion of true negatives when viewing $\hat { h }$ as a classifier. We prove that if those quantities are substantially different from a random classifier, then $\hat { h }$ must have high entropy. We formalize this statement and provide a proof below.
425
+
426
+ Theorem C.1. Let $S = \{ ( x _ { 1 } , y _ { 1 } ) , \dots , ( x _ { n } , y _ { n } ) \}$ be sampled i.i.d. from some distribution $\mathcal { D }$ , and let $\hat { h }$ be a selection procedure, which is only a function of the unordered set $S$ . Let us view $\hat { h }$ as $a$ random quantity through the distribution induced by the sample $S$ . For simplicity, we assume that both the sample space $\mathcal { X } \times \mathcal { V }$ and the hypothesis set $\mathcal { H }$ are discrete. We have that:
427
+
428
+ $$
429
+ H ( \hat { h } ) \geq n g ( p _ { n } , q _ { n } , l _ { n } ) ,
430
+ $$
431
+
432
+ where $g$ denotes some non-negative function.
433
+
434
+ Proof. Consider a sequence of pairs $( s _ { 1 } ^ { 0 } , s _ { 1 } ^ { 1 } ) , . . . , ( s _ { n } ^ { 0 } , s _ { n } ^ { 1 } )$ , where each $s _ { i } ^ { j } = ( x _ { i } ^ { j } , y _ { i } ^ { j } )$ is sampled independently according to the data generating distribution $\mathcal { D }$ . Let $E = ( ( s _ { i } ^ { 0 } , s _ { i } ^ { 1 } ) ) _ { i = 1 , \dots n }$ denote the of sample pairs. Additionally, let $b _ { 1 } , \ldots , b _ { n } \in \{ 0 , 1 \}$ denote $n$ i.i.d. Bernoulli random variables, and let $B = ( b _ { i } ) _ { i = 1 , \dots , n }$ denote the sequence. We may construct a sample $S$ by selecting elements of $E$ according to $B$ :
435
+
436
+ $$
437
+ S = ( ( x _ { i } ^ { b _ { i } } , y _ { i } ^ { b _ { i } } ) ) _ { i = 1 , \dots , n } ,
438
+ $$
439
+
440
+ and we note that $S$ is an i.i.d. sample of size $n$ from the data generating distribution $\mathcal { D }$ . Additionally, by independence of $B$ and $E$ , we have that $H ( B \mid E ) = H ( B ) = n \log 2$ . On the other hand, we have
441
+
442
+ $$
443
+ \begin{array} { l } { \displaystyle H ( B \mid E , \hat { h } ) \leq \sum _ { i = 1 } ^ { n } H ( B _ { i } \mid E , \hat { h } ) } \\ { \leq \sum _ { i = 1 } ^ { n } H ( B _ { i } \mid \hat { h } ( x _ { i } ^ { 0 } ) , \hat { h } ( x _ { i } ^ { 1 } ) , y _ { i } ^ { 0 } , y _ { i } ^ { 1 } ) } \\ { \leq \sum _ { i = 1 } ^ { n } H ( B _ { i } \mid L ( \hat { h } ( x _ { i } ^ { 0 } ) , y _ { i } ^ { 0 } ) ) . } \end{array}
444
+ $$
445
+
446
+ We compute the conditional distribution of $B _ { i }$ given $L ( \hat { h } ( x _ { i } ^ { 0 } ) , y _ { i } ^ { 0 } ) = L _ { i } ^ { 0 }$ . In particular, we claim that $B _ { i }$ | $L _ { i } ^ { 0 } = 0$ is Bernoulli with parameter $p _ { n }$ . Indeed, note that $B _ { i }$ , $L _ { i } ^ { 0 }$ and $\hat { h }$ have the same distribution as if they were sampled from the procedure described before (19). Namely, sample $S$ i.i.d. according to the data generating distribution, and let $\hat { h }$ be the corresponding estimator, $B _ { i }$ an independent Bernoulli random variable, and $L _ { i } = L ( \hat { h } ( x ) , y )$ where $( x , y )$ is sampled uniformly from S if $B _ { i } = 0$ and according to the data generating distribution if $B _ { i } = 1$ . Note that this distribution does not depend on $i$ due to the assumption that $\hat { h }$ is measurable with respect to the unordered sample $S$ . By (19), we thus deduce that:
447
+
448
+ $$
449
+ \mathbb { P } ( B _ { i } = 0 \mid L _ { i } ^ { 0 } = 1 ) = p _ { n }
450
+ $$
451
+
452
+ which yields the desired result by taking expectation over the distribution of $\hat { h } , \hat { L } ( \hat { h } )$ .
453
+
454
+ Similarly, we may compute the distribution of $B _ { i }$ conditional on the event where $L _ { i } ^ { 0 } ~ = ~ 0$ , as $\mathbb { P } ( B _ { i } = { \bf \bar { 0 } } \mid L _ { i } ^ { 0 } = { \bf \bar { 0 } } ) = q _ { n }$ . By definition, we now have that:
455
+
456
+ $$
457
+ H ( B _ { i } \mid L _ { i } ^ { 0 } ) = l _ { n } h _ { b } ( p _ { n } ) + ( 1 - l _ { n } ) h _ { b } ( q _ { n } ) ,
458
+ $$
459
+
460
+ where $h _ { b } ( p )$ denotes the binary entropy function. Finally, we apply the chain rule for entropy. We note that
461
+
462
+ $$
463
+ H ( B \mid E , { \hat { h } } ) = H ( B , { \hat { h } } \mid E ) - H ( { \hat { h } } \mid E ) ,
464
+ $$
465
+
466
+ and write $H ( B , { \hat { h } } \mid E ) \geq H ( B \mid E ) = n \log 2$ and $H ( \hat { h } \mid E ) \leq H ( \hat { h } )$ . In summary,
467
+
468
+ $$
469
+ \begin{array} { r l } & { H ( \hat { h } ) \geq H ( \hat { h } \mid E ) } \\ & { \qquad = H ( B , \hat { h } \mid E ) - H ( B \mid E , \hat { h } ) } \\ & { \qquad \geq n \log 2 - n [ l _ { n } h _ { b } ( p _ { n } ) - ( 1 - l _ { n } ) h _ { b } ( q _ { n } ) ] } \\ & { \qquad \geq n [ h _ { b } ( 1 / 2 ) - l _ { n } h _ { b } ( p _ { n } ) - ( 1 - l _ { n } ) h _ { b } ( q _ { n } ) ] \ , } \end{array}
470
+ $$
471
+
472
+ which yields (20).
parse/train/BJgqqsAct7/BJgqqsAct7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJgqqsAct7/BJgqqsAct7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJgqqsAct7/BJgqqsAct7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/CaKvIT5UMfd/CaKvIT5UMfd.md ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TöRF: Time-of-Flight Radiance Fields for Dynamic Scene View Synthesis
2
+
3
+ Benjamin Attal∗ Carnegie Mellon University
4
+
5
+ Eliot Laidlaw Brown University
6
+
7
+ Aaron Gokaslan Cornell University
8
+
9
+ Changil Kim Facebook
10
+
11
+ Christian Richardt University of Bath
12
+
13
+ James Tompkin Brown University
14
+
15
+ Matthew O’Toole Carnegie Mellon University
16
+
17
+ imaging.cs.cmu.edu/torf
18
+
19
+ # Abstract
20
+
21
+ Neural networks can represent and accurately reconstruct radiance fields for static 3D scenes (e.g., NeRF). Several works extend these to dynamic scenes captured with monocular video, with promising performance. However, the monocular setting is known to be an under-constrained problem, and so methods rely on data-driven priors for reconstructing dynamic content. We replace these priors with measurements from a time-of-flight (ToF) camera, and introduce a neural representation based on an image formation model for continuous-wave ToF cameras. Instead of working with processed depth maps, we model the raw ToF sensor measurements to improve reconstruction quality and avoid issues with low reflectance regions, multi-path interference, and a sensor’s limited unambiguous depth range. We show that this approach improves robustness of dynamic scene reconstruction to erroneous calibration and large motions, and discuss the benefits and limitations of integrating RGB $+$ ToF sensors that are now available on modern smartphones.
22
+
23
+ # 1 Introduction
24
+
25
+ Novel-view synthesis (NVS) is a long-standing problem in computer graphics and computer vision, where the objective is to photorealistically render images of a scene from novel viewpoints. Given a number of images taken from different viewpoints, it is possible to infer both the geometry and appearance of a scene, and then use this information to synthesize images at novel camera poses. One of the challenges associated with NVS is that it requires a diverse set of images from different perspectives to accurately represent the scene. This might involve moving a single camera around a static environment [4, 16, 31, 32, 36], or using a large multi-camera system to capture dynamic events from different perspectives [2, 7, 24, 38, 44, 56]. Techniques for dynamic NVS from a monocular video sequence have also demonstrated compelling results, though they suffer from various visual artifacts due to the ill-posed nature of this problem [26, 37, 42, 50, 52]. This requires introducing priors, often deep learned, on the dynamic scene’s depth and motion.
26
+
27
+ In parallel, mobile devices now have camera systems with both color and depth sensors, including Microsoft’s Kinect and HoloLens devices, and the front and rear RGBD camera systems in the iPhone and iPad Pro. Depth sensors can use stereo or structured light, or increasingly the more accurate time-of-flight principle for measurements. Although depth sensing technology is more common than ever, many NVS techniques currently do not exploit this additional source of visual information.
28
+
29
+ To improve NVS performance, we propose $\mathrm { T } \mathrm { \ddot { o } R F ^ { 1 } }$ , an implicit neural representation for scene appearance that leverages both color and time-of-flight (ToF) images, as depicted in Figure 1. This reduces the number of images required for static NVS problem settings, compared with just using a color camera. Further, the additional depth information makes the monocular dynamic NVS problem more tractable, as it directly encodes information about the geometry of the scene. Most importantly, rather than using depth directly, we show that using ‘raw’ ToF data—in the form of phasor images [12] that are normally used to derive depth—is more accurate as it allows the optimization to correctly handle geometry that exceeds the sensor’s unambiguous range, objects with low reflectance, and regions affected by multi-path interference, leading to better dynamic scene view synthesis. The contributions of our work include:
30
+
31
+ ![](images/069600ef8b91e8c922beba8f35647def13f9a11d7b5f99303e8dfe65ec2a2266.jpg)
32
+ Figure 1: Illustration of time-of-flight radiance fields. (a) We move a handheld imaging system around a dynamic scene, capturing (b) color images and (c) raw phasor images from a continuous-wave time-of-flight (C-ToF) camera. (d) Then, we optimize for a continuous neural radiance field of the scene that predicts the captured color and phasor images. This allows novel view synthesis.
33
+
34
+ • A physically-based neural volume rendering model for raw continuous-wave ToF images; • A method to optimize a neural radiance field of dynamic scenes with information from color and continuous-wave ToF sensors; • Quantitative and qualitative evaluation on synthetic and real scenes showing better view synthesis than NeRF [32] for few input views, and than two dynamic scene baselines [26, 52].
35
+
36
+ # 2 Related Work
37
+
38
+ While novel-view synthesis (NVS) is a long-standing problem in computer graphics and vision [8, 9, 11, 23], recent developments in neural scene representations for NVS have enabled state-of-theart results for a wide variety of settings [46, 49]. The common thread across many of these works is to bring learnable elements together with physics-based models and classical rendering processes.
39
+
40
+ The designs for neural scene representations often build on standard computer graphics data structures, including voxel grids [34, 47], multiplane images (MPIs) [31, 51, 53, 57], multi-sphere images (MSIs) [3, 7], point clouds [30], and implicit functions of scene geometry and appearance [32, 48, 54]. For example, DeepVoxels [47] represent a scene as a discrete volume of embedded features to encode view-dependent effects, and enable wide baselines that may not be possible with other representations; however, the cost associated with this volumetric representation is that the memory requirements scale cubically with resolution. Alternatively, MPIs can be used to encode appearance from a single stereo pair [57]; the key benefit of this representation is the fast rendering speeds (ideal for interactive VR applications), though it performs best for forward-facing scenes.
41
+
42
+ Implicit neural representations of a scene provide similar flexibility to voxel grids, but circumvent the high memory requirements. These implicit networks therefore have greater capacity to represent the appearance of a scene. For example, scene representation networks (SRNs) [48] encode the geometry in a single neural network, which takes 3D points as input and outputs a feature representation of local scene properties (e.g., surface color or reflectance); rendering an image requires a differentiable ray marching procedure that intersects rays with the implicit volume. Neural radiance fields (NeRFs) [32] encode 5D radiance fields (3D position with 2D viewing direction) to offer higher-fidelity geometry and visual appearance. While these implicit neural representations initially assumed a static scene, recent approaches also demonstrate the ability to perform dynamic NVS from monocular video [26, 37, 42, 50, 52], despite this being a highly ill-posed problem.
43
+
44
+ Including depth maps has proven beneficial to improve NVS results for a long time [41]. However, surprisingly few NVS methods exploit the availability of depth sensors. One reason is that explicitly reconstructing depth maps for NVS [28, 55] may prove problematic, e.g., for thin structures, depth edges, complex reflectance, or noisy depth. We circumvent these issues by proposing a neural representation that models raw ToF data for better view synthesis for both static and dynamic scenes.
45
+
46
+ Table 1: Mathematical symbol legend for the following equations and explanations.
47
+
48
+ <table><tr><td>Symbol</td><td>Units</td><td>Description</td></tr><tr><td>X</td><td></td><td>A point ∈ R3.</td></tr><tr><td>8</td><td></td><td>A direction; unit vector ∈ S².</td></tr><tr><td>n(x)</td><td></td><td>A normal; a direction perpendicular to a surface at point X.</td></tr><tr><td>Xt</td><td></td><td>A point t units along a direction ω,Xt = X +ωt.</td></tr><tr><td>Wi</td><td></td><td>A direction incoming to a point.</td></tr><tr><td>W</td><td></td><td>A direction outgoing from a point.</td></tr><tr><td>L(x, ω) or LRGB LToF(x,ω)</td><td>W.sr-1.m-2 W·sr-1.m-2</td><td>Radiance measured by a camera at point x in direction w.</td></tr><tr><td>Li(x,w)</td><td>W·sr-1.m-2</td><td>Phasor radiance measured by a C-ToF camera. Incident radiance to a point from a direction.</td></tr><tr><td>Ls(x,w)</td><td>W·sr-1.m-2</td><td></td></tr><tr><td>I</td><td>W·sr-1</td><td>Reflected radiance scattered from a point in a direction. Radiant intensity of a point light source.</td></tr><tr><td>Is(x,w)</td><td>W.sr-1</td><td>Reflected radiant intensity scattered from a point x in</td></tr><tr><td></td><td></td><td>direction ω due to a light source collocated with the camera.</td></tr><tr><td>(x)</td><td>m-1</td><td>Density function at a point.</td></tr><tr><td>T(x,xt)</td><td>unitless</td><td>Transmittance function, i.e., accumulated density.</td></tr><tr><td>T(x,xk)</td><td>unitless</td><td>Discrete approximation of the transmittance function.</td></tr><tr><td>fp(x,wi,w,n(x))</td><td>sr-1</td><td>Scattering phase function.</td></tr><tr><td>W(d)</td><td>unitless</td><td>Importance function for light path of length d.</td></tr></table>
49
+
50
+ # 3 Neural Volume Rendering of ToF images
51
+
52
+ A neural radiance field (NeRF) [32] is a neural network optimized to predict a set of input images. Assuming a static scene, the neural network $F _ { \pmb \theta } : ( \mathbf { x } _ { t } , \pmb \omega _ { \mathrm { o } } ) \overset { - } { } ( \sigma ( \mathbf { x } _ { t } ) , \overbar { \lambda _ { \mathrm { s } } } ( \mathbf { x } _ { t } , \pmb \omega _ { \mathrm { o } } ) )$ with parameters $\pmb \theta$ takes as input a position $\mathbf { x } _ { t }$ and a direction $\omega _ { \mathrm { o } }$ , and outputs both the density $\sigma ( \mathbf { x } _ { t } )$ at point $\mathbf { x } _ { t }$ and the radiance $L _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } )$ of a light ray passing through $\mathbf { x } _ { t }$ in direction $\omega _ { \mathrm { o } }$ . The volume density function $\sigma ( { \bf x } _ { t } )$ controls the opacity at every point—large values of $\sigma ( { \bf x } _ { t } )$ represent opaque regions and small values represent transparent ones, which allows representation of 3D structures. The radiance function $L _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } )$ represents the light scattered at a point $\mathbf { x } _ { t }$ in direction $\omega _ { 0 }$ , and characterizes the visual appearance of different materials (e.g., shiny or matte). Together, these two functions can be used to render images of a scene from any given camera pose. The key insight of our work is that NeRFs can be extended to model (and learn from) the raw images of a ToF camera.
53
+
54
+ NeRF optimization requires neural volume rendering: given the pose of a camera, the procedure generates an image by tracing rays through the volume and computing the radiance observed along each ray [32]:
55
+
56
+ $$
57
+ L ( \mathbf { x } , \omega _ { \mathrm { o } } ) = \int _ { t _ { \mathrm { n } } } ^ { t _ { \mathrm { f } } } T ( \mathbf { x } , \mathbf { x } _ { t } ) \sigma ( \mathbf { x } _ { t } ) L _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) d t , \quad \mathrm { w h e r e } \quad T ( \mathbf { x } , \mathbf { x } _ { t } ) = e ^ { - \int _ { t _ { \mathrm { n } } } ^ { t } \sigma ( \mathbf { x } - \omega _ { \mathrm { o } } s ) d s }
58
+ $$
59
+
60
+ describes the transmittance for light propagating from position $\mathbf { x }$ to ${ \bf x } _ { t } = { \bf x } - \omega _ { \mathrm { o } } t$ , for near and far bounds $t \in [ t _ { \mathrm { n } } , t _ { \mathrm { f } } ]$ .
61
+
62
+ In practice, this integral is evaluated using quadrature [32]:
63
+
64
+ $$
65
+ L ( \mathbf { x } , \omega _ { \mathrm { o } } ) \approx \sum _ { k = 1 } ^ { N } \hat { T } ( \mathbf { x } , \mathbf { x } _ { k } ) ( 1 - e ^ { - \sigma ( \mathbf { x } _ { k } ) \Delta \mathbf { x } _ { k } } ) L _ { \mathrm { s } } ( \mathbf { x } _ { k } , \omega _ { \mathrm { o } } ) , \mathrm { ~ w h e r e ~ } \hat { T } ( \mathbf { x } , \mathbf { x } _ { k } ) = \prod _ { j = 1 } ^ { k - 1 } e ^ { - \sigma ( \mathbf { x } _ { j } ) \Delta \mathbf { x } _ { j } } .
66
+ $$
67
+
68
+ The value for $\Delta \mathbf { x } _ { j } = \| \mathbf { x } _ { j + 1 } - \mathbf { x } _ { j } \|$ is the distance between two quadrature points.
69
+
70
+ Generalizing the neural volume rendering procedure for ToF cameras requires two changes. First, because ToF cameras use an active light source to illuminate the scene, we must consider the fact that the lighting conditions of the scene change with the position of the camera. In Section 3.1, we derive the scene’s appearance in response to collocating a point light source with a camera, which follows a similar derivation to that of Bi et al. [5]. Second, in Section 3.2, we extend the volume rendering integral to model images captured with a ToF camera. Similar to the approaches taken in transient rendering frameworks [17, 39] and by neural transient fields (NeTFs) [46], we incorporate a path length importance function into our integral that can model different types of ToF cameras.
71
+
72
+ For simplicity, we assume that the function $L ( \mathbf { x } , \omega _ { \mathrm { o } } )$ is monochromatic, i.e., it outputs radiance at a single wavelength. Later on, we will model output values for red, green, blue, and infrared light (IR). $L _ { \mathrm { R G B } }$ values correspond to radiance from ambient illumination scattering towards a color camera, whereas $L _ { \mathrm { T o F } }$ corresponds to the measurements made by a ToF camera with active illumination.
73
+
74
+ 3.1. Collocated Point Light Source. An ideal ToF camera responds only to the light from a collocated IR point source and not to any ambient illumination. With this assumption, we model radiance $L _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } )$ as a function of the source position [5]:
75
+
76
+ $$
77
+ L _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) = \int _ { \mathbb { S } ^ { 2 } } f _ { \mathrm { p } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { i } } , \omega _ { \mathrm { o } } , \mathbf { n } ( \mathbf { x } _ { t } ) ) L _ { \mathrm { i } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { i } } ) d \omega _ { \mathrm { i } } ,
78
+ $$
79
+
80
+ where the function $L _ { \mathrm { i } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { i } } )$ represents the incident illumination from direction $\omega _ { \mathrm { i } } , \mathbb { S } ^ { 2 }$ is the unit sphere of incident directions, and the scattering phase function $f _ { \mathrm { p } } ( \mathbf x _ { t } , \omega _ { \mathrm { i } } , \omega _ { \mathrm { o } } , \mathbf n ( \mathbf x _ { t } ) )$ describes how light is scattered at a point $\mathbf { x } _ { t }$ in the volume. Note that the scattering phase function also depends on the local surface shading normal $\mathbf { n } ( \mathbf { x } _ { t } )$ . For a point light source at $\mathbf { x }$ (i.e., collocated with the camera), each scene point is only lit from one direction. Thus, the incident radiance is given by
81
+
82
+ $$
83
+ L _ { \mathrm { i } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { i } } ) = \frac { I } { \left\| \mathbf { x } - \mathbf { x } _ { t } \right\| ^ { 2 } } \delta \bigg ( \frac { \mathbf { x } - \mathbf { x } _ { t } } { \left\| \mathbf { x } - \mathbf { x } _ { t } \right\| } - \omega _ { \mathrm { i } } \bigg ) T ( \mathbf { x } , \mathbf { x } _ { t } ) ,
84
+ $$
85
+
86
+ where the scalar $I$ represents the emitted radiant intensity of the light source, $1 \big / | | \mathbf { x } - \mathbf { x } _ { t } | | ^ { 2 }$ is the inverse square light fall-off, and $\delta ( \cdot )$ is the Dirac distribution used to describe only the light from a single direction. This model ignores forward scattering, which is reasonable if the scene consists mostly of completely opaque surfaces. When substituted into Equation 1 and Equation 3, the resulting forward model is
87
+
88
+ $$
89
+ L ( \mathbf { x } , \omega _ { \mathrm { o } } ) = \int _ { t _ { n } } ^ { t _ { t } } \frac { T ( \mathbf { x } , \mathbf { x } _ { t } ) ^ { 2 } } { \left\| \mathbf { x } - \mathbf { x } _ { t } \right\| ^ { 2 } } \sigma ( \mathbf { x } _ { t } ) I _ { s } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) d t \mathrm { w h e r e } I _ { s } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) = f _ { \mathrm { p } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } , \omega _ { \mathrm { o } } , \mathbf { n } ( \mathbf { x } _ { t } ) ) I .
90
+ $$
91
+
92
+ where $\omega _ { \mathrm { i } } = \omega _ { \mathrm { o } }$ in the scattering phase function $f _ { \mathfrak { p } }$ as emitted light is reflected along the same ray.
93
+
94
+ This expression is similar to Equation 1 with two key differences: the squared transmittance term, and the inverse square falloff induced by the point light source. Similar to NeRF [32], we can once again numerically approximate the above integral using quadrature, and recover the volume parameters $( \sigma ( { \bf x } _ { t } ) , I _ { \mathrm { s } } ( \bar { { \bf x } } _ { t } , \bar { \omega } _ { 0 } ) )$ by training a neural network that depends only on position and direction.
95
+
96
+ 3.2. Continuous-Wave ToF Model. ToF cameras use the travel time of light to compute distances [14]. The collocated point light source sends an artificial light signal into an environment, and a ToF sensor measures the time required for light to reflect back in response. Given the constant speed of light, ${ \mathrm { c } } \approx 3 \cdot 1 0 ^ { 8 } { \mathrm { m } } / { \mathrm { s } }$ , this temporal information determines the distance traveled. These devices have found widespread adoption from autonomous vehicles [25] to mobile AR applications [19, 21].
97
+
98
+ Photorealistic simulations of ToF cameras involve introducing a path length importance function to the rendering equation [17, 39], and can be just as easily applied to the integral in Equation 5:
99
+
100
+ $$
101
+ L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } ) = \int _ { t _ { \mathrm { n } } } ^ { t _ { \mathrm { f } } } \frac { T ( \mathbf { x } , \mathbf { x } _ { t } ) ^ { 2 } } { \left\| \mathbf { x } - \mathbf { x } _ { t } \right\| ^ { 2 } } \sigma ( \mathbf { x } _ { t } ) I _ { \mathrm { s } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) W ( 2 \left\| \mathbf { x } - \mathbf { x } _ { t } \right\| ) d t ,
102
+ $$
103
+
104
+ where the function $W ( d )$ weights the contribution of a light path of length $d$ . Note that light travels twice the distance between the camera’s origin $\mathbf { x }$ and the scene point $\mathbf { x } _ { t }$ . As described by Pediredla et al. [39], the function $W ( d )$ can be used to represent a wide variety of ToF cameras, including both pulsed ToF sensors [18] and continuous-wave ToF (C-ToF) sensors [12, 19, 35]. Here, as our proposed system uses a C-ToF sensor for imaging, the images are modeled using the phasor $\begin{array} { r } { W ( d ) \ : = \ : \exp \bigl ( \mathrm { i } \frac { 2 \pi d f } { \mathrm { c } } \bigr ) } \end{array}$ , where $f$ is the modulation frequency of the signal emitted by the C-ToF camera. Note that, because the function $W ( d )$ is complex-valued, the radiance $L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } )$ will also produce a complex-valued phasor image [12]. In practice, phasor images are created by capturing four real-valued images that are linearly combined (see supplemental document for additional details). In Figure 1(c), we show the real component of the phasor image, with positive pixel values as red, and negative values as blue.
105
+
106
+ ![](images/111aeaf774d51f17a43d62f009a706ba6a50ad4437defe6dd26b0d1b273b3665.jpg)
107
+ Figure 2: Neural volume rendering of C-ToF images. (a) We start with ray marching to evaluate the radiance and opacity at different points along the ray. (b) These samples represent the continuous integrand of Equation 5, which describes the contribution of every point $\mathbf { x } _ { t }$ along the ray. For example, ray 1 grazes both bunny ears, producing two distinct responses. (c) As described by Equation 6, we multiply the integrand with a complex exponential, with the result represented here in the complex plane. Integrating this result produces a single complex phasor, represented here by a vector with a magnitude corresponding to reflectance and a direction corresponding to the phase (or distance). (d) The loss function compares rendered phasors with the raw measurements of a C-ToF camera.
108
+
109
+ Contrasting with ToF-derived depth. ToF cameras typically recover depth by assuming only one point $\mathbf { x } _ { \mathrm { s } }$ reflects light for every ray, i.e., the integrand of Equation 6 is assumed to be zero for all other points ${ \bf x } \neq { \bf x } _ { \mathrm { s } }$ (points in front of $\mathbf { x } _ { \mathrm { s } }$ reflect no light, and points behind $\mathbf { x } _ { \mathrm { s } }$ are hidden). Under these assumptions, Equation 6 simplifies to the phasor:
110
+
111
+ $$
112
+ \begin{array} { r } { L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } ) = a \cdot W ( 2 \| \mathbf { x } - \mathbf { x } _ { \mathrm { s } } \| ) = a \cdot \exp \left( \mathrm { i } \frac { 4 \pi f } { \mathrm { c } } \| \mathbf { x } - \mathbf { x } _ { \mathrm { s } } \| \right) , } \end{array}
113
+ $$
114
+
115
+ where the phasor’s magnitsingle point, and the phase, $| L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } ) | = a$ nts thmod mount of light reflect, is related to distance $\begin{array} { r } { \angle L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } ) = \frac { 4 \pi f } { \mathrm { c } } \| \mathbf { x } - \mathbf { x } _ { \mathrm { s } } \| } \end{array}$ $2 \pi$ ${ \left\| { { \bf { x } } - { { \bf { x } } _ { \mathrm { { s } } } } } \right\| }$
116
+
117
+ In real-world scenarios, it is also possible for multiple points along a ray to contribute to the signal, resulting in a linear combination of phasor radiance values—known as multi-path interference. This can degrade the quality of depth measurements for a C-ToF camera. For example, around depth edges, a pixel integrates the signal from surfaces at two different distances from the camera (e.g., Figure 2), resulting in ‘flying pixel’ artifacts [43] (i.e., 3D points not corresponding to either distance). Similar artifacts occur when imaging semi-transparent or specular objects, where two or more surfaces contribute light to a pixel.
118
+
119
+ Optimizing NeRFs with phasor images via Equation 6 therefore has three distinct advantages over using derived depth maps via Equation 7. (i) For ranges that span values larger than $\frac { \mathrm { c } } { 2 f }$ , the true range is ambiguous, as there are multiple depth values that produce the same phase. For example, a typical modulation frequency of $f = 3 0 \mathrm { M H z }$ for a C-ToF camera corresponds to an unambigous range of $\frac { c } { 2 f } \approx 5 { \mathrm { m } }$ . By modeling the phasor images directly, we avoid the issues associated with recovering depth images for scenes that exceed this range (Figure 3). (ii) Depth values become unreliable (noisy) when the amount of light reflected to the camera is small. Modeling the phasor images directly makes the solution robust to sensor noise (Figure 4). (iii) For regions near depth edges (Figure 2) or for objects with complicated reflectance properties (e.g., transparent or specular surfaces), the light detected may not travel along a single path; this results in mixtures of phasors, producing phase values that do not correspond to a single depth. Equation 6 models the response from multiple single-scattering events along a ray, providing us with a better handle over such scenarios.
120
+
121
+ # 4 Optimizing Dynamic $\mathbf { T o F } + \mathbf { N e R F } = \mathbf { T } \Ddot { \mathbf { 0 } } \mathbf { R F }$
122
+
123
+ 4.1. Dynamic Neural Radiance Fields. One key advantage of working with phasor images is that the method can capture scene geometry from a single view, which enables higher-fidelity novel-view synthesis of dynamic scenes from a potentially moving color camera and C-ToF camera pair. To support dynamic neural radiance fields, we model the measurements with two neural networks. The first, static network $F _ { \theta } ^ { \mathrm { s t a t } } : ( \mathbf { x } _ { t } , \omega _ { 0 } ) ( \sigma ^ { \mathrm { s t a t } } ( \mathbf { x } _ { t } ) , L _ { s } ^ { \mathrm { s t a t } } ( \mathbf { x } _ { t } , \omega _ { 0 } ) , I _ { s } ^ { \mathrm { s t a t } } ( \mathbf { x } _ { t } , \omega _ { 0 } ) )$ is a 5D function of position and direction, while the second, dynamic network $F _ { \pmb \theta } ^ { \mathrm { d y n } } : ( { \bf x } _ { t } , \omega _ { \mathrm { o } } , \tau ) $ $\left( \sigma ^ { \mathrm { d y n } } ( \mathbf { x } _ { t } , \tau ) , L _ { \mathrm { s } } ^ { \mathrm { d y n } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } ) , I _ { \mathrm { s } } ^ { \mathrm { d y n } } ( \mathbf { x } _ { t } , \omega _ { \mathrm { o } } , \tau ) , b ( \mathbf { x } _ { t } , \tau ) \right)$ is a $^ { 6 \mathrm { D } }$ function of position, direction, and time $\tau$ . Instead of directly consuming a time $\tau$ , the dynamic network receives a latent code ${ \bf z } _ { \tau }$ which is optimized per frame, similar to Li et al. [24]. Following the approach of Li et al. [26], we blend the outputs of the static and dynamic networks using a position- and time-dependent blending weight $b ( \mathbf { x } _ { t } , \tau )$ that is predicted by the dynamic network $F _ { \theta } ^ { \mathrm { d y n } }$ , as in Gao et al. [10]. This produces density $\sigma ^ { \mathrm { b l e n d } }$ , radiance $L _ { \mathrm { s } } ^ { \mathrm { b l e n d } }$ , and radiant intensity $I _ { \mathrm { s } } ^ { \mathrm { b l e n d } }$ values to pass into our image formation models:
124
+
125
+ ![](images/a392c08c1f399778121d522a847b59c42fac89c54c3ef5cabe8009c6c8d088d4.jpg)
126
+ Figure 3: Raw phasor supervision avoids wrap-around errors. Wrap-around phase bounds the range of useful ToF measurements (left), causing errors when depth is used as supervision. Our approach of modeling raw phasor measurements within the neural volume alleviates this problem (right). This is because only one phase offset is consistent across multiple camera views.
127
+
128
+ ![](images/5e2e796abc6812ecef394b06bf70afc82c2597f0314359abd2a19644ecbed881.jpg)
129
+ Figure 4: Raw phasor supervision reduces noise in dark objects. The weak signal reflected back by dark objects (e.g., the computer monitor) results in noisy depth measurements. As TöRF does not rely on depth explicitly and instead models raw phasor images, our recovered depth map better captures the scene geometry in comparison to ToF-derived depth. This is because when phasor magnitudes are small, TöRF falls back on triangulation cues to recover geometry.
130
+
131
+ $$
132
+ \begin{array} { l } { { \displaystyle { \cal L } _ { \mathrm { R G B } } ( { \bf x } , \omega _ { 0 } , \tau ) = \int _ { t _ { n } } ^ { t _ { t } } T ^ { \mathrm { b l e n d } } ( { \bf x } , { \bf x } _ { t } , \tau ) \sigma ^ { \mathrm { b l e n d } } ( { \bf x } _ { t } , \tau ) L _ { s } ^ { \mathrm { b l e n d } } ( { \bf x } _ { t } , \omega _ { 0 } , \tau ) d t } \ ~ } \\ { { \displaystyle { \cal L } _ { \mathrm { T o F } } ( { \bf x } , \omega _ { 0 } , \tau ) = \int _ { t _ { n } } ^ { t _ { t } } \frac { T ^ { \mathrm { b l e n d } } ( { \bf x } , { \bf x } _ { t } , \tau ) ^ { 2 } } { \left\| { \bf x } - { \bf x } _ { t } \right\| ^ { 2 } } \sigma ^ { \mathrm { b l e n d } } ( { \bf x } _ { t } , \tau ) I _ { s } ^ { \mathrm { b l e n d } } ( { \bf x } _ { t } , \omega _ { 0 } , \tau ) W ( 2 \left\| { \bf x } - { \bf x } _ { t } \right\| ) d t } . } \end{array}
133
+ $$
134
+
135
+ See the supplemental document for an explicit definition of the blending terms.
136
+
137
+ 4.2. Loss Function. Given a set of color images and phasor images captured of a scene at different time instances, we sample a set of camera rays from the set of all pixels, and minimize the following total squared error between the rendered images and measured pixel values:
138
+
139
+ $$
140
+ \mathcal { L } = \sum _ { ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau ) } \Vert L _ { \mathrm { R G B } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau ) - \hat { L } _ { \mathrm { R G B } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau ) \Vert ^ { 2 } + \lambda \Vert L _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau ) - \hat { L } _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau ) \Vert ^ { 2 } ,
141
+ $$
142
+
143
+ where the scalar $\lambda \geq 0$ controls the relative contribution of both loss terms, $\hat { L } _ { \mathrm { R G B } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau )$ represents the measurements of a color camera, and $\hat { L } _ { \mathrm { T o F } } ( \mathbf { x } , \omega _ { \mathrm { o } } , \tau )$ represents the phasor measurements of a C-ToF camera. At training time, we reduce the weight $\lambda$ in later iterations to prioritize the color loss (halved every 125,000 iterations).
144
+
145
+ 4.3. Camera Pose Optimization. In past works, COLMAP [45] has been used to recover camera poses for NVS. However, COLMAP fails to recover accurate camera poses for many real scenes even if we masked dynamic regions [20]. Further, COLMAP only recovers camera poses up to unknown scale, whereas our ToF image formation model assumes a known scene scale. As such, for real-world scenes, we optimize camera poses from scratch within the training loop. First, we optimize the weights of the static neural network F statθ , as well as the camera poses for each video frame and the relative rotation and translation between the color and C-ToF sensor, with a learning rate of $1 0 ^ { - 3 }$ After 5000 iterations, we decrease the pose learning rate to $5 \cdot 1 0 ^ { - 4 } $ , and optimize our full model.
146
+
147
+ 4.4. Ray Sampling. Many physical camera systems do not have collocated color and ToF cameras. As such, to train our model, we trace separate rays through the volume for color and ToF measurements. We alternate using the color loss and the ToF loss for every iteration. Further, like NeRF [32], we use stratified random sampling when sampling points along a ray.
148
+
149
+ # 5 Experiments
150
+
151
+ 5.1. Hardware. We use an iDS UI-3070CP-C-HQ machine vision camera to provide RGB measurements $6 4 0 \times 4 8 0$ $@$ 30 fps; downsampled to $3 2 0 \times 2 4 0 )$ ), and a Texas Instruments OPT8241 sensor to provide phasor measurements $3 2 0 \times 2 4 0$ $@$ 30 fps) with an unambiguous range of $5 \mathrm { m }$ . Both cameras are mounted with a baseline of $4 1 \mathrm { m m }$ . We use OpenCV to calibrate intrinsics, extrinsics, and lens distortion. See the supplement for details.
152
+
153
+ For optimization, we use an NVIDIA GeForce RTX 2080 Ti with 11 GB RAM. Our model takes 12–24 hours to converge, and 3–5 seconds per frame to generate a novel view $( 2 5 6 \times 2 5 6 )$ .
154
+
155
+ 5.2. Data. We captured the PhoneBooth, Cupboard, Photocopier, DeskBox, and StudyBook sequences with our handheld camera setup. Each is indoors in an office with a person performing a dynamic action, and includes view dependence from real-world materials. PhoneBooth includes multi-path interference effects from a glass door, and Photocopier includes wrap-around phase effects in the distance. For comparison, we also captured the Dishwasher sequence on an iPhone $1 2 \mathrm { P r o }$ , which uses a ToF sensor to capture depth (raw measurements are not available). Finally, we create synthetic raw C-ToF sequences Bathroom, Bedroom, and DinoPear by adapting the physically-based path tracer PBRT [40] to generate phasor images with multi-bounce and scattering effects.
156
+
157
+ 5.3. Few-View Reconstruction of Static Scenes. We demonstrate that integrating raw ToF measurements in addition to RGB enables TöRF to reconstruct static scenes from fewer input views, and to achieve higher visual fidelity than standard NeRF [32] for the same number of input views. Table 2 contains a quantitative comparison on two synthetic sequences, Bathroom and Bedroom, for reconstructions from just 2 and 4 input views. To enable the comparison on 10 hold-out views, we use ground-truth camera poses for both methods. With just two input views, TöRF’s added phasor supervision better reproduces the scene than NeRF, as one might expect. This closely resembles a camera system that might exist on a smartphone, and shows the potential value of ToF supervision for dynamic scenes if we consider a static scene as one time step of a video sequence. For four views, NeRF and TöRF produce comparable RGB results, though our depth reconstructions are significantly more accurate (Figure 5).
158
+
159
+ 5.4. Dynamic Scenes. We compare reconstruction quality on the synthetic dynamic sequence DinoPear in Table 3 with 30 ground-truth hold-out views and depth maps. Compared to methods that use deep depth estimates (NSFF and VideoNeRF), TöRF produces better depth and RGB views. While TöRF PSNR is slightly lower than NSFF’s, the perceptual LPIPS metric is significantly lower for TöRF, which matches the findings from our qualitative results. TöRF also produces better depth and RGB reconstructions than the same methods modified to use ToF-derived depth (NSFF $+$ ToF, VideoNeRF+ToF).
160
+
161
+ For real-world scenes, we show results and comparisons in Figure 6. VideoNeRF+ToF shows stronger disocclusion artifacts and warped edges near depth boundaries, and cannot recover from depth maps with wrapped range. NSFF suffers from severe ghosting and stretching artifacts that negatively impact the quality of the results. Our results show the highest visual quality and most accurate depth maps. Please see the videos on our website for in-motion novel-view synthesis.
162
+
163
+ # 6 Discussion
164
+
165
+ 6.1. Limitations. Introducing ToF sensors into RGB neural radiance fields aims to improve quality by merging the benefits of both sensing modes; but, some limitations are also brought in through ToF sensing. C-ToF sensing can struggle on larger-scale scenes; however, using multiple different modulation frequencies can extend the unambiguous range [12]. Using different coding methods can also increase depth precision [13]. While C-ToF sensors typically struggle outdoors, EpiToF [1] has demonstrated the ability to perform $1 5 \mathrm { m }$ ranging under strong ambient illumination. Further, for each measurement, C-ToF sensors require capturing four or more images quickly at different times, which can cause artifacts for fast-moving objects.
166
+
167
+ Table 2: Phasor supervision aids few-view reconstruction. Each cell contains RGB image similarity measures, and metrics are computed on 10 hold-out views. TöRF significantly outperforms NeRF on both synthetic static scenes and produces more accurate depth estimates (Figure 5), particularly from just two input views. Note that the metric depth error ‘MSE (D)’ is affected by mirrors, particularly in the bathroom scene, whose depth is defined by the plane of the mirror and not the objects in its reflection.
168
+
169
+ <table><tr><td></td><td></td><td colspan="4">Bathroom</td><td colspan="4">Bedroom</td></tr><tr><td></td><td>Views Method</td><td>MSE (D) ?</td><td>PSNR ▲</td><td>SSIM ▲</td><td>LPIPS ?</td><td>MSE (D) ?</td><td>PSNR ▲</td><td>SSIM ▲</td><td>LPIPS ?</td></tr><tr><td>2</td><td>NeRF [32]</td><td>0.97</td><td>16.56</td><td>0.660</td><td>0.022</td><td>18.43</td><td>11.59</td><td>0.313</td><td>0.056</td></tr><tr><td></td><td>ToRF (ours)</td><td>2.12</td><td>19.21</td><td>0.739</td><td>0.015</td><td>0.31</td><td>22.09</td><td>0.840</td><td>0.010</td></tr><tr><td>4</td><td>NeRF[32]</td><td>0.70</td><td>24.17</td><td>0.864</td><td>0.008</td><td>0.94</td><td>28.29</td><td>0.936</td><td>0.003</td></tr><tr><td></td><td>ToRF (ours)</td><td>0.76</td><td>26.18</td><td>0.879</td><td>0.009</td><td>0.27</td><td>29.79</td><td>0.938</td><td>0.002</td></tr></table>
170
+
171
+ ![](images/857d242b824089eac25365f272a3bd82488a901730fdfb4f328434c739cdc944.jpg)
172
+ Figure 5: Adding ToF aids reconstruction for few views in static scenes. NeRF quality suffers as the number of views decreases, but adding ToF data makes view synthesis possible with two RGB views. Note the cleaner depth, sharper edges, and thin geometric details such as the lamps above the mirror.
173
+
174
+ ![](images/5383a5ba70f93be82b7cf032533b074dcd5057651e1e7d6f7725e2050862ea61.jpg)
175
+ Figure 6: Adding ToF supervision helps improve quality. Compared to two video baselines, VideoNeRF [52] (modified to use ToF-derived depth) and NSFF [26], our approach reduces errors in static scene components and some dynamic components. All models were trained for comparable times. Please see the videos on our website for additional comparisons in motion.
176
+
177
+ Table 3: Evaluation on ground-truth hold-out views for the dynamic DinoPear sequence shows improved depth and RGB results for our method. Note that NSFF and VideoNeRF are given manually unwrapped ToF depth produced by adding $2 \pi$ to all phase values below a certain threshold. The TöRF approach of using raw phasor images produces better depth reconstructions. While NSFF produces the highest PSNR, this does not match the perceived visual quality—please see our webpage.
178
+
179
+ <table><tr><td>Method</td><td>Depth MSE</td><td>PSNR</td><td>SSIM▲</td><td>LPIPS ?</td></tr><tr><td>NSFF[26]</td><td>0.021 ± 0.003</td><td>22.64 ± 1.46</td><td>0.554 ± 0.029</td><td>0.039 ± 0.010</td></tr><tr><td>+ ToF depth</td><td>0.010 ± 0.002</td><td>21.84 ± 0.72</td><td>0.382 ± 0.021</td><td>0.037 ± 0.014</td></tr><tr><td>+ ToF depth (unwrapped)</td><td>0.007 ± 0.002</td><td>21.70 ± 0.98</td><td>0.387 ± 0.028</td><td>0.040 ± 0.013</td></tr><tr><td>VideoNeRF[52]</td><td>0.008 ± 0.002</td><td>21.32 ± 1.03</td><td>0.358 ± 0.032</td><td>0.032 ± 0.017</td></tr><tr><td>+ ToF depth</td><td>0.011 ± 0.002</td><td>19.75 ± 1.07</td><td>0.275 ± 0.021</td><td>0.041 ± 0.016</td></tr><tr><td>+ ToF depth (unwrapped)</td><td>0.009 ± 0.002</td><td>20.72 ± 1.03</td><td>0.350 ± 0.033</td><td>0.032 ± 0.016</td></tr><tr><td>ToRF (ours)</td><td>0.005 ± 0.001</td><td>22.19 ± 1.75</td><td>0.561 ± 0.052</td><td>0.028 ± 0.011</td></tr></table>
180
+
181
+ öRF RGB TöRFEven with ToF data, objects imaged at grazing angles or objects that are both dark (low reflectance) and dynamic remain difficult to reconstruct, e.g., dark hair (Figure 7). Further, neural networks have limited capacity to model dynamic scenes, which limits the duration of dynamic sequences. This is a limitation of many current neural dynamic scene methods.
182
+
183
+ 6.2. Potential Social Impact. Scene reconstruction and view synthesis are core problems in visual computing for determining the shape and appearance of objects and scenes. Neural approaches to these tasks hold promise to increase accuracy and fidelity. At the methodological level, integrating ToF data improves accuracy, but restricts use to scenarios where active illumination is detectable. While the recovery of shape and appearance has many applications, negative impact may include synthesizing images from perspectives or time instances that were never captured (falsifying media), extending surveillance through higher-fidelity reconstructions (security), or copying physical objects to ‘rip off’ designs.
184
+
185
+ ![](images/5eadb3a11bd4e911b6aae39e34da8da1c88bc408aff80b101f42899f15ead378.jpg)
186
+ Figure 7: In the Photocopier (top) and StudyBook (bottom) scenes, RGB and depth NVS show that dark and dynamic objects pose difficulties. Dark hair incorrectly extends in front or to the side of the face due to failure to reconstruct dynamic motion.
187
+
188
+ Practically, current neural approaches are more computationally expensive in both optimization and rendering than classic image-based rendering. Our work required GPUs to optimize for many hours (12–24 h). Without renewable energy sources, this use will generate $\mathrm { C O } _ { 2 }$ emissions, requiring $1 . 5 { - } 3 \mathrm { k g } \mathrm { C O } _ { 2 }$ -equivalents per scene for optimization and $0 . 0 1 { - } 0 . 0 2 \mathrm { k g } \mathrm { C O } _ { 2 }$ -equivalents per sequence for rendering (numbers generated by ML $\mathrm { C O } _ { 2 }$ Impact [22]). Concurrent work in neural radiance fields reduces this cost using caching, spatial acceleration structures, and more efficient parameterizations, and real-world deployment should exploit these approaches to reduce the $\mathrm { C O } _ { 2 }$ emission impact.
189
+
190
+ # 7 Conclusion
191
+
192
+ Modern camera systems integrate multiple modes of sensing, and our reconstruction methods should exploit this information to improve quality. To this end, we formulate a neural model for time-offlight radiance fields based on physical $\mathrm { R G B + T o F }$ image formation. We demonstrate an optimization method to recover TöRF volumes, and show that it improves novel-view synthesis for few-view scenes and especially for dynamic scenes. Further, we demonstrate that using raw ToF phasor supervision leads to better performance than using derived depth directly, allowing both sensing modes to help resolve errors, limitations, and ambiguities. Future work may extend the combination of additional sensors into neural radiance fields, e.g., dynamic vision sensors [27] or event cameras may be used to measure scenes at higher speeds. Further, a collocated point light source has been shown to be able to render photos of scenes under non-collocated illumination conditions [5]. As a result, we believe ToF images may also serve to support relighting applications.
193
+
194
+ # Acknowledgments and Disclosure of Funding
195
+
196
+ Thank you to Kenan Deng for developing acquisition software for the time-of-flight camera. For our synthetic data, we thank the authors of assets from the McGuire Computer Graphics Archive [29], Benedikt Bitterli for Mitsuba scene files [6], Davide Tirindelli for Blender scene files, ‘Architectural Visualization’ demo Blender scene by Marek Moravec (CC-0 Public Domain) [33], ‘Rampaging T-Rex’ from the 3D library of Microsoft’s 3D Viewer, and ‘Indoor Pot Plant $2 ^ { \circ }$ by 3dhaupt from Free3D (non-commercial) [15].
197
+
198
+ For funding, Matthew O’Toole acknowledges support from NSF IIS-2008464, James Tompkin thanks an Amazon Research Award and NSF CNS-2038897, and Christian Richardt acknowledges funding from an EPSRC-UKRI Innovation Fellowship (EP/S001050/1) and RCUK grant CAMERA (EP/M023281/1, EP/T022523/1).
199
+
200
+ # References
201
+
202
+ [1] Supreeth Achar, Joseph R. Bartels, William L. ‘Red’ Whittaker, Kiriakos N. Kutulakos, and Srinivasa G. Narasimhan. Epipolar time-of-flight imaging. ACM Trans. Graph., 36(4):37:1–8, 2017. doi:10.1145/3072959.3073686.
203
+ [2] Robert Anderson, David Gallup, Jonathan T. Barron, Janne Kontkanen, Noah Snavely, Carlos Hernandez, Sameer Agarwal, and Steven M. Seitz. Jump: Virtual reality video. ACM Trans. Graph., 35(6):198:1–13, 2016. doi:10.1145/2980179.2980257.
204
+ [3] Benjamin Attal, Selena Ling, Aaron Gokaslan, Christian Richardt, and James Tompkin. MatryODShka: Real-time 6DoF video view synthesis using multi-sphere images. In ECCV, 2020. doi:10.1007/978-3-030- 58452-8_26.
205
+ [4] Tobias Bertel, Mingze Yuan, Reuben Lindroos, and Christian Richardt. OmniPhotos: Casual $3 6 0 ^ { \circ }$ VR photography. ACM Trans. Graph., 39(6):267:1–12, 2020. doi:10.1145/3414685.3417770.
206
+ [5] Sai Bi, Zexiang Xu, Pratul Srinivasan, Ben Mildenhall, Kalyan Sunkavalli, Miloš Hašan, Yannick HoldGeoffroy, David Kriegman, and Ravi Ramamoorthi. Neural reflectance fields for appearance acquisition. arXiv:2008.03824, 2020.
207
+ [6] Benedikt Bitterli. Rendering resources, 2016. URL https://benedikt-bitterli.me/resources/.
208
+ [7] Michael Broxton, John Flynn, Ryan Overbeck, Daniel Erickson, Peter Hedman, Matthew DuVall, Jason Dourgarian, Jay Busch, Matt Whalen, and Paul Debevec. Immersive light field video with a layered mesh representation. ACM Trans. Graph., 39(4):86:1–15, 2020. doi:10.1145/3386569.3392485.
209
+ [8] Chris Buehler, Michael Bosse, Leonard McMillan, Steven Gortler, and Michael Cohen. Unstructured lumigraph rendering. In SIGGRAPH, pages 425–432, 2001. doi:10.1145/383259.383309.
210
+ [9] Paul Debevec, Yizhou Yu, and George Borshukov. Efficient view-dependent image-based rendering with projective texture-mapping. In Proceedings of the Eurographics Workshop on Rendering, pages 105–116, 1998. doi:10.1007/978-3-7091-6453-2_10.
211
+ [10] Chen Gao, Ayush Saraf, Johannes Kopf, and Jia-Bin Huang. Dynamic view synthesis from dynamic monocular video. In ICCV, 2021.
212
+ [11] Steven J. Gortler, Radek Grzeszczuk, Richard Szeliski, and Michael F. Cohen. The lumigraph. In SIGGRAPH, pages 43–54, 1996. doi:10.1145/237170.237200.
213
+ [12] Mohit Gupta, Shree K. Nayar, Matthias B. Hullin, and Jaime Martin. Phasor imaging: A generalization of correlation-based time-of-flight imaging. ACM Trans. Graph., 34(5):156:1–18, 2015. doi:10.1145/2735702.
214
+ [13] Felipe Gutierrez-Barragan, Syed Azer Reza, Andreas Velten, and Mohit Gupta. Practical coding function design for time-of-flight imaging. In CVPR, pages 1566–1574, 2019.
215
+ [14] Miles Hansard, Seungkyu Lee, Ouk Choi, and Radu Patrice Horaud. Time-of-Flight Cameras: Principles, Methods and Applications. Springer, 2012. doi:10.1007/978-1-4471-4658-2.
216
+ [15] Dennis Haupt. Indoor Pot Plant 2, November 2019. URL https://free3d.com/3d-model/ indoor-pot-plant-77983.html. Non-commercial use only.
217
+ [16] Peter Hedman, Suhib Alsisan, Richard Szeliski, and Johannes Kopf. Casual 3D photography. ACM Trans. Graph., 36(6):234:1–15, 2017. doi:10.1145/3130800.3130828.
218
+ [17] Adrian Jarabo, Julio Marco, Adolfo Muñoz, Raul Buisan, Wojciech Jarosz, and Diego Gutierrez. A framework for transient rendering. ACM Trans. Graph., 33(6):177:1–10, 2014. doi:10.1145/2661229.2661251.
219
+ [18] Walter Koechner. Optical ranging system employing a high power injection laser diode. IEEE Transactions on Aerospace and Electronic Systems, 4(1):81–91, 1968. doi:10.1109/TAES.1968.5408936.
220
+ [19] Andreas Kolb, Erhardt Barth, Reinhard Koch, and Rasmus Larsen. Time-of-flight cameras in computer graphics. Comput. Graph. Forum, 29(1):141–159, 2010. doi:10.1111/j.1467-8659.2009.01583.x.
221
+ [20] Johannes Kopf, Xuejian Rong, and Jia-Bin Huang. Robust consistent video depth estimation. In CVPR, 2021.
222
+ [21] George Alex Koulieris, Kaan Ak¸sit, Michael Stengel, Rafał K. Mantiuk, Katerina Mania, and Christian Richardt. Near-eye display and tracking technologies for virtual and augmented reality. Comput. Graph. Forum, 38(2):493–519, 2019. doi:10.1111/cgf.13654.
223
+ [22] Alexandre Lacoste, Alexandra Luccioni, Victor Schmidt, and Thomas Dandres. Quantifying the carbon emissions of machine learning. arXiv:1910.09700, 2019.
224
+ [23] Marc Levoy and Pat Hanrahan. Light field rendering. In SIGGRAPH, pages 31–42, 1996. doi:10.1145/237170.237199.
225
+ [24] Tianye Li, Mira Slavcheva, Michael Zollhöfer, Simon Green, Christoph Lassner, Changil Kim, Tanner Schmidt, Steven Lovegrove, Michael Goesele, and Zhaoyang Lv. Neural 3D video synthesis. arXiv:2103.02597, 2021.
226
+ [25] You Li and Javier Ibanez-Guzman. Lidar for autonomous driving: The principles, challenges, and trends for automotive lidar and perception systems. IEEE Signal Processing Magazine, 37(4):50–61, 2020. doi:10.1109/MSP.2020.2973615.
227
+ [26] Zhengqi Li, Simon Niklaus, Noah Snavely, and Oliver Wang. Neural scene flow fields for space-time view synthesis of dynamic scenes. In CVPR, 2021.
228
+ [27] Patrick Lichtsteiner, Christoph Posch, and Tobi Delbruck. A $1 2 8 \times 1 2 8$ 120 db $1 5 \mu \mathrm { s }$ latency asynchronous temporal contrast vision sensor. IEEE Journal of Solid-State Circuits, 43(2):566–576, 2008. doi:10.1109/JSSC.2007.914337.
229
+ [28] Xuan Luo, Jia-Bin Huang, Richard Szeliski, Kevin Matzen, and Johannes Kopf. Consistent video depth estimation. ACM Trans. Graph., 39(4):71:1–13, 2020. doi:10.1145/3386569.3392377.
230
+ [29] Morgan McGuire. Computer Graphics Archive, July 2017. URL https://casual-effects.com/data.
231
+ [30] Moustafa Meshry, Dan B Goldman, Sameh Khamis, Hugues Hoppe, Rohit Pandey, Noah Snavely, and Ricardo Martin-Brualla. Neural rerendering in the wild. In CVPR, 2019. doi:10.1109/CVPR.2019.00704.
232
+ [31] Ben Mildenhall, Pratul P. Srinivasan, Rodrigo Ortiz-Cayon, Nima Khademi Kalantari, Ravi Ramamoorthi, Ren Ng, and Abhishek Kar. Local light field fusion: Practical view synthesis with prescriptive sampling guidelines. ACM Trans. Graph., 38(4):29:1–14, 2019. doi:10.1145/3306346.3322980.
233
+ [32] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020. doi:10.1007/978- 3-030-58452-8_24.
234
+ [33] Marek Moravec. Architectural visualization—Blender demo scene, November 2019. URL https: //www.blender.org/download/demo-files/. CC-0 Public Domain.
235
+ [34] Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. HoloGAN: Unsupervised learning of 3D representations from natural images. In ICCV, 2019. doi:10.1109/ICCV.2019.00768.
236
+ [35] Matthew O’Toole, Felix Heide, Lei Xiao, Matthias B. Hullin, Wolfgang Heidrich, and Kiriakos N. Kutulakos. Temporal frequency probing for 5D transient analysis of global light transport. ACM Trans. Graph., 33(4):87:1–11, 2014. doi:10.1145/2601097.2601103.
237
+ [36] Ryan Styles Overbeck, Daniel Erickson, Daniel Evangelakos, Matt Pharr, and Paul Debevec. A system for acquiring, compressing, and rendering panoramic light field stills for virtual reality. ACM Trans. Graph., 37(6):197:1–15, 2018. doi:10.1145/3272127.3275031.
238
+ [37] Keunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo-Martin Brualla. Nerfies: Deformable neural radiance fields. In ICCV, 2021.
239
+ [38] Albert Parra Pozo, Michael Toksvig, Terry Filiba Schrager, Joyse Hsu, Uday Mathur, Alexander SorkineHornung, Rick Szeliski, and Brian Cabral. An integrated 6DoF video camera and system design. ACM Trans. Graph., 38(6):216:1–16, 2019. doi:10.1145/3355089.3356555.
240
+ [39] Adithya Pediredla, Ashok Veeraraghavan, and Ioannis Gkioulekas. Ellipsoidal path connections for time-gated rendering. ACM Trans. Graph., 38(4):38:1–12, 2019. doi:10.1145/3306346.3323016.
241
+ [40] Matt Pharr, Wenzel Jakob, and Greg Humphreys. Physically Based Rendering: From Theory to Implementation. Elsevier Science, 3rd edition, 2016. ISBN 9780128007099. URL https://www.pbr-book.org/.
242
+ [41] Kari Pulli, Michael F. Cohen, Tom Duchamp, Hugues Hoppe, Linda Shapiro, and Werner Stuetzle. Viewbased rendering: Visualizing real objects from scanned range and color data. In Proceedings of the Eurographics Workshop on Rendering, pages 23–34, 1997. doi:10.1007/978-3-7091-6858-5_3.
243
+ [42] Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural radiance fields for dynamic scenes. In CVPR, 2021.
244
+ [43] Malcolm Reynolds, Jozef Doboš, Leto Peel, Tim Weyrich, and Gabriel J Brostow. Capturing time-of-flight data with confidence. In CVPR, pages 945–952, 2011. doi:10.1109/CVPR.2011.5995550.
245
+ [44] Christopher Schroers, Jean-Charles Bazin, and Alexander Sorkine-Hornung. An omnistereoscopic video pipeline for capture and display of real-world VR. ACM Trans. Graph., 37(3):37:1–13, 2018. doi:10.1145/3225150.
246
+ [45] Johannes L. Schönberger and Jan-Michael Frahm. Structure-from-motion revisited. In CVPR, pages 4104–4113, 2016. doi:10.1109/CVPR.2016.445.
247
+ [46] Siyuan Shen, Zi Wang, Ping Liu, Zhengqing Pan, Ruiqian Li, Tian Gao, Shiying Li, and Jingyi Yu. Non-line-of-sight imaging via neural transient fields. TPAMI, 43(7):2257–2268, 2021. doi:10.1109/TPAMI.2021.3076062.
248
+ [47] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhöfer. DeepVoxels: Learning persistent 3D feature embeddings. In CVPR, pages 2437–2446, 2019. doi:10.1109/CVPR.2019.00254.
249
+ [48] Vincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene representation networks: Continuous 3D-structure-aware neural scene representations. In NeurIPS, 2019.
250
+ [49] Ayush Tewari, Ohad Fried, Justus Thies, Vincent Sitzmann, Stephen Lombardi, Kalyan Sunkavalli, Ricardo Martin-Brualla, Tomas Simon, Jason Saragih, Matthias Nießner, Rohit Pandey, Sean Fanello, Gordon Wetzstein, Jun-Yan Zhu, Christian Theobalt, Maneesh Agrawala, Eli Shechtman, Dan B Goldman, and Michael Zollhöfer. State of the art on neural rendering. Comput. Graph. Forum, 39(2):701–727, 2020. doi:10.1111/cgf.14022.
251
+ [50] Edgar Tretschk, Ayush Tewari, Vladislav Golyanik, Michael Zollhöfer, Christoph Lassner, and Christian Theobalt. Non-rigid neural radiance fields: Reconstruction and novel view synthesis of a deforming scene from monocular video. In ICCV, 2021.
252
+ [51] Richard Tucker and Noah Snavely. Single-view view synthesis with multiplane images. In CVPR, 2020. doi:10.1109/CVPR42600.2020.00063.
253
+ [52] Wenqi Xian, Jia-Bin Huang, Johannes Kopf, and Changil Kim. Space-time neural irradiance fields for free-viewpoint video. In CVPR, 2021.
254
+ [53] Zexiang Xu, Sai Bi, Kalyan Sunkavalli, Sunil Hadap, Hao Su, and Ravi Ramamoorthi. Deep view synthesis from sparse photometric images. ACM Trans. Graph., 38(4):76:1–13, 2019. doi:10.1145/3306346.3323007.
255
+ [54] Lior Yariv, Yoni Kasten, Dror Moran, Meirav Galun, Matan Atzmon, Ronen Basri, and Yaron Lipman. Multiview neural surface reconstruction by disentangling geometry and appearance. In NeurIPS, 2020.
256
+ [55] Jae Shin Yoon, Kihwan Kim, Orazio Gallo, Hyun Soo Park, and Jan Kautz. Novel view synthesis of dynamic scenes with globally coherent depths from a monocular camera. In CVPR, 2020. doi:10.1109/CVPR42600.2020.00538.
257
+ [56] Jiakai Zhang, Xinhang Liu, Xinyi Ye, Fuqiang Zhao, Yanshun Zhang, Minye Wu, Yingliang Zhang, Lan Xu, and Jingyi Yu. Editable free-viewpoint video using a layered neural representation. ACM Trans. Graph., 2021. doi:10.1145/3450626.3459756.
258
+ [57] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. ACM Trans. Graph., 37(4):65:1–12, 2018. doi:10.1145/3197517.3201323.
parse/train/CaKvIT5UMfd/CaKvIT5UMfd_content_list.json ADDED
@@ -0,0 +1,1075 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TöRF: Time-of-Flight Radiance Fields for Dynamic Scene View Synthesis ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 266,
8
+ 122,
9
+ 732,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Benjamin Attal∗ Carnegie Mellon University ",
17
+ "bbox": [
18
+ 197,
19
+ 227,
20
+ 379,
21
+ 255
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Eliot Laidlaw Brown University ",
28
+ "bbox": [
29
+ 410,
30
+ 226,
31
+ 527,
32
+ 253
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Aaron Gokaslan Cornell University ",
39
+ "bbox": [
40
+ 558,
41
+ 227,
42
+ 678,
43
+ 253
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Changil Kim Facebook ",
50
+ "bbox": [
51
+ 709,
52
+ 226,
53
+ 802,
54
+ 253
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Christian Richardt University of Bath ",
61
+ "bbox": [
62
+ 225,
63
+ 275,
64
+ 357,
65
+ 303
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "James Tompkin Brown University ",
72
+ "bbox": [
73
+ 415,
74
+ 275,
75
+ 531,
76
+ 303
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Matthew O’Toole Carnegie Mellon University ",
83
+ "bbox": [
84
+ 591,
85
+ 276,
86
+ 772,
87
+ 304
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "imaging.cs.cmu.edu/torf ",
94
+ "bbox": [
95
+ 400,
96
+ 324,
97
+ 596,
98
+ 337
99
+ ],
100
+ "page_idx": 0
101
+ },
102
+ {
103
+ "type": "text",
104
+ "text": "Abstract ",
105
+ "text_level": 1,
106
+ "bbox": [
107
+ 462,
108
+ 353,
109
+ 535,
110
+ 369
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "Neural networks can represent and accurately reconstruct radiance fields for static 3D scenes (e.g., NeRF). Several works extend these to dynamic scenes captured with monocular video, with promising performance. However, the monocular setting is known to be an under-constrained problem, and so methods rely on data-driven priors for reconstructing dynamic content. We replace these priors with measurements from a time-of-flight (ToF) camera, and introduce a neural representation based on an image formation model for continuous-wave ToF cameras. Instead of working with processed depth maps, we model the raw ToF sensor measurements to improve reconstruction quality and avoid issues with low reflectance regions, multi-path interference, and a sensor’s limited unambiguous depth range. We show that this approach improves robustness of dynamic scene reconstruction to erroneous calibration and large motions, and discuss the benefits and limitations of integrating RGB $+$ ToF sensors that are now available on modern smartphones. ",
117
+ "bbox": [
118
+ 233,
119
+ 383,
120
+ 766,
121
+ 564
122
+ ],
123
+ "page_idx": 0
124
+ },
125
+ {
126
+ "type": "text",
127
+ "text": "1 Introduction ",
128
+ "text_level": 1,
129
+ "bbox": [
130
+ 174,
131
+ 582,
132
+ 312,
133
+ 598
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Novel-view synthesis (NVS) is a long-standing problem in computer graphics and computer vision, where the objective is to photorealistically render images of a scene from novel viewpoints. Given a number of images taken from different viewpoints, it is possible to infer both the geometry and appearance of a scene, and then use this information to synthesize images at novel camera poses. One of the challenges associated with NVS is that it requires a diverse set of images from different perspectives to accurately represent the scene. This might involve moving a single camera around a static environment [4, 16, 31, 32, 36], or using a large multi-camera system to capture dynamic events from different perspectives [2, 7, 24, 38, 44, 56]. Techniques for dynamic NVS from a monocular video sequence have also demonstrated compelling results, though they suffer from various visual artifacts due to the ill-posed nature of this problem [26, 37, 42, 50, 52]. This requires introducing priors, often deep learned, on the dynamic scene’s depth and motion. ",
140
+ "bbox": [
141
+ 174,
142
+ 603,
143
+ 825,
144
+ 756
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "In parallel, mobile devices now have camera systems with both color and depth sensors, including Microsoft’s Kinect and HoloLens devices, and the front and rear RGBD camera systems in the iPhone and iPad Pro. Depth sensors can use stereo or structured light, or increasingly the more accurate time-of-flight principle for measurements. Although depth sensing technology is more common than ever, many NVS techniques currently do not exploit this additional source of visual information. ",
151
+ "bbox": [
152
+ 174,
153
+ 762,
154
+ 825,
155
+ 832
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "To improve NVS performance, we propose $\\mathrm { T } \\mathrm { \\ddot { o } R F ^ { 1 } }$ , an implicit neural representation for scene appearance that leverages both color and time-of-flight (ToF) images, as depicted in Figure 1. This reduces the number of images required for static NVS problem settings, compared with just using a color camera. Further, the additional depth information makes the monocular dynamic NVS problem more tractable, as it directly encodes information about the geometry of the scene. Most importantly, rather than using depth directly, we show that using ‘raw’ ToF data—in the form of phasor images [12] that are normally used to derive depth—is more accurate as it allows the optimization to correctly handle geometry that exceeds the sensor’s unambiguous range, objects with low reflectance, and regions affected by multi-path interference, leading to better dynamic scene view synthesis. The contributions of our work include: ",
162
+ "bbox": [
163
+ 176,
164
+ 837,
165
+ 820,
166
+ 866
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "image",
172
+ "img_path": "images/069600ef8b91e8c922beba8f35647def13f9a11d7b5f99303e8dfe65ec2a2266.jpg",
173
+ "image_caption": [
174
+ "Figure 1: Illustration of time-of-flight radiance fields. (a) We move a handheld imaging system around a dynamic scene, capturing (b) color images and (c) raw phasor images from a continuous-wave time-of-flight (C-ToF) camera. (d) Then, we optimize for a continuous neural radiance field of the scene that predicts the captured color and phasor images. This allows novel view synthesis. "
175
+ ],
176
+ "image_footnote": [],
177
+ "bbox": [
178
+ 189,
179
+ 88,
180
+ 808,
181
+ 199
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "",
188
+ "bbox": [
189
+ 173,
190
+ 280,
191
+ 825,
192
+ 392
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "• A physically-based neural volume rendering model for raw continuous-wave ToF images; • A method to optimize a neural radiance field of dynamic scenes with information from color and continuous-wave ToF sensors; • Quantitative and qualitative evaluation on synthetic and real scenes showing better view synthesis than NeRF [32] for few input views, and than two dynamic scene baselines [26, 52]. ",
199
+ "bbox": [
200
+ 191,
201
+ 397,
202
+ 825,
203
+ 469
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 Related Work ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 174,
213
+ 483,
214
+ 323,
215
+ 500
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "While novel-view synthesis (NVS) is a long-standing problem in computer graphics and vision [8, 9, 11, 23], recent developments in neural scene representations for NVS have enabled state-of-theart results for a wide variety of settings [46, 49]. The common thread across many of these works is to bring learnable elements together with physics-based models and classical rendering processes. ",
222
+ "bbox": [
223
+ 174,
224
+ 503,
225
+ 825,
226
+ 560
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "The designs for neural scene representations often build on standard computer graphics data structures, including voxel grids [34, 47], multiplane images (MPIs) [31, 51, 53, 57], multi-sphere images (MSIs) [3, 7], point clouds [30], and implicit functions of scene geometry and appearance [32, 48, 54]. For example, DeepVoxels [47] represent a scene as a discrete volume of embedded features to encode view-dependent effects, and enable wide baselines that may not be possible with other representations; however, the cost associated with this volumetric representation is that the memory requirements scale cubically with resolution. Alternatively, MPIs can be used to encode appearance from a single stereo pair [57]; the key benefit of this representation is the fast rendering speeds (ideal for interactive VR applications), though it performs best for forward-facing scenes. ",
233
+ "bbox": [
234
+ 173,
235
+ 565,
236
+ 825,
237
+ 690
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Implicit neural representations of a scene provide similar flexibility to voxel grids, but circumvent the high memory requirements. These implicit networks therefore have greater capacity to represent the appearance of a scene. For example, scene representation networks (SRNs) [48] encode the geometry in a single neural network, which takes 3D points as input and outputs a feature representation of local scene properties (e.g., surface color or reflectance); rendering an image requires a differentiable ray marching procedure that intersects rays with the implicit volume. Neural radiance fields (NeRFs) [32] encode 5D radiance fields (3D position with 2D viewing direction) to offer higher-fidelity geometry and visual appearance. While these implicit neural representations initially assumed a static scene, recent approaches also demonstrate the ability to perform dynamic NVS from monocular video [26, 37, 42, 50, 52], despite this being a highly ill-posed problem. ",
244
+ "bbox": [
245
+ 174,
246
+ 696,
247
+ 825,
248
+ 835
249
+ ],
250
+ "page_idx": 1
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Including depth maps has proven beneficial to improve NVS results for a long time [41]. However, surprisingly few NVS methods exploit the availability of depth sensors. One reason is that explicitly reconstructing depth maps for NVS [28, 55] may prove problematic, e.g., for thin structures, depth edges, complex reflectance, or noisy depth. We circumvent these issues by proposing a neural representation that models raw ToF data for better view synthesis for both static and dynamic scenes. ",
255
+ "bbox": [
256
+ 174,
257
+ 842,
258
+ 825,
259
+ 911
260
+ ],
261
+ "page_idx": 1
262
+ },
263
+ {
264
+ "type": "table",
265
+ "img_path": "images/19ff25b0fa1d1554b6bc0cf8a9a7e70fe721f983fd02bb334662ccbc9e01a34f.jpg",
266
+ "table_caption": [
267
+ "Table 1: Mathematical symbol legend for the following equations and explanations. "
268
+ ],
269
+ "table_footnote": [],
270
+ "table_body": "<table><tr><td>Symbol</td><td>Units</td><td>Description</td></tr><tr><td>X</td><td></td><td>A point ∈ R3.</td></tr><tr><td>8</td><td></td><td>A direction; unit vector ∈ S².</td></tr><tr><td>n(x)</td><td></td><td>A normal; a direction perpendicular to a surface at point X.</td></tr><tr><td>Xt</td><td></td><td>A point t units along a direction ω,Xt = X +ωt.</td></tr><tr><td>Wi</td><td></td><td>A direction incoming to a point.</td></tr><tr><td>W</td><td></td><td>A direction outgoing from a point.</td></tr><tr><td>L(x, ω) or LRGB LToF(x,ω)</td><td>W.sr-1.m-2 W·sr-1.m-2</td><td>Radiance measured by a camera at point x in direction w.</td></tr><tr><td>Li(x,w)</td><td>W·sr-1.m-2</td><td>Phasor radiance measured by a C-ToF camera. Incident radiance to a point from a direction.</td></tr><tr><td>Ls(x,w)</td><td>W·sr-1.m-2</td><td></td></tr><tr><td>I</td><td>W·sr-1</td><td>Reflected radiance scattered from a point in a direction. Radiant intensity of a point light source.</td></tr><tr><td>Is(x,w)</td><td>W.sr-1</td><td>Reflected radiant intensity scattered from a point x in</td></tr><tr><td></td><td></td><td>direction ω due to a light source collocated with the camera.</td></tr><tr><td>(x)</td><td>m-1</td><td>Density function at a point.</td></tr><tr><td>T(x,xt)</td><td>unitless</td><td>Transmittance function, i.e., accumulated density.</td></tr><tr><td>T(x,xk)</td><td>unitless</td><td>Discrete approximation of the transmittance function.</td></tr><tr><td>fp(x,wi,w,n(x))</td><td>sr-1</td><td>Scattering phase function.</td></tr><tr><td>W(d)</td><td>unitless</td><td>Importance function for light path of length d.</td></tr></table>",
271
+ "bbox": [
272
+ 173,
273
+ 109,
274
+ 825,
275
+ 401
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "3 Neural Volume Rendering of ToF images ",
282
+ "text_level": 1,
283
+ "bbox": [
284
+ 173,
285
+ 421,
286
+ 545,
287
+ 439
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "A neural radiance field (NeRF) [32] is a neural network optimized to predict a set of input images. Assuming a static scene, the neural network $F _ { \\pmb \\theta } : ( \\mathbf { x } _ { t } , \\pmb \\omega _ { \\mathrm { o } } ) \\overset { - } { } ( \\sigma ( \\mathbf { x } _ { t } ) , \\overbar { \\lambda _ { \\mathrm { s } } } ( \\mathbf { x } _ { t } , \\pmb \\omega _ { \\mathrm { o } } ) )$ with parameters $\\pmb \\theta$ takes as input a position $\\mathbf { x } _ { t }$ and a direction $\\omega _ { \\mathrm { o } }$ , and outputs both the density $\\sigma ( \\mathbf { x } _ { t } )$ at point $\\mathbf { x } _ { t }$ and the radiance $L _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } )$ of a light ray passing through $\\mathbf { x } _ { t }$ in direction $\\omega _ { \\mathrm { o } }$ . The volume density function $\\sigma ( { \\bf x } _ { t } )$ controls the opacity at every point—large values of $\\sigma ( { \\bf x } _ { t } )$ represent opaque regions and small values represent transparent ones, which allows representation of 3D structures. The radiance function $L _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } )$ represents the light scattered at a point $\\mathbf { x } _ { t }$ in direction $\\omega _ { 0 }$ , and characterizes the visual appearance of different materials (e.g., shiny or matte). Together, these two functions can be used to render images of a scene from any given camera pose. The key insight of our work is that NeRFs can be extended to model (and learn from) the raw images of a ToF camera. ",
294
+ "bbox": [
295
+ 173,
296
+ 446,
297
+ 825,
298
+ 587
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "NeRF optimization requires neural volume rendering: given the pose of a camera, the procedure generates an image by tracing rays through the volume and computing the radiance observed along each ray [32]: ",
305
+ "bbox": [
306
+ 174,
307
+ 592,
308
+ 823,
309
+ 635
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "img_path": "images/53a50189ee9a288c915ccb77e607d2e29bd4ba839ba341dd11b3278830b9a093.jpg",
316
+ "text": "$$\nL ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) = \\int _ { t _ { \\mathrm { n } } } ^ { t _ { \\mathrm { f } } } T ( \\mathbf { x } , \\mathbf { x } _ { t } ) \\sigma ( \\mathbf { x } _ { t } ) L _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) d t , \\quad \\mathrm { w h e r e } \\quad T ( \\mathbf { x } , \\mathbf { x } _ { t } ) = e ^ { - \\int _ { t _ { \\mathrm { n } } } ^ { t } \\sigma ( \\mathbf { x } - \\omega _ { \\mathrm { o } } s ) d s }\n$$",
317
+ "text_format": "latex",
318
+ "bbox": [
319
+ 215,
320
+ 638,
321
+ 781,
322
+ 674
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "describes the transmittance for light propagating from position $\\mathbf { x }$ to ${ \\bf x } _ { t } = { \\bf x } - \\omega _ { \\mathrm { o } } t$ , for near and far bounds $t \\in [ t _ { \\mathrm { n } } , t _ { \\mathrm { f } } ]$ . ",
329
+ "bbox": [
330
+ 171,
331
+ 678,
332
+ 825,
333
+ 708
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "In practice, this integral is evaluated using quadrature [32]: ",
340
+ "bbox": [
341
+ 173,
342
+ 712,
343
+ 560,
344
+ 727
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "equation",
350
+ "img_path": "images/590637ddaa41ad982fb32db5bbcc76691fc8ff0b720f01b405c00eb34f0aaea5.jpg",
351
+ "text": "$$\nL ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) \\approx \\sum _ { k = 1 } ^ { N } \\hat { T } ( \\mathbf { x } , \\mathbf { x } _ { k } ) ( 1 - e ^ { - \\sigma ( \\mathbf { x } _ { k } ) \\Delta \\mathbf { x } _ { k } } ) L _ { \\mathrm { s } } ( \\mathbf { x } _ { k } , \\omega _ { \\mathrm { o } } ) , \\mathrm { ~ w h e r e ~ } \\hat { T } ( \\mathbf { x } , \\mathbf { x } _ { k } ) = \\prod _ { j = 1 } ^ { k - 1 } e ^ { - \\sigma ( \\mathbf { x } _ { j } ) \\Delta \\mathbf { x } _ { j } } .\n$$",
352
+ "text_format": "latex",
353
+ "bbox": [
354
+ 183,
355
+ 729,
356
+ 794,
357
+ 775
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "The value for $\\Delta \\mathbf { x } _ { j } = \\| \\mathbf { x } _ { j + 1 } - \\mathbf { x } _ { j } \\|$ is the distance between two quadrature points. ",
364
+ "bbox": [
365
+ 174,
366
+ 779,
367
+ 709,
368
+ 795
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Generalizing the neural volume rendering procedure for ToF cameras requires two changes. First, because ToF cameras use an active light source to illuminate the scene, we must consider the fact that the lighting conditions of the scene change with the position of the camera. In Section 3.1, we derive the scene’s appearance in response to collocating a point light source with a camera, which follows a similar derivation to that of Bi et al. [5]. Second, in Section 3.2, we extend the volume rendering integral to model images captured with a ToF camera. Similar to the approaches taken in transient rendering frameworks [17, 39] and by neural transient fields (NeTFs) [46], we incorporate a path length importance function into our integral that can model different types of ToF cameras. ",
375
+ "bbox": [
376
+ 173,
377
+ 800,
378
+ 826,
379
+ 912
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "For simplicity, we assume that the function $L ( \\mathbf { x } , \\omega _ { \\mathrm { o } } )$ is monochromatic, i.e., it outputs radiance at a single wavelength. Later on, we will model output values for red, green, blue, and infrared light (IR). $L _ { \\mathrm { R G B } }$ values correspond to radiance from ambient illumination scattering towards a color camera, whereas $L _ { \\mathrm { T o F } }$ corresponds to the measurements made by a ToF camera with active illumination. ",
386
+ "bbox": [
387
+ 174,
388
+ 90,
389
+ 826,
390
+ 147
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "3.1. Collocated Point Light Source. An ideal ToF camera responds only to the light from a collocated IR point source and not to any ambient illumination. With this assumption, we model radiance $L _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } )$ as a function of the source position [5]: ",
397
+ "bbox": [
398
+ 173,
399
+ 159,
400
+ 825,
401
+ 203
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/e5122df0f1aa1eae47c4a52222dbe8b2c224033aa09a38669245c88fb2420b74.jpg",
408
+ "text": "$$\nL _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) = \\int _ { \\mathbb { S } ^ { 2 } } f _ { \\mathrm { p } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { i } } , \\omega _ { \\mathrm { o } } , \\mathbf { n } ( \\mathbf { x } _ { t } ) ) L _ { \\mathrm { i } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { i } } ) d \\omega _ { \\mathrm { i } } ,\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 320,
412
+ 212,
413
+ 678,
414
+ 246
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "where the function $L _ { \\mathrm { i } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { i } } )$ represents the incident illumination from direction $\\omega _ { \\mathrm { i } } , \\mathbb { S } ^ { 2 }$ is the unit sphere of incident directions, and the scattering phase function $f _ { \\mathrm { p } } ( \\mathbf x _ { t } , \\omega _ { \\mathrm { i } } , \\omega _ { \\mathrm { o } } , \\mathbf n ( \\mathbf x _ { t } ) )$ describes how light is scattered at a point $\\mathbf { x } _ { t }$ in the volume. Note that the scattering phase function also depends on the local surface shading normal $\\mathbf { n } ( \\mathbf { x } _ { t } )$ . For a point light source at $\\mathbf { x }$ (i.e., collocated with the camera), each scene point is only lit from one direction. Thus, the incident radiance is given by ",
421
+ "bbox": [
422
+ 173,
423
+ 255,
424
+ 825,
425
+ 327
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "equation",
431
+ "img_path": "images/c2dad158fe4ad2f659b48280ba1f9c5ddc8acf94c93c8d8f137b539c583f866a.jpg",
432
+ "text": "$$\nL _ { \\mathrm { i } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { i } } ) = \\frac { I } { \\left\\| \\mathbf { x } - \\mathbf { x } _ { t } \\right\\| ^ { 2 } } \\delta \\bigg ( \\frac { \\mathbf { x } - \\mathbf { x } _ { t } } { \\left\\| \\mathbf { x } - \\mathbf { x } _ { t } \\right\\| } - \\omega _ { \\mathrm { i } } \\bigg ) T ( \\mathbf { x } , \\mathbf { x } _ { t } ) ,\n$$",
433
+ "text_format": "latex",
434
+ "bbox": [
435
+ 318,
436
+ 335,
437
+ 678,
438
+ 372
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "where the scalar $I$ represents the emitted radiant intensity of the light source, $1 \\big / | | \\mathbf { x } - \\mathbf { x } _ { t } | | ^ { 2 }$ is the inverse square light fall-off, and $\\delta ( \\cdot )$ is the Dirac distribution used to describe only the light from a single direction. This model ignores forward scattering, which is reasonable if the scene consists mostly of completely opaque surfaces. When substituted into Equation 1 and Equation 3, the resulting forward model is ",
445
+ "bbox": [
446
+ 174,
447
+ 381,
448
+ 825,
449
+ 452
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "equation",
455
+ "img_path": "images/b5172593954c24adf893592a00a97c2a66b3c1eafcfd780a682429cfb8864bad.jpg",
456
+ "text": "$$\nL ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) = \\int _ { t _ { n } } ^ { t _ { t } } \\frac { T ( \\mathbf { x } , \\mathbf { x } _ { t } ) ^ { 2 } } { \\left\\| \\mathbf { x } - \\mathbf { x } _ { t } \\right\\| ^ { 2 } } \\sigma ( \\mathbf { x } _ { t } ) I _ { s } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) d t \\mathrm { w h e r e } I _ { s } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) = f _ { \\mathrm { p } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } , \\omega _ { \\mathrm { o } } , \\mathbf { n } ( \\mathbf { x } _ { t } ) ) I .\n$$",
457
+ "text_format": "latex",
458
+ "bbox": [
459
+ 184,
460
+ 458,
461
+ 792,
462
+ 496
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "where $\\omega _ { \\mathrm { i } } = \\omega _ { \\mathrm { o } }$ in the scattering phase function $f _ { \\mathfrak { p } }$ as emitted light is reflected along the same ray. ",
469
+ "bbox": [
470
+ 173,
471
+ 503,
472
+ 813,
473
+ 520
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "This expression is similar to Equation 1 with two key differences: the squared transmittance term, and the inverse square falloff induced by the point light source. Similar to NeRF [32], we can once again numerically approximate the above integral using quadrature, and recover the volume parameters $( \\sigma ( { \\bf x } _ { t } ) , I _ { \\mathrm { s } } ( \\bar { { \\bf x } } _ { t } , \\bar { \\omega } _ { 0 } ) )$ by training a neural network that depends only on position and direction. ",
480
+ "bbox": [
481
+ 173,
482
+ 525,
483
+ 825,
484
+ 582
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "3.2. Continuous-Wave ToF Model. ToF cameras use the travel time of light to compute distances [14]. The collocated point light source sends an artificial light signal into an environment, and a ToF sensor measures the time required for light to reflect back in response. Given the constant speed of light, ${ \\mathrm { c } } \\approx 3 \\cdot 1 0 ^ { 8 } { \\mathrm { m } } / { \\mathrm { s } }$ , this temporal information determines the distance traveled. These devices have found widespread adoption from autonomous vehicles [25] to mobile AR applications [19, 21]. ",
491
+ "bbox": [
492
+ 173,
493
+ 593,
494
+ 825,
495
+ 665
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "Photorealistic simulations of ToF cameras involve introducing a path length importance function to the rendering equation [17, 39], and can be just as easily applied to the integral in Equation 5: ",
502
+ "bbox": [
503
+ 173,
504
+ 670,
505
+ 825,
506
+ 699
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "equation",
512
+ "img_path": "images/1b2f8348284de7579cf1709d5c381d2eabed43fe8ff3a4d1d44ae9083df18cef.jpg",
513
+ "text": "$$\nL _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) = \\int _ { t _ { \\mathrm { n } } } ^ { t _ { \\mathrm { f } } } \\frac { T ( \\mathbf { x } , \\mathbf { x } _ { t } ) ^ { 2 } } { \\left\\| \\mathbf { x } - \\mathbf { x } _ { t } \\right\\| ^ { 2 } } \\sigma ( \\mathbf { x } _ { t } ) I _ { \\mathrm { s } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) W ( 2 \\left\\| \\mathbf { x } - \\mathbf { x } _ { t } \\right\\| ) d t ,\n$$",
514
+ "text_format": "latex",
515
+ "bbox": [
516
+ 282,
517
+ 708,
518
+ 715,
519
+ 746
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "where the function $W ( d )$ weights the contribution of a light path of length $d$ . Note that light travels twice the distance between the camera’s origin $\\mathbf { x }$ and the scene point $\\mathbf { x } _ { t }$ . As described by Pediredla et al. [39], the function $W ( d )$ can be used to represent a wide variety of ToF cameras, including both pulsed ToF sensors [18] and continuous-wave ToF (C-ToF) sensors [12, 19, 35]. Here, as our proposed system uses a C-ToF sensor for imaging, the images are modeled using the phasor $\\begin{array} { r } { W ( d ) \\ : = \\ : \\exp \\bigl ( \\mathrm { i } \\frac { 2 \\pi d f } { \\mathrm { c } } \\bigr ) } \\end{array}$ , where $f$ is the modulation frequency of the signal emitted by the C-ToF camera. Note that, because the function $W ( d )$ is complex-valued, the radiance $L _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } )$ will also produce a complex-valued phasor image [12]. In practice, phasor images are created by capturing four real-valued images that are linearly combined (see supplemental document for additional details). In Figure 1(c), we show the real component of the phasor image, with positive pixel values as red, and negative values as blue. ",
526
+ "bbox": [
527
+ 173,
528
+ 755,
529
+ 826,
530
+ 911
531
+ ],
532
+ "page_idx": 3
533
+ },
534
+ {
535
+ "type": "image",
536
+ "img_path": "images/111aeaf774d51f17a43d62f009a706ba6a50ad4437defe6dd26b0d1b273b3665.jpg",
537
+ "image_caption": [
538
+ "Figure 2: Neural volume rendering of C-ToF images. (a) We start with ray marching to evaluate the radiance and opacity at different points along the ray. (b) These samples represent the continuous integrand of Equation 5, which describes the contribution of every point $\\mathbf { x } _ { t }$ along the ray. For example, ray 1 grazes both bunny ears, producing two distinct responses. (c) As described by Equation 6, we multiply the integrand with a complex exponential, with the result represented here in the complex plane. Integrating this result produces a single complex phasor, represented here by a vector with a magnitude corresponding to reflectance and a direction corresponding to the phase (or distance). (d) The loss function compares rendered phasors with the raw measurements of a C-ToF camera. "
539
+ ],
540
+ "image_footnote": [],
541
+ "bbox": [
542
+ 186,
543
+ 85,
544
+ 816,
545
+ 209
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Contrasting with ToF-derived depth. ToF cameras typically recover depth by assuming only one point $\\mathbf { x } _ { \\mathrm { s } }$ reflects light for every ray, i.e., the integrand of Equation 6 is assumed to be zero for all other points ${ \\bf x } \\neq { \\bf x } _ { \\mathrm { s } }$ (points in front of $\\mathbf { x } _ { \\mathrm { s } }$ reflect no light, and points behind $\\mathbf { x } _ { \\mathrm { s } }$ are hidden). Under these assumptions, Equation 6 simplifies to the phasor: ",
552
+ "bbox": [
553
+ 173,
554
+ 352,
555
+ 825,
556
+ 409
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "equation",
562
+ "img_path": "images/30d5d7b6ec29dd6dfd3a13991374bd59ae31c29a7db17884de0b278d4017225c.jpg",
563
+ "text": "$$\n\\begin{array} { r } { L _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) = a \\cdot W ( 2 \\| \\mathbf { x } - \\mathbf { x } _ { \\mathrm { s } } \\| ) = a \\cdot \\exp \\left( \\mathrm { i } \\frac { 4 \\pi f } { \\mathrm { c } } \\| \\mathbf { x } - \\mathbf { x } _ { \\mathrm { s } } \\| \\right) , } \\end{array}\n$$",
564
+ "text_format": "latex",
565
+ "bbox": [
566
+ 294,
567
+ 412,
568
+ 702,
569
+ 439
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "where the phasor’s magnitsingle point, and the phase, $| L _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) | = a$ nts thmod mount of light reflect, is related to distance $\\begin{array} { r } { \\angle L _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } ) = \\frac { 4 \\pi f } { \\mathrm { c } } \\| \\mathbf { x } - \\mathbf { x } _ { \\mathrm { s } } \\| } \\end{array}$ $2 \\pi$ ${ \\left\\| { { \\bf { x } } - { { \\bf { x } } _ { \\mathrm { { s } } } } } \\right\\| }$ ",
576
+ "bbox": [
577
+ 174,
578
+ 443,
579
+ 823,
580
+ 476
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "In real-world scenarios, it is also possible for multiple points along a ray to contribute to the signal, resulting in a linear combination of phasor radiance values—known as multi-path interference. This can degrade the quality of depth measurements for a C-ToF camera. For example, around depth edges, a pixel integrates the signal from surfaces at two different distances from the camera (e.g., Figure 2), resulting in ‘flying pixel’ artifacts [43] (i.e., 3D points not corresponding to either distance). Similar artifacts occur when imaging semi-transparent or specular objects, where two or more surfaces contribute light to a pixel. ",
587
+ "bbox": [
588
+ 174,
589
+ 479,
590
+ 825,
591
+ 578
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "Optimizing NeRFs with phasor images via Equation 6 therefore has three distinct advantages over using derived depth maps via Equation 7. (i) For ranges that span values larger than $\\frac { \\mathrm { c } } { 2 f }$ , the true range is ambiguous, as there are multiple depth values that produce the same phase. For example, a typical modulation frequency of $f = 3 0 \\mathrm { M H z }$ for a C-ToF camera corresponds to an unambigous range of $\\frac { c } { 2 f } \\approx 5 { \\mathrm { m } }$ . By modeling the phasor images directly, we avoid the issues associated with recovering depth images for scenes that exceed this range (Figure 3). (ii) Depth values become unreliable (noisy) when the amount of light reflected to the camera is small. Modeling the phasor images directly makes the solution robust to sensor noise (Figure 4). (iii) For regions near depth edges (Figure 2) or for objects with complicated reflectance properties (e.g., transparent or specular surfaces), the light detected may not travel along a single path; this results in mixtures of phasors, producing phase values that do not correspond to a single depth. Equation 6 models the response from multiple single-scattering events along a ray, providing us with a better handle over such scenarios. ",
598
+ "bbox": [
599
+ 173,
600
+ 583,
601
+ 825,
602
+ 753
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "4 Optimizing Dynamic $\\mathbf { T o F } + \\mathbf { N e R F } = \\mathbf { T } \\Ddot { \\mathbf { 0 } } \\mathbf { R F }$ ",
609
+ "text_level": 1,
610
+ "bbox": [
611
+ 173,
612
+ 766,
613
+ 558,
614
+ 784
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "4.1. Dynamic Neural Radiance Fields. One key advantage of working with phasor images is that the method can capture scene geometry from a single view, which enables higher-fidelity novel-view synthesis of dynamic scenes from a potentially moving color camera and C-ToF camera pair. To support dynamic neural radiance fields, we model the measurements with two neural networks. The first, static network $F _ { \\theta } ^ { \\mathrm { s t a t } } : ( \\mathbf { x } _ { t } , \\omega _ { 0 } ) ( \\sigma ^ { \\mathrm { s t a t } } ( \\mathbf { x } _ { t } ) , L _ { s } ^ { \\mathrm { s t a t } } ( \\mathbf { x } _ { t } , \\omega _ { 0 } ) , I _ { s } ^ { \\mathrm { s t a t } } ( \\mathbf { x } _ { t } , \\omega _ { 0 } ) )$ is a 5D function of position and direction, while the second, dynamic network $F _ { \\pmb \\theta } ^ { \\mathrm { d y n } } : ( { \\bf x } _ { t } , \\omega _ { \\mathrm { o } } , \\tau ) $ $\\left( \\sigma ^ { \\mathrm { d y n } } ( \\mathbf { x } _ { t } , \\tau ) , L _ { \\mathrm { s } } ^ { \\mathrm { d y n } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } ) , I _ { \\mathrm { s } } ^ { \\mathrm { d y n } } ( \\mathbf { x } _ { t } , \\omega _ { \\mathrm { o } } , \\tau ) , b ( \\mathbf { x } _ { t } , \\tau ) \\right)$ is a $^ { 6 \\mathrm { D } }$ function of position, direction, and time $\\tau$ . Instead of directly consuming a time $\\tau$ , the dynamic network receives a latent code ${ \\bf z } _ { \\tau }$ which is optimized per frame, similar to Li et al. [24]. Following the approach of Li et al. [26], we blend the outputs of the static and dynamic networks using a position- and time-dependent blending weight $b ( \\mathbf { x } _ { t } , \\tau )$ that is predicted by the dynamic network $F _ { \\theta } ^ { \\mathrm { d y n } }$ , as in Gao et al. [10]. This produces density $\\sigma ^ { \\mathrm { b l e n d } }$ , radiance $L _ { \\mathrm { s } } ^ { \\mathrm { b l e n d } }$ , and radiant intensity $I _ { \\mathrm { s } } ^ { \\mathrm { b l e n d } }$ values to pass into our image formation models: ",
621
+ "bbox": [
622
+ 173,
623
+ 792,
624
+ 825,
625
+ 912
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "image",
631
+ "img_path": "images/a392c08c1f399778121d522a847b59c42fac89c54c3ef5cabe8009c6c8d088d4.jpg",
632
+ "image_caption": [
633
+ "Figure 3: Raw phasor supervision avoids wrap-around errors. Wrap-around phase bounds the range of useful ToF measurements (left), causing errors when depth is used as supervision. Our approach of modeling raw phasor measurements within the neural volume alleviates this problem (right). This is because only one phase offset is consistent across multiple camera views. "
634
+ ],
635
+ "image_footnote": [],
636
+ "bbox": [
637
+ 176,
638
+ 85,
639
+ 821,
640
+ 191
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "image",
646
+ "img_path": "images/5e2e796abc6812ecef394b06bf70afc82c2597f0314359abd2a19644ecbed881.jpg",
647
+ "image_caption": [
648
+ "Figure 4: Raw phasor supervision reduces noise in dark objects. The weak signal reflected back by dark objects (e.g., the computer monitor) results in noisy depth measurements. As TöRF does not rely on depth explicitly and instead models raw phasor images, our recovered depth map better captures the scene geometry in comparison to ToF-derived depth. This is because when phasor magnitudes are small, TöRF falls back on triangulation cues to recover geometry. "
649
+ ],
650
+ "image_footnote": [],
651
+ "bbox": [
652
+ 174,
653
+ 260,
654
+ 820,
655
+ 366
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "",
662
+ "bbox": [
663
+ 174,
664
+ 463,
665
+ 825,
666
+ 525
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "equation",
672
+ "img_path": "images/4783d6938bbf8ab298e173e9a37320cbd05e4865ca0c55abd6e6e5ac8b5dc4dd.jpg",
673
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { \\cal L } _ { \\mathrm { R G B } } ( { \\bf x } , \\omega _ { 0 } , \\tau ) = \\int _ { t _ { n } } ^ { t _ { t } } T ^ { \\mathrm { b l e n d } } ( { \\bf x } , { \\bf x } _ { t } , \\tau ) \\sigma ^ { \\mathrm { b l e n d } } ( { \\bf x } _ { t } , \\tau ) L _ { s } ^ { \\mathrm { b l e n d } } ( { \\bf x } _ { t } , \\omega _ { 0 } , \\tau ) d t } \\ ~ } \\\\ { { \\displaystyle { \\cal L } _ { \\mathrm { T o F } } ( { \\bf x } , \\omega _ { 0 } , \\tau ) = \\int _ { t _ { n } } ^ { t _ { t } } \\frac { T ^ { \\mathrm { b l e n d } } ( { \\bf x } , { \\bf x } _ { t } , \\tau ) ^ { 2 } } { \\left\\| { \\bf x } - { \\bf x } _ { t } \\right\\| ^ { 2 } } \\sigma ^ { \\mathrm { b l e n d } } ( { \\bf x } _ { t } , \\tau ) I _ { s } ^ { \\mathrm { b l e n d } } ( { \\bf x } _ { t } , \\omega _ { 0 } , \\tau ) W ( 2 \\left\\| { \\bf x } - { \\bf x } _ { t } \\right\\| ) d t } . } \\end{array}\n$$",
674
+ "text_format": "latex",
675
+ "bbox": [
676
+ 210,
677
+ 531,
678
+ 787,
679
+ 608
680
+ ],
681
+ "page_idx": 5
682
+ },
683
+ {
684
+ "type": "text",
685
+ "text": "See the supplemental document for an explicit definition of the blending terms. ",
686
+ "bbox": [
687
+ 173,
688
+ 611,
689
+ 692,
690
+ 627
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "4.2. Loss Function. Given a set of color images and phasor images captured of a scene at different time instances, we sample a set of camera rays from the set of all pixels, and minimize the following total squared error between the rendered images and measured pixel values: ",
697
+ "bbox": [
698
+ 174,
699
+ 636,
700
+ 825,
701
+ 678
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "equation",
707
+ "img_path": "images/ab76b0dfec8b066904a71784c87f0b1327a73cafe1a260db07d8a00676609400.jpg",
708
+ "text": "$$\n\\mathcal { L } = \\sum _ { ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau ) } \\Vert L _ { \\mathrm { R G B } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau ) - \\hat { L } _ { \\mathrm { R G B } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau ) \\Vert ^ { 2 } + \\lambda \\Vert L _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau ) - \\hat { L } _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau ) \\Vert ^ { 2 } ,\n$$",
709
+ "text_format": "latex",
710
+ "bbox": [
711
+ 184,
712
+ 685,
713
+ 784,
714
+ 722
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "where the scalar $\\lambda \\geq 0$ controls the relative contribution of both loss terms, $\\hat { L } _ { \\mathrm { R G B } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau )$ represents the measurements of a color camera, and $\\hat { L } _ { \\mathrm { T o F } } ( \\mathbf { x } , \\omega _ { \\mathrm { o } } , \\tau )$ represents the phasor measurements of a C-ToF camera. At training time, we reduce the weight $\\lambda$ in later iterations to prioritize the color loss (halved every 125,000 iterations). ",
721
+ "bbox": [
722
+ 174,
723
+ 729,
724
+ 825,
725
+ 790
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "4.3. Camera Pose Optimization. In past works, COLMAP [45] has been used to recover camera poses for NVS. However, COLMAP fails to recover accurate camera poses for many real scenes even if we masked dynamic regions [20]. Further, COLMAP only recovers camera poses up to unknown scale, whereas our ToF image formation model assumes a known scene scale. As such, for real-world scenes, we optimize camera poses from scratch within the training loop. First, we optimize the weights of the static neural network F statθ , as well as the camera poses for each video frame and the relative rotation and translation between the color and C-ToF sensor, with a learning rate of $1 0 ^ { - 3 }$ After 5000 iterations, we decrease the pose learning rate to $5 \\cdot 1 0 ^ { - 4 } $ , and optimize our full model. ",
732
+ "bbox": [
733
+ 173,
734
+ 797,
735
+ 825,
736
+ 911
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "4.4. Ray Sampling. Many physical camera systems do not have collocated color and ToF cameras. As such, to train our model, we trace separate rays through the volume for color and ToF measurements. We alternate using the color loss and the ToF loss for every iteration. Further, like NeRF [32], we use stratified random sampling when sampling points along a ray. ",
743
+ "bbox": [
744
+ 174,
745
+ 92,
746
+ 826,
747
+ 147
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "5 Experiments ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 174,
757
+ 161,
758
+ 312,
759
+ 178
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "5.1. Hardware. We use an iDS UI-3070CP-C-HQ machine vision camera to provide RGB measurements $6 4 0 \\times 4 8 0$ $@$ 30 fps; downsampled to $3 2 0 \\times 2 4 0 )$ ), and a Texas Instruments OPT8241 sensor to provide phasor measurements $3 2 0 \\times 2 4 0$ $@$ 30 fps) with an unambiguous range of $5 \\mathrm { m }$ . Both cameras are mounted with a baseline of $4 1 \\mathrm { m m }$ . We use OpenCV to calibrate intrinsics, extrinsics, and lens distortion. See the supplement for details. ",
766
+ "bbox": [
767
+ 174,
768
+ 188,
769
+ 825,
770
+ 257
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "For optimization, we use an NVIDIA GeForce RTX 2080 Ti with 11 GB RAM. Our model takes 12–24 hours to converge, and 3–5 seconds per frame to generate a novel view $( 2 5 6 \\times 2 5 6 )$ . ",
777
+ "bbox": [
778
+ 173,
779
+ 263,
780
+ 821,
781
+ 291
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "5.2. Data. We captured the PhoneBooth, Cupboard, Photocopier, DeskBox, and StudyBook sequences with our handheld camera setup. Each is indoors in an office with a person performing a dynamic action, and includes view dependence from real-world materials. PhoneBooth includes multi-path interference effects from a glass door, and Photocopier includes wrap-around phase effects in the distance. For comparison, we also captured the Dishwasher sequence on an iPhone $1 2 \\mathrm { P r o }$ , which uses a ToF sensor to capture depth (raw measurements are not available). Finally, we create synthetic raw C-ToF sequences Bathroom, Bedroom, and DinoPear by adapting the physically-based path tracer PBRT [40] to generate phasor images with multi-bounce and scattering effects. ",
788
+ "bbox": [
789
+ 173,
790
+ 301,
791
+ 825,
792
+ 412
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "5.3. Few-View Reconstruction of Static Scenes. We demonstrate that integrating raw ToF measurements in addition to RGB enables TöRF to reconstruct static scenes from fewer input views, and to achieve higher visual fidelity than standard NeRF [32] for the same number of input views. Table 2 contains a quantitative comparison on two synthetic sequences, Bathroom and Bedroom, for reconstructions from just 2 and 4 input views. To enable the comparison on 10 hold-out views, we use ground-truth camera poses for both methods. With just two input views, TöRF’s added phasor supervision better reproduces the scene than NeRF, as one might expect. This closely resembles a camera system that might exist on a smartphone, and shows the potential value of ToF supervision for dynamic scenes if we consider a static scene as one time step of a video sequence. For four views, NeRF and TöRF produce comparable RGB results, though our depth reconstructions are significantly more accurate (Figure 5). ",
799
+ "bbox": [
800
+ 173,
801
+ 421,
802
+ 826,
803
+ 574
804
+ ],
805
+ "page_idx": 6
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "5.4. Dynamic Scenes. We compare reconstruction quality on the synthetic dynamic sequence DinoPear in Table 3 with 30 ground-truth hold-out views and depth maps. Compared to methods that use deep depth estimates (NSFF and VideoNeRF), TöRF produces better depth and RGB views. While TöRF PSNR is slightly lower than NSFF’s, the perceptual LPIPS metric is significantly lower for TöRF, which matches the findings from our qualitative results. TöRF also produces better depth and RGB reconstructions than the same methods modified to use ToF-derived depth (NSFF $+$ ToF, VideoNeRF+ToF). ",
810
+ "bbox": [
811
+ 173,
812
+ 583,
813
+ 825,
814
+ 680
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "For real-world scenes, we show results and comparisons in Figure 6. VideoNeRF+ToF shows stronger disocclusion artifacts and warped edges near depth boundaries, and cannot recover from depth maps with wrapped range. NSFF suffers from severe ghosting and stretching artifacts that negatively impact the quality of the results. Our results show the highest visual quality and most accurate depth maps. Please see the videos on our website for in-motion novel-view synthesis. ",
821
+ "bbox": [
822
+ 174,
823
+ 686,
824
+ 825,
825
+ 756
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "6 Discussion ",
832
+ "text_level": 1,
833
+ "bbox": [
834
+ 174,
835
+ 770,
836
+ 294,
837
+ 787
838
+ ],
839
+ "page_idx": 6
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "6.1. Limitations. Introducing ToF sensors into RGB neural radiance fields aims to improve quality by merging the benefits of both sensing modes; but, some limitations are also brought in through ToF sensing. C-ToF sensing can struggle on larger-scale scenes; however, using multiple different modulation frequencies can extend the unambiguous range [12]. Using different coding methods can also increase depth precision [13]. While C-ToF sensors typically struggle outdoors, EpiToF [1] has demonstrated the ability to perform $1 5 \\mathrm { m }$ ranging under strong ambient illumination. Further, for each measurement, C-ToF sensors require capturing four or more images quickly at different times, which can cause artifacts for fast-moving objects. ",
844
+ "bbox": [
845
+ 174,
846
+ 797,
847
+ 825,
848
+ 909
849
+ ],
850
+ "page_idx": 6
851
+ },
852
+ {
853
+ "type": "table",
854
+ "img_path": "images/1ffb549bbc70b4623a8cd0bca896a33d58099386490531bc70a8cb118203efa5.jpg",
855
+ "table_caption": [
856
+ "Table 2: Phasor supervision aids few-view reconstruction. Each cell contains RGB image similarity measures, and metrics are computed on 10 hold-out views. TöRF significantly outperforms NeRF on both synthetic static scenes and produces more accurate depth estimates (Figure 5), particularly from just two input views. Note that the metric depth error ‘MSE (D)’ is affected by mirrors, particularly in the bathroom scene, whose depth is defined by the plane of the mirror and not the objects in its reflection. "
857
+ ],
858
+ "table_footnote": [],
859
+ "table_body": "<table><tr><td></td><td></td><td colspan=\"4\">Bathroom</td><td colspan=\"4\">Bedroom</td></tr><tr><td></td><td>Views Method</td><td>MSE (D) ?</td><td>PSNR ▲</td><td>SSIM ▲</td><td>LPIPS ?</td><td>MSE (D) ?</td><td>PSNR ▲</td><td>SSIM ▲</td><td>LPIPS ?</td></tr><tr><td>2</td><td>NeRF [32]</td><td>0.97</td><td>16.56</td><td>0.660</td><td>0.022</td><td>18.43</td><td>11.59</td><td>0.313</td><td>0.056</td></tr><tr><td></td><td>ToRF (ours)</td><td>2.12</td><td>19.21</td><td>0.739</td><td>0.015</td><td>0.31</td><td>22.09</td><td>0.840</td><td>0.010</td></tr><tr><td>4</td><td>NeRF[32]</td><td>0.70</td><td>24.17</td><td>0.864</td><td>0.008</td><td>0.94</td><td>28.29</td><td>0.936</td><td>0.003</td></tr><tr><td></td><td>ToRF (ours)</td><td>0.76</td><td>26.18</td><td>0.879</td><td>0.009</td><td>0.27</td><td>29.79</td><td>0.938</td><td>0.002</td></tr></table>",
860
+ "bbox": [
861
+ 179,
862
+ 194,
863
+ 818,
864
+ 306
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "image",
870
+ "img_path": "images/857d242b824089eac25365f272a3bd82488a901730fdfb4f328434c739cdc944.jpg",
871
+ "image_caption": [
872
+ "Figure 5: Adding ToF aids reconstruction for few views in static scenes. NeRF quality suffers as the number of views decreases, but adding ToF data makes view synthesis possible with two RGB views. Note the cleaner depth, sharper edges, and thin geometric details such as the lamps above the mirror. "
873
+ ],
874
+ "image_footnote": [],
875
+ "bbox": [
876
+ 176,
877
+ 349,
878
+ 820,
879
+ 838
880
+ ],
881
+ "page_idx": 7
882
+ },
883
+ {
884
+ "type": "image",
885
+ "img_path": "images/5383a5ba70f93be82b7cf032533b074dcd5057651e1e7d6f7725e2050862ea61.jpg",
886
+ "image_caption": [
887
+ "Figure 6: Adding ToF supervision helps improve quality. Compared to two video baselines, VideoNeRF [52] (modified to use ToF-derived depth) and NSFF [26], our approach reduces errors in static scene components and some dynamic components. All models were trained for comparable times. Please see the videos on our website for additional comparisons in motion. "
888
+ ],
889
+ "image_footnote": [],
890
+ "bbox": [
891
+ 173,
892
+ 82,
893
+ 826,
894
+ 866
895
+ ],
896
+ "page_idx": 8
897
+ },
898
+ {
899
+ "type": "table",
900
+ "img_path": "images/45548e866fbd472fea2147251ded896e30b8fd54f20fa445d2cb454a3f40d28f.jpg",
901
+ "table_caption": [
902
+ "Table 3: Evaluation on ground-truth hold-out views for the dynamic DinoPear sequence shows improved depth and RGB results for our method. Note that NSFF and VideoNeRF are given manually unwrapped ToF depth produced by adding $2 \\pi$ to all phase values below a certain threshold. The TöRF approach of using raw phasor images produces better depth reconstructions. While NSFF produces the highest PSNR, this does not match the perceived visual quality—please see our webpage. "
903
+ ],
904
+ "table_footnote": [],
905
+ "table_body": "<table><tr><td>Method</td><td>Depth MSE</td><td>PSNR</td><td>SSIM▲</td><td>LPIPS ?</td></tr><tr><td>NSFF[26]</td><td>0.021 ± 0.003</td><td>22.64 ± 1.46</td><td>0.554 ± 0.029</td><td>0.039 ± 0.010</td></tr><tr><td>+ ToF depth</td><td>0.010 ± 0.002</td><td>21.84 ± 0.72</td><td>0.382 ± 0.021</td><td>0.037 ± 0.014</td></tr><tr><td>+ ToF depth (unwrapped)</td><td>0.007 ± 0.002</td><td>21.70 ± 0.98</td><td>0.387 ± 0.028</td><td>0.040 ± 0.013</td></tr><tr><td>VideoNeRF[52]</td><td>0.008 ± 0.002</td><td>21.32 ± 1.03</td><td>0.358 ± 0.032</td><td>0.032 ± 0.017</td></tr><tr><td>+ ToF depth</td><td>0.011 ± 0.002</td><td>19.75 ± 1.07</td><td>0.275 ± 0.021</td><td>0.041 ± 0.016</td></tr><tr><td>+ ToF depth (unwrapped)</td><td>0.009 ± 0.002</td><td>20.72 ± 1.03</td><td>0.350 ± 0.033</td><td>0.032 ± 0.016</td></tr><tr><td>ToRF (ours)</td><td>0.005 ± 0.001</td><td>22.19 ± 1.75</td><td>0.561 ± 0.052</td><td>0.028 ± 0.011</td></tr></table>",
906
+ "bbox": [
907
+ 176,
908
+ 165,
909
+ 821,
910
+ 305
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "öRF RGB TöRFEven with ToF data, objects imaged at grazing angles or objects that are both dark (low reflectance) and dynamic remain difficult to reconstruct, e.g., dark hair (Figure 7). Further, neural networks have limited capacity to model dynamic scenes, which limits the duration of dynamic sequences. This is a limitation of many current neural dynamic scene methods. ",
917
+ "bbox": [
918
+ 174,
919
+ 325,
920
+ 516,
921
+ 422
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "6.2. Potential Social Impact. Scene reconstruction and view synthesis are core problems in visual computing for determining the shape and appearance of objects and scenes. Neural approaches to these tasks hold promise to increase accuracy and fidelity. At the methodological level, integrating ToF data improves accuracy, but restricts use to scenarios where active illumination is detectable. While the recovery of shape and appearance has many applications, negative impact may include synthesizing images from perspectives or time instances that were never captured (falsifying media), extending surveillance through higher-fidelity reconstructions (security), or copying physical objects to ‘rip off’ designs. ",
928
+ "bbox": [
929
+ 174,
930
+ 434,
931
+ 517,
932
+ 601
933
+ ],
934
+ "page_idx": 9
935
+ },
936
+ {
937
+ "type": "image",
938
+ "img_path": "images/5eadb3a11bd4e911b6aae39e34da8da1c88bc408aff80b101f42899f15ead378.jpg",
939
+ "image_caption": [
940
+ "Figure 7: In the Photocopier (top) and StudyBook (bottom) scenes, RGB and depth NVS show that dark and dynamic objects pose difficulties. Dark hair incorrectly extends in front or to the side of the face due to failure to reconstruct dynamic motion. "
941
+ ],
942
+ "image_footnote": [],
943
+ "bbox": [
944
+ 547,
945
+ 325,
946
+ 808,
947
+ 491
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "",
954
+ "bbox": [
955
+ 176,
956
+ 599,
957
+ 807,
958
+ 614
959
+ ],
960
+ "page_idx": 9
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Practically, current neural approaches are more computationally expensive in both optimization and rendering than classic image-based rendering. Our work required GPUs to optimize for many hours (12–24 h). Without renewable energy sources, this use will generate $\\mathrm { C O } _ { 2 }$ emissions, requiring $1 . 5 { - } 3 \\mathrm { k g } \\mathrm { C O } _ { 2 }$ -equivalents per scene for optimization and $0 . 0 1 { - } 0 . 0 2 \\mathrm { k g } \\mathrm { C O } _ { 2 }$ -equivalents per sequence for rendering (numbers generated by ML $\\mathrm { C O } _ { 2 }$ Impact [22]). Concurrent work in neural radiance fields reduces this cost using caching, spatial acceleration structures, and more efficient parameterizations, and real-world deployment should exploit these approaches to reduce the $\\mathrm { C O } _ { 2 }$ emission impact. ",
965
+ "bbox": [
966
+ 174,
967
+ 619,
968
+ 825,
969
+ 717
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "7 Conclusion ",
976
+ "text_level": 1,
977
+ "bbox": [
978
+ 174,
979
+ 733,
980
+ 299,
981
+ 750
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Modern camera systems integrate multiple modes of sensing, and our reconstruction methods should exploit this information to improve quality. To this end, we formulate a neural model for time-offlight radiance fields based on physical $\\mathrm { R G B + T o F }$ image formation. We demonstrate an optimization method to recover TöRF volumes, and show that it improves novel-view synthesis for few-view scenes and especially for dynamic scenes. Further, we demonstrate that using raw ToF phasor supervision leads to better performance than using derived depth directly, allowing both sensing modes to help resolve errors, limitations, and ambiguities. Future work may extend the combination of additional sensors into neural radiance fields, e.g., dynamic vision sensors [27] or event cameras may be used to measure scenes at higher speeds. Further, a collocated point light source has been shown to be able to render photos of scenes under non-collocated illumination conditions [5]. As a result, we believe ToF images may also serve to support relighting applications. ",
988
+ "bbox": [
989
+ 174,
990
+ 758,
991
+ 825,
992
+ 911
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Acknowledgments and Disclosure of Funding ",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 174,
1002
+ 88,
1003
+ 553,
1004
+ 107
1005
+ ],
1006
+ "page_idx": 10
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Thank you to Kenan Deng for developing acquisition software for the time-of-flight camera. For our synthetic data, we thank the authors of assets from the McGuire Computer Graphics Archive [29], Benedikt Bitterli for Mitsuba scene files [6], Davide Tirindelli for Blender scene files, ‘Architectural Visualization’ demo Blender scene by Marek Moravec (CC-0 Public Domain) [33], ‘Rampaging T-Rex’ from the 3D library of Microsoft’s 3D Viewer, and ‘Indoor Pot Plant $2 ^ { \\circ }$ by 3dhaupt from Free3D (non-commercial) [15]. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 114,
1014
+ 825,
1015
+ 199
1016
+ ],
1017
+ "page_idx": 10
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "For funding, Matthew O’Toole acknowledges support from NSF IIS-2008464, James Tompkin thanks an Amazon Research Award and NSF CNS-2038897, and Christian Richardt acknowledges funding from an EPSRC-UKRI Innovation Fellowship (EP/S001050/1) and RCUK grant CAMERA (EP/M023281/1, EP/T022523/1). ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 204,
1025
+ 825,
1026
+ 261
1027
+ ],
1028
+ "page_idx": 10
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "References ",
1033
+ "text_level": 1,
1034
+ "bbox": [
1035
+ 174,
1036
+ 273,
1037
+ 266,
1038
+ 290
1039
+ ],
1040
+ "page_idx": 10
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "[1] Supreeth Achar, Joseph R. Bartels, William L. ‘Red’ Whittaker, Kiriakos N. Kutulakos, and Srinivasa G. Narasimhan. Epipolar time-of-flight imaging. ACM Trans. Graph., 36(4):37:1–8, 2017. doi:10.1145/3072959.3073686. \n[2] Robert Anderson, David Gallup, Jonathan T. Barron, Janne Kontkanen, Noah Snavely, Carlos Hernandez, Sameer Agarwal, and Steven M. Seitz. Jump: Virtual reality video. ACM Trans. Graph., 35(6):198:1–13, 2016. doi:10.1145/2980179.2980257. \n[3] Benjamin Attal, Selena Ling, Aaron Gokaslan, Christian Richardt, and James Tompkin. MatryODShka: Real-time 6DoF video view synthesis using multi-sphere images. In ECCV, 2020. doi:10.1007/978-3-030- 58452-8_26. \n[4] Tobias Bertel, Mingze Yuan, Reuben Lindroos, and Christian Richardt. OmniPhotos: Casual $3 6 0 ^ { \\circ }$ VR photography. ACM Trans. Graph., 39(6):267:1–12, 2020. doi:10.1145/3414685.3417770. \n[5] Sai Bi, Zexiang Xu, Pratul Srinivasan, Ben Mildenhall, Kalyan Sunkavalli, Miloš Hašan, Yannick HoldGeoffroy, David Kriegman, and Ravi Ramamoorthi. Neural reflectance fields for appearance acquisition. arXiv:2008.03824, 2020. \n[6] Benedikt Bitterli. Rendering resources, 2016. URL https://benedikt-bitterli.me/resources/. \n[7] Michael Broxton, John Flynn, Ryan Overbeck, Daniel Erickson, Peter Hedman, Matthew DuVall, Jason Dourgarian, Jay Busch, Matt Whalen, and Paul Debevec. Immersive light field video with a layered mesh representation. ACM Trans. Graph., 39(4):86:1–15, 2020. doi:10.1145/3386569.3392485. \n[8] Chris Buehler, Michael Bosse, Leonard McMillan, Steven Gortler, and Michael Cohen. Unstructured lumigraph rendering. In SIGGRAPH, pages 425–432, 2001. doi:10.1145/383259.383309. \n[9] Paul Debevec, Yizhou Yu, and George Borshukov. Efficient view-dependent image-based rendering with projective texture-mapping. In Proceedings of the Eurographics Workshop on Rendering, pages 105–116, 1998. doi:10.1007/978-3-7091-6453-2_10. \n[10] Chen Gao, Ayush Saraf, Johannes Kopf, and Jia-Bin Huang. Dynamic view synthesis from dynamic monocular video. In ICCV, 2021. \n[11] Steven J. Gortler, Radek Grzeszczuk, Richard Szeliski, and Michael F. Cohen. The lumigraph. In SIGGRAPH, pages 43–54, 1996. doi:10.1145/237170.237200. \n[12] Mohit Gupta, Shree K. Nayar, Matthias B. Hullin, and Jaime Martin. Phasor imaging: A generalization of correlation-based time-of-flight imaging. ACM Trans. Graph., 34(5):156:1–18, 2015. doi:10.1145/2735702. \n[13] Felipe Gutierrez-Barragan, Syed Azer Reza, Andreas Velten, and Mohit Gupta. Practical coding function design for time-of-flight imaging. In CVPR, pages 1566–1574, 2019. \n[14] Miles Hansard, Seungkyu Lee, Ouk Choi, and Radu Patrice Horaud. Time-of-Flight Cameras: Principles, Methods and Applications. Springer, 2012. doi:10.1007/978-1-4471-4658-2. \n[15] Dennis Haupt. Indoor Pot Plant 2, November 2019. URL https://free3d.com/3d-model/ indoor-pot-plant-77983.html. Non-commercial use only. \n[16] Peter Hedman, Suhib Alsisan, Richard Szeliski, and Johannes Kopf. Casual 3D photography. ACM Trans. Graph., 36(6):234:1–15, 2017. doi:10.1145/3130800.3130828. \n[17] Adrian Jarabo, Julio Marco, Adolfo Muñoz, Raul Buisan, Wojciech Jarosz, and Diego Gutierrez. A framework for transient rendering. ACM Trans. Graph., 33(6):177:1–10, 2014. doi:10.1145/2661229.2661251. \n[18] Walter Koechner. Optical ranging system employing a high power injection laser diode. IEEE Transactions on Aerospace and Electronic Systems, 4(1):81–91, 1968. doi:10.1109/TAES.1968.5408936. \n[19] Andreas Kolb, Erhardt Barth, Reinhard Koch, and Rasmus Larsen. Time-of-flight cameras in computer graphics. Comput. Graph. Forum, 29(1):141–159, 2010. doi:10.1111/j.1467-8659.2009.01583.x. \n[20] Johannes Kopf, Xuejian Rong, and Jia-Bin Huang. Robust consistent video depth estimation. In CVPR, 2021. \n[21] George Alex Koulieris, Kaan Ak¸sit, Michael Stengel, Rafał K. Mantiuk, Katerina Mania, and Christian Richardt. Near-eye display and tracking technologies for virtual and augmented reality. Comput. Graph. Forum, 38(2):493–519, 2019. doi:10.1111/cgf.13654. \n[22] Alexandre Lacoste, Alexandra Luccioni, Victor Schmidt, and Thomas Dandres. Quantifying the carbon emissions of machine learning. arXiv:1910.09700, 2019. \n[23] Marc Levoy and Pat Hanrahan. Light field rendering. In SIGGRAPH, pages 31–42, 1996. doi:10.1145/237170.237199. \n[24] Tianye Li, Mira Slavcheva, Michael Zollhöfer, Simon Green, Christoph Lassner, Changil Kim, Tanner Schmidt, Steven Lovegrove, Michael Goesele, and Zhaoyang Lv. Neural 3D video synthesis. arXiv:2103.02597, 2021. \n[25] You Li and Javier Ibanez-Guzman. Lidar for autonomous driving: The principles, challenges, and trends for automotive lidar and perception systems. IEEE Signal Processing Magazine, 37(4):50–61, 2020. doi:10.1109/MSP.2020.2973615. \n[26] Zhengqi Li, Simon Niklaus, Noah Snavely, and Oliver Wang. Neural scene flow fields for space-time view synthesis of dynamic scenes. In CVPR, 2021. \n[27] Patrick Lichtsteiner, Christoph Posch, and Tobi Delbruck. A $1 2 8 \\times 1 2 8$ 120 db $1 5 \\mu \\mathrm { s }$ latency asynchronous temporal contrast vision sensor. IEEE Journal of Solid-State Circuits, 43(2):566–576, 2008. doi:10.1109/JSSC.2007.914337. \n[28] Xuan Luo, Jia-Bin Huang, Richard Szeliski, Kevin Matzen, and Johannes Kopf. Consistent video depth estimation. ACM Trans. Graph., 39(4):71:1–13, 2020. doi:10.1145/3386569.3392377. \n[29] Morgan McGuire. Computer Graphics Archive, July 2017. URL https://casual-effects.com/data. \n[30] Moustafa Meshry, Dan B Goldman, Sameh Khamis, Hugues Hoppe, Rohit Pandey, Noah Snavely, and Ricardo Martin-Brualla. Neural rerendering in the wild. In CVPR, 2019. doi:10.1109/CVPR.2019.00704. \n[31] Ben Mildenhall, Pratul P. Srinivasan, Rodrigo Ortiz-Cayon, Nima Khademi Kalantari, Ravi Ramamoorthi, Ren Ng, and Abhishek Kar. Local light field fusion: Practical view synthesis with prescriptive sampling guidelines. ACM Trans. Graph., 38(4):29:1–14, 2019. doi:10.1145/3306346.3322980. \n[32] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020. doi:10.1007/978- 3-030-58452-8_24. \n[33] Marek Moravec. Architectural visualization—Blender demo scene, November 2019. URL https: //www.blender.org/download/demo-files/. CC-0 Public Domain. \n[34] Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. HoloGAN: Unsupervised learning of 3D representations from natural images. In ICCV, 2019. doi:10.1109/ICCV.2019.00768. \n[35] Matthew O’Toole, Felix Heide, Lei Xiao, Matthias B. Hullin, Wolfgang Heidrich, and Kiriakos N. Kutulakos. Temporal frequency probing for 5D transient analysis of global light transport. ACM Trans. Graph., 33(4):87:1–11, 2014. doi:10.1145/2601097.2601103. \n[36] Ryan Styles Overbeck, Daniel Erickson, Daniel Evangelakos, Matt Pharr, and Paul Debevec. A system for acquiring, compressing, and rendering panoramic light field stills for virtual reality. ACM Trans. Graph., 37(6):197:1–15, 2018. doi:10.1145/3272127.3275031. \n[37] Keunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo-Martin Brualla. Nerfies: Deformable neural radiance fields. In ICCV, 2021. \n[38] Albert Parra Pozo, Michael Toksvig, Terry Filiba Schrager, Joyse Hsu, Uday Mathur, Alexander SorkineHornung, Rick Szeliski, and Brian Cabral. An integrated 6DoF video camera and system design. ACM Trans. Graph., 38(6):216:1–16, 2019. doi:10.1145/3355089.3356555. \n[39] Adithya Pediredla, Ashok Veeraraghavan, and Ioannis Gkioulekas. Ellipsoidal path connections for time-gated rendering. ACM Trans. Graph., 38(4):38:1–12, 2019. doi:10.1145/3306346.3323016. \n[40] Matt Pharr, Wenzel Jakob, and Greg Humphreys. Physically Based Rendering: From Theory to Implementation. Elsevier Science, 3rd edition, 2016. ISBN 9780128007099. URL https://www.pbr-book.org/. \n[41] Kari Pulli, Michael F. Cohen, Tom Duchamp, Hugues Hoppe, Linda Shapiro, and Werner Stuetzle. Viewbased rendering: Visualizing real objects from scanned range and color data. In Proceedings of the Eurographics Workshop on Rendering, pages 23–34, 1997. doi:10.1007/978-3-7091-6858-5_3. \n[42] Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural radiance fields for dynamic scenes. In CVPR, 2021. \n[43] Malcolm Reynolds, Jozef Doboš, Leto Peel, Tim Weyrich, and Gabriel J Brostow. Capturing time-of-flight data with confidence. In CVPR, pages 945–952, 2011. doi:10.1109/CVPR.2011.5995550. \n[44] Christopher Schroers, Jean-Charles Bazin, and Alexander Sorkine-Hornung. An omnistereoscopic video pipeline for capture and display of real-world VR. ACM Trans. Graph., 37(3):37:1–13, 2018. doi:10.1145/3225150. \n[45] Johannes L. Schönberger and Jan-Michael Frahm. Structure-from-motion revisited. In CVPR, pages 4104–4113, 2016. doi:10.1109/CVPR.2016.445. \n[46] Siyuan Shen, Zi Wang, Ping Liu, Zhengqing Pan, Ruiqian Li, Tian Gao, Shiying Li, and Jingyi Yu. Non-line-of-sight imaging via neural transient fields. TPAMI, 43(7):2257–2268, 2021. doi:10.1109/TPAMI.2021.3076062. \n[47] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhöfer. DeepVoxels: Learning persistent 3D feature embeddings. In CVPR, pages 2437–2446, 2019. doi:10.1109/CVPR.2019.00254. \n[48] Vincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene representation networks: Continuous 3D-structure-aware neural scene representations. In NeurIPS, 2019. \n[49] Ayush Tewari, Ohad Fried, Justus Thies, Vincent Sitzmann, Stephen Lombardi, Kalyan Sunkavalli, Ricardo Martin-Brualla, Tomas Simon, Jason Saragih, Matthias Nießner, Rohit Pandey, Sean Fanello, Gordon Wetzstein, Jun-Yan Zhu, Christian Theobalt, Maneesh Agrawala, Eli Shechtman, Dan B Goldman, and Michael Zollhöfer. State of the art on neural rendering. Comput. Graph. Forum, 39(2):701–727, 2020. doi:10.1111/cgf.14022. \n[50] Edgar Tretschk, Ayush Tewari, Vladislav Golyanik, Michael Zollhöfer, Christoph Lassner, and Christian Theobalt. Non-rigid neural radiance fields: Reconstruction and novel view synthesis of a deforming scene from monocular video. In ICCV, 2021. \n[51] Richard Tucker and Noah Snavely. Single-view view synthesis with multiplane images. In CVPR, 2020. doi:10.1109/CVPR42600.2020.00063. \n[52] Wenqi Xian, Jia-Bin Huang, Johannes Kopf, and Changil Kim. Space-time neural irradiance fields for free-viewpoint video. In CVPR, 2021. \n[53] Zexiang Xu, Sai Bi, Kalyan Sunkavalli, Sunil Hadap, Hao Su, and Ravi Ramamoorthi. Deep view synthesis from sparse photometric images. ACM Trans. Graph., 38(4):76:1–13, 2019. doi:10.1145/3306346.3323007. \n[54] Lior Yariv, Yoni Kasten, Dror Moran, Meirav Galun, Matan Atzmon, Ronen Basri, and Yaron Lipman. Multiview neural surface reconstruction by disentangling geometry and appearance. In NeurIPS, 2020. \n[55] Jae Shin Yoon, Kihwan Kim, Orazio Gallo, Hyun Soo Park, and Jan Kautz. Novel view synthesis of dynamic scenes with globally coherent depths from a monocular camera. In CVPR, 2020. doi:10.1109/CVPR42600.2020.00538. \n[56] Jiakai Zhang, Xinhang Liu, Xinyi Ye, Fuqiang Zhao, Yanshun Zhang, Minye Wu, Yingliang Zhang, Lan Xu, and Jingyi Yu. Editable free-viewpoint video using a layered neural representation. ACM Trans. Graph., 2021. doi:10.1145/3450626.3459756. \n[57] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. ACM Trans. Graph., 37(4):65:1–12, 2018. doi:10.1145/3197517.3201323. ",
1045
+ "bbox": [
1046
+ 178,
1047
+ 294,
1048
+ 826,
1049
+ 917
1050
+ ],
1051
+ "page_idx": 10
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "",
1056
+ "bbox": [
1057
+ 171,
1058
+ 55,
1059
+ 828,
1060
+ 911
1061
+ ],
1062
+ "page_idx": 11
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "",
1067
+ "bbox": [
1068
+ 171,
1069
+ 60,
1070
+ 828,
1071
+ 916
1072
+ ],
1073
+ "page_idx": 12
1074
+ }
1075
+ ]
parse/train/CaKvIT5UMfd/CaKvIT5UMfd_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/CaKvIT5UMfd/CaKvIT5UMfd_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ODKwX19UjOj/ODKwX19UjOj.md ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNSUPERVISED HIERARCHICAL CONCEPT LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Concepts or temporal abstractions are an essential aspect of learning among humans. They allow for succinct representations of the experiences we have through a variety of sensory inputs. Also, these concepts are arranged hierarchically, allowing for an efficient representation of complex long-horizon experiences. Analogously, here we propose a model that learns temporal representations from long-horizon visual demonstration data and associated textual descriptions without explicit temporal supervision. Additionally, our method produces a hierarchy of concepts that align more closely with ground-truth human-annotated events than several state-of-theart supervised and unsupervised baselines in complex visual domains such as chess and cooking demonstrations. We illustrate the utility of the abstracted concepts in downstream tasks, such as captioning and reasoning. Finally, we perform several ablation studies illustrating the robustness of our approach to data-scarcity.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Consider a video (Figure 1) that demonstrates how to cook an egg. Humans subconsciously learn concepts (such as boiling water) that describe different concepts (or skills) in such demonstrations Pammi et al. (2004). These learned skills can be composed and reused in different ways to learn new concepts. Discovering such concepts automatically from demonstration data is a non-trivial problem. Shankar et al. (2019) introduces a sequence-to-sequence architecture that clusters long-horizon action trajectories into shorter temporal skills. However, their approach treats skills as independent concepts. In contrast, humans organize these concepts in hierarchies where lower-level concepts can be grouped to define higher-level concepts Naim et al. (2019).
12
+
13
+ We extend the architecture in Shankar et al. (2019) to simultaneously discover concepts along with their hierarchical organization without any supervision.
14
+
15
+ We propose an end-to-end trainable architecture UNHCLE for hierarchical representation learning from demonstrations. UNHCLE takes as input a long horizon trajectory of high-dimensional images demonstrating a complex task (in our case, chess and cooking) and the associated textual commentary and isolates semantically meaningful subsequences in input trajectories. We emphasize that it does not require temporal annotations which link subsequences in the trajectories of images to the freeflowing commentary, but instead, autonomously discovers this mapping. Therefore, this work takes a step towards unsupervised video understanding of high-dimensional data. Our contributions can be summarized as follows:
16
+
17
+ • We introduce a transformer-based architecture to learn a multi-modal hierarchical latent embedding space to encode the various concepts in long-horizon demonstration trajectories. UNHCLE abstracts these concepts (shown through visual qualitative analysis) without requiring any temporal supervision, i.e., it divides long-horizon trajectories into semantically meaningful subsequences, without access to any temporal annotations that split these trajectories optimally.
18
+ We show the quantitative effectiveness of learning high-level concepts in a hierarchical manner compared to learning them in isolation while outperforming several baselines on YouCook2 (Zhou et al. (2017)) and Chess Opening dataset1.
19
+ • We further introduce a mechanism to incorporate commentary accompanying demonstrations in UNHCLE and show improvements in hierarchical concepts discovered.
20
+
21
+ ![](images/3bef29025077483e2bdbb0e67a5bab8191d754218528d999b2a74d489df0ef38.jpg)
22
+ Figure 1: Overview of our approach. UNHCLE learns a hierarchical latent space of concepts describing long horizon tasks like cooking and chess gameplay.
23
+
24
+ • We introduce TimeWarped IoU (TW-IoU), an evaluation metric that we use to compare the alignment of our discovered concepts and ground-truth events.
25
+
26
+ Existing approaches to representation learning for demonstrations or videos typically require significant supervision. Typically, sequence-to-sequence architectures are trained on datasets segmented by humans. During inference, these architectures generate proposals for timestamps that segment the input trajectory into semantically meaningful sequences. These complex sequence-to-sequence models require significant amounts of annotated data, making them costly to train them.
27
+
28
+ More generally, video and scene understanding is an important research area with wide-ranging applications. Most recently, Chen et al. (2019) utilize semantic awareness to perform complex depth estimation tasks to acquire the geometric properties of 3-dimensional space from 2-dimensional images. Tosi et al. (2020) utilize similar semantic information for depth estimation, optical flow and motion segmentation. Boggust et al. (2019) attempt to ground words in the video, but apply significant supervision to synchronize them, requiring human intervention. We attempt to learn similar embeddings but do so in a completely unsupervised manner, not utilizing any of the temporal labels available.
29
+
30
+ The field of learning from demonstrations (Nicolescu & Mataric (2003)) seeks to learn to perform tasks from a set of demonstrated behaviors. Behavioral Cloning is one popular scheme (Esmaili et al. (1995)). Atkeson & Schaal (1997) and Schaal (1997) show how agents can learn simple tasks like cartpole simply from demonstrations. Pastor et al. (2009) also study how robots can learn from human demonstrations of tasks. Peters et al. (2013) and Kober & Peters (2009) fit a parametric model to the demonstrations. Niekum et al. (2012), Murali et al. (2016), and Meier et al. (2011) first segment trajectories into subsequence and then apply a parametric models to each subsequence. More recently, Schmeckpeper et al. (2019) shows that agents can learn to maximize external reward using a large corpus of observation data, i.e., trajectories of states on a relatively smaller corpus of interaction data, i.e., trajectories of state-action pairs. Hierarchical task representations have been studied as well. Instead of treating demonstrations in a flat manner, one may also infer the hierarchical structure. A few recent works attempt to do so (Xu et al. (2018); Sun et al. (2018)), or as task graphs (Huang et al., 2019). Both Xu et al. (2018) and Huang et al. (2019) address generalizing to new instances of manipulation tasks in the few-shot regime by abstracting away low-level controls. However, all of these approaches require an environment i.e., a transition and reward function to learn from. On the contrary, humans show an ability to learn by watching demonstrations, which we attempt to replicate.
31
+
32
+ Temporal abstractions of action sequences or skill/primitive learning is also a related field. Eysenbach et al. (2018), learn a large number of low-level sequences of actions by forcing the agent to produce skills that are different from those previously acquired. However, due to the diversity bias, the agent results in learning many useless skills that cannot be used for any semantically meaningful task. Similarly, Sharma et al. (2019) attempt to learn skills such that their transitions are almost deterministic in a given environment. These approaches also require access to an environment, whereas we try to learn without an environment.
33
+
34
+ ![](images/e583437c19259fca4efbac914ef93d18b1b50864b748f31c6bdc5b7846aa1527.jpg)
35
+ Figure 2: Overview of our approach. UNHCLE learns a hierarchical semantically-meaningful embedding space which allows it to perform complex downstream tasks such as temporal concept segmentation and label prediction. Refer to Section 2.1 for details about the abbreviations used in the figure.
36
+
37
+ # 2 APPROACH
38
+
39
+ # 2.1 UNHCLE: UNSUPERVISED HIERARCHICAL CONCEPT LEARNING
40
+
41
+ Intuitively, we define a concept as a short sequence of states which repeatedly occur across several demonstration trajectories. Concepts have an upper limit on their length in time-steps. These concepts can be obtained from the images of demonstrations, denoted by $z$ , and from the associated textual description, represented by $c$ . We also refer to them as Observational Concept (OC) and Instructional Concept (IC) respectively and the module that encodes these concepts is referred to as Observational Concept Abstraction (OCA) and Instructional Concept Abstraction (ICA) modules. Additionally, concepts are hierarchical in nature - thus, lower-level and higher-level observational or image concepts are denoted by $z ^ { L }$ and $z ^ { H }$ , respectively. Analogously, lower-level, and higher-level textual concepts are represented by $c ^ { L }$ and $c ^ { H }$ , respectively. Similarly, the higher-level and lower-level modules are denoted by low or high for the corresponding level.
42
+
43
+ Once we obtain these concept abstractions across levels, we can also transform them across the levels using a Concept Regeneration (CR) Module to transform low-level concepts to high-level concepts and vice-versa. Instead of just traversing in the concept level hierarchy, we can also use the Concept Instruction Regeneration Module or CIR to obtain the original instructions that map to that concept in its respective concept modality.
44
+
45
+ Subsequently, we provide details about the different stages in our proposed technique.
46
+
47
+ Encoding Observation: Given a long horizon trajectory of demonstration images along with its associated textual description, UNHCLE is able to abstract a hierarchy of concepts from demonstration images. We first pass these input images through ResNet-32 (He et al. (2016)) to get a sequence of image vectors as $S = s _ { 1 : m }$ , and the associated text is converted into word vectors $W = w _ { 1 : n }$ using BERT-base (Devlin et al. (2018)). Observations combine to produce lower-level concepts whereas higher-level concepts are simply aggregations of such lower-level concepts. Thus, the Lower-level Observation Concept Abstraction module $( \mathrm { O C A } ^ { l o w } )$ is trained to embed a sequence of image vectors of a video $\left( s _ { 1 } , s _ { 2 } . . . . s _ { m } \right)$ into a sequence of concept vectors $( z _ { 1 } ^ { L } , z _ { 2 } ^ { L } , . . , z _ { U } ^ { L } )$ where $u < < m$ such that $z _ { 1 : u } ^ { L } = \mathbf { O C A } ^ { l o w } \left( s _ { 1 : m } \right)$ . Subsequently, lower-level concepts combine together to form a higher level of concepts using the Higher-level Observation Concept Abstraction module $( \mathrm { O C A } ^ { h i g h } )$ such that $z _ { 1 : v } ^ { H } ~ = ~ \mathrm { O C A } ^ { h i g h } \left( z _ { 1 : u } ^ { L } \right)$ .
48
+
49
+ Encoding Instructions: We also endeavour to discover these higher-level and lower-level concepts through natural language instructions. The Lower-level Instruction Concept Abstraction module $( \mathrm { I C A } ^ { l o w } )$ and Higher-level Instruction Concept Abstraction module $( \mathrm { I C A } ^ { h i _ { g h } } )$ are responsible for this functionality. From a corpus of words, $\left( w _ { 1 } , w _ { 2 } . . . . w _ { n } \right)$ , the $\mathrm { I C A } ^ { l o w }$ module generates concept $( c _ { 1 } ^ { L } , c _ { 2 } ^ { L } , . . , c _ { u } ^ { L } ) , u < < n \colon c _ { 1 : u } ^ { L } \ = \ { \mathrm { I C A } } ^ { l o w } \left( w _ { 1 : n } \right)$ . Subsequently the $\mathrm { I C A } ^ { h i g h }$ encodes the lower-level language concepts $c _ { 1 : u } ^ { L }$ into higher level concepts as $c _ { 1 : v } ^ { H } ~ = ~ \mathrm { I C A } ^ { h i g h } ~ ( c _ { 1 : u } ^ { L } )$ .
50
+
51
+ Traversing across the concept hierarchy: Learning concepts at different levels has an added advantage of traversing these concepts in the concept hierarchy. This additionally allows us to utilize these hierarchical traversals to obtain coarse or fine-grained concepts at any level. We can thus regenerate the lower concepts from higher-level instruction concepts using the Lower-level Concept Regeneration Module $( \mathbf { C R } ^ { l o w } )$ such that $\boldsymbol { z } _ { 1 : u ^ { \prime } } ^ { \prime L } ~ = \mathbf { C } \mathbf { R } ^ { l o w } ~ ( c _ { 1 : v } ^ { H } )$ . We can then later utilize this to obtain lower-level concepts from the higher-level concepts to regenerate the demonstration images $S ^ { L } = s _ { 1 : m ^ { L } } ^ { L }$ in a cross-modal fashion.
52
+
53
+ Observation and Instruction Regeneration: Under a concept, the sequence of frames is nearly deterministic i.e. the knowledge of a concept uniquely identifies the accompanying sequence of $S ^ { L } \overset { = } { = } s _ { 1 : m ^ { L } } ^ { L }$ e demonstration trajectory. Subsequently, we regenerate the demonstration image vectorsfrom lower-level concepts using Lower-level Concept Observation Regeneration Module $( \mathrm { C O R } ^ { l o w } )$ such that $s _ { 1 : m ^ { L } } ^ { L } = ~ \mathrm { C O R } ^ { l o w } ~ ( z _ { 1 : u ^ { \prime } } ^ { \prime L } )$ . We also regenerate the demonstration image vectors $S ^ { U } = s _ { 1 : m } ^ { U } \upsilon$ from higher-level coRegeneration Module $( \mathbf { C O R } ^ { h i g h } )$ racted fro such that $\begin{array} { l l l } { s _ { 1 : m ^ { U } } ^ { U } } & { = } & { \mathrm { C O R } ^ { h i g h } \ ( c _ { 1 : v } ^ { H } ) } \end{array}$ vel Conceptin a similar cross-modal manner.
54
+
55
+ Finally, inspired by humans who can easily describe concept representations using free-flowing natural language, we first regenerate lower-level concepts from higher-level observation concepts using the Lower-level Concept Regeneration Module $( \mathbf { C R } ^ { l o w } )$ such that $c _ { 1 : u ^ { \prime } } ^ { \prime L } ~ = ~ \mathbf { C } \mathbf { R } ^ { l o w } ~ ( z _ { 1 : v } ^ { H } )$ , and subsequently, regenerate the word vectors $W ^ { L } = w _ { 1 : n ^ { L } } ^ { L }$ from lower-level concepts using Lower-level Concept Instruction Regeneration Module $\scriptstyle ( \mathbf { C I R } ^ { l o w } )$ ) such that $w _ { 1 : n ^ { L } } ^ { L } = \mathrm { \bf ~ C I R } ^ { l o w } ( c _ { 1 : u ^ { \prime } } ^ { \prime L } )$ . Additionally, the higher-level concepts identified by the ${ \mathrm { O C A } } ^ { h i g h }$ module from demonstration frames are also described using a meaningful free-flowing commentary by the Higher-level Concept Instruction Regeneration module or $\mathbf { C I R } ^ { h i g h }$ . Thus, we regenerate the word vectors $W ^ { U } = w _ { 1 : n } ^ { U } \boldsymbol { v }$ from higherlevel concepts using $\mathbf { C I R } ^ { h i g h }$ such that $w _ { 1 : m ^ { U } } ^ { U } = \ { \bf C } \mathrm { I R } ^ { h i g h } \left( z _ { 1 : v } ^ { H } \right)$ .
56
+
57
+ # 2.2 SOFT-DYNAMIC TIME WARPING (SOFT-DTW)
58
+
59
+ The most significant challenge that our work overcomes is that we do not require supervision for hierarchical temporal segmentation i.e. we do not require annotations which demarcate the beginning and ending of a concept, both in language and in the space of frame’s timestamps. Currently, most approaches rely on annotation describing the frame start and end for an event and the associated text for this event. Our architecture is trained using free-flowing commentary without event demarcations. This is achieved using the loss function we implement. We utilize Soft-DTW (Cuturi & Blondel (2017)) loss to align the reconstructed trajectories with the input long-horizon trajectory. So given two trajectories $x = ( x _ { 1 } , x _ { 2 } , . . . x _ { n } )$ and $y = ( y _ { 1 } , y _ { 2 } , . . . y _ { m } )$ , the soft- $ { \mathrm { D T W } } ( x , y )$ is computed as,
60
+
61
+ where $\mathcal { A } \in \mathcal { A } _ { n , m }$ is the alignment matrix, $\Delta ( x , y ) = [ \delta ( x _ { i } , y _ { i } ) ] _ { i j } \in \mathbb { R } ^ { n \times m }$ and $\delta$ being the cost function. min $\gamma$ operator is then computed as,
62
+
63
+ $$
64
+ m i n ^ { \gamma } \{ a _ { 1 } , \cdot \cdot \cdot , a _ { n } \} = { \left\{ \begin{array} { l l } { m i n { \mathrm { ~ } } _ { i \leq n } { \mathrm { ~ } } a _ { i } , } & { \gamma = 0 , } \\ { - \gamma \log \sum _ { i = 1 } ^ { n } e ^ { - a _ { i } / \gamma } , } & { \gamma > 0 . } \end{array} \right. }
65
+ $$
66
+
67
+ For our experiments, we use $L _ { 2 }$ distance as $\delta$ and $\gamma = 1$ .
68
+
69
+ # 2.3 LEARNING OBJECTIVE
70
+
71
+ Our approach that has been outlined in Figure 2 uses several loss terms between different network outputs to achieve our objective. The soft-DTW is used between several sequences as follows.
72
+
73
+ $$
74
+ \begin{array} { r } { \dot { \gamma } _ { d y n } = \mathrm { s o f t } { \mathrm { - } \mathrm { D T W } ( z _ { 1 : u } ^ { L } , c _ { 1 : u ^ { \prime } } ^ { \prime L } ) } + \mathrm { s o f t } { \mathrm { - } \mathrm { D T W } ( c _ { 1 : u } ^ { L } , z _ { 1 : u ^ { \prime } } ^ { \prime L } ) } + \mathrm { s o f t } { \mathrm { - } \mathrm { D T W } ( s _ { 1 : m } , s _ { 1 : m ^ { \prime } } ^ { \prime L } ) } + \mathrm { s o f t } { \mathrm { - } \mathrm { D T W } ( s _ { 1 : m } , s _ { 1 : m ^ { \prime } } ^ { \prime H } ) } } \end{array}
75
+ $$
76
+
77
+ We use the Negative Log-Likelihood (NLL) loss $( { \mathcal { L } } _ { n l l } )$ between the generated comment vectors and the BERT vectors and use the $L _ { 2 }$ loss between concepts from different modalities as follows,
78
+
79
+ $$
80
+ \begin{array} { r } { \mathcal { L } _ { s t a t i c } = \mathcal { L } _ { n l l } ( w _ { 1 : n } , w _ { 1 : n } ^ { \prime L } ) + \mathcal { L } _ { n l l } ( w _ { 1 : n } , w _ { 1 : n } ^ { \prime H } ) } \end{array}
81
+ $$
82
+
83
+ We then define our final loss as, $\mathcal { L } _ { t o t a l } = \alpha * \mathcal { L } _ { d y n } + \beta * \mathcal { L } _ { s t a t i c }$
84
+
85
+ # 2.4 EVALUATION METRICS
86
+
87
+ The ground-truth events in the dataset and the concepts generated by UNHCLE may differ in number, duration, and start-time. To evaluate the efficacy of UNHCLE in generating concepts that align with the human-annotated events in our dataset, it is imperative that we utilize a metric that measures the overlap between generated concepts and ground truths and also accounts for this possible temporal mismatch. To this end, we introduce time-warp IoU. Note that we do not utilize these the temporal ground-truth event annotations during training, but only to compare the abstraction generated by our architecture to the human-annotated events.
88
+
89
+ Consider the search series $S = ( s _ { 1 } , s _ { 2 } , s _ { 3 } . . . s _ { M } ) \in \mathbb { S }$ and target series $T = ( t _ { 1 } , t _ { 2 } , t _ { 3 } . . . t _ { N } )$ where $S$ corresponds to the end-of-concept time stamp for each concept as generated by UNHCLE for a single long-horizon demonstration trajectory. Thus, the $i ^ { t h }$ concept abstracted from UNHCLE starts at time $= s _ { i - 1 }$ and end at $\mathrm { t i m e } = s _ { i }$ . Similarly, $T$ corresponds to the end-of-event time stamp for each ground-truth event in the demonstration trajectory, where the $j ^ { t h }$ ground truth event starts at time $=$ $t _ { j - 1 }$ and ends at time $= t _ { j }$ . Note that both $s _ { 0 }$ and $t _ { 0 }$ are equal to zero i.e. we measure time starting at zero for all demonstration trajectories.
90
+
91
+ # 2.4.1 TIME-WARPED IOU
92
+
93
+ We calculate the time-warped alignment between between the event annotations and the concepts from UNHCLE. This implies calculating $\Delta ( S , T )$ , solving the following optimization problem (Berndt & Clifford (1994)), $\begin{array} { r } { \Delta ( S , T ) = \operatorname* { m i n } _ { P \in \mathcal { P } } \sum _ { m , n \in P } \delta ( s _ { m } , t _ { n } ) } \end{array}$ , where the $S$ and $T$ correspond to the search and target series respectively and $\delta$ corresponds to a distance metric (in our case the $L _ { 2 }$ norm), measuring time mismatch.
94
+
95
+ $\Delta ( S , T )$ therefore corresponds to the trajectory discrepancy measure defined as the matching cost for the optimal matching path $P$ among all possible valid matching paths $\mathcal { P }$ (i.e. paths satisfying monotonicity, continuity, and boundary conditions). From this optimal trajectory obtained we can also get the warping function $W$ such that $W ( s _ { i } ) = t _ { j }$ , i.e. we find the optimal mapping between the $i ^ { t h }$ concept ending at time $= s _ { i }$ and the $j ^ { t h }$ event ending at time $= t _ { j }$ . To quantify the quality of this mapping we introduce Time-Warp Intersection over Union for a single long-horizon trajectory $S$ .
96
+
97
+ $$
98
+ T W - I o U ( S ) = \sum _ { t _ { i } } \frac { \sum _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \operatorname* { m i n } ( t _ { i } , s _ { j } ) - \operatorname* { m a x } ( t _ { i - 1 } , s _ { j - 1 } ) } { \operatorname* { m a x } _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \{ \operatorname* { m a x } ( t _ { i } , s _ { j } ) \} - \operatorname* { m i n } _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \{ \operatorname* { m i n } ( t _ { i - 1 } , s _ { j - 1 } ) \} }
99
+ $$
100
+
101
+ Intuitively, this corresponds to the overlap between the $i ^ { t h }$ concept ending at time $= s _ { i }$ and the $j ^ { t h }$ event ending at time $= t _ { j }$ .
102
+
103
+ # 3 EXPERIMENTS
104
+
105
+ # 3.1 DATASETS
106
+
107
+ In order to find conceptual temporal patterns from videos in a hierarchical manner, we experiment with two datasets from different domains.
108
+
109
+ YouCook2 (Zhou et al. (2017)) dataset comprises of instructional videos for 89 unique recipes ${ \sim } 2 2$ videos per recipe) containing labels that separate the long horizon trajectories of demonstrations into events - with explicit time stamps for the beginning and end of each event along with the associated commentary. It contains 1,333 videos for training and 457 videos for testing. The average number of segments per video is 7.7 and the average duration of the video is 5.27 minutes.
110
+
111
+ Recommending Chess Openings2 dataset consists of opening moves in the game of Chess. An
112
+
113
+ Opening in Chess is a fixed sequence of moves which when performed leads to a final board state putting the player in a strategic position in the game. Commonly used chess openings are each labeled with a name (Figure 3 shows examples). The dataset contains 20,058 openings with each containing a sequence of chess moves and it’s corresponding opening and variation labels. The train-test split used for our experiments is 80-20.
114
+
115
+ # 3.2 IMPLEMENTATION DETAILS
116
+
117
+ The Observational Concept Abstraction (OCA) and Instructional Concept Abstraction (ICA) modules consist of the Transformer (Vaswani et al. (2017)) Encoder with 8 hidden layers and 8-Head Attention which takes as input, a sequence of frames positionally encoded and outputs a hidden vector. It is then passed through a Transformer Decoder again having 8 hidden layers and encoder-decoder crossattention with masking which finally outputs the concepts which are latent variables having dimension conceptlengt $\AA ^ { \prime } \times 7 6 8$ . We use a 1-layer GRU (Chung et al. (2014)) for our Concept Instruction Regeneration (CIR), Concept Observation Regeneration (COR), and the Concept Regeneration (CR) module which converts the high-level concepts to low-level concepts. For encoding the image frames, we down-sample all videos to 500 frames and use ResNet-32 (pretrained on MSCOCO dataset) (He et al. (2016)) for dense embedding of dimension $5 1 2 \times 1$ . We further down-sample to 200 frames per trajectory for all experiments. Comments are encoded using BERT-base pre-trained embeddings with a 768 hidden dimension.
118
+
119
+ For our low-level concepts, we keep the maximum number of concepts discovered as 16 and for high-level concepts as 4. These assumptions are based on the YouCook2 dataset statistics wherein ground-truth annotations (not used during training) the minimum number of segments were 5 and the maximum as 16. We keep $\alpha = 1$ and $\beta = 1$ for all our experiments along with a batch-size of 128 and use Adam optimizer for training with a learning rate of $1 e - 5$ and train the network for 100 epochs.
120
+
121
+ # 3.3 RESULTS AND ANALYSIS
122
+
123
+ # 3.3.1 VISUALIZING HIERARCHY
124
+
125
+ Here we analyze whether the discovered concepts are human interpretable i.e. are the temporal clusters within a single demonstration semantically meaningful?. We find that our architecture abstracts several useful human interpretable concepts without any supervision. Figure 3 and 4 shows the results obtained. These abstracted high-level concepts align well with the ground truth event labels provided in YouCook2. We also additionally find that our model is able to split each ground truth event into lower-level concepts. For instance, in a pasta-making demonstration in YouCook2, a single event corresponding to the description “heat a pan add 1 spoon oil and prosciutto to it”, UNHCLE is divided into low level concepts corresponding to “heat pan”, “add oil” and “prosciutto”. Note that no explicit event time labels were provided to UNHCLE, indicating that our model is able to abstract such coherent sub-sequences, thus taking the first step towards video understanding.
126
+
127
+ We also visualize the concepts abstracted by UNHCLE when trained on chess opening data. The concepts learnt here also produce coherent, human-interpretable results.
128
+
129
+ ![](images/9f059f65157e5e0760444066539235dd076958fe5ba5c6b9090277cd45b52ac8.jpg)
130
+ Figure 3: Hierarchy of concepts discovered by UNHCLE using openings data in Chess. At a high level, UNHCLE correctly identifies concepts corresponding to the Blackmar-Diemer Gambit and the Pietrowsky Defense. At a low level, it identifies concepts such as “d4 d5.. and e4 d3 ..” that are used across several openings
131
+
132
+ ![](images/4d2ff3a707ed12654cda5aa46b435af2f1b44fc85f859bb87556f315df11cd46.jpg)
133
+ Figure 4: Example Hierarchy of concepts discovered by UNHCLE on the YouCook2 dataset
134
+
135
+ # 3.3.2 COMPARISON WITH BASELINES
136
+
137
+ In this section, we evaluate the performance of UNHCLE quantitatively on YouCook23 and quantify its ability to generate coherent concepts that align with the human annotated ground truths using the TW-IoU metric. We compare our approach with 4 baselines. (1) Random baseline predicts segment randomly on the basis of uniformly sampled timestamps for a given video on the basis of its duration. (2) EQUALDIV consists of dividing the video into conceptual segments of equal duration (3) GRU-supervised: Further we also consider a naive supervised baseline comprising of a GRU Cho et al. (2014) based encoder that sequentially processes the Resnet features corresponding to frames in a video followed by a decoder GRU that attends Bahdanau et al. (2014) on encoder outputs and is trained to sequentially predict end timestamp of each meaningful segment (variable in number) in the video. (4) FLAT w/o comment: We implement the Shankar et al. (2019) approach which takes as input, a sequence of video frames and discovers a single level of concepts without any hierarchy. (5) FLAT w/ comment: This is a modification of the above baseline where we also decode comments from the single-level concept discovered and use that to give the model an extra signal which will help it in discovering better aligned concepts. See Figure 6(C) (in Appendix) (6) Clustering: Given an input sequence of frames, we define the weight function based on their temporal position in the sequence and also the $L _ { 2 }$ distance between the frame embeddings. Then we use standard K-means algorithm $\scriptstyle ( \mathrm { K } = 4 )$ to cluster the frames based on the weighting function defined and use the clusters formed to predict the temporal boundaries. (7) GRU_Seg: Instead of predicting end time stamps of each segment (as in GRU-supervised), the decoder is trained to predict/assign identical ids to frames which are part of the same segment. Further, the model’s decoder is trained to assign different ids to frames part of different segments while frames not part of any meaningful segment in the ground truth are trained to have a default null id - 0. During inference, continuous subsequence of frames predicted to be having same id are considered as part of one segment and different predicted segments are extracted accordingly (frames predicted to be having null ids are ignored).
138
+
139
+ For baselines, we predict only one level of concepts and hence refer to them as high-level concepts. Table 1a summarises and compares the TW-IoU computed between ground truth time stamp annotations and predicted/discovered segments. As can be seen, UNHCLE achieves the best TW-IoU compared to all other baselines. It can be noted that discovering only one (high) level of concepts (FLAT) results in low TW-IoU (for High-Level Concepts). However, UNHCLE discovers concepts that align better with the ground truth events (UNHCLE performs $\sim 2 3 \%$ better) compared to FLAT. Further, the GRU-supervised baseline performs better than FLAT but UNHCLE outperforms $( \sim 1 5 \% )$ the GRU-supervised baseline which shows that predicting such concepts is difficult even for a supervised baseline. Even though supervised GRU_Seg achieves better TW-IoU of 53.1 compared to high level concepts discovered by UNHCLE w/o comment as well as UNHCLE with comment, UNHCLE with comment (which is unsupervised) performance (TW-IoU 47.4) is still comparable with GRU_Seg. However, TW-IoU corresponding to low level concepts discovered by UNHCLE is better than GRU_Seg.
140
+
141
+ ![](images/cf2e5748cb19ef50a40666ddb927c0baa1cf7bf5a699e269079c91c38243a6e9.jpg)
142
+ Table 1: (a) TW-IoU scores for single level concepts predicted by the baselines along with the TW-IoU scores for both the high-level and low-level concepts for predictions from our proposed technique UNHCLE (b) Comparison showing the trade-off between number of down-sampled frames and TW-IoU for UNHCLE
143
+
144
+ <table><tr><td rowspan="2">Frames Used</td><td colspan="2">TW-IoU</td></tr><tr><td>high</td><td>low</td></tr><tr><td>200</td><td>37.4</td><td>58.7</td></tr><tr><td>64</td><td>33.4</td><td>34.0</td></tr><tr><td>32</td><td>13.1</td><td>12.7</td></tr></table>
145
+
146
+ # 3.3.3 EFFECT OF GUIDANCE THROUGH COMMENTARY
147
+
148
+ In this section, we discuss the improvement in the quality and precision of conceptual segments discovered by UNHCLE using video commentary to guide our model training on YouCook2 dataset. To study this, we compare UNHCLE without comment which discovers concept hierarchy using just frame observations in a video against UNHCLE with comment which additionally uses commentary as guide (as in Figure 2). Table 1a compares the TW-IoU of segments obtained corresponding to High Level Concepts for each of these two models. As can be seen, using commentary significantly improves the TW-IoU by $\sim 1 0 \%$ which establishes that using commentary enables UNHCLE to detect precise boundaries for segments corresponding to various concepts. However, we find only a marginal improvement of $\sim 1 \%$ in TW-IoU corresponding to low level concepts. Further, it can be seen in Figure 5 that using commentary allows the model to better understand how to merge lower-level concepts appropriately into higher-level concepts - “heat a pan, add 1 spoon oil and prosciutto to it” separately without merging it with subsequent segments.
149
+
150
+ ![](images/aeea5896a92812072ede49cc1fe492994b217ebd7af31683875fd36b837e4598.jpg)
151
+ Figure 5: In this figure, we show that using commentary as guide during training, UNHCLE learns to better combine low-level concepts to form high-level concepts which are better aligned towards our ground-truth annotations. A refers to the concept segments discovered w/o comments and B refers to the one with comment.
152
+
153
+ # 3.3.4 LABEL PREDICTION TASK FOR CHESS OPENINGS
154
+
155
+ We further evaluate UNHCLE on the task of label (name of opening $^ +$ variation) prediction corresponding to hierarchical concepts discovered. Since recommending Chess Openings comprises of a label for each sequence of moves in an opening, we train UNHCLE w/ commentary (Figure 2). Since there are at max only two segments corresponding to opening move and variation move in the dataset we use label prediction accuracy as our metric here instead of TW-IoU. There are 300 distinct labels and our model achieves $78 . 2 \%$ accuracy which shows that it is able to correctly discover the correct segmentation between openings with different variations as hierarchical concepts and associate them with the correct label in most of the test samples.
156
+
157
+ # 3.3.5 EFFECT OF SAMPLING RATE ON THE QUALITY OF HIERARCHY
158
+
159
+ For YouCook2 we down-sample 200 frames from the original 500 frames provided in the dataset and use that as our input to UNHCLE. We analyze the trade-off between time and performance if we further down-sample the frames. This also provides us a better insight into how much granular information regarding the video do we need to be able to discover better hierarchies. Table 1b shows the results obtained for our experiment. Interestingly, we don’t observe a linear drop in performance by reducing the number of frames. Even with just 64 frames, the results beat the other baselines.
160
+
161
+ # 3.4 ABLATION EXPERIMENTS & VISUAL ORDERING TASK
162
+
163
+ We performed more ablation experiments to show the need for the modules and the losses used in our model. We removed the soft- $\cdot D T W ( z _ { 1 : u } ^ { L } , c _ { 1 : u ^ { \prime } } ^ { \prime L } )$ loss from our UNHCLE (w/o comment) model in Figure 6(A) (in Appendix) to highlight the importance of this loss that guides traversing back and forth across the concept hierarchy. This loss guides the alignment between the initially generated low-level concepts $( z ^ { \dot { L } } )$ and the low-level concepts $( c ^ { \prime L } )$ extracted back from high-level concepts $( z ^ { H } )$ . Removing this loss reduces the TW-IoU scores drastically thus proving it’s necessity .See UNHCLE w/o comment w/o low-align loss in Table 2a.
164
+
165
+ We also choose a simplified version of the UNHCLE w/o commentary model shown in Fig. 6(A) (in Appendix), where we remove the $O C A ^ { L O W }$ modules and directly output $z ^ { H }$ , which looks simpler, but this removes the extra alignment signal as mentioned in the above point. We see this results in the drop of TW-IoU (Table 2a), thus confirming our need for the modules used. We call this the Direct Hierarchy baseline for which the system diagram is also provided in Figure 6(B) (in Appendix).
166
+
167
+ To show the effectiveness of the concepts discovered by UNHCLE we use them to perform a Visual Ordering Task. The task is that given a sequence of frames as input, our trained model (with frozen weights) should discover the high-level concepts associated with those frames and can be used to predict whether or not the given sequence of frames are in correct/meaningful order (binary classification). We use a simple 1-layer GRU to do so. To create the training data for this we take examples from the YouCook2 (Zhou et al. (2017)) dataset and randomly shuffle the sequence of frames creating 10 negative examples for each positive sample in the dataset. We finally evaluate this on our testing data after performing the same steps mentioned above and show our results in Table 2b. We report both the Accuracy and the F1 scores. As we can see that there is a significant gain of $9 \%$ in the F1 score and $2 \%$ in Accuracy using our model UNHCLE over the FLAT baseline.
168
+
169
+ ![](images/303a7456083be5c1b30e619a6b9528949bbdaec9cab5af51b55c0f46d038b1dd.jpg)
170
+ Table 2: (a) TW-IoU scores for ablation experiments for both high-level and low-level concepts prediction (b) Comparison between the Shankar et al. (2020) FLAT baseline and our proposed UNHCLE on the designed Visual Ordering Task.
171
+
172
+ # 4 CONCLUSION
173
+
174
+ We show that our approach (UNHCLE) discovers concepts and organizes them in a meaningful hierarchy using only demonstration data from chess openings and cooking. We also show that this discovered hierarchy of concepts is useful in predicting textual labels and temporal concept segmentations for the associated demonstrations. It would be interesting to use the concept hierarchy discovered by UNHCLE to generate a curriculum where lower-level concepts would be taught first followed by higher-level concepts. Another good direction would be to extend UNHCLE to learn different types of relationships between concepts without supervision.
175
+
176
+ # REFERENCES
177
+
178
+ Christopher G Atkeson and Stefan Schaal. Robot learning from demonstration. In ICML, volume 97, pp. 12–20. Citeseer, 1997.
179
+
180
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
181
+
182
+ Donald J Berndt and James Clifford. Using dynamic time warping to find patterns in time series. In KDD workshop, volume 10, pp. 359–370. Seattle, WA, USA:, 1994.
183
+
184
+ Angie W Boggust, Kartik Audhkhasi, Dhiraj Joshi, David Harwath, Samuel Thomas, Rogério Schmidt Feris, Danny Gutfreund, Yang Zhang, Antonio Torralba, Michael Picheny, et al. Grounding spoken words in unlabeled video. In CVPR Workshops, pp. 29–32, 2019.
185
+
186
+ Po-Yi Chen, Alexander H Liu, Yen-Cheng Liu, and Yu-Chiang Frank Wang. Towards scene understanding: Unsupervised monocular depth estimation with semantic-aware representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2624–2632, 2019.
187
+
188
+ Kyunghyun Cho, Bart van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, Doha, Qatar, October 2014. Association for Computational Linguistics. doi: 10.3115/v1/D14-1179. URL https://www.aclweb. org/anthology/D14-1179.
189
+
190
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
191
+
192
+ Marco Cuturi and Mathieu Blondel. Soft-DTW: a differentiable loss function for time-series. volume 70 of Proceedings of Machine Learning Research, pp. 894–903, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR.
193
+
194
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
195
+
196
+ Nasser Esmaili, Claude Sammut, and GM Shirazi. Behavioural cloning in control of a dynamic system. In 1995 IEEE International Conference on Systems, Man and Cybernetics. Intelligent Systems for the 21st Century, volume 3, pp. 2904–2909. IEEE, 1995.
197
+
198
+ Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018.
199
+
200
+ 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.
201
+
202
+ De-An Huang, Suraj Nair, Danfei Xu, Yuke Zhu, Animesh Garg, Li Fei-Fei, Silvio Savarese, and Juan Carlos Niebles. Neural task graphs: Generalizing to unseen tasks from a single video demonstration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8565–8574, 2019.
203
+
204
+ Jens Kober and Jan Peters. Learning motor primitives for robotics. In 2009 IEEE International Conference on Robotics and Automation, pp. 2112–2118. IEEE, 2009.
205
+
206
+ Franziska Meier, Evangelos Theodorou, Freek Stulp, and Stefan Schaal. Movement segmentation using a primitive library. In 2011 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 3407–3412. IEEE, 2011.
207
+
208
+ Adithyavairavan Murali, Animesh Garg, Sanjay Krishnan, Florian T Pokorny, Pieter Abbeel, Trevor Darrell, and Ken Goldberg. Tsc-dl: Unsupervised trajectory segmentation of multi-modal surgical demonstrations with deep learning. In 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 4150–4157. IEEE, 2016.
209
+
210
+ Michelangelo Naim, Mikhail Katkov, Stefano Recanatesi, and Misha Tsodyks. Emergence of hierarchical organization in memory for random material. Scientific Reports, 9(1):1–10, 2019.
211
+
212
+ Monica N Nicolescu and Maja J Mataric. Natural methods for robot task learning: Instructive demonstrations, generalization and practice. In Proceedings of the second international joint conference on Autonomous agents and multiagent systems, pp. 241–248, 2003.
213
+
214
+ Scott Niekum, Sarah Osentoski, George Konidaris, and Andrew G Barto. Learning and generalization of complex tasks from unstructured demonstrations. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5239–5246. IEEE, 2012.
215
+
216
+ VS Chandrasekhar Pammi, Krishna P Miyapuram, Raju S Bapi, and Kenji Doya. Chunking phenomenon in complex sequential skill learning in humans. In International Conference on Neural Information Processing, pp. 294–299. Springer, 2004.
217
+
218
+ Peter Pastor, Heiko Hoffmann, Tamim Asfour, and Stefan Schaal. Learning and generalization of motor skills by learning from demonstration. In 2009 IEEE International Conference on Robotics and Automation, pp. 763–768. IEEE, 2009.
219
+
220
+ Jan Peters, Jens Kober, Katharina Mülling, Oliver Krämer, and Gerhard Neumann. Towards robot skill learning: From simple skills to table tennis. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 627–631. Springer, 2013.
221
+
222
+ Stefan Schaal. Learning from demonstration. In Advances in neural information processing systems, pp. 1040–1046, 1997.
223
+
224
+ Karl Schmeckpeper, Annie Xie, Oleh Rybkin, Stephen Tian, Kostas Daniilidis, Sergey Levine, and Chelsea Finn. Learning predictive models from observation and interaction. arXiv preprint arXiv:1912.12773, 2019.
225
+
226
+ Tanmay Shankar, Shubham Tulsiani, Lerrel Pinto, and Abhinav Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2019.
227
+
228
+ Tanmay Shankar, Shubham Tulsiani, Lerrel Pinto, and Abhinav Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $=$ rkgHY0NYwr.
229
+
230
+ Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019.
231
+
232
+ Shao-Hua Sun, Hyeonwoo Noh, Sriram Somasundaram, and Joseph Lim. Neural program synthesis from diverse demonstration videos. In International Conference on Machine Learning, pp. 4790– 4799, 2018.
233
+
234
+ Fabio Tosi, Filippo Aleotti, Pierluigi Zama Ramirez, Matteo Poggi, Samuele Salti, Luigi Di Stefano, and Stefano Mattoccia. Distilled semantics for comprehensive scene understanding from videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4654–4665, 2020.
235
+
236
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
237
+
238
+ Danfei Xu, Suraj Nair, Yuke Zhu, Julian Gao, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Neural task programming: Learning to generalize across hierarchical tasks. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 1–8. IEEE, 2018.
239
+
240
+ Luowei Zhou, Chenliang Xu, and Jason J Corso. Towards automatic learning of procedures from web instructional videos. arXiv preprint arXiv:1703.09788, 2017.
241
+
242
+ # A MORE DETAILS
243
+
244
+ We provide all the modified system diagrams for all the ablation experiments mentioned in Section 3.4 for clarity.
245
+
246
+ ![](images/5aeb794379236413ea2edfe263c4ed43b2c702d6b0464e05459c995df6020fff.jpg)
247
+ Figure 6: Three model variants are shown here. (A) refers to UNHCLE w/o comment. (B) refers to the Direct Hierarchy variant where we directly predict the high-level skill using OCA transformer. (C) refers to FLAT baseline with comment.
248
+
249
+ ![](images/1c898afb4b5afc6c130845006186b8b39b0fe7871295ded2fcba382313b0d510.jpg)
250
+ Figure 7: Skills discovered in the French defence.
251
+
252
+ ![](images/1e119e39379cd3e83883668bfa1e0116719e5fc3b1bb48f186e6028b5ccd1b3e.jpg)
253
+ Figure 8: Skills discovered in the Sicilian opening.
254
+
255
+ ![](images/a737a92bff8021cbf07c55a539bbea49807bb78bc26e8e0e877505a3055f4d5d.jpg)
256
+ Nimzowitsch Defense: Kennedy Variation丨 Linksspringer Variation
257
+ Figure 9: Skills discovered in the Nimzowitsch Defense: Kennedy Variation :Linksspringer Variation opening.
258
+
259
+ ![](images/3ce3b501b7047e903afb542053332208fca851f65eb3b7a9ba282cf222e06713.jpg)
260
+ Slav Defense: Exchange Variation
261
+ Figure 10: Skills discovered in the Slav Defense: Exchange Variation opening.
262
+
263
+ # Philidor Defense
264
+
265
+ ![](images/e80afc281e68c33c6a7c15e925cbf8e16b4cb1ac04a0d3e2192c52dda0fb7cb9.jpg)
266
+ Figure 11: Skills discovered in the Philidor Defense opening.
parse/train/ODKwX19UjOj/ODKwX19UjOj_content_list.json ADDED
@@ -0,0 +1,1432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "UNSUPERVISED HIERARCHICAL CONCEPT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 178,
8
+ 98,
9
+ 818,
10
+ 122
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 400,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Concepts or temporal abstractions are an essential aspect of learning among humans. They allow for succinct representations of the experiences we have through a variety of sensory inputs. Also, these concepts are arranged hierarchically, allowing for an efficient representation of complex long-horizon experiences. Analogously, here we propose a model that learns temporal representations from long-horizon visual demonstration data and associated textual descriptions without explicit temporal supervision. Additionally, our method produces a hierarchy of concepts that align more closely with ground-truth human-annotated events than several state-of-theart supervised and unsupervised baselines in complex visual domains such as chess and cooking demonstrations. We illustrate the utility of the abstracted concepts in downstream tasks, such as captioning and reasoning. Finally, we perform several ablation studies illustrating the robustness of our approach to data-scarcity. ",
40
+ "bbox": [
41
+ 233,
42
+ 239,
43
+ 766,
44
+ 406
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 431,
55
+ 336,
56
+ 448
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Consider a video (Figure 1) that demonstrates how to cook an egg. Humans subconsciously learn concepts (such as boiling water) that describe different concepts (or skills) in such demonstrations Pammi et al. (2004). These learned skills can be composed and reused in different ways to learn new concepts. Discovering such concepts automatically from demonstration data is a non-trivial problem. Shankar et al. (2019) introduces a sequence-to-sequence architecture that clusters long-horizon action trajectories into shorter temporal skills. However, their approach treats skills as independent concepts. In contrast, humans organize these concepts in hierarchies where lower-level concepts can be grouped to define higher-level concepts Naim et al. (2019). ",
63
+ "bbox": [
64
+ 174,
65
+ 463,
66
+ 825,
67
+ 574
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We extend the architecture in Shankar et al. (2019) to simultaneously discover concepts along with their hierarchical organization without any supervision. ",
74
+ "bbox": [
75
+ 174,
76
+ 582,
77
+ 823,
78
+ 609
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We propose an end-to-end trainable architecture UNHCLE for hierarchical representation learning from demonstrations. UNHCLE takes as input a long horizon trajectory of high-dimensional images demonstrating a complex task (in our case, chess and cooking) and the associated textual commentary and isolates semantically meaningful subsequences in input trajectories. We emphasize that it does not require temporal annotations which link subsequences in the trajectories of images to the freeflowing commentary, but instead, autonomously discovers this mapping. Therefore, this work takes a step towards unsupervised video understanding of high-dimensional data. Our contributions can be summarized as follows: ",
85
+ "bbox": [
86
+ 174,
87
+ 616,
88
+ 825,
89
+ 727
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "• We introduce a transformer-based architecture to learn a multi-modal hierarchical latent embedding space to encode the various concepts in long-horizon demonstration trajectories. UNHCLE abstracts these concepts (shown through visual qualitative analysis) without requiring any temporal supervision, i.e., it divides long-horizon trajectories into semantically meaningful subsequences, without access to any temporal annotations that split these trajectories optimally. \nWe show the quantitative effectiveness of learning high-level concepts in a hierarchical manner compared to learning them in isolation while outperforming several baselines on YouCook2 (Zhou et al. (2017)) and Chess Opening dataset1. \n• We further introduce a mechanism to incorporate commentary accompanying demonstrations in UNHCLE and show improvements in hierarchical concepts discovered. ",
96
+ "bbox": [
97
+ 215,
98
+ 738,
99
+ 825,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/3bef29025077483e2bdbb0e67a5bab8191d754218528d999b2a74d489df0ef38.jpg",
107
+ "image_caption": [
108
+ "Figure 1: Overview of our approach. UNHCLE learns a hierarchical latent space of concepts describing long horizon tasks like cooking and chess gameplay. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 204,
113
+ 102,
114
+ 787,
115
+ 212
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "• We introduce TimeWarped IoU (TW-IoU), an evaluation metric that we use to compare the alignment of our discovered concepts and ground-truth events. ",
122
+ "bbox": [
123
+ 215,
124
+ 334,
125
+ 825,
126
+ 363
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Existing approaches to representation learning for demonstrations or videos typically require significant supervision. Typically, sequence-to-sequence architectures are trained on datasets segmented by humans. During inference, these architectures generate proposals for timestamps that segment the input trajectory into semantically meaningful sequences. These complex sequence-to-sequence models require significant amounts of annotated data, making them costly to train them. ",
133
+ "bbox": [
134
+ 174,
135
+ 401,
136
+ 825,
137
+ 472
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "More generally, video and scene understanding is an important research area with wide-ranging applications. Most recently, Chen et al. (2019) utilize semantic awareness to perform complex depth estimation tasks to acquire the geometric properties of 3-dimensional space from 2-dimensional images. Tosi et al. (2020) utilize similar semantic information for depth estimation, optical flow and motion segmentation. Boggust et al. (2019) attempt to ground words in the video, but apply significant supervision to synchronize them, requiring human intervention. We attempt to learn similar embeddings but do so in a completely unsupervised manner, not utilizing any of the temporal labels available. ",
144
+ "bbox": [
145
+ 174,
146
+ 478,
147
+ 825,
148
+ 590
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "The field of learning from demonstrations (Nicolescu & Mataric (2003)) seeks to learn to perform tasks from a set of demonstrated behaviors. Behavioral Cloning is one popular scheme (Esmaili et al. (1995)). Atkeson & Schaal (1997) and Schaal (1997) show how agents can learn simple tasks like cartpole simply from demonstrations. Pastor et al. (2009) also study how robots can learn from human demonstrations of tasks. Peters et al. (2013) and Kober & Peters (2009) fit a parametric model to the demonstrations. Niekum et al. (2012), Murali et al. (2016), and Meier et al. (2011) first segment trajectories into subsequence and then apply a parametric models to each subsequence. More recently, Schmeckpeper et al. (2019) shows that agents can learn to maximize external reward using a large corpus of observation data, i.e., trajectories of states on a relatively smaller corpus of interaction data, i.e., trajectories of state-action pairs. Hierarchical task representations have been studied as well. Instead of treating demonstrations in a flat manner, one may also infer the hierarchical structure. A few recent works attempt to do so (Xu et al. (2018); Sun et al. (2018)), or as task graphs (Huang et al., 2019). Both Xu et al. (2018) and Huang et al. (2019) address generalizing to new instances of manipulation tasks in the few-shot regime by abstracting away low-level controls. However, all of these approaches require an environment i.e., a transition and reward function to learn from. On the contrary, humans show an ability to learn by watching demonstrations, which we attempt to replicate. ",
155
+ "bbox": [
156
+ 173,
157
+ 597,
158
+ 825,
159
+ 819
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Temporal abstractions of action sequences or skill/primitive learning is also a related field. Eysenbach et al. (2018), learn a large number of low-level sequences of actions by forcing the agent to produce skills that are different from those previously acquired. However, due to the diversity bias, the agent results in learning many useless skills that cannot be used for any semantically meaningful task. Similarly, Sharma et al. (2019) attempt to learn skills such that their transitions are almost deterministic in a given environment. These approaches also require access to an environment, whereas we try to learn without an environment. ",
166
+ "bbox": [
167
+ 174,
168
+ 825,
169
+ 825,
170
+ 924
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "image",
176
+ "img_path": "images/e583437c19259fca4efbac914ef93d18b1b50864b748f31c6bdc5b7846aa1527.jpg",
177
+ "image_caption": [
178
+ "Figure 2: Overview of our approach. UNHCLE learns a hierarchical semantically-meaningful embedding space which allows it to perform complex downstream tasks such as temporal concept segmentation and label prediction. Refer to Section 2.1 for details about the abbreviations used in the figure. "
179
+ ],
180
+ "image_footnote": [],
181
+ "bbox": [
182
+ 205,
183
+ 101,
184
+ 790,
185
+ 378
186
+ ],
187
+ "page_idx": 2
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "2 APPROACH",
192
+ "text_level": 1,
193
+ "bbox": [
194
+ 174,
195
+ 458,
196
+ 297,
197
+ 473
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "2.1 UNHCLE: UNSUPERVISED HIERARCHICAL CONCEPT LEARNING ",
204
+ "text_level": 1,
205
+ "bbox": [
206
+ 173,
207
+ 491,
208
+ 668,
209
+ 506
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "Intuitively, we define a concept as a short sequence of states which repeatedly occur across several demonstration trajectories. Concepts have an upper limit on their length in time-steps. These concepts can be obtained from the images of demonstrations, denoted by $z$ , and from the associated textual description, represented by $c$ . We also refer to them as Observational Concept (OC) and Instructional Concept (IC) respectively and the module that encodes these concepts is referred to as Observational Concept Abstraction (OCA) and Instructional Concept Abstraction (ICA) modules. Additionally, concepts are hierarchical in nature - thus, lower-level and higher-level observational or image concepts are denoted by $z ^ { L }$ and $z ^ { H }$ , respectively. Analogously, lower-level, and higher-level textual concepts are represented by $c ^ { L }$ and $c ^ { H }$ , respectively. Similarly, the higher-level and lower-level modules are denoted by low or high for the corresponding level. ",
216
+ "bbox": [
217
+ 174,
218
+ 518,
219
+ 825,
220
+ 659
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "Once we obtain these concept abstractions across levels, we can also transform them across the levels using a Concept Regeneration (CR) Module to transform low-level concepts to high-level concepts and vice-versa. Instead of just traversing in the concept level hierarchy, we can also use the Concept Instruction Regeneration Module or CIR to obtain the original instructions that map to that concept in its respective concept modality. ",
227
+ "bbox": [
228
+ 174,
229
+ 665,
230
+ 825,
231
+ 736
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "Subsequently, we provide details about the different stages in our proposed technique. ",
238
+ "bbox": [
239
+ 174,
240
+ 742,
241
+ 736,
242
+ 756
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "Encoding Observation: Given a long horizon trajectory of demonstration images along with its associated textual description, UNHCLE is able to abstract a hierarchy of concepts from demonstration images. We first pass these input images through ResNet-32 (He et al. (2016)) to get a sequence of image vectors as $S = s _ { 1 : m }$ , and the associated text is converted into word vectors $W = w _ { 1 : n }$ using BERT-base (Devlin et al. (2018)). Observations combine to produce lower-level concepts whereas higher-level concepts are simply aggregations of such lower-level concepts. Thus, the Lower-level Observation Concept Abstraction module $( \\mathrm { O C A } ^ { l o w } )$ is trained to embed a sequence of image vectors of a video $\\left( s _ { 1 } , s _ { 2 } . . . . s _ { m } \\right)$ into a sequence of concept vectors $( z _ { 1 } ^ { L } , z _ { 2 } ^ { L } , . . , z _ { U } ^ { L } )$ where $u < < m$ such that $z _ { 1 : u } ^ { L } = \\mathbf { O C A } ^ { l o w } \\left( s _ { 1 : m } \\right)$ . Subsequently, lower-level concepts combine together to form a higher level of concepts using the Higher-level Observation Concept Abstraction module $( \\mathrm { O C A } ^ { h i g h } )$ such that $z _ { 1 : v } ^ { H } ~ = ~ \\mathrm { O C A } ^ { h i g h } \\left( z _ { 1 : u } ^ { L } \\right)$ . ",
249
+ "bbox": [
250
+ 174,
251
+ 762,
252
+ 825,
253
+ 925
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Encoding Instructions: We also endeavour to discover these higher-level and lower-level concepts through natural language instructions. The Lower-level Instruction Concept Abstraction module $( \\mathrm { I C A } ^ { l o w } )$ and Higher-level Instruction Concept Abstraction module $( \\mathrm { I C A } ^ { h i _ { g h } } )$ are responsible for this functionality. From a corpus of words, $\\left( w _ { 1 } , w _ { 2 } . . . . w _ { n } \\right)$ , the $\\mathrm { I C A } ^ { l o w }$ module generates concept $( c _ { 1 } ^ { L } , c _ { 2 } ^ { L } , . . , c _ { u } ^ { L } ) , u < < n \\colon c _ { 1 : u } ^ { L } \\ = \\ { \\mathrm { I C A } } ^ { l o w } \\left( w _ { 1 : n } \\right)$ . Subsequently the $\\mathrm { I C A } ^ { h i g h }$ encodes the lower-level language concepts $c _ { 1 : u } ^ { L }$ into higher level concepts as $c _ { 1 : v } ^ { H } ~ = ~ \\mathrm { I C A } ^ { h i g h } ~ ( c _ { 1 : u } ^ { L } )$ . ",
260
+ "bbox": [
261
+ 173,
262
+ 103,
263
+ 825,
264
+ 196
265
+ ],
266
+ "page_idx": 3
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Traversing across the concept hierarchy: Learning concepts at different levels has an added advantage of traversing these concepts in the concept hierarchy. This additionally allows us to utilize these hierarchical traversals to obtain coarse or fine-grained concepts at any level. We can thus regenerate the lower concepts from higher-level instruction concepts using the Lower-level Concept Regeneration Module $( \\mathbf { C R } ^ { l o w } )$ such that $\\boldsymbol { z } _ { 1 : u ^ { \\prime } } ^ { \\prime L } ~ = \\mathbf { C } \\mathbf { R } ^ { l o w } ~ ( c _ { 1 : v } ^ { H } )$ . We can then later utilize this to obtain lower-level concepts from the higher-level concepts to regenerate the demonstration images $S ^ { L } = s _ { 1 : m ^ { L } } ^ { L }$ in a cross-modal fashion. ",
271
+ "bbox": [
272
+ 173,
273
+ 202,
274
+ 825,
275
+ 301
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "Observation and Instruction Regeneration: Under a concept, the sequence of frames is nearly deterministic i.e. the knowledge of a concept uniquely identifies the accompanying sequence of $S ^ { L } \\overset { = } { = } s _ { 1 : m ^ { L } } ^ { L }$ e demonstration trajectory. Subsequently, we regenerate the demonstration image vectorsfrom lower-level concepts using Lower-level Concept Observation Regeneration Module $( \\mathrm { C O R } ^ { l o w } )$ such that $s _ { 1 : m ^ { L } } ^ { L } = ~ \\mathrm { C O R } ^ { l o w } ~ ( z _ { 1 : u ^ { \\prime } } ^ { \\prime L } )$ . We also regenerate the demonstration image vectors $S ^ { U } = s _ { 1 : m } ^ { U } \\upsilon$ from higher-level coRegeneration Module $( \\mathbf { C O R } ^ { h i g h } )$ racted fro such that $\\begin{array} { l l l } { s _ { 1 : m ^ { U } } ^ { U } } & { = } & { \\mathrm { C O R } ^ { h i g h } \\ ( c _ { 1 : v } ^ { H } ) } \\end{array}$ vel Conceptin a similar cross-modal manner. ",
282
+ "bbox": [
283
+ 173,
284
+ 308,
285
+ 825,
286
+ 429
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Finally, inspired by humans who can easily describe concept representations using free-flowing natural language, we first regenerate lower-level concepts from higher-level observation concepts using the Lower-level Concept Regeneration Module $( \\mathbf { C R } ^ { l o w } )$ such that $c _ { 1 : u ^ { \\prime } } ^ { \\prime L } ~ = ~ \\mathbf { C } \\mathbf { R } ^ { l o w } ~ ( z _ { 1 : v } ^ { H } )$ , and subsequently, regenerate the word vectors $W ^ { L } = w _ { 1 : n ^ { L } } ^ { L }$ from lower-level concepts using Lower-level Concept Instruction Regeneration Module $\\scriptstyle ( \\mathbf { C I R } ^ { l o w } )$ ) such that $w _ { 1 : n ^ { L } } ^ { L } = \\mathrm { \\bf ~ C I R } ^ { l o w } ( c _ { 1 : u ^ { \\prime } } ^ { \\prime L } )$ . Additionally, the higher-level concepts identified by the ${ \\mathrm { O C A } } ^ { h i g h }$ module from demonstration frames are also described using a meaningful free-flowing commentary by the Higher-level Concept Instruction Regeneration module or $\\mathbf { C I R } ^ { h i g h }$ . Thus, we regenerate the word vectors $W ^ { U } = w _ { 1 : n } ^ { U } \\boldsymbol { v }$ from higherlevel concepts using $\\mathbf { C I R } ^ { h i g h }$ such that $w _ { 1 : m ^ { U } } ^ { U } = \\ { \\bf C } \\mathrm { I R } ^ { h i g h } \\left( z _ { 1 : v } ^ { H } \\right)$ . ",
293
+ "bbox": [
294
+ 173,
295
+ 434,
296
+ 826,
297
+ 577
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "2.2 SOFT-DYNAMIC TIME WARPING (SOFT-DTW) ",
304
+ "text_level": 1,
305
+ "bbox": [
306
+ 174,
307
+ 590,
308
+ 537,
309
+ 606
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "The most significant challenge that our work overcomes is that we do not require supervision for hierarchical temporal segmentation i.e. we do not require annotations which demarcate the beginning and ending of a concept, both in language and in the space of frame’s timestamps. Currently, most approaches rely on annotation describing the frame start and end for an event and the associated text for this event. Our architecture is trained using free-flowing commentary without event demarcations. This is achieved using the loss function we implement. We utilize Soft-DTW (Cuturi & Blondel (2017)) loss to align the reconstructed trajectories with the input long-horizon trajectory. So given two trajectories $x = ( x _ { 1 } , x _ { 2 } , . . . x _ { n } )$ and $y = ( y _ { 1 } , y _ { 2 } , . . . y _ { m } )$ , the soft- $ { \\mathrm { D T W } } ( x , y )$ is computed as, ",
316
+ "bbox": [
317
+ 173,
318
+ 616,
319
+ 826,
320
+ 729
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "where $\\mathcal { A } \\in \\mathcal { A } _ { n , m }$ is the alignment matrix, $\\Delta ( x , y ) = [ \\delta ( x _ { i } , y _ { i } ) ] _ { i j } \\in \\mathbb { R } ^ { n \\times m }$ and $\\delta$ being the cost function. min $\\gamma$ operator is then computed as, ",
327
+ "bbox": [
328
+ 174,
329
+ 750,
330
+ 825,
331
+ 779
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "equation",
337
+ "img_path": "images/0cedc017609f9b7acac7d3bd65a0c90950819d948ec54e1fd09aec619beaa74e.jpg",
338
+ "text": "$$\nm i n ^ { \\gamma } \\{ a _ { 1 } , \\cdot \\cdot \\cdot , a _ { n } \\} = { \\left\\{ \\begin{array} { l l } { m i n { \\mathrm { ~ } } _ { i \\leq n } { \\mathrm { ~ } } a _ { i } , } & { \\gamma = 0 , } \\\\ { - \\gamma \\log \\sum _ { i = 1 } ^ { n } e ^ { - a _ { i } / \\gamma } , } & { \\gamma > 0 . } \\end{array} \\right. }\n$$",
339
+ "text_format": "latex",
340
+ "bbox": [
341
+ 315,
342
+ 781,
343
+ 681,
344
+ 816
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "For our experiments, we use $L _ { 2 }$ distance as $\\delta$ and $\\gamma = 1$ . ",
351
+ "bbox": [
352
+ 174,
353
+ 818,
354
+ 545,
355
+ 833
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "2.3 LEARNING OBJECTIVE ",
362
+ "text_level": 1,
363
+ "bbox": [
364
+ 174,
365
+ 848,
366
+ 374,
367
+ 863
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "Our approach that has been outlined in Figure 2 uses several loss terms between different network outputs to achieve our objective. The soft-DTW is used between several sequences as follows. ",
374
+ "bbox": [
375
+ 174,
376
+ 875,
377
+ 825,
378
+ 904
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "equation",
384
+ "img_path": "images/d2b1b866d0606bc2ca57b6cd0c5343a669dd317142c518c35b3f4af26c5a4df8.jpg",
385
+ "text": "$$\n\\begin{array} { r } { \\dot { \\gamma } _ { d y n } = \\mathrm { s o f t } { \\mathrm { - } \\mathrm { D T W } ( z _ { 1 : u } ^ { L } , c _ { 1 : u ^ { \\prime } } ^ { \\prime L } ) } + \\mathrm { s o f t } { \\mathrm { - } \\mathrm { D T W } ( c _ { 1 : u } ^ { L } , z _ { 1 : u ^ { \\prime } } ^ { \\prime L } ) } + \\mathrm { s o f t } { \\mathrm { - } \\mathrm { D T W } ( s _ { 1 : m } , s _ { 1 : m ^ { \\prime } } ^ { \\prime L } ) } + \\mathrm { s o f t } { \\mathrm { - } \\mathrm { D T W } ( s _ { 1 : m } , s _ { 1 : m ^ { \\prime } } ^ { \\prime H } ) } } \\end{array}\n$$",
386
+ "text_format": "latex",
387
+ "bbox": [
388
+ 181,
389
+ 905,
390
+ 830,
391
+ 924
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "We use the Negative Log-Likelihood (NLL) loss $( { \\mathcal { L } } _ { n l l } )$ between the generated comment vectors and the BERT vectors and use the $L _ { 2 }$ loss between concepts from different modalities as follows, ",
398
+ "bbox": [
399
+ 171,
400
+ 103,
401
+ 823,
402
+ 132
403
+ ],
404
+ "page_idx": 4
405
+ },
406
+ {
407
+ "type": "equation",
408
+ "img_path": "images/e89f32249601a5efe791fad249fc81c8de87e3f080349a2afe06a8048900698e.jpg",
409
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { s t a t i c } = \\mathcal { L } _ { n l l } ( w _ { 1 : n } , w _ { 1 : n } ^ { \\prime L } ) + \\mathcal { L } _ { n l l } ( w _ { 1 : n } , w _ { 1 : n } ^ { \\prime H } ) } \\end{array}\n$$",
410
+ "text_format": "latex",
411
+ "bbox": [
412
+ 343,
413
+ 138,
414
+ 655,
415
+ 159
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "We then define our final loss as, $\\mathcal { L } _ { t o t a l } = \\alpha * \\mathcal { L } _ { d y n } + \\beta * \\mathcal { L } _ { s t a t i c }$ ",
422
+ "bbox": [
423
+ 171,
424
+ 165,
425
+ 602,
426
+ 181
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "2.4 EVALUATION METRICS ",
433
+ "text_level": 1,
434
+ "bbox": [
435
+ 174,
436
+ 196,
437
+ 375,
438
+ 212
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "The ground-truth events in the dataset and the concepts generated by UNHCLE may differ in number, duration, and start-time. To evaluate the efficacy of UNHCLE in generating concepts that align with the human-annotated events in our dataset, it is imperative that we utilize a metric that measures the overlap between generated concepts and ground truths and also accounts for this possible temporal mismatch. To this end, we introduce time-warp IoU. Note that we do not utilize these the temporal ground-truth event annotations during training, but only to compare the abstraction generated by our architecture to the human-annotated events. ",
445
+ "bbox": [
446
+ 173,
447
+ 222,
448
+ 826,
449
+ 320
450
+ ],
451
+ "page_idx": 4
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Consider the search series $S = ( s _ { 1 } , s _ { 2 } , s _ { 3 } . . . s _ { M } ) \\in \\mathbb { S }$ and target series $T = ( t _ { 1 } , t _ { 2 } , t _ { 3 } . . . t _ { N } )$ where $S$ corresponds to the end-of-concept time stamp for each concept as generated by UNHCLE for a single long-horizon demonstration trajectory. Thus, the $i ^ { t h }$ concept abstracted from UNHCLE starts at time $= s _ { i - 1 }$ and end at $\\mathrm { t i m e } = s _ { i }$ . Similarly, $T$ corresponds to the end-of-event time stamp for each ground-truth event in the demonstration trajectory, where the $j ^ { t h }$ ground truth event starts at time $=$ $t _ { j - 1 }$ and ends at time $= t _ { j }$ . Note that both $s _ { 0 }$ and $t _ { 0 }$ are equal to zero i.e. we measure time starting at zero for all demonstration trajectories. ",
456
+ "bbox": [
457
+ 173,
458
+ 325,
459
+ 825,
460
+ 425
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "2.4.1 TIME-WARPED IOU ",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 174,
470
+ 439,
471
+ 367,
472
+ 454
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "We calculate the time-warped alignment between between the event annotations and the concepts from UNHCLE. This implies calculating $\\Delta ( S , T )$ , solving the following optimization problem (Berndt & Clifford (1994)), $\\begin{array} { r } { \\Delta ( S , T ) = \\operatorname* { m i n } _ { P \\in \\mathcal { P } } \\sum _ { m , n \\in P } \\delta ( s _ { m } , t _ { n } ) } \\end{array}$ , where the $S$ and $T$ correspond to the search and target series respectively and $\\delta$ corresponds to a distance metric (in our case the $L _ { 2 }$ norm), measuring time mismatch. ",
479
+ "bbox": [
480
+ 173,
481
+ 463,
482
+ 825,
483
+ 535
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "$\\Delta ( S , T )$ therefore corresponds to the trajectory discrepancy measure defined as the matching cost for the optimal matching path $P$ among all possible valid matching paths $\\mathcal { P }$ (i.e. paths satisfying monotonicity, continuity, and boundary conditions). From this optimal trajectory obtained we can also get the warping function $W$ such that $W ( s _ { i } ) = t _ { j }$ , i.e. we find the optimal mapping between the $i ^ { t h }$ concept ending at time $= s _ { i }$ and the $j ^ { t h }$ event ending at time $= t _ { j }$ . To quantify the quality of this mapping we introduce Time-Warp Intersection over Union for a single long-horizon trajectory $S$ . ",
490
+ "bbox": [
491
+ 173,
492
+ 541,
493
+ 826,
494
+ 628
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "equation",
500
+ "img_path": "images/20b93d90cb8dfa5ae744142adf7d67bb7c1d8926a5b8154dd1ea4787502cdb87.jpg",
501
+ "text": "$$\nT W - I o U ( S ) = \\sum _ { t _ { i } } \\frac { \\sum _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \\operatorname* { m i n } ( t _ { i } , s _ { j } ) - \\operatorname* { m a x } ( t _ { i - 1 } , s _ { j - 1 } ) } { \\operatorname* { m a x } _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \\{ \\operatorname* { m a x } ( t _ { i } , s _ { j } ) \\} - \\operatorname* { m i n } _ { s _ { j } : W ( s _ { j } ) = t _ { i } } \\{ \\operatorname* { m i n } ( t _ { i - 1 } , s _ { j - 1 } ) \\} }\n$$",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 191,
505
+ 632,
506
+ 787,
507
+ 675
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Intuitively, this corresponds to the overlap between the $i ^ { t h }$ concept ending at time $= s _ { i }$ and the $j ^ { t h }$ event ending at time $= t _ { j }$ . ",
514
+ "bbox": [
515
+ 176,
516
+ 681,
517
+ 823,
518
+ 712
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "3 EXPERIMENTS ",
525
+ "text_level": 1,
526
+ "bbox": [
527
+ 176,
528
+ 731,
529
+ 328,
530
+ 747
531
+ ],
532
+ "page_idx": 4
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "3.1 DATASETS ",
537
+ "text_level": 1,
538
+ "bbox": [
539
+ 174,
540
+ 762,
541
+ 287,
542
+ 776
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "In order to find conceptual temporal patterns from videos in a hierarchical manner, we experiment with two datasets from different domains. ",
549
+ "bbox": [
550
+ 173,
551
+ 787,
552
+ 823,
553
+ 816
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "YouCook2 (Zhou et al. (2017)) dataset comprises of instructional videos for 89 unique recipes ${ \\sim } 2 2$ videos per recipe) containing labels that separate the long horizon trajectories of demonstrations into events - with explicit time stamps for the beginning and end of each event along with the associated commentary. It contains 1,333 videos for training and 457 videos for testing. The average number of segments per video is 7.7 and the average duration of the video is 5.27 minutes. ",
560
+ "bbox": [
561
+ 174,
562
+ 816,
563
+ 825,
564
+ 886
565
+ ],
566
+ "page_idx": 4
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Recommending Chess Openings2 dataset consists of opening moves in the game of Chess. An ",
571
+ "bbox": [
572
+ 178,
573
+ 886,
574
+ 823,
575
+ 900
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Opening in Chess is a fixed sequence of moves which when performed leads to a final board state putting the player in a strategic position in the game. Commonly used chess openings are each labeled with a name (Figure 3 shows examples). The dataset contains 20,058 openings with each containing a sequence of chess moves and it’s corresponding opening and variation labels. The train-test split used for our experiments is 80-20. ",
582
+ "bbox": [
583
+ 174,
584
+ 103,
585
+ 825,
586
+ 172
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "3.2 IMPLEMENTATION DETAILS ",
593
+ "text_level": 1,
594
+ "bbox": [
595
+ 176,
596
+ 195,
597
+ 405,
598
+ 209
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "The Observational Concept Abstraction (OCA) and Instructional Concept Abstraction (ICA) modules consist of the Transformer (Vaswani et al. (2017)) Encoder with 8 hidden layers and 8-Head Attention which takes as input, a sequence of frames positionally encoded and outputs a hidden vector. It is then passed through a Transformer Decoder again having 8 hidden layers and encoder-decoder crossattention with masking which finally outputs the concepts which are latent variables having dimension conceptlengt $\\AA ^ { \\prime } \\times 7 6 8$ . We use a 1-layer GRU (Chung et al. (2014)) for our Concept Instruction Regeneration (CIR), Concept Observation Regeneration (COR), and the Concept Regeneration (CR) module which converts the high-level concepts to low-level concepts. For encoding the image frames, we down-sample all videos to 500 frames and use ResNet-32 (pretrained on MSCOCO dataset) (He et al. (2016)) for dense embedding of dimension $5 1 2 \\times 1$ . We further down-sample to 200 frames per trajectory for all experiments. Comments are encoded using BERT-base pre-trained embeddings with a 768 hidden dimension. ",
605
+ "bbox": [
606
+ 174,
607
+ 223,
608
+ 825,
609
+ 390
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "For our low-level concepts, we keep the maximum number of concepts discovered as 16 and for high-level concepts as 4. These assumptions are based on the YouCook2 dataset statistics wherein ground-truth annotations (not used during training) the minimum number of segments were 5 and the maximum as 16. We keep $\\alpha = 1$ and $\\beta = 1$ for all our experiments along with a batch-size of 128 and use Adam optimizer for training with a learning rate of $1 e - 5$ and train the network for 100 epochs. ",
616
+ "bbox": [
617
+ 174,
618
+ 397,
619
+ 825,
620
+ 481
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "3.3 RESULTS AND ANALYSIS ",
627
+ "text_level": 1,
628
+ "bbox": [
629
+ 176,
630
+ 502,
631
+ 388,
632
+ 516
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "3.3.1 VISUALIZING HIERARCHY ",
639
+ "text_level": 1,
640
+ "bbox": [
641
+ 176,
642
+ 530,
643
+ 411,
644
+ 545
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Here we analyze whether the discovered concepts are human interpretable i.e. are the temporal clusters within a single demonstration semantically meaningful?. We find that our architecture abstracts several useful human interpretable concepts without any supervision. Figure 3 and 4 shows the results obtained. These abstracted high-level concepts align well with the ground truth event labels provided in YouCook2. We also additionally find that our model is able to split each ground truth event into lower-level concepts. For instance, in a pasta-making demonstration in YouCook2, a single event corresponding to the description “heat a pan add 1 spoon oil and prosciutto to it”, UNHCLE is divided into low level concepts corresponding to “heat pan”, “add oil” and “prosciutto”. Note that no explicit event time labels were provided to UNHCLE, indicating that our model is able to abstract such coherent sub-sequences, thus taking the first step towards video understanding. ",
651
+ "bbox": [
652
+ 174,
653
+ 556,
654
+ 825,
655
+ 695
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "We also visualize the concepts abstracted by UNHCLE when trained on chess opening data. The concepts learnt here also produce coherent, human-interpretable results. ",
662
+ "bbox": [
663
+ 173,
664
+ 702,
665
+ 823,
666
+ 731
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "image",
672
+ "img_path": "images/9f059f65157e5e0760444066539235dd076958fe5ba5c6b9090277cd45b52ac8.jpg",
673
+ "image_caption": [
674
+ "Figure 3: Hierarchy of concepts discovered by UNHCLE using openings data in Chess. At a high level, UNHCLE correctly identifies concepts corresponding to the Blackmar-Diemer Gambit and the Pietrowsky Defense. At a low level, it identifies concepts such as “d4 d5.. and e4 d3 ..” that are used across several openings "
675
+ ],
676
+ "image_footnote": [],
677
+ "bbox": [
678
+ 236,
679
+ 751,
680
+ 761,
681
+ 852
682
+ ],
683
+ "page_idx": 5
684
+ },
685
+ {
686
+ "type": "image",
687
+ "img_path": "images/4d2ff3a707ed12654cda5aa46b435af2f1b44fc85f859bb87556f315df11cd46.jpg",
688
+ "image_caption": [
689
+ "Figure 4: Example Hierarchy of concepts discovered by UNHCLE on the YouCook2 dataset "
690
+ ],
691
+ "image_footnote": [],
692
+ "bbox": [
693
+ 238,
694
+ 99,
695
+ 758,
696
+ 248
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "3.3.2 COMPARISON WITH BASELINES",
703
+ "text_level": 1,
704
+ "bbox": [
705
+ 178,
706
+ 311,
707
+ 446,
708
+ 325
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "In this section, we evaluate the performance of UNHCLE quantitatively on YouCook23 and quantify its ability to generate coherent concepts that align with the human annotated ground truths using the TW-IoU metric. We compare our approach with 4 baselines. (1) Random baseline predicts segment randomly on the basis of uniformly sampled timestamps for a given video on the basis of its duration. (2) EQUALDIV consists of dividing the video into conceptual segments of equal duration (3) GRU-supervised: Further we also consider a naive supervised baseline comprising of a GRU Cho et al. (2014) based encoder that sequentially processes the Resnet features corresponding to frames in a video followed by a decoder GRU that attends Bahdanau et al. (2014) on encoder outputs and is trained to sequentially predict end timestamp of each meaningful segment (variable in number) in the video. (4) FLAT w/o comment: We implement the Shankar et al. (2019) approach which takes as input, a sequence of video frames and discovers a single level of concepts without any hierarchy. (5) FLAT w/ comment: This is a modification of the above baseline where we also decode comments from the single-level concept discovered and use that to give the model an extra signal which will help it in discovering better aligned concepts. See Figure 6(C) (in Appendix) (6) Clustering: Given an input sequence of frames, we define the weight function based on their temporal position in the sequence and also the $L _ { 2 }$ distance between the frame embeddings. Then we use standard K-means algorithm $\\scriptstyle ( \\mathrm { K } = 4 )$ to cluster the frames based on the weighting function defined and use the clusters formed to predict the temporal boundaries. (7) GRU_Seg: Instead of predicting end time stamps of each segment (as in GRU-supervised), the decoder is trained to predict/assign identical ids to frames which are part of the same segment. Further, the model’s decoder is trained to assign different ids to frames part of different segments while frames not part of any meaningful segment in the ground truth are trained to have a default null id - 0. During inference, continuous subsequence of frames predicted to be having same id are considered as part of one segment and different predicted segments are extracted accordingly (frames predicted to be having null ids are ignored). ",
715
+ "bbox": [
716
+ 173,
717
+ 342,
718
+ 826,
719
+ 675
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "For baselines, we predict only one level of concepts and hence refer to them as high-level concepts. Table 1a summarises and compares the TW-IoU computed between ground truth time stamp annotations and predicted/discovered segments. As can be seen, UNHCLE achieves the best TW-IoU compared to all other baselines. It can be noted that discovering only one (high) level of concepts (FLAT) results in low TW-IoU (for High-Level Concepts). However, UNHCLE discovers concepts that align better with the ground truth events (UNHCLE performs $\\sim 2 3 \\%$ better) compared to FLAT. Further, the GRU-supervised baseline performs better than FLAT but UNHCLE outperforms $( \\sim 1 5 \\% )$ the GRU-supervised baseline which shows that predicting such concepts is difficult even for a supervised baseline. Even though supervised GRU_Seg achieves better TW-IoU of 53.1 compared to high level concepts discovered by UNHCLE w/o comment as well as UNHCLE with comment, UNHCLE with comment (which is unsupervised) performance (TW-IoU 47.4) is still comparable with GRU_Seg. However, TW-IoU corresponding to low level concepts discovered by UNHCLE is better than GRU_Seg. ",
726
+ "bbox": [
727
+ 173,
728
+ 681,
729
+ 825,
730
+ 862
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "image",
736
+ "img_path": "images/cf2e5748cb19ef50a40666ddb927c0baa1cf7bf5a699e269079c91c38243a6e9.jpg",
737
+ "image_caption": [
738
+ "Table 1: (a) TW-IoU scores for single level concepts predicted by the baselines along with the TW-IoU scores for both the high-level and low-level concepts for predictions from our proposed technique UNHCLE (b) Comparison showing the trade-off between number of down-sampled frames and TW-IoU for UNHCLE "
739
+ ],
740
+ "image_footnote": [],
741
+ "bbox": [
742
+ 178,
743
+ 101,
744
+ 496,
745
+ 267
746
+ ],
747
+ "page_idx": 7
748
+ },
749
+ {
750
+ "type": "table",
751
+ "img_path": "images/20bcd21a4b93352ad20a1af3a3e3460bc2aba040cde6f1a45024c3e81e6156c6.jpg",
752
+ "table_caption": [],
753
+ "table_footnote": [],
754
+ "table_body": "<table><tr><td rowspan=\"2\">Frames Used</td><td colspan=\"2\">TW-IoU</td></tr><tr><td>high</td><td>low</td></tr><tr><td>200</td><td>37.4</td><td>58.7</td></tr><tr><td>64</td><td>33.4</td><td>34.0</td></tr><tr><td>32</td><td>13.1</td><td>12.7</td></tr></table>",
755
+ "bbox": [
756
+ 562,
757
+ 142,
758
+ 759,
759
+ 208
760
+ ],
761
+ "page_idx": 7
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "3.3.3 EFFECT OF GUIDANCE THROUGH COMMENTARY ",
766
+ "text_level": 1,
767
+ "bbox": [
768
+ 174,
769
+ 345,
770
+ 563,
771
+ 361
772
+ ],
773
+ "page_idx": 7
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "In this section, we discuss the improvement in the quality and precision of conceptual segments discovered by UNHCLE using video commentary to guide our model training on YouCook2 dataset. To study this, we compare UNHCLE without comment which discovers concept hierarchy using just frame observations in a video against UNHCLE with comment which additionally uses commentary as guide (as in Figure 2). Table 1a compares the TW-IoU of segments obtained corresponding to High Level Concepts for each of these two models. As can be seen, using commentary significantly improves the TW-IoU by $\\sim 1 0 \\%$ which establishes that using commentary enables UNHCLE to detect precise boundaries for segments corresponding to various concepts. However, we find only a marginal improvement of $\\sim 1 \\%$ in TW-IoU corresponding to low level concepts. Further, it can be seen in Figure 5 that using commentary allows the model to better understand how to merge lower-level concepts appropriately into higher-level concepts - “heat a pan, add 1 spoon oil and prosciutto to it” separately without merging it with subsequent segments. ",
778
+ "bbox": [
779
+ 173,
780
+ 369,
781
+ 825,
782
+ 537
783
+ ],
784
+ "page_idx": 7
785
+ },
786
+ {
787
+ "type": "image",
788
+ "img_path": "images/aeea5896a92812072ede49cc1fe492994b217ebd7af31683875fd36b837e4598.jpg",
789
+ "image_caption": [
790
+ "Figure 5: In this figure, we show that using commentary as guide during training, UNHCLE learns to better combine low-level concepts to form high-level concepts which are better aligned towards our ground-truth annotations. A refers to the concept segments discovered w/o comments and B refers to the one with comment. "
791
+ ],
792
+ "image_footnote": [],
793
+ "bbox": [
794
+ 254,
795
+ 551,
796
+ 745,
797
+ 733
798
+ ],
799
+ "page_idx": 7
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "3.3.4 LABEL PREDICTION TASK FOR CHESS OPENINGS ",
804
+ "text_level": 1,
805
+ "bbox": [
806
+ 174,
807
+ 814,
808
+ 570,
809
+ 830
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "We further evaluate UNHCLE on the task of label (name of opening $^ +$ variation) prediction corresponding to hierarchical concepts discovered. Since recommending Chess Openings comprises of a label for each sequence of moves in an opening, we train UNHCLE w/ commentary (Figure 2). Since there are at max only two segments corresponding to opening move and variation move in the dataset we use label prediction accuracy as our metric here instead of TW-IoU. There are 300 distinct labels and our model achieves $78 . 2 \\%$ accuracy which shows that it is able to correctly discover the correct segmentation between openings with different variations as hierarchical concepts and associate them with the correct label in most of the test samples. ",
816
+ "bbox": [
817
+ 173,
818
+ 839,
819
+ 825,
820
+ 924
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "",
827
+ "bbox": [
828
+ 173,
829
+ 103,
830
+ 823,
831
+ 132
832
+ ],
833
+ "page_idx": 8
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "3.3.5 EFFECT OF SAMPLING RATE ON THE QUALITY OF HIERARCHY ",
838
+ "text_level": 1,
839
+ "bbox": [
840
+ 176,
841
+ 147,
842
+ 656,
843
+ 161
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "For YouCook2 we down-sample 200 frames from the original 500 frames provided in the dataset and use that as our input to UNHCLE. We analyze the trade-off between time and performance if we further down-sample the frames. This also provides us a better insight into how much granular information regarding the video do we need to be able to discover better hierarchies. Table 1b shows the results obtained for our experiment. Interestingly, we don’t observe a linear drop in performance by reducing the number of frames. Even with just 64 frames, the results beat the other baselines. ",
850
+ "bbox": [
851
+ 174,
852
+ 171,
853
+ 825,
854
+ 255
855
+ ],
856
+ "page_idx": 8
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "3.4 ABLATION EXPERIMENTS & VISUAL ORDERING TASK ",
861
+ "text_level": 1,
862
+ "bbox": [
863
+ 176,
864
+ 271,
865
+ 591,
866
+ 286
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "We performed more ablation experiments to show the need for the modules and the losses used in our model. We removed the soft- $\\cdot D T W ( z _ { 1 : u } ^ { L } , c _ { 1 : u ^ { \\prime } } ^ { \\prime L } )$ loss from our UNHCLE (w/o comment) model in Figure 6(A) (in Appendix) to highlight the importance of this loss that guides traversing back and forth across the concept hierarchy. This loss guides the alignment between the initially generated low-level concepts $( z ^ { \\dot { L } } )$ and the low-level concepts $( c ^ { \\prime L } )$ extracted back from high-level concepts $( z ^ { H } )$ . Removing this loss reduces the TW-IoU scores drastically thus proving it’s necessity .See UNHCLE w/o comment w/o low-align loss in Table 2a. ",
873
+ "bbox": [
874
+ 174,
875
+ 297,
876
+ 825,
877
+ 395
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "We also choose a simplified version of the UNHCLE w/o commentary model shown in Fig. 6(A) (in Appendix), where we remove the $O C A ^ { L O W }$ modules and directly output $z ^ { H }$ , which looks simpler, but this removes the extra alignment signal as mentioned in the above point. We see this results in the drop of TW-IoU (Table 2a), thus confirming our need for the modules used. We call this the Direct Hierarchy baseline for which the system diagram is also provided in Figure 6(B) (in Appendix). ",
884
+ "bbox": [
885
+ 174,
886
+ 402,
887
+ 825,
888
+ 472
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "To show the effectiveness of the concepts discovered by UNHCLE we use them to perform a Visual Ordering Task. The task is that given a sequence of frames as input, our trained model (with frozen weights) should discover the high-level concepts associated with those frames and can be used to predict whether or not the given sequence of frames are in correct/meaningful order (binary classification). We use a simple 1-layer GRU to do so. To create the training data for this we take examples from the YouCook2 (Zhou et al. (2017)) dataset and randomly shuffle the sequence of frames creating 10 negative examples for each positive sample in the dataset. We finally evaluate this on our testing data after performing the same steps mentioned above and show our results in Table 2b. We report both the Accuracy and the F1 scores. As we can see that there is a significant gain of $9 \\%$ in the F1 score and $2 \\%$ in Accuracy using our model UNHCLE over the FLAT baseline. ",
895
+ "bbox": [
896
+ 173,
897
+ 479,
898
+ 825,
899
+ 618
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "image",
905
+ "img_path": "images/303a7456083be5c1b30e619a6b9528949bbdaec9cab5af51b55c0f46d038b1dd.jpg",
906
+ "image_caption": [
907
+ "Table 2: (a) TW-IoU scores for ablation experiments for both high-level and low-level concepts prediction (b) Comparison between the Shankar et al. (2020) FLAT baseline and our proposed UNHCLE on the designed Visual Ordering Task. "
908
+ ],
909
+ "image_footnote": [],
910
+ "bbox": [
911
+ 174,
912
+ 631,
913
+ 772,
914
+ 717
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "4 CONCLUSION ",
921
+ "text_level": 1,
922
+ "bbox": [
923
+ 176,
924
+ 795,
925
+ 318,
926
+ 810
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "We show that our approach (UNHCLE) discovers concepts and organizes them in a meaningful hierarchy using only demonstration data from chess openings and cooking. We also show that this discovered hierarchy of concepts is useful in predicting textual labels and temporal concept segmentations for the associated demonstrations. It would be interesting to use the concept hierarchy discovered by UNHCLE to generate a curriculum where lower-level concepts would be taught first followed by higher-level concepts. Another good direction would be to extend UNHCLE to learn different types of relationships between concepts without supervision. ",
933
+ "bbox": [
934
+ 174,
935
+ 825,
936
+ 825,
937
+ 924
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "REFERENCES ",
944
+ "text_level": 1,
945
+ "bbox": [
946
+ 176,
947
+ 103,
948
+ 287,
949
+ 118
950
+ ],
951
+ "page_idx": 9
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Christopher G Atkeson and Stefan Schaal. Robot learning from demonstration. In ICML, volume 97, pp. 12–20. Citeseer, 1997. ",
956
+ "bbox": [
957
+ 176,
958
+ 126,
959
+ 825,
960
+ 154
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
967
+ "bbox": [
968
+ 174,
969
+ 162,
970
+ 823,
971
+ 193
972
+ ],
973
+ "page_idx": 9
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Donald J Berndt and James Clifford. Using dynamic time warping to find patterns in time series. In KDD workshop, volume 10, pp. 359–370. Seattle, WA, USA:, 1994. ",
978
+ "bbox": [
979
+ 173,
980
+ 200,
981
+ 823,
982
+ 229
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Angie W Boggust, Kartik Audhkhasi, Dhiraj Joshi, David Harwath, Samuel Thomas, Rogério Schmidt Feris, Danny Gutfreund, Yang Zhang, Antonio Torralba, Michael Picheny, et al. Grounding spoken words in unlabeled video. In CVPR Workshops, pp. 29–32, 2019. ",
989
+ "bbox": [
990
+ 174,
991
+ 237,
992
+ 825,
993
+ 281
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Po-Yi Chen, Alexander H Liu, Yen-Cheng Liu, and Yu-Chiang Frank Wang. Towards scene understanding: Unsupervised monocular depth estimation with semantic-aware representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2624–2632, 2019. ",
1000
+ "bbox": [
1001
+ 174,
1002
+ 289,
1003
+ 826,
1004
+ 344
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Kyunghyun Cho, Bart van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, Doha, Qatar, October 2014. Association for Computational Linguistics. doi: 10.3115/v1/D14-1179. URL https://www.aclweb. org/anthology/D14-1179. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 353,
1014
+ 826,
1015
+ 439
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 446,
1025
+ 823,
1026
+ 477
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Marco Cuturi and Mathieu Blondel. Soft-DTW: a differentiable loss function for time-series. volume 70 of Proceedings of Machine Learning Research, pp. 894–903, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 484,
1036
+ 826,
1037
+ 527
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 535,
1047
+ 823,
1048
+ 565
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Nasser Esmaili, Claude Sammut, and GM Shirazi. Behavioural cloning in control of a dynamic system. In 1995 IEEE International Conference on Systems, Man and Cybernetics. Intelligent Systems for the 21st Century, volume 3, pp. 2904–2909. IEEE, 1995. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 573,
1058
+ 826,
1059
+ 616
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 625,
1069
+ 825,
1070
+ 654
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "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. ",
1077
+ "bbox": [
1078
+ 174,
1079
+ 661,
1080
+ 826,
1081
+ 704
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "De-An Huang, Suraj Nair, Danfei Xu, Yuke Zhu, Animesh Garg, Li Fei-Fei, Silvio Savarese, and Juan Carlos Niebles. Neural task graphs: Generalizing to unseen tasks from a single video demonstration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8565–8574, 2019. ",
1088
+ "bbox": [
1089
+ 174,
1090
+ 713,
1091
+ 826,
1092
+ 770
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Jens Kober and Jan Peters. Learning motor primitives for robotics. In 2009 IEEE International Conference on Robotics and Automation, pp. 2112–2118. IEEE, 2009. ",
1099
+ "bbox": [
1100
+ 168,
1101
+ 779,
1102
+ 823,
1103
+ 808
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Franziska Meier, Evangelos Theodorou, Freek Stulp, and Stefan Schaal. Movement segmentation using a primitive library. In 2011 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 3407–3412. IEEE, 2011. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 815,
1113
+ 825,
1114
+ 859
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Adithyavairavan Murali, Animesh Garg, Sanjay Krishnan, Florian T Pokorny, Pieter Abbeel, Trevor Darrell, and Ken Goldberg. Tsc-dl: Unsupervised trajectory segmentation of multi-modal surgical demonstrations with deep learning. In 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 4150–4157. IEEE, 2016. ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 867,
1124
+ 825,
1125
+ 924
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Michelangelo Naim, Mikhail Katkov, Stefano Recanatesi, and Misha Tsodyks. Emergence of hierarchical organization in memory for random material. Scientific Reports, 9(1):1–10, 2019. ",
1132
+ "bbox": [
1133
+ 171,
1134
+ 103,
1135
+ 825,
1136
+ 132
1137
+ ],
1138
+ "page_idx": 10
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Monica N Nicolescu and Maja J Mataric. Natural methods for robot task learning: Instructive demonstrations, generalization and practice. In Proceedings of the second international joint conference on Autonomous agents and multiagent systems, pp. 241–248, 2003. ",
1143
+ "bbox": [
1144
+ 174,
1145
+ 140,
1146
+ 821,
1147
+ 183
1148
+ ],
1149
+ "page_idx": 10
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Scott Niekum, Sarah Osentoski, George Konidaris, and Andrew G Barto. Learning and generalization of complex tasks from unstructured demonstrations. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5239–5246. IEEE, 2012. ",
1154
+ "bbox": [
1155
+ 176,
1156
+ 189,
1157
+ 823,
1158
+ 233
1159
+ ],
1160
+ "page_idx": 10
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "VS Chandrasekhar Pammi, Krishna P Miyapuram, Raju S Bapi, and Kenji Doya. Chunking phenomenon in complex sequential skill learning in humans. In International Conference on Neural Information Processing, pp. 294–299. Springer, 2004. ",
1165
+ "bbox": [
1166
+ 176,
1167
+ 239,
1168
+ 823,
1169
+ 282
1170
+ ],
1171
+ "page_idx": 10
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Peter Pastor, Heiko Hoffmann, Tamim Asfour, and Stefan Schaal. Learning and generalization of motor skills by learning from demonstration. In 2009 IEEE International Conference on Robotics and Automation, pp. 763–768. IEEE, 2009. ",
1176
+ "bbox": [
1177
+ 176,
1178
+ 290,
1179
+ 823,
1180
+ 332
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Jan Peters, Jens Kober, Katharina Mülling, Oliver Krämer, and Gerhard Neumann. Towards robot skill learning: From simple skills to table tennis. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 627–631. Springer, 2013. ",
1187
+ "bbox": [
1188
+ 173,
1189
+ 339,
1190
+ 823,
1191
+ 383
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Stefan Schaal. Learning from demonstration. In Advances in neural information processing systems, pp. 1040–1046, 1997. ",
1198
+ "bbox": [
1199
+ 169,
1200
+ 390,
1201
+ 825,
1202
+ 417
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Karl Schmeckpeper, Annie Xie, Oleh Rybkin, Stephen Tian, Kostas Daniilidis, Sergey Levine, and Chelsea Finn. Learning predictive models from observation and interaction. arXiv preprint arXiv:1912.12773, 2019. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 425,
1212
+ 825,
1213
+ 468
1214
+ ],
1215
+ "page_idx": 10
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Tanmay Shankar, Shubham Tulsiani, Lerrel Pinto, and Abhinav Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2019. ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 474,
1223
+ 825,
1224
+ 506
1225
+ ],
1226
+ "page_idx": 10
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Tanmay Shankar, Shubham Tulsiani, Lerrel Pinto, and Abhinav Gupta. Discovering motor programs by recomposing demonstrations. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $=$ rkgHY0NYwr. ",
1231
+ "bbox": [
1232
+ 173,
1233
+ 511,
1234
+ 825,
1235
+ 555
1236
+ ],
1237
+ "page_idx": 10
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019. ",
1242
+ "bbox": [
1243
+ 173,
1244
+ 561,
1245
+ 823,
1246
+ 590
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Shao-Hua Sun, Hyeonwoo Noh, Sriram Somasundaram, and Joseph Lim. Neural program synthesis from diverse demonstration videos. In International Conference on Machine Learning, pp. 4790– 4799, 2018. ",
1253
+ "bbox": [
1254
+ 171,
1255
+ 598,
1256
+ 825,
1257
+ 640
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Fabio Tosi, Filippo Aleotti, Pierluigi Zama Ramirez, Matteo Poggi, Samuele Salti, Luigi Di Stefano, and Stefano Mattoccia. Distilled semantics for comprehensive scene understanding from videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4654–4665, 2020. ",
1264
+ "bbox": [
1265
+ 173,
1266
+ 647,
1267
+ 826,
1268
+ 704
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017. ",
1275
+ "bbox": [
1276
+ 173,
1277
+ 712,
1278
+ 825,
1279
+ 755
1280
+ ],
1281
+ "page_idx": 10
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Danfei Xu, Suraj Nair, Yuke Zhu, Julian Gao, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Neural task programming: Learning to generalize across hierarchical tasks. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 1–8. IEEE, 2018. ",
1286
+ "bbox": [
1287
+ 174,
1288
+ 762,
1289
+ 823,
1290
+ 805
1291
+ ],
1292
+ "page_idx": 10
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Luowei Zhou, Chenliang Xu, and Jason J Corso. Towards automatic learning of procedures from web instructional videos. arXiv preprint arXiv:1703.09788, 2017. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 811,
1300
+ 823,
1301
+ 842
1302
+ ],
1303
+ "page_idx": 10
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "A MORE DETAILS ",
1308
+ "text_level": 1,
1309
+ "bbox": [
1310
+ 176,
1311
+ 864,
1312
+ 341,
1313
+ 881
1314
+ ],
1315
+ "page_idx": 10
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "We provide all the modified system diagrams for all the ablation experiments mentioned in Section 3.4 for clarity. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 895,
1323
+ 825,
1324
+ 924
1325
+ ],
1326
+ "page_idx": 10
1327
+ },
1328
+ {
1329
+ "type": "image",
1330
+ "img_path": "images/5aeb794379236413ea2edfe263c4ed43b2c702d6b0464e05459c995df6020fff.jpg",
1331
+ "image_caption": [
1332
+ "Figure 6: Three model variants are shown here. (A) refers to UNHCLE w/o comment. (B) refers to the Direct Hierarchy variant where we directly predict the high-level skill using OCA transformer. (C) refers to FLAT baseline with comment. "
1333
+ ],
1334
+ "image_footnote": [],
1335
+ "bbox": [
1336
+ 200,
1337
+ 141,
1338
+ 781,
1339
+ 578
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "image",
1345
+ "img_path": "images/1c898afb4b5afc6c130845006186b8b39b0fe7871295ded2fcba382313b0d510.jpg",
1346
+ "image_caption": [
1347
+ "Figure 7: Skills discovered in the French defence. "
1348
+ ],
1349
+ "image_footnote": [],
1350
+ "bbox": [
1351
+ 202,
1352
+ 736,
1353
+ 790,
1354
+ 856
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "image",
1360
+ "img_path": "images/1e119e39379cd3e83883668bfa1e0116719e5fc3b1bb48f186e6028b5ccd1b3e.jpg",
1361
+ "image_caption": [
1362
+ "Figure 8: Skills discovered in the Sicilian opening. "
1363
+ ],
1364
+ "image_footnote": [],
1365
+ "bbox": [
1366
+ 202,
1367
+ 150,
1368
+ 787,
1369
+ 330
1370
+ ],
1371
+ "page_idx": 12
1372
+ },
1373
+ {
1374
+ "type": "image",
1375
+ "img_path": "images/a737a92bff8021cbf07c55a539bbea49807bb78bc26e8e0e877505a3055f4d5d.jpg",
1376
+ "image_caption": [
1377
+ "Nimzowitsch Defense: Kennedy Variation丨 Linksspringer Variation ",
1378
+ "Figure 9: Skills discovered in the Nimzowitsch Defense: Kennedy Variation :Linksspringer Variation opening. "
1379
+ ],
1380
+ "image_footnote": [],
1381
+ "bbox": [
1382
+ 202,
1383
+ 435,
1384
+ 790,
1385
+ 599
1386
+ ],
1387
+ "page_idx": 12
1388
+ },
1389
+ {
1390
+ "type": "image",
1391
+ "img_path": "images/3ce3b501b7047e903afb542053332208fca851f65eb3b7a9ba282cf222e06713.jpg",
1392
+ "image_caption": [
1393
+ "Slav Defense: Exchange Variation ",
1394
+ "Figure 10: Skills discovered in the Slav Defense: Exchange Variation opening. "
1395
+ ],
1396
+ "image_footnote": [],
1397
+ "bbox": [
1398
+ 202,
1399
+ 707,
1400
+ 792,
1401
+ 873
1402
+ ],
1403
+ "page_idx": 12
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Philidor Defense ",
1408
+ "text_level": 1,
1409
+ "bbox": [
1410
+ 441,
1411
+ 410,
1412
+ 562,
1413
+ 424
1414
+ ],
1415
+ "page_idx": 13
1416
+ },
1417
+ {
1418
+ "type": "image",
1419
+ "img_path": "images/e80afc281e68c33c6a7c15e925cbf8e16b4cb1ac04a0d3e2192c52dda0fb7cb9.jpg",
1420
+ "image_caption": [
1421
+ "Figure 11: Skills discovered in the Philidor Defense opening. "
1422
+ ],
1423
+ "image_footnote": [],
1424
+ "bbox": [
1425
+ 202,
1426
+ 430,
1427
+ 790,
1428
+ 594
1429
+ ],
1430
+ "page_idx": 13
1431
+ }
1432
+ ]
parse/train/ODKwX19UjOj/ODKwX19UjOj_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ODKwX19UjOj/ODKwX19UjOj_model.json ADDED
The diff for this file is too large to render. See raw diff