ZHANGYUXUAN-zR commited on
Commit
96ca4b6
·
verified ·
1 Parent(s): 1547438

Add files using upload-large-folder tool

Browse files
parse/train/3T9iFICe0Y9/3T9iFICe0Y9.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3T9iFICe0Y9/3T9iFICe0Y9_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3T9iFICe0Y9/3T9iFICe0Y9_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3T9iFICe0Y9/3T9iFICe0Y9_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkjLkSqxg/BkjLkSqxg.md ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LIPNET: END-TO-END SENTENCE-LEVEL LIPREADING
2
+
3
+ Yannis M. Assael1,†, Brendan Shillingford1,†, Shimon Whiteson1 & Nando de Freitas1,2,3
4
+
5
+ Department of Computer Science, University of Oxford, Oxford, UK
6
+ Google DeepMind, London, UK 2
7
+ CIFAR, Canada 3
8
+ {yannis.assael,brendan.shillingford, shimon.whiteson,nando.de.freitas}@cs.ox.ac.uk
9
+
10
+ # ABSTRACT
11
+
12
+ Lipreading is the task of decoding text from the movement of a speaker’s mouth. Traditional approaches separated the problem into two stages: designing or learning visual features, and prediction. More recent deep lipreading approaches are end-to-end trainable (Wand et al., 2016; Chung & Zisserman, 2016a). However, existing work on models trained end-to-end perform only word classification, rather than sentence-level sequence prediction. Studies have shown that human lipreading performance increases for longer words (Easton & Basala, 1982), indicating the importance of features capturing temporal context in an ambiguous communication channel. Motivated by this observation, we present LipNet, a model that maps a variable-length sequence of video frames to text, making use of spatiotemporal convolutions, a recurrent network, and the connectionist temporal classification loss, trained entirely end-to-end. To the best of our knowledge, LipNet is the first end-to-end sentence-level lipreading model that simultaneously learns spatiotemporal visual features and a sequence model. On the GRID corpus, LipNet achieves $9 5 . 2 \%$ accuracy in sentence-level, overlapped speaker split task, outperforming experienced human lipreaders and the previous $8 6 . 4 \%$ word-level state-of-the-art accuracy (Gergen et al., 2016).
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Lipreading plays a crucial role in human communication and speech understanding, as highlighted by the McGurk effect (McGurk & MacDonald, 1976), where one phoneme’s audio dubbed on top of a video of someone speaking a different phoneme results in a third phoneme being perceived.
17
+
18
+ Lipreading is a notoriously difficult task for humans, specially in the absence of context1. Most lipreading actuations, besides the lips and sometimes tongue and teeth, are latent and difficult to disambiguate without context (Fisher, 1968; Woodward & Barber, 1960). For example, Fisher (1968) gives 5 categories of visual phonemes (called visemes), out of a list of 23 initial consonant phonemes, that are commonly confused by people when viewing a speaker’s mouth. Many of these were asymmetrically confused, and observations were similar for final consonant phonemes.
19
+
20
+ Consequently, human lipreading performance is poor. Hearing-impaired people achieve an accuracy of only $1 7 \pm \mathrm { \dot { 1 } 2 \% }$ even for a limited subset of 30 monosyllabic words and $2 1 \pm 1 1 \%$ for 30 compound words (Easton & Basala, 1982). An important goal, therefore, is to automate lipreading. Machine lipreaders have enormous practical potential, with applications in improved hearing aids, silent dictation in public spaces, security, speech recognition in noisy environments, biometric identification, and silent-movie processing.
21
+
22
+ Machine lipreading is difficult because it requires extracting spatiotemporal features from the video (since both position and motion are important). Recent deep learning approaches attempt to extract those features end-to-end. Most existing work, however, performs only word classification, not sentence-level sequence prediction.
23
+
24
+ In this paper, we present LipNet, which is to the best of our knowledge, the first end-to-end sentence-level lipreading model. As with modern deep learning based automatic speech recognition (ASR), LipNet is trained end-to-end to make sentence-level predictions. Our model operates at the character-level, using spatiotemporal convolutional neural networks (STCNNs), recurrent neural networks (RNNs), and the connectionist temporal classification loss (CTC) Graves et al. (2006).
25
+
26
+ Our empirical results on the GRID corpus (Cooke et al., 2006), one of the few public sentence-level datasets, show that LipNet attains a $9 \bar { 5 } . 2 \%$ sentence-level word accuracy, in a overlapped speakers split that is popular for benchmarking lipreading methods. The previous best accuracy reported on an aligned word classification version of this task was $8 6 . 4 \%$ (Gergen et al., 2016). Furthermore, LipNet can generalise across unseen speakers in the GRID corpus with an accuracy of $8 8 . 6 \%$ .
27
+
28
+ We also compare the performance of LipNet with that of hearing-impaired people who can lipread on the GRID corpus task. On average, they achieve an accuracy of ${ \bar { 5 } } 2 . 3 \%$ , in contrast to LipNet’s $1 . 6 9 \times$ higher accuracy in the same sentences.
29
+
30
+ Finally, by applying saliency visualisation techniques (Zeiler & Fergus, 2014; Simonyan et al., 2013), we interpret LipNet’s learned behaviour, showing that the model attends to phonologically important regions in the video. Furthermore, by computing intra-viseme and inter-viseme confusion matrices at the phoneme level, we show that almost all of LipNet’s few erroneous predictions occur within visemes, since context is sometimes insufficient for disambiguation.
31
+
32
+ # 2 RELATED WORK
33
+
34
+ In this section, we outline various existing approaches to automated lipreading.
35
+
36
+ Automated lipreading: Most existing work on lipreading does not employ deep learning. Such work requires either heavy preprocessing of frames to extract image features, temporal preprocessing of frames to extract video features (e.g., optical flow or movement detection), or other types of handcrafted vision pipelines (Matthews et al., 2002; Zhao et al., 2009; Gurban & Thiran, 2009; Papandreou et al., 2007; 2009; Pitsikalis et al., 2006; Lucey & Sridharan, 2006; Papandreou et al., 2009). The automated lipreading literature is too vast to adequately cover, so we refer the reader to Zhou et al. (2014) for an extensive review.
37
+
38
+ Notably, Goldschen et al. (1997) were the first to do visual-only sentence-level lipreading using hidden Markov models (HMMs) in a limited dataset, using hand-segmented phones. Later, Neti et al. (2000) were the first to do sentence-level audiovisual speech recognition using an HMM combined with hand-engineered features, on the IBM ViaVoice (Neti et al., 2000) dataset. The authors improve speech recognition performance in noisy environments by fusing visual features with audio ones. The dataset contains 17111 utterances of 261 speakers for training (about 34.9 hours) and is not publicly available. As stated, their visual-only results cannot be interpreted as visual-only recognition, as they are used as rescoring of the noisy audio-only lattices. Using a similar approach, Potamianos et al. (2003) report speaker independent and speaker adapted $9 1 . 6 \hat { 2 } \%$ , $8 2 . 3 1 \%$ WER in the same dataset respectively, and $3 8 . 5 3 \%$ , $1 6 . 7 7 \%$ WER in the connected DIGIT corpus, which contains sentences of digits.
39
+
40
+ Furthermore, Gergen et al. (2016) use speaker-dependent training on an LDA-transformed version of the Discrete Cosine Transforms of the mouth regions in an HMM/GMM system. This work holds the previous state-of-the-art on the GRID corpus with a speaker-dependent accuracy of $8 6 . 4 \%$ . Generalisation across speakers and extraction of motion features is considered an open problem, as noted in (Zhou et al., 2014). LipNet addresses both of these issues.
41
+
42
+ Classification with deep learning: In recent years, there have been several attempts to apply deep learning to lipreading. However, all of these approaches perform only word or phoneme classification, whereas LipNet performs full sentence sequence prediction. Approaches include learning multimodal audio-visual representations (Ngiam et al., 2011; Sui et al., 2015; Ninomiya et al., 2015; Petridis & Pantic, 2016), learning visual features as part of a traditional speech-style processing pipeline (e.g. HMMs, GMM-HMMs, etc.) for classifying words and/or phonemes (Almajai et al., 2016; Takashima et al., 2016; Noda et al., 2014; Koller et al., 2015), or combinations thereof (Takashima et al., 2016). Many of these approaches mirror early progress in applying neural networks for acoustic processing in speech recognition (Hinton et al., 2012).
43
+
44
+ Chung & Zisserman (2016a) propose spatial and spatiotemporal convolutional neural networks, based on VGG, for word classification. The architectures are evaluated on a word-level dataset BBC TV (333 and 500 classes), but, as reported, their spatiotemporal models fall short of the spatial architectures by an average of around $1 4 \%$ . Additionally, their models cannot handle variable sequence lengths and they do not attempt sentence-level sequence prediction.
45
+
46
+ Chung & Zisserman (2016b) train an audio-visual max-margin matching model for learning pretrained mouth features, which they use as inputs to an LSTM for 10-phrase classification on the OuluVS2 dataset, as well as a non-lipreading task.
47
+
48
+ Wand et al. (2016) introduce LSTM recurrent neural networks for lipreading but address neither sentence-level sequence prediction nor speaker independence.
49
+
50
+ Garg et al. (2016) apply a VGG pre-trained on faces to classifying words and phrases from the MIRACL-VC1 dataset, which has only 10 words and 10 phrases. However, their best recurrent model is trained by freezing the VGGNet parameters and then training the RNN, rather than training them jointly. Their best model achieves only $5 6 . 0 \%$ word classification accuracy, and $4 4 . 5 \%$ phrase classification accuracy, despite both of these being 10-class classification tasks.
51
+
52
+ Sequence prediction in speech recognition: The field of automatic speech recognition (ASR) would not be in the state it is today without modern advances in deep learning, many of which have occurred in the context of ASR (Graves et al., 2006; Dahl et al., 2012; Hinton et al., 2012). The connectionist temporal classification loss (CTC) of Graves et al. (2006) drove the movement from deep learning as a component of ASR, to deep ASR systems trained end-to-end (Graves & Jaitly, 2014; Maas et al., 2015; Amodei et al., 2015). As mentioned earlier, much recent lipreading progress has mirrored early progress in ASR, but stopping short of sequence prediction.
53
+
54
+ LipNet is the first end-to-end model that performs sentence-level sequence prediction for visual speech recogntion. That is, we demonstrate the first work that takes as input as sequence of images and outputs a distribution over sequences of tokens; it is trained end-to-end using CTC and thus also does not require alignments.
55
+
56
+ Lipreading Datasets: Lipreading datasets (AVICar, AVLetters, AVLetters2, BBC TV, CUAVE, OuluVS1, OuluVS2) are plentiful (Zhou et al., 2014; Chung & Zisserman, 2016a), but most only contain single words or are too small. One exception is the GRID corpus (Cooke et al., 2006), which has audio and video recordings of 34 speakers who produced 1000 sentences each, for a total of 28 hours across 34000 sentences. Table 1 summarises state-of-the-art performance in each of the main lipreading datasets.
57
+
58
+ Table 1: Existing lipreading datasets and the state-of-the-art accuracy reported on these. The size column represents the number of utterances used by the authors for training. Although the GRID corpus contains entire sentences, Gergen et al. (2016) consider only the simpler case of predicting isolated words. LipNet predicts sequences and hence can exploit temporal context to attain much higher accuracy. Phrase-level approaches were treated as plain classification.
59
+
60
+ <table><tr><td>Method</td><td>Dataset</td><td>Size</td><td>Output</td><td>Accuracy</td></tr><tr><td colspan="5"></td></tr><tr><td>Fu et al. (2008)</td><td>AVICAR</td><td>851</td><td>Digits</td><td>37.9%</td></tr><tr><td>Hu et al. (2016)</td><td>AVLetter</td><td>78</td><td>Alphabet</td><td>64.6%</td></tr><tr><td>Papandreou et al. (2009)</td><td>CUAVE</td><td>1800</td><td>Digits</td><td>83.0%</td></tr><tr><td>Chung &amp; Zisserman (2016a)</td><td>OuluVS1</td><td>200</td><td>Phrases</td><td>91.4%</td></tr><tr><td>Chung &amp; Zisserman (2016b)</td><td>OuluVS2</td><td>520</td><td>Phrases</td><td>94.1%</td></tr><tr><td>Chung &amp; Zisserman ( 1 (2016a)</td><td>BBC TV</td><td>&gt; 400000</td><td>Words</td><td>65.4%</td></tr><tr><td>Gergen et al. (2016)</td><td>GRID</td><td>29700</td><td>Words*</td><td>86.4%</td></tr><tr><td>LipNet</td><td>GRID</td><td>28775</td><td>Sentences</td><td>95.2%</td></tr></table>
61
+
62
+ We use the GRID corpus to evaluate LipNet because it is sentence-level and has the most data. The sentences are drawn from the following simple grammar: command $^ { ( 4 ) } + c o l o r ^ { ( 4 ) } +$ prepositio $\ l _ { \ l } ^ { ( 4 ) } + l e t t e r ^ { ( 2 5 ) } + d i g i t ^ { ( 1 0 ) } + a d v e r ^ { \ l } \ l _ { b } ^ { \ l ^ { ( 4 ) } }$ , where the number denotes how many word choices there are for each of the 6 word categories. The categories consist of, respectively, {bin, lay, place, set}, {blue, green, red, white}, {at, by, in, with}, $\{ \bar { A } , \ldots , Z \} \backslash \{ W \}$ , $\{ \mathrm { z e r o } , \ldots , \mathrm { n i n e } \}$ , and {again, now, please, $\operatorname { s o o n } \}$ , yielding 64000 possible sentences. For example, two sentences in the data are “set blue by A four please” and “place red at C zero again”.
63
+
64
+ # 3 LIPNET
65
+
66
+ LipNet is a neural network architecture for lipreading that maps variable-length sequences of video frames to text sequences, and is trained end-to-end. In this section, we describe LipNet’s building blocks and architecture.
67
+
68
+ # 3.1 SPATIOTEMPORAL CONVOLUTIONS
69
+
70
+ Convolutional neural networks (CNNs), containing stacked convolutions operating spatially over an image, have been instrumental in advancing performance in computer visions tasks such as object recognition that receive an image as input (Krizhevsky et al., 2012). A basic 2D convolution layer from $C$ channels to $C ^ { \prime }$ channels (without a bias and with unit stride) computes
71
+
72
+ $$
73
+ [ \mathrm { c o n v } ( { \bf x } , { \bf w } ) ] _ { c ^ { \prime } i j } = \sum _ { c = 1 } ^ { C } \sum _ { i ^ { \prime } = 1 } ^ { k _ { w } } \sum _ { j ^ { \prime } = 1 } ^ { k _ { h } } w _ { c ^ { \prime } c i ^ { \prime } j ^ { \prime } } x _ { c , i + i ^ { \prime } , j + j ^ { \prime } } ,
74
+ $$
75
+
76
+ for input $\mathbf { x }$ and weights $\mathbf { w } \in \mathbb { R } ^ { C ^ { \prime } \times C \times k _ { w } \times k _ { h } }$ where we define $x _ { c i j } = 0$ for $i , j$ out of bounds. Spatiotemporal convolutional neural networks (STCNNs) can process video data by convolving across time, as well as the spatial dimensions (Karpathy et al., 2014; Ji et al., 2013). Hence similarly,
77
+
78
+ $$
79
+ [ \mathrm { s t c o n v } ( { \bf x } , { \bf w } ) ] _ { c ^ { \prime } t i j } = \sum _ { c = 1 } ^ { C } \sum _ { t ^ { \prime } = 1 } ^ { k _ { t } } \sum _ { i ^ { \prime } = 1 } ^ { k _ { w } } \sum _ { j ^ { \prime } = 1 } ^ { k _ { h } } w _ { c ^ { \prime } c t ^ { \prime } i ^ { \prime } j ^ { \prime } } x _ { c , t + t ^ { \prime } , i + i ^ { \prime } , j + j ^ { \prime } } .
80
+ $$
81
+
82
+ # 3.2 GATED RECURRENT UNIT
83
+
84
+ Gated Recurrent Unit (GRU) (Chung et al., 2014) is a type of recurrent neural network (RNN) that improves upon earlier RNNs by adding cells and gates for propagating information over more timesteps and learning to control this information flow. It is similar to the Long Short-Term Memory (LSTM) RNN (Hochreiter & Schmidhuber, 1997). We use the standard formulation:
85
+
86
+ $$
87
+ \begin{array} { r l } & { [ \mathbf { u } _ { t } , \mathbf { r } _ { t } ] ^ { T } = \mathrm { s i g m } ( \mathbf { W } _ { z } \mathbf { z } _ { t } + \mathbf { W } _ { h } \mathbf { h } _ { t - 1 } + \mathbf { b } _ { g } ) } \\ & { \qquad \tilde { \mathbf { h } } _ { t } = \mathrm { t a n h } ( \mathbf { U } _ { z } \mathbf { z } _ { t } + \mathbf { U } _ { h } ( \mathbf { r } _ { t } \odot \mathbf { h } _ { t - 1 } ) + \mathbf { b } _ { h } ) } \\ & { \qquad \mathbf { h } _ { t } = ( \mathbf { 1 } - \mathbf { u } _ { t } ) \odot \mathbf { h } _ { t - 1 } + \mathbf { u } _ { t } \odot \tilde { \mathbf { h } } _ { t } } \end{array}
88
+ $$
89
+
90
+ where $\mathbf { z } : = \{ \mathbf { z } _ { 1 } , \dots , \mathbf { z } _ { T } \}$ is the input sequence to the RNN, $\odot$ denotes element-wise multiplication, and $\mathrm { s i g m } ( r ) = 1 / ( 1 + \exp ( - r ) )$ . We use a bidirectional GRU (Bi-GRU) as introduced by Graves & Schmidhuber (2005) in the context of LSTMs: one RNN maps $\{ \mathbf { z } _ { 1 } , \dotsc , \mathbf { z } _ { T } \} \mapsto \{ \overrightarrow { \mathbf { h } _ { 1 } } , \dotsc , \overrightarrow { \mathbf { h } _ { T } } \}$ , and another $\{ \mathbf { z } _ { T } , \dotsc , \mathbf { z } _ { 1 } \} \mapsto \{ { \overleftarrow { \mathbf { h } _ { 1 } } } , \dotsc , { \overleftarrow { \mathbf { h } _ { T } } } \}$ , then $\mathbf { h } _ { t } : = [ \overrightarrow { \mathbf { h } _ { t } } , \overleftarrow { \mathbf { h } _ { t } } ]$ . The Bi-GRU ensures that $\mathbf { h } _ { t }$ depends on $\mathbf { z } _ { t ^ { \prime } }$ for all $t ^ { \prime }$ . To parameterise a distribution over sequences, at time-step $t$ let $p ( u _ { t } | \mathbf { z } ) =$ softmax $( \mathrm { m l p } ( \mathbf { h } _ { t } ; \mathbf { W } _ { m l p } ) )$ , where mlp is a feed-forward network with weights $\mathbf { W } _ { m l p }$ . Then we can define the distribution over length- $\mathcal { T }$ sequences as $\begin{array} { r } { p ( u _ { 1 } , \ldots , u _ { T } | \mathbf { z } ) = \prod _ { 1 \leq t \leq T } p ( u _ { t } | \mathbf { \bar { z } } ) } \end{array}$ , where $T$ is determined by $\mathbf { z }$ , the input to the GRU. In LipNet, $\mathbf { z }$ is the output of the STCNN.
91
+
92
+ # 3.3 CONNECTIONIST TEMPORAL CLASSIFICATION
93
+
94
+ The connectionist temporal classification (CTC) loss (Graves et al., 2006) is widely used in modern speech recognition as it eliminates the need for training data that aligns inputs to target outputs (Amodei et al., 2015; Graves & Jaitly, 2014; Maas et al., 2015). Given a model that outputs a sequence of discrete distributions over the token classes (vocabulary) augmented with a special “blank” token, CTC computes the probability of a sequence by marginalising over all sequences that are defined as equivalent to this sequence. This simultaneously removes the need for alignments and addresses variable-length sequences. Let $V$ denote the set of tokens that the model classifies at a single time-step of its output (vocabulary), and the blank-augmented vocabulary ${ \tilde { V } } = V \cup \{ \ldots \}$ where denotes the CTC blank symbol. Define the function $B : \tilde { V } ^ { * } \to V ^ { * }$ that, given a string over $\tilde { V }$ , deletes adjacent duplicate characters and removes blank tokens. For a label sequence $y \in V ^ { * }$ , CTC defines $\begin{array} { r } { \dot { p } ( y | \mathbf { x } ) = \sum _ { u \in \mathcal { B } ^ { - 1 } ( y ) } } \end{array}$ s.t. $_ { | u | = T } p \big ( u _ { 1 } , \dots , u _ { T } | \mathbf x \big )$ , where $T$ is the number of time-steps in the sequence model. For example, if $T = 3$ , CTC defines the probability of a string “am” as $p ( a a m ) \bar { + } p ( a m m ) + p ( . a m ) + \bar { p } ( a . m ) + p ( a m . )$ . This sum is computed efficiently by dynamic programming, allowing us to perform maximum likelihood.
95
+
96
+ ![](images/1872721e1db4aa3d870c4e29c3ac890f371742e27758f736f3657583d4e43b7e.jpg)
97
+ Figure 1: LipNet architecture. A sequence of $T$ frames is used as input, and is processed by 3 layers of STCNN, each followed by a spatial max-pooling layer. The features extracted are processed by 2 Bi-GRUs; each time-step of the GRU output is processed by a linear layer and a softmax. This end-to-end model is trained with CTC.
98
+
99
+ # 3.4 LIPNET ARCHITECTURE
100
+
101
+ Figure 1 illustrates the LipNet architecture, which starts with $3 \times$ (spatiotemporal convolutions, channel-wise dropout, spatial max-pooling). Subsequently, the features extracted are followed by two Bi-GRUs. The Bi-GRUs are crucial for efficient further aggregation of the STCNN output. Finally, a linear transformation is applied at each time-step, followed by a softmax over the vocabulary augmented with the CTC blank, and then the CTC loss. All layers use rectified linear unit (ReLU) activation functions. More details including hyperparameters can be found in Table 3 of Appendix A.
102
+
103
+ # 4 LIPREADING EVALUATION
104
+
105
+ In this section, we evaluate LipNet on the GRID corpus. The augmentation methods employed don’t make use of external data and rely purely on the GRID corpus.
106
+
107
+ # 4.1 DATA AUGMENTATION
108
+
109
+ Preprocessing: The GRID corpus consists of 34 subjects, each narrating 1000 sentences. The videos for speaker 21 are missing, and a few others are empty or corrupt, leaving 32746 usable videos. We employ a split (unseen speakers; not previously used in the literature) holding out the data of two male speakers (1 and 2) and two female speakers (20 and 22) for evaluation (3971 videos). The remainder is used for training (28775 videos). We also use a sentence-level variant of the split (overlapped speakers) similar to Wand et al. (2016), where 255 random sentences from each speaker are used for evaluation. All remaining data from all speakers is pooled together for training. All videos are 3 seconds long with a frame rate of 25fps. The videos were processed with the DLib face detector, and the iBug face landmark predictor (Sagonas et al., 2013) with 68 landmarks coupled with an online Kalman Filter. Using these landmarks, we apply an affine transformation to extract a mouth-centred crop of size $1 0 0 \times 5 0$ pixels per frame. We standardise the RGB channels over the whole training set to have zero mean and unit variance.
110
+
111
+ Augmentation: We augment the dataset with simple transformations to reduce overfitting. First, we train on both the regular and the horizontally mirrored image sequence. Second, since the dataset provides word start and end timings for each sentence video, we augment the sentence-level training data with video clips of individual words as additional training instances. These instances have a decay rate of 0.925. Third, to encourage resilience to varying motion speeds by deletion and duplication of frames, this is performed with a per-frame probability of 0.05. The same augmentation methods were followed in all proposed baselines and models.
112
+
113
+ # 4.2 BASELINES
114
+
115
+ To evaluate LipNet, we compare its performance to that of three hearing-impaired people who can lipread, as well as three ablation models inspired by recent state-of-the-art work (Chung & Zisserman, 2016a; Wand et al., 2016).
116
+
117
+ Hearing-Impaired People: This baseline was performed by three members of the Oxford Students’ Disability Community. After being introduced to the grammar of the GRID corpus, they observed 10 minutes of annotated videos from the training dataset, then annotated 300 random videos from the evaluation dataset. When uncertain, they were asked to pick the most probable answer.
118
+
119
+ Baseline-LSTM: Using the sentence-level training setup of LipNet, we replicate the model architecture of the previous deep learning GRID corpus state-of-the-art (Wand et al., 2016). See Appendix A for more implementation details.
120
+
121
+ Baseline-2D: Based on the LipNet architecture, we replace the STCNN with spatial-only convolutions similar to those of Chung & Zisserman (2016a). Notably, contrary to the results we observe with LipNet, Chung & Zisserman (2016a) report $1 4 \%$ and $3 1 \%$ poorer performance of their STCNNs compared to the 2D architectures in their two datasets.
122
+
123
+ Baseline-NoLM: Identical to LipNet, but with the language model used in beam search disabled.
124
+
125
+ # 4.3 PERFORMANCE EVALUATION
126
+
127
+ To measure the performance of LipNet and the baselines, we compute the word error rate (WER) and the character error rate (CER), standard metrics for the performance of ASR models. We produce approximate maximum-probability predictions from LipNet by performing CTC beam search. WER (or CER) is defined as the minimum number of word (or character) insertions, substitutions, and deletions required to transform the prediction into the ground truth, divided by the number of words (or characters) in the ground truth. Note that WER is usually equal to classification error when the predicted sentence has the same number of words as the ground truth, particularly in our case since almost all errors are substitution errors.
128
+
129
+ Table 2 summarises the performance of LipNet compared to the baselines. According to the literature, the accuracy of human lipreaders is around $2 0 \%$ (Easton & Basala, 1982; Hilder et al., 2009). As expected, the fixed sentence structure and the limited subset of words for each position in the GRID corpus facilitate the use of context, increasing performance. On the unseen speakers split, the three hearing-impaired people achieve $5 7 . 3 \%$ , $5 0 . { \overset { - } { 4 } } { \overset { - } { \% } }$ , and $3 5 . 5 \%$ WER respectively, yielding an average of $4 7 . 7 \%$ WER.
130
+
131
+ Table 2: Performance of LipNet on the GRID dataset compared to the baselines, measured on two splits: (a) evaluating on only unseen speakers, and (b) evaluating on a 255 video subset of each speakers’ sentences.
132
+
133
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Unseen Speakers</td><td colspan="2">Overlapped Speakers</td></tr><tr><td>CER</td><td>WER</td><td>CER</td><td>WER</td></tr><tr><td>Hearing-Impaired Person (avg)</td><td></td><td>47.7%</td><td></td><td></td></tr><tr><td>Baseline-LSTM</td><td>38.4%</td><td>52.8%</td><td>15.2%</td><td>26.3%</td></tr><tr><td>Baseline-2D</td><td>16.2%</td><td>26.7%</td><td>4.3%</td><td>11.6%</td></tr><tr><td>Baseline-NoLM</td><td>6.7%</td><td>13.6%</td><td>2.0%</td><td>5.6%</td></tr><tr><td>LipNet</td><td>6.4%</td><td>11.4%</td><td>1.9%</td><td>4.8%</td></tr></table>
134
+
135
+ For both unseen and overlapped speakers evaluation, the highest performance is achieved by the architectures enhanced with convolutional stacks. LipNet exhibits a $2 . 3 \times$ higher performance in the overlapped compared to the unseen speakers split. For unseen speakers, Baseline-2D and LipNet achieve $1 . 8 \times$ and $4 . 2 \times$ lower WER, respectively, than hearing-impaired people.
136
+
137
+ The WER for unseen speakers Baseline-2D is $2 6 . 7 \%$ , whereas for LipNet it is $2 . 3 \times$ lower, at $1 1 . 4 \%$ . Similarly, the error rate for overlapped speakers was $2 . 4 \times$ lower for LipNet compared to Baseline2D. Both results demonstrate the importance of combining STCNNs with RNNs. This performance difference confirms the intuition that extracting spatiotemporal features using a STCNN is better than aggregating spatial-only features. This observation contrasts with the empirical observations of Chung & Zisserman (2016a). Furthermore, LipNet’s use of STCNN, RNNs, and CTC cleanly allow processing both variable-length input and variable-length output sequences, whereas the architectures of Chung & Zisserman (2016a) and Chung & Zisserman (2016b) only handle the former.
138
+
139
+ Baseline-LSTM exhibits the lowest performance, in both unseen and overlapped speakers, with $5 2 . 8 \%$ and $2 6 . 3 \%$ WER, respectively. Interestingly, although Baseline-LSTM replicates the architecture of Wand et al. (2016), and despite the numerous data augmentation methods, the model performs $1 . 3 \times$ lower than the reported $7 9 . 6 \%$ word-level accuracy illustrating the difficulty of a sentence-level task even in a restricted grammar.
140
+
141
+ Finally, by disabling the language model, the Baseline-NoLM exhibits approximately $1 . 2 \times$ higher WER than our proposed model.
142
+
143
+ # 4.4 LEARNED REPRESENTATIONS
144
+
145
+ In this section, we analyse the learned representations of LipNet from a phonological perspective. First, we create saliency visualisations (Simonyan et al., 2013; Zeiler & Fergus, 2014) to illustrate where LipNet has learned to attend. In particular, we feed an input into the model and greedily decode an output sequence, yielding a CTC alignment $\hat { u } \in \tilde { V } ^ { * }$ (following the notation of Sections 3.2 and 3.3). Then, we compute the gradient of $\textstyle \sum _ { t } p ( { \hat { u } } _ { t } | \mathbf { x } )$ with respect to the input video frame sequence, but unlike Simonyan et al. (2013), we use guided backpropagation (Springenberg et al., 2014). Second, we train LipNet to predict ARPAbet phonemes, instead of characters, to analyse visual phoneme similarities using intra-viseme and inter-viseme confusion matrices.
146
+
147
+ # 4.4.1 SALIENCY MAPS
148
+
149
+ We apply saliency visualisation techniques to interpret LipNet’s learned behaviour, showing that the model attends to phonologically important regions in the video. In particular, in Figure 2 we analyse two saliency visualisations for the words please and lay for speaker 25, based on Ashby (2013).
150
+
151
+ ![](images/d6845168838f936d340381ba209455b7c18df7f8eeafe691226d8b5dedc3de4b.jpg)
152
+ Figure 2: Saliency maps for the words (a) please and (b) lay, produced by backpropagation to the input, showing the places where LipNet has learned to attend. The pictured transcription is given by greedy CTC decoding. CTC blanks are denoted by $\cdot \_$ .
153
+
154
+ The production of the word please requires a great deal of articulatory movement at the beginning: the lips are pressed firmly together for the bilabial plosive $/ \mathrm { p } /$ (frame 1). At the same time, the blade of the tongue comes in contact with the alveolar ridge in anticipation of the following lateral $/ \mathrm { { l } } / .$ . The lips then part, allowing the compressed air to escape between the lips (frame 2). The jaw and lips then open further, seen in the distance between the midpoints of the upper and lower lips, and the lips spread (increasing the distance between the corners of the mouth), for the close vowel /iy/ (frame 3–4). Since this is a relatively steady-state vowel, lip position remains unchanged for the rest of its duration (frames 4–8), where the attention level drops considerably. The jaw and the lips then close slightly, as the blade of the tongue needs to be brought close to the alveolar ridge, for $/ \mathbf { Z } /$ (frames 9–10), where attention resumes.
155
+
156
+ Lay is interesting since the bulk of frontally visible articulatory movement involves the blade of the tongue coming into contact with the alveolar ridge for $/ \mathrm { l } / $ (frames 2–6), and then going down for the vowel /ey/ (frames 7–9). That is exactly where most of LipNet’s attention is focused, as there is little change in lip position.
157
+
158
+ # 4.4.2 VISEMES
159
+
160
+ According to DeLand (1931) and Fisher (1968), Alexander Graham Bell first hypothesised that multiple phonemes may be visually identical on a given speaker. This was later verified, giving rise to the concept of a viseme, a visual equivalent of a phoneme (Woodward & Barber, 1960; Fisher, 1968). For our analysis, we use the phoneme-to-viseme mapping of Neti et al. (2000), clustering the phonemes into the following categories: Lip-rounding based vowels (V), Alveolar-semivowels (A), Alveolar-fricatives (B), Alveolar (C), Palato-alveolar (D), Bilabial (E), Dental (F), Labio-dental (G), and Velar (H). The full mapping can be found in Table 4 in Appendix A. The GRID corpus contain 31 out of the 39 phonemes in ARPAbet. We compute confusion matrices between phonemes and then group phonemes into viseme clusters, following Neti et al. (2000). Figure 3 shows the confusion matrices of the 3 most confused viseme categories, as well as the confusions between the viseme categories. The full phoneme confusion matrix is in Figure 4 in Appendix B.
161
+
162
+ ![](images/3feedcc8be2ef8745cfe831ae3909203f4444d251cb9705a44e0d9f421116203.jpg)
163
+ Figure 3: Intra-viseme and inter-viseme confusion matrices, depicting the three categories with the most confusions, as well as the confusions between viseme clusters. Colours are row-normalised to emphasise the errors.
164
+
165
+ Given that the speakers are British, the confusion between /aa/ and /ay/ (Figure 3a) is most probably due to the fact that the first element, and the greater part, of the diphthong /ay/ is articulatorily identical with /aa/: an open back unrounded vowel (Ferragne & Pellegrino, 2010). The confusion of /ih/ (a rather close vowel) and /ae/ (a very open vowel) is at first glance surprising, but in fact in the sample /ae/ occurs only in the word at, which is a function word normally pronounced with a reduced, weak vowel /ah/. /ah/ and $/ \mathrm { i h } I$ are the most frequent unstressed vowels and there is a good deal of variation within and between them, e.g. private and watches (Cruttenden, 2014).
166
+
167
+ The confusion within the categories of bilabial stops $/ { \mathrm { p } } { \mathrm { ~ b ~ m } } ^ { \prime }$ and alveolar stops /t d n/ (Figures 3b-c) is unsurprising: complete closure at the same place of articulation makes them look practically identical. The differences of velum action and vocal fold vibration are unobservable from the front.
168
+
169
+ Finally, the quality of the viseme categorisation of Neti et al. (2000) is confirmed by the fact that the matrix in Figure 3d is diagonal, with only minor confusion between alveolar (C) and palatoalveolar (D) visemes. Articulatorily, alveolar $/ s \ z /$ and palato-alveolar $/ \mathrm { s h \ z h } /$ fricatives are distinguished by only a small difference in tongue position: against the palate just behind the alveolar ridge, which is not easily observed from the front. The same can be said about dental /th/ and alveolar $/ \mathrm { t } / $ .
170
+
171
+ # 5 CONCLUSIONS
172
+
173
+ We proposed LipNet, the first model to apply deep learning to end-to-end learning of a model that maps sequences of image frames of a speaker’s mouth to entire sentences. The end-to-end model eliminates the need to segment videos into words before predicting a sentence. LipNet requires neither hand-engineered spatiotemporal visual features nor a separately-trained sequence model.
174
+
175
+ Our empirical evaluation illustrates the importance of spatiotemporal feature extraction and efficient temporal aggregation, confirming the intuition of Easton & Basala (1982). Furthermore, LipNet greatly outperforms a human lipreading baseline, exhibiting $4 . 1 \times$ better performance, and $\bar { 4 } . 8 \%$ WER which is $2 . 8 \times$ lower than the word-level state-of-the-art (Gergen et al., 2016) in the GRID corpus.
176
+
177
+ While LipNet is already an empirical success, the deep speech recognition literature (Amodei et al., 2015) suggests that performance will only improve with more data. In future work, we hope to demonstrate this by applying LipNet to larger datasets, such as a sentence-level variant of that collected by Chung & Zisserman (2016a).
178
+
179
+ Some applications, such as silent dictation, demand the use of video only. However, to extend the range of potential applications of LipNet, we aim to apply this approach to a jointly trained audiovisual speech recognition model, where visual input assists with robustness in noisy environments.
180
+
181
+ # ACKNOWLEDGMENTS
182
+
183
+ This work was supported by an Oxford-Google DeepMind Graduate Scholarship, the EPSRC, and CIFAR. We would also like to thank: NVIDIA for their generous donation of DGX-1 and GTX Titan X GPUs, used in our experiments; Aine Jackson, Brittany Klug and Samantha Pugh for helping ´ us measure the experienced lipreader baseline; Mitko Sabev for his phonetics guidance; Odysseas Votsis for his video production help; and Alex Graves and Oiwi Parker Jones for helpful comments.
184
+
185
+ # REFERENCES
186
+
187
+ I. Almajai, S. Cox, R. Harvey, and Y. Lan. Improved speaker independent lip reading using speaker adaptive training and deep neural networks. In IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 2722–2726, 2016.
188
+ D. Amodei, R. Anubhai, E. Battenberg, C. Case, J. Casper, B. Catanzaro, J. Chen, M. Chrzanowski, A. Coates, G. Diamos, et al. Deep Speech 2: End-to-end speech recognition in English and Mandarin. arXiv preprint arXiv:1512.02595, 2015.
189
+ P. Ashby. Understanding phonetics. Routledge, 2013.
190
+ J. S. Chung and A. Zisserman. Lip reading in the wild. In Asian Conference on Computer Vision, 2016a.
191
+ J. S. Chung and A. Zisserman. Out of time: automated lip sync in the wild. In Workshop on Multi-view Lip-reading, ACCV, 2016b.
192
+ J. Chung, C. Gulcehre, K. Cho, and Y. Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
193
+ M. Cooke, J. Barker, S. Cunningham, and X. Shao. An audio-visual corpus for speech perception and automatic speech recognition. The Journal of the Acoustical Society of America, 120(5):2421–2424, 2006.
194
+ A. Cruttenden. Gimson’s pronunciation of English. Routledge, 2014.
195
+ G. E. Dahl, D. Yu, L. Deng, and A. Acero. Context-dependent pre-trained deep neural networks for largevocabulary speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 20(1): 30–42, 2012.
196
+ F. DeLand. The story of lip-reading, its genesis and development. 1931.
197
+ R. D. Easton and M. Basala. Perceptual dominance during lipreading. Perception & Psychophysics, 32(6): 562–570, 1982.
198
+ E. Ferragne and F. Pellegrino. Formant frequencies of vowels in 13 accents of the british isles. Journal of the International Phonetic Association, 40(01):1–34, 2010.
199
+ C. G. Fisher. Confusions among visually perceived consonants. Journal of Speech, Language, and Hearing Research, 11(4):796–804, 1968.
200
+ Y. Fu, S. Yan, and T. S. Huang. Classification and feature extraction by simplexization. IEEE Transactions on Information Forensics and Security, 3(1):91–100, 2008.
201
+ A. Garg, J. Noyola, and S. Bagadia. Lip reading using CNN and LSTM. Technical report, Stanford University, CS231n project report, 2016.
202
+ S. Gergen, S. Zeiler, A. H. Abdelaziz, R. Nickel, and D. Kolossa. Dynamic stream weighting for turbodecoding-based audiovisual ASR. In Interspeech, pp. 2135–2139, 2016.
203
+ A. J. Goldschen, O. N. Garcia, and E. D. Petajan. Continuous automatic speech recognition by lipreading. In Motion-Based recognition, pp. 321–343. Springer, 1997.
204
+ A. Graves and N. Jaitly. Towards end-to-end speech recognition with recurrent neural networks. In International Conference on Machine Learning, pp. 1764–1772, 2014.
205
+ A. Graves and J. Schmidhuber. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Networks, 18(5):602–610, 2005.
206
+ A. Graves, S. Fernandez, F. Gomez, and J. Schmidhuber. Connectionist temporal classification: labelling ´ unsegmented sequence data with recurrent neural networks. In ICML, pp. 369–376, 2006.
207
+ M. Gurban and J.-P. Thiran. Information theoretic feature extraction for audio-visual speech recognition. IEEE Transactions on Signal Processing, 57(12):4765–4776, 2009.
208
+ K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In IEEE International Conference on Computer Vision, pp. 1026–1034, 2015.
209
+ S. Hilder, R. Harvey, and B.-J. Theobald. Comparison of human and machine-based lip-reading. In AVSP, pp. 86–89, 2009.
210
+ G. Hinton, L. Deng, D. Yu, G. E. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
211
+ S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
212
+ D. Hu, X. Li, et al. Temporal multimodal learning in audiovisual speech recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 3574–3582, 2016.
213
+ S. Ji, W. Xu, M. Yang, and K. Yu. 3d convolutional neural networks for human action recognition. IEEE transactions on pattern analysis and machine intelligence, 35(1):221–231, 2013.
214
+ A. Karpathy, G. Toderici, S. Shetty, T. Leung, R. Sukthankar, and L. Fei-Fei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 1725–1732, 2014.
215
+ D. E. King. Dlib-ml: A machine learning toolkit. JMLR, 10(Jul):1755–1758, 2009.
216
+ D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
217
+ O. Koller, H. Ney, and R. Bowden. Deep learning of mouth shapes for sign language. In ICCV Workshop on Assistive Computer Vision and Robotics, pp. 85–91, 2015.
218
+ A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
219
+ P. Lucey and S. Sridharan. Patch-based representation of visual speech. In HCSNet workshop on use of vision in human-computer interaction, pp. 79–85, 2006.
220
+ A. L. Maas, Z. Xie, D. Jurafsky, and A. Y. Ng. Lexicon-free conversational speech recognition with neural networks. In NAACL, 2015.
221
+ I. Matthews, T. F. Cootes, J. A. Bangham, S. Cox, and R. Harvey. Extraction of visual features for lipreading. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(2):198–213, 2002.
222
+ H. McGurk and J. MacDonald. Hearing lips and seeing voices. Nature, 264:746–748, 1976.
223
+ C. Neti, G. Potamianos, J. Luettin, I. Matthews, H. Glotin, D. Vergyri, J. Sison, and A. Mashari. Audio visual speech recognition. Technical report, IDIAP, 2000.
224
+ J. Ngiam, A. Khosla, M. Kim, J. Nam, H. Lee, and A. Y. Ng. Multimodal deep learning. In International Conference on Machine Learning, pp. 689–696, 2011.
225
+ H. Ninomiya, N. Kitaoka, S. Tamura, Y. Iribe, and K. Takeda. Integration of deep bottleneck features for audio-visual speech recognition. In International Speech Communication Association, 2015.
226
+ K. Noda, Y. Yamaguchi, K. Nakadai, H. G. Okuno, and T. Ogata. Lipreading using convolutional neural network. In INTERSPEECH, pp. 1149–1153, 2014.
227
+ G. Papandreou, A. Katsamanis, V. Pitsikalis, and P. Maragos. Multimodal fusion and learning with uncertain features applied to audiovisual speech recognition. In Workshop on Multimedia Signal Processing, pp. 264– 267, 2007.
228
+ G. Papandreou, A. Katsamanis, V. Pitsikalis, and P. Maragos. Adaptive multimodal fusion by uncertainty compensation with application to audiovisual speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 17(3):423–435, 2009.
229
+ S. Petridis and M. Pantic. Deep complementary bottleneck features for visual speech recognition. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 2304–2308. IEEE, 2016.
230
+ V. Pitsikalis, A. Katsamanis, G. Papandreou, and P. Maragos. Adaptive multimodal fusion by uncertainty compensation. In Interspeech, 2006.
231
+ G. Potamianos, C. Neti, G. Gravier, A. Garg, and A. W. Senior. Recent advances in the automatic recognition of audiovisual speech. Proceedings of the IEEE, 91(9):1306–1326, 2003.
232
+ C. Sagonas, G. Tzimiropoulos, S. Zafeiriou, and M. Pantic. 300 faces in-the-wild challenge: The first facial landmark localization challenge. In IEEE International Conference on Computer Vision Workshops, pp. 397–403, 2013.
233
+ K. Simonyan, A. Vedaldi, and A. Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013.
234
+ J. T. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller. Striving for simplicity: The all convolutional net. In ICLR Workshop, 2014.
235
+ C. Sui, M. Bennamoun, and R. Togneri. Listening with your eyes: Towards a practical visual speech recognition system using deep boltzmann machines. In IEEE International Conference on Computer Vision, pp. 154– 162, 2015.
236
+ Y. Takashima, R. Aihara, T. Takiguchi, Y. Ariki, N. Mitani, K. Omori, and K. Nakazono. Audio-visual speech recognition using bimodal-trained bottleneck features for a person with severe hearing loss. Interspeech, pp. 277–281, 2016.
237
+ M. Wand, J. Koutnik, and J. Schmidhuber. Lipreading with long short-term memory. In IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 6115–6119, 2016.
238
+ M. F. Woodward and C. G. Barber. Phoneme perception in lipreading. Journal of Speech, Language, and Hearing Research, 3(3):212–222, 1960.
239
+ M. D. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833, 2014.
240
+ G. Zhao, M. Barnard, and M. Pietikainen. Lipreading with local spatiotemporal descriptors. IEEE Transactions on Multimedia, 11(7):1254–1265, 2009.
241
+ Z. Zhou, G. Zhao, X. Hong, and M. Pietikainen. A review of recent advances in visual speech decoding. ¨ Image and Vision Computing, 32(9):590–605, 2014.
242
+
243
+ # A ARCHITECTURE DETAILS
244
+
245
+ In this appendix, we provide additional details about the implementation and architecture.
246
+
247
+ # A.1 IMPLEMENTATION
248
+
249
+ LipNet is implemented using Torch, the warp-ctc CTC library (Amodei et al., 2015), and StanfordCTC’s decoder implementation. The network parameters were initialised using He initialisation (He et al., 2015), apart from the square GRU matrices that were orthogonally initialised, as described in (Chung et al., 2014). The models were trained with channel-wise dropout (dropout rate $p = 0 . 5$ ) after each pooling layer and mini-batches of size 50. We used the optimiser Adam (Kingma & Ba, 2014) with a learning rate of $1 0 ^ { - 4 }$ , and the default hyperparameters: a first-moment momentum coefficient of 0.9, a second-moment momentum coefficient of 0.999, and the numerical stability parameter  = 10−8.
250
+
251
+ The CER and WER scores were computed using CTC beam search with the following parameters for Stanford-CTC’s decoder: beam width 200, $\alpha = 1$ , and $\beta = 1 . 5$ . On top of that, we use a character 5-gram binarised language model, as suggested in (Graves & Jaitly, 2014).
252
+
253
+ # A.2 LIPNET ARCHITECTURE
254
+
255
+ The videos were processed with DLib face detector (King, 2009) and the iBug face shape predictor with 68 landmarks (Sagonas et al., 2013). The RGB input frames were normalised using the following per-channel means and standard deviations: $[ \mu _ { R } \bar { = } 0 . 7 1 3 6 , \sigma _ { R } = 0 . 1 1 3 8 , \mu _ { G } = \bar { 0 . 4 9 0 6 } , \sigma _ { G } =$ $0 . 1 0 7 8 , \mu _ { B } = 0 . 3 2 8 3 , \sigma _ { B } = 0 . 0 9 1 7 ]$ ].
256
+
257
+ Table 3 summarises the LipNet architecture hyperparameters, where $T$ denotes time, $C$ denotes channels, $F$ denotes feature dimension, $H$ and $W$ denote height and width and $V$ denotes the number of words in the vocabulary including the CTC blank symbol.
258
+
259
+ Table 3: LipNet architecture hyperparameters.
260
+
261
+ <table><tr><td>Layer</td><td>Size/Stride/Pad</td><td>Input size</td><td>Dimension order</td></tr><tr><td>STCNN</td><td>3 × 5×5/1,2,2/1,2,2</td><td>75 ×3× 50×100</td><td>T xC×H×W</td></tr><tr><td>Pool STCNN Pool</td><td>1×2× 2/1,2,2 3 × 5× 5/1,2,2/1,2,2 1×2×2/1,2,2</td><td>75 ×32×25× 50 75 × 32 ×12 × 25 × 64×12× 25</td><td>T × C ×H×W T × C×H×1 W</td></tr><tr><td>STCNN</td><td>3 × 3× 3/1,2,2/1,1,1</td><td>75 75 ×64×6 ×12</td><td>T × C×H×W T × C×H×W</td></tr><tr><td>Pool</td><td>1×2× 2/1,2,2</td><td>75 ×96×6×12</td><td>T C×H×W</td></tr><tr><td>Bi-GRU</td><td>256</td><td>75</td><td>×</td></tr><tr><td>Bi-GRU</td><td></td><td>× (96×3×6)</td><td>T × (C ×H×W)</td></tr><tr><td>Linear</td><td>256</td><td>75 × 512</td><td>T×F</td></tr><tr><td>Softmax</td><td>27 +blank</td><td>75 × 512 75×28</td><td>T×F</td></tr></table>
262
+
263
+ Note that spatiotemporal convolution sizes depend on the number of channels, and the kernel’s three dimensions. Spatiotemporal kernel sizes are specified in the same order as the input size dimensions. The input dimension orderings are given in parentheses in the input size column.
264
+
265
+ Layers after the Bi-GRU are applied per-timestep.
266
+
267
+ # A.3 BASELINE-LSTM ARCHITECTURE
268
+
269
+ Baseline-LSTM replicates the setup of Wand et al. (2016), and is trained the same way as LipNet. The model uses two LSTM layers with 128 neurons. The input frames were converted to grayscale and were down-sampled to $5 0 \times 2 5 \mathrm { p x }$ , dropout $p = 0$ , and the parameters were initialised uniformly with values between $[ - 0 . 0 5 , 0 . 0 5 ]$ .
270
+
271
+ # B PHONEMES AND VISEMES
272
+
273
+ Table 4 shows the phoneme to viseme clustering of Neti et al. (2000) and Figure 4 shows LipNet’s full phoneme confusion matrix.
274
+
275
+ Table 4: Phoneme to viseme clustering of Neti et al. (2000).
276
+
277
+ <table><tr><td>Code</td><td>Viseme Class</td><td>Phonemes in Cluster</td></tr><tr><td>V1 V2 V3</td><td>Lip-rounding based vowels</td><td>/ao//ah/ /aa/ ler/ /oyl /aw/ /hh/ /uw/ /uh/ /owl /ael leh/ leyl /ayl</td></tr><tr><td>V4 A</td><td>Alveolar-semivowels</td><td>/ih/ /iy/ /ax/ /V lel/ /r/ lyl</td></tr><tr><td>B</td><td>Alveolar-fricatives</td><td>/s/ /zl</td></tr><tr><td>C</td><td>Alveolar</td><td>/t//d/ /n/len/</td></tr><tr><td>D</td><td>Palato-alveolar</td><td>/sh/ /zh/ /ch/ /jh/</td></tr><tr><td>E</td><td>Bilabial</td><td>/p/ /b/ /m/</td></tr><tr><td>F</td><td>Dental</td><td>/th//dh/</td></tr><tr><td>G</td><td>Labio-dental</td><td>/f/Ivl</td></tr><tr><td>H</td><td>Velar</td><td>/ng/ /k/ Ig/ /wl</td></tr><tr><td>S</td><td>Silence</td><td>/sil/ /sp/</td></tr></table>
278
+
279
+ ![](images/4fcca93a2c8e46800fb40e147a97a1af2435cf77ac1d2220fe4e2d17d3e81497.jpg)
280
+ Figure 4: LipNet’s full phoneme confusion matrix.
parse/train/BkjLkSqxg/BkjLkSqxg_content_list.json ADDED
@@ -0,0 +1,1267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LIPNET: END-TO-END SENTENCE-LEVEL LIPREADING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 821,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yannis M. Assael1,†, Brendan Shillingford1,†, Shimon Whiteson1 & Nando de Freitas1,2,3 ",
17
+ "bbox": [
18
+ 186,
19
+ 143,
20
+ 799,
21
+ 160
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Department of Computer Science, University of Oxford, Oxford, UK \nGoogle DeepMind, London, UK 2 \nCIFAR, Canada 3 \n{yannis.assael,brendan.shillingford, shimon.whiteson,nando.de.freitas}@cs.ox.ac.uk ",
28
+ "bbox": [
29
+ 184,
30
+ 160,
31
+ 638,
32
+ 229
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 267,
43
+ 544,
44
+ 282
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Lipreading is the task of decoding text from the movement of a speaker’s mouth. Traditional approaches separated the problem into two stages: designing or learning visual features, and prediction. More recent deep lipreading approaches are end-to-end trainable (Wand et al., 2016; Chung & Zisserman, 2016a). However, existing work on models trained end-to-end perform only word classification, rather than sentence-level sequence prediction. Studies have shown that human lipreading performance increases for longer words (Easton & Basala, 1982), indicating the importance of features capturing temporal context in an ambiguous communication channel. Motivated by this observation, we present LipNet, a model that maps a variable-length sequence of video frames to text, making use of spatiotemporal convolutions, a recurrent network, and the connectionist temporal classification loss, trained entirely end-to-end. To the best of our knowledge, LipNet is the first end-to-end sentence-level lipreading model that simultaneously learns spatiotemporal visual features and a sequence model. On the GRID corpus, LipNet achieves $9 5 . 2 \\%$ accuracy in sentence-level, overlapped speaker split task, outperforming experienced human lipreaders and the previous $8 6 . 4 \\%$ word-level state-of-the-art accuracy (Gergen et al., 2016). ",
51
+ "bbox": [
52
+ 233,
53
+ 300,
54
+ 764,
55
+ 535
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 564,
66
+ 336,
67
+ 580
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Lipreading plays a crucial role in human communication and speech understanding, as highlighted by the McGurk effect (McGurk & MacDonald, 1976), where one phoneme’s audio dubbed on top of a video of someone speaking a different phoneme results in a third phoneme being perceived. ",
74
+ "bbox": [
75
+ 176,
76
+ 597,
77
+ 823,
78
+ 638
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Lipreading is a notoriously difficult task for humans, specially in the absence of context1. Most lipreading actuations, besides the lips and sometimes tongue and teeth, are latent and difficult to disambiguate without context (Fisher, 1968; Woodward & Barber, 1960). For example, Fisher (1968) gives 5 categories of visual phonemes (called visemes), out of a list of 23 initial consonant phonemes, that are commonly confused by people when viewing a speaker’s mouth. Many of these were asymmetrically confused, and observations were similar for final consonant phonemes. ",
85
+ "bbox": [
86
+ 174,
87
+ 646,
88
+ 825,
89
+ 729
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Consequently, human lipreading performance is poor. Hearing-impaired people achieve an accuracy of only $1 7 \\pm \\mathrm { \\dot { 1 } 2 \\% }$ even for a limited subset of 30 monosyllabic words and $2 1 \\pm 1 1 \\%$ for 30 compound words (Easton & Basala, 1982). An important goal, therefore, is to automate lipreading. Machine lipreaders have enormous practical potential, with applications in improved hearing aids, silent dictation in public spaces, security, speech recognition in noisy environments, biometric identification, and silent-movie processing. ",
96
+ "bbox": [
97
+ 174,
98
+ 737,
99
+ 825,
100
+ 820
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Machine lipreading is difficult because it requires extracting spatiotemporal features from the video (since both position and motion are important). Recent deep learning approaches attempt to extract those features end-to-end. Most existing work, however, performs only word classification, not sentence-level sequence prediction. ",
107
+ "bbox": [
108
+ 176,
109
+ 827,
110
+ 823,
111
+ 882
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we present LipNet, which is to the best of our knowledge, the first end-to-end sentence-level lipreading model. As with modern deep learning based automatic speech recognition (ASR), LipNet is trained end-to-end to make sentence-level predictions. Our model operates at the character-level, using spatiotemporal convolutional neural networks (STCNNs), recurrent neural networks (RNNs), and the connectionist temporal classification loss (CTC) Graves et al. (2006). ",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 823,
122
+ 172
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Our empirical results on the GRID corpus (Cooke et al., 2006), one of the few public sentence-level datasets, show that LipNet attains a $9 \\bar { 5 } . 2 \\%$ sentence-level word accuracy, in a overlapped speakers split that is popular for benchmarking lipreading methods. The previous best accuracy reported on an aligned word classification version of this task was $8 6 . 4 \\%$ (Gergen et al., 2016). Furthermore, LipNet can generalise across unseen speakers in the GRID corpus with an accuracy of $8 8 . 6 \\%$ . ",
129
+ "bbox": [
130
+ 174,
131
+ 180,
132
+ 825,
133
+ 251
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We also compare the performance of LipNet with that of hearing-impaired people who can lipread on the GRID corpus task. On average, they achieve an accuracy of ${ \\bar { 5 } } 2 . 3 \\%$ , in contrast to LipNet’s $1 . 6 9 \\times$ higher accuracy in the same sentences. ",
140
+ "bbox": [
141
+ 174,
142
+ 257,
143
+ 823,
144
+ 299
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Finally, by applying saliency visualisation techniques (Zeiler & Fergus, 2014; Simonyan et al., 2013), we interpret LipNet’s learned behaviour, showing that the model attends to phonologically important regions in the video. Furthermore, by computing intra-viseme and inter-viseme confusion matrices at the phoneme level, we show that almost all of LipNet’s few erroneous predictions occur within visemes, since context is sometimes insufficient for disambiguation. ",
151
+ "bbox": [
152
+ 174,
153
+ 306,
154
+ 823,
155
+ 376
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 RELATED WORK ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 176,
165
+ 400,
166
+ 344,
167
+ 416
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "In this section, we outline various existing approaches to automated lipreading. ",
174
+ "bbox": [
175
+ 176,
176
+ 435,
177
+ 689,
178
+ 450
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Automated lipreading: Most existing work on lipreading does not employ deep learning. Such work requires either heavy preprocessing of frames to extract image features, temporal preprocessing of frames to extract video features (e.g., optical flow or movement detection), or other types of handcrafted vision pipelines (Matthews et al., 2002; Zhao et al., 2009; Gurban & Thiran, 2009; Papandreou et al., 2007; 2009; Pitsikalis et al., 2006; Lucey & Sridharan, 2006; Papandreou et al., 2009). The automated lipreading literature is too vast to adequately cover, so we refer the reader to Zhou et al. (2014) for an extensive review. ",
185
+ "bbox": [
186
+ 174,
187
+ 457,
188
+ 825,
189
+ 555
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Notably, Goldschen et al. (1997) were the first to do visual-only sentence-level lipreading using hidden Markov models (HMMs) in a limited dataset, using hand-segmented phones. Later, Neti et al. (2000) were the first to do sentence-level audiovisual speech recognition using an HMM combined with hand-engineered features, on the IBM ViaVoice (Neti et al., 2000) dataset. The authors improve speech recognition performance in noisy environments by fusing visual features with audio ones. The dataset contains 17111 utterances of 261 speakers for training (about 34.9 hours) and is not publicly available. As stated, their visual-only results cannot be interpreted as visual-only recognition, as they are used as rescoring of the noisy audio-only lattices. Using a similar approach, Potamianos et al. (2003) report speaker independent and speaker adapted $9 1 . 6 \\hat { 2 } \\%$ , $8 2 . 3 1 \\%$ WER in the same dataset respectively, and $3 8 . 5 3 \\%$ , $1 6 . 7 7 \\%$ WER in the connected DIGIT corpus, which contains sentences of digits. ",
196
+ "bbox": [
197
+ 174,
198
+ 563,
199
+ 825,
200
+ 714
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Furthermore, Gergen et al. (2016) use speaker-dependent training on an LDA-transformed version of the Discrete Cosine Transforms of the mouth regions in an HMM/GMM system. This work holds the previous state-of-the-art on the GRID corpus with a speaker-dependent accuracy of $8 6 . 4 \\%$ . Generalisation across speakers and extraction of motion features is considered an open problem, as noted in (Zhou et al., 2014). LipNet addresses both of these issues. ",
207
+ "bbox": [
208
+ 174,
209
+ 722,
210
+ 825,
211
+ 791
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Classification with deep learning: In recent years, there have been several attempts to apply deep learning to lipreading. However, all of these approaches perform only word or phoneme classification, whereas LipNet performs full sentence sequence prediction. Approaches include learning multimodal audio-visual representations (Ngiam et al., 2011; Sui et al., 2015; Ninomiya et al., 2015; Petridis & Pantic, 2016), learning visual features as part of a traditional speech-style processing pipeline (e.g. HMMs, GMM-HMMs, etc.) for classifying words and/or phonemes (Almajai et al., 2016; Takashima et al., 2016; Noda et al., 2014; Koller et al., 2015), or combinations thereof (Takashima et al., 2016). Many of these approaches mirror early progress in applying neural networks for acoustic processing in speech recognition (Hinton et al., 2012). ",
218
+ "bbox": [
219
+ 174,
220
+ 799,
221
+ 825,
222
+ 924
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Chung & Zisserman (2016a) propose spatial and spatiotemporal convolutional neural networks, based on VGG, for word classification. The architectures are evaluated on a word-level dataset BBC TV (333 and 500 classes), but, as reported, their spatiotemporal models fall short of the spatial architectures by an average of around $1 4 \\%$ . Additionally, their models cannot handle variable sequence lengths and they do not attempt sentence-level sequence prediction. ",
229
+ "bbox": [
230
+ 174,
231
+ 103,
232
+ 825,
233
+ 174
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "Chung & Zisserman (2016b) train an audio-visual max-margin matching model for learning pretrained mouth features, which they use as inputs to an LSTM for 10-phrase classification on the OuluVS2 dataset, as well as a non-lipreading task. ",
240
+ "bbox": [
241
+ 176,
242
+ 180,
243
+ 820,
244
+ 223
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "Wand et al. (2016) introduce LSTM recurrent neural networks for lipreading but address neither sentence-level sequence prediction nor speaker independence. ",
251
+ "bbox": [
252
+ 173,
253
+ 229,
254
+ 823,
255
+ 257
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "Garg et al. (2016) apply a VGG pre-trained on faces to classifying words and phrases from the MIRACL-VC1 dataset, which has only 10 words and 10 phrases. However, their best recurrent model is trained by freezing the VGGNet parameters and then training the RNN, rather than training them jointly. Their best model achieves only $5 6 . 0 \\%$ word classification accuracy, and $4 4 . 5 \\%$ phrase classification accuracy, despite both of these being 10-class classification tasks. ",
262
+ "bbox": [
263
+ 174,
264
+ 263,
265
+ 825,
266
+ 334
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "Sequence prediction in speech recognition: The field of automatic speech recognition (ASR) would not be in the state it is today without modern advances in deep learning, many of which have occurred in the context of ASR (Graves et al., 2006; Dahl et al., 2012; Hinton et al., 2012). The connectionist temporal classification loss (CTC) of Graves et al. (2006) drove the movement from deep learning as a component of ASR, to deep ASR systems trained end-to-end (Graves & Jaitly, 2014; Maas et al., 2015; Amodei et al., 2015). As mentioned earlier, much recent lipreading progress has mirrored early progress in ASR, but stopping short of sequence prediction. ",
273
+ "bbox": [
274
+ 173,
275
+ 342,
276
+ 825,
277
+ 439
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "LipNet is the first end-to-end model that performs sentence-level sequence prediction for visual speech recogntion. That is, we demonstrate the first work that takes as input as sequence of images and outputs a distribution over sequences of tokens; it is trained end-to-end using CTC and thus also does not require alignments. ",
284
+ "bbox": [
285
+ 174,
286
+ 445,
287
+ 825,
288
+ 502
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Lipreading Datasets: Lipreading datasets (AVICar, AVLetters, AVLetters2, BBC TV, CUAVE, OuluVS1, OuluVS2) are plentiful (Zhou et al., 2014; Chung & Zisserman, 2016a), but most only contain single words or are too small. One exception is the GRID corpus (Cooke et al., 2006), which has audio and video recordings of 34 speakers who produced 1000 sentences each, for a total of 28 hours across 34000 sentences. Table 1 summarises state-of-the-art performance in each of the main lipreading datasets. ",
295
+ "bbox": [
296
+ 174,
297
+ 508,
298
+ 825,
299
+ 592
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "table",
305
+ "img_path": "images/f9ed8af4a0acc3a49ffaad3a289b2212ae22a4ac7f09c1f3957847e54ca5f1d1.jpg",
306
+ "table_caption": [
307
+ "Table 1: Existing lipreading datasets and the state-of-the-art accuracy reported on these. The size column represents the number of utterances used by the authors for training. Although the GRID corpus contains entire sentences, Gergen et al. (2016) consider only the simpler case of predicting isolated words. LipNet predicts sequences and hence can exploit temporal context to attain much higher accuracy. Phrase-level approaches were treated as plain classification. "
308
+ ],
309
+ "table_footnote": [],
310
+ "table_body": "<table><tr><td>Method</td><td>Dataset</td><td>Size</td><td>Output</td><td>Accuracy</td></tr><tr><td colspan=\"5\"></td></tr><tr><td>Fu et al. (2008)</td><td>AVICAR</td><td>851</td><td>Digits</td><td>37.9%</td></tr><tr><td>Hu et al. (2016)</td><td>AVLetter</td><td>78</td><td>Alphabet</td><td>64.6%</td></tr><tr><td>Papandreou et al. (2009)</td><td>CUAVE</td><td>1800</td><td>Digits</td><td>83.0%</td></tr><tr><td>Chung &amp; Zisserman (2016a)</td><td>OuluVS1</td><td>200</td><td>Phrases</td><td>91.4%</td></tr><tr><td>Chung &amp; Zisserman (2016b)</td><td>OuluVS2</td><td>520</td><td>Phrases</td><td>94.1%</td></tr><tr><td>Chung &amp; Zisserman ( 1 (2016a)</td><td>BBC TV</td><td>&gt; 400000</td><td>Words</td><td>65.4%</td></tr><tr><td>Gergen et al. (2016)</td><td>GRID</td><td>29700</td><td>Words*</td><td>86.4%</td></tr><tr><td>LipNet</td><td>GRID</td><td>28775</td><td>Sentences</td><td>95.2%</td></tr></table>",
311
+ "bbox": [
312
+ 225,
313
+ 689,
314
+ 776,
315
+ 833
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "We use the GRID corpus to evaluate LipNet because it is sentence-level and has the most data. The sentences are drawn from the following simple grammar: command $^ { ( 4 ) } + c o l o r ^ { ( 4 ) } +$ prepositio $\\ l _ { \\ l } ^ { ( 4 ) } + l e t t e r ^ { ( 2 5 ) } + d i g i t ^ { ( 1 0 ) } + a d v e r ^ { \\ l } \\ l _ { b } ^ { \\ l ^ { ( 4 ) } }$ , where the number denotes how many word choices there are for each of the 6 word categories. The categories consist of, respectively, {bin, lay, place, set}, {blue, green, red, white}, {at, by, in, with}, $\\{ \\bar { A } , \\ldots , Z \\} \\backslash \\{ W \\}$ , $\\{ \\mathrm { z e r o } , \\ldots , \\mathrm { n i n e } \\}$ , and {again, now, please, $\\operatorname { s o o n } \\}$ , yielding 64000 possible sentences. For example, two sentences in the data are “set blue by A four please” and “place red at C zero again”. ",
322
+ "bbox": [
323
+ 173,
324
+ 851,
325
+ 825,
326
+ 924
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "",
333
+ "bbox": [
334
+ 171,
335
+ 103,
336
+ 823,
337
+ 132
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "3 LIPNET ",
344
+ "text_level": 1,
345
+ "bbox": [
346
+ 174,
347
+ 151,
348
+ 271,
349
+ 169
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "LipNet is a neural network architecture for lipreading that maps variable-length sequences of video frames to text sequences, and is trained end-to-end. In this section, we describe LipNet’s building blocks and architecture. ",
356
+ "bbox": [
357
+ 174,
358
+ 183,
359
+ 825,
360
+ 226
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "3.1 SPATIOTEMPORAL CONVOLUTIONS ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 176,
370
+ 242,
371
+ 459,
372
+ 257
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Convolutional neural networks (CNNs), containing stacked convolutions operating spatially over an image, have been instrumental in advancing performance in computer visions tasks such as object recognition that receive an image as input (Krizhevsky et al., 2012). A basic 2D convolution layer from $C$ channels to $C ^ { \\prime }$ channels (without a bias and with unit stride) computes ",
379
+ "bbox": [
380
+ 173,
381
+ 267,
382
+ 825,
383
+ 325
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "equation",
389
+ "img_path": "images/a59b5cbac5113fc2420a6c16897269ce840a7ae8022667cb4ca930c173d234e0.jpg",
390
+ "text": "$$\n[ \\mathrm { c o n v } ( { \\bf x } , { \\bf w } ) ] _ { c ^ { \\prime } i j } = \\sum _ { c = 1 } ^ { C } \\sum _ { i ^ { \\prime } = 1 } ^ { k _ { w } } \\sum _ { j ^ { \\prime } = 1 } ^ { k _ { h } } w _ { c ^ { \\prime } c i ^ { \\prime } j ^ { \\prime } } x _ { c , i + i ^ { \\prime } , j + j ^ { \\prime } } ,\n$$",
391
+ "text_format": "latex",
392
+ "bbox": [
393
+ 326,
394
+ 330,
395
+ 669,
396
+ 376
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "for input $\\mathbf { x }$ and weights $\\mathbf { w } \\in \\mathbb { R } ^ { C ^ { \\prime } \\times C \\times k _ { w } \\times k _ { h } }$ where we define $x _ { c i j } = 0$ for $i , j$ out of bounds. Spatiotemporal convolutional neural networks (STCNNs) can process video data by convolving across time, as well as the spatial dimensions (Karpathy et al., 2014; Ji et al., 2013). Hence similarly, ",
403
+ "bbox": [
404
+ 174,
405
+ 382,
406
+ 825,
407
+ 428
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "equation",
413
+ "img_path": "images/4f05ea277e090ca71eea8c536065fda3fffe8a4afea037b608b85bf586cb1f5e.jpg",
414
+ "text": "$$\n[ \\mathrm { s t c o n v } ( { \\bf x } , { \\bf w } ) ] _ { c ^ { \\prime } t i j } = \\sum _ { c = 1 } ^ { C } \\sum _ { t ^ { \\prime } = 1 } ^ { k _ { t } } \\sum _ { i ^ { \\prime } = 1 } ^ { k _ { w } } \\sum _ { j ^ { \\prime } = 1 } ^ { k _ { h } } w _ { c ^ { \\prime } c t ^ { \\prime } i ^ { \\prime } j ^ { \\prime } } x _ { c , t + t ^ { \\prime } , i + i ^ { \\prime } , j + j ^ { \\prime } } .\n$$",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 284,
418
+ 433,
419
+ 712,
420
+ 479
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "3.2 GATED RECURRENT UNIT",
427
+ "text_level": 1,
428
+ "bbox": [
429
+ 174,
430
+ 493,
431
+ 397,
432
+ 508
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Gated Recurrent Unit (GRU) (Chung et al., 2014) is a type of recurrent neural network (RNN) that improves upon earlier RNNs by adding cells and gates for propagating information over more timesteps and learning to control this information flow. It is similar to the Long Short-Term Memory (LSTM) RNN (Hochreiter & Schmidhuber, 1997). We use the standard formulation: ",
439
+ "bbox": [
440
+ 174,
441
+ 518,
442
+ 825,
443
+ 575
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/aa4e0122cd3eadd52d8ede3bdf70d03d20c3aa91bb24c7867b20f51964fe8a03.jpg",
450
+ "text": "$$\n\\begin{array} { r l } & { [ \\mathbf { u } _ { t } , \\mathbf { r } _ { t } ] ^ { T } = \\mathrm { s i g m } ( \\mathbf { W } _ { z } \\mathbf { z } _ { t } + \\mathbf { W } _ { h } \\mathbf { h } _ { t - 1 } + \\mathbf { b } _ { g } ) } \\\\ & { \\qquad \\tilde { \\mathbf { h } } _ { t } = \\mathrm { t a n h } ( \\mathbf { U } _ { z } \\mathbf { z } _ { t } + \\mathbf { U } _ { h } ( \\mathbf { r } _ { t } \\odot \\mathbf { h } _ { t - 1 } ) + \\mathbf { b } _ { h } ) } \\\\ & { \\qquad \\mathbf { h } _ { t } = ( \\mathbf { 1 } - \\mathbf { u } _ { t } ) \\odot \\mathbf { h } _ { t - 1 } + \\mathbf { u } _ { t } \\odot \\tilde { \\mathbf { h } } _ { t } } \\end{array}\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 336,
454
+ 580,
455
+ 663,
456
+ 643
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "where $\\mathbf { z } : = \\{ \\mathbf { z } _ { 1 } , \\dots , \\mathbf { z } _ { T } \\}$ is the input sequence to the RNN, $\\odot$ denotes element-wise multiplication, and $\\mathrm { s i g m } ( r ) = 1 / ( 1 + \\exp ( - r ) )$ . We use a bidirectional GRU (Bi-GRU) as introduced by Graves & Schmidhuber (2005) in the context of LSTMs: one RNN maps $\\{ \\mathbf { z } _ { 1 } , \\dotsc , \\mathbf { z } _ { T } \\} \\mapsto \\{ \\overrightarrow { \\mathbf { h } _ { 1 } } , \\dotsc , \\overrightarrow { \\mathbf { h } _ { T } } \\}$ , and another $\\{ \\mathbf { z } _ { T } , \\dotsc , \\mathbf { z } _ { 1 } \\} \\mapsto \\{ { \\overleftarrow { \\mathbf { h } _ { 1 } } } , \\dotsc , { \\overleftarrow { \\mathbf { h } _ { T } } } \\}$ , then $\\mathbf { h } _ { t } : = [ \\overrightarrow { \\mathbf { h } _ { t } } , \\overleftarrow { \\mathbf { h } _ { t } } ]$ . The Bi-GRU ensures that $\\mathbf { h } _ { t }$ depends on $\\mathbf { z } _ { t ^ { \\prime } }$ for all $t ^ { \\prime }$ . To parameterise a distribution over sequences, at time-step $t$ let $p ( u _ { t } | \\mathbf { z } ) =$ softmax $( \\mathrm { m l p } ( \\mathbf { h } _ { t } ; \\mathbf { W } _ { m l p } ) )$ , where mlp is a feed-forward network with weights $\\mathbf { W } _ { m l p }$ . Then we can define the distribution over length- $\\mathcal { T }$ sequences as $\\begin{array} { r } { p ( u _ { 1 } , \\ldots , u _ { T } | \\mathbf { z } ) = \\prod _ { 1 \\leq t \\leq T } p ( u _ { t } | \\mathbf { \\bar { z } } ) } \\end{array}$ , where $T$ is determined by $\\mathbf { z }$ , the input to the GRU. In LipNet, $\\mathbf { z }$ is the output of the STCNN. ",
463
+ "bbox": [
464
+ 173,
465
+ 646,
466
+ 825,
467
+ 768
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "3.3 CONNECTIONIST TEMPORAL CLASSIFICATION ",
474
+ "text_level": 1,
475
+ "bbox": [
476
+ 174,
477
+ 784,
478
+ 537,
479
+ 799
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "The connectionist temporal classification (CTC) loss (Graves et al., 2006) is widely used in modern speech recognition as it eliminates the need for training data that aligns inputs to target outputs (Amodei et al., 2015; Graves & Jaitly, 2014; Maas et al., 2015). Given a model that outputs a sequence of discrete distributions over the token classes (vocabulary) augmented with a special “blank” token, CTC computes the probability of a sequence by marginalising over all sequences that are defined as equivalent to this sequence. This simultaneously removes the need for alignments and addresses variable-length sequences. Let $V$ denote the set of tokens that the model classifies at a single time-step of its output (vocabulary), and the blank-augmented vocabulary ${ \\tilde { V } } = V \\cup \\{ \\ldots \\}$ where denotes the CTC blank symbol. Define the function $B : \\tilde { V } ^ { * } \\to V ^ { * }$ that, given a string over $\\tilde { V }$ , deletes adjacent duplicate characters and removes blank tokens. For a label sequence $y \\in V ^ { * }$ , CTC defines $\\begin{array} { r } { \\dot { p } ( y | \\mathbf { x } ) = \\sum _ { u \\in \\mathcal { B } ^ { - 1 } ( y ) } } \\end{array}$ s.t. $_ { | u | = T } p \\big ( u _ { 1 } , \\dots , u _ { T } | \\mathbf x \\big )$ , where $T$ is the number of time-steps in the sequence model. For example, if $T = 3$ , CTC defines the probability of a string “am” as $p ( a a m ) \\bar { + } p ( a m m ) + p ( . a m ) + \\bar { p } ( a . m ) + p ( a m . )$ . This sum is computed efficiently by dynamic programming, allowing us to perform maximum likelihood. ",
486
+ "bbox": [
487
+ 173,
488
+ 809,
489
+ 825,
490
+ 924
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "image",
496
+ "img_path": "images/1872721e1db4aa3d870c4e29c3ac890f371742e27758f736f3657583d4e43b7e.jpg",
497
+ "image_caption": [
498
+ "Figure 1: LipNet architecture. A sequence of $T$ frames is used as input, and is processed by 3 layers of STCNN, each followed by a spatial max-pooling layer. The features extracted are processed by 2 Bi-GRUs; each time-step of the GRU output is processed by a linear layer and a softmax. This end-to-end model is trained with CTC. "
499
+ ],
500
+ "image_footnote": [],
501
+ "bbox": [
502
+ 174,
503
+ 97,
504
+ 826,
505
+ 265
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "",
512
+ "bbox": [
513
+ 173,
514
+ 342,
515
+ 825,
516
+ 431
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "3.4 LIPNET ARCHITECTURE ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 176,
526
+ 448,
527
+ 383,
528
+ 462
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Figure 1 illustrates the LipNet architecture, which starts with $3 \\times$ (spatiotemporal convolutions, channel-wise dropout, spatial max-pooling). Subsequently, the features extracted are followed by two Bi-GRUs. The Bi-GRUs are crucial for efficient further aggregation of the STCNN output. Finally, a linear transformation is applied at each time-step, followed by a softmax over the vocabulary augmented with the CTC blank, and then the CTC loss. All layers use rectified linear unit (ReLU) activation functions. More details including hyperparameters can be found in Table 3 of Appendix A. ",
535
+ "bbox": [
536
+ 173,
537
+ 473,
538
+ 825,
539
+ 571
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "4 LIPREADING EVALUATION ",
546
+ "text_level": 1,
547
+ "bbox": [
548
+ 176,
549
+ 592,
550
+ 424,
551
+ 607
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "In this section, we evaluate LipNet on the GRID corpus. The augmentation methods employed don’t make use of external data and rely purely on the GRID corpus. ",
558
+ "bbox": [
559
+ 174,
560
+ 623,
561
+ 823,
562
+ 651
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "4.1 DATA AUGMENTATION ",
569
+ "text_level": 1,
570
+ "bbox": [
571
+ 176,
572
+ 667,
573
+ 372,
574
+ 683
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "Preprocessing: The GRID corpus consists of 34 subjects, each narrating 1000 sentences. The videos for speaker 21 are missing, and a few others are empty or corrupt, leaving 32746 usable videos. We employ a split (unseen speakers; not previously used in the literature) holding out the data of two male speakers (1 and 2) and two female speakers (20 and 22) for evaluation (3971 videos). The remainder is used for training (28775 videos). We also use a sentence-level variant of the split (overlapped speakers) similar to Wand et al. (2016), where 255 random sentences from each speaker are used for evaluation. All remaining data from all speakers is pooled together for training. All videos are 3 seconds long with a frame rate of 25fps. The videos were processed with the DLib face detector, and the iBug face landmark predictor (Sagonas et al., 2013) with 68 landmarks coupled with an online Kalman Filter. Using these landmarks, we apply an affine transformation to extract a mouth-centred crop of size $1 0 0 \\times 5 0$ pixels per frame. We standardise the RGB channels over the whole training set to have zero mean and unit variance. ",
581
+ "bbox": [
582
+ 173,
583
+ 694,
584
+ 825,
585
+ 861
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Augmentation: We augment the dataset with simple transformations to reduce overfitting. First, we train on both the regular and the horizontally mirrored image sequence. Second, since the dataset provides word start and end timings for each sentence video, we augment the sentence-level training data with video clips of individual words as additional training instances. These instances have a decay rate of 0.925. Third, to encourage resilience to varying motion speeds by deletion and duplication of frames, this is performed with a per-frame probability of 0.05. The same augmentation methods were followed in all proposed baselines and models. ",
592
+ "bbox": [
593
+ 174,
594
+ 867,
595
+ 823,
596
+ 924
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "",
603
+ "bbox": [
604
+ 174,
605
+ 103,
606
+ 823,
607
+ 146
608
+ ],
609
+ "page_idx": 5
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "4.2 BASELINES",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 174,
617
+ 161,
618
+ 294,
619
+ 176
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "To evaluate LipNet, we compare its performance to that of three hearing-impaired people who can lipread, as well as three ablation models inspired by recent state-of-the-art work (Chung & Zisserman, 2016a; Wand et al., 2016). ",
626
+ "bbox": [
627
+ 174,
628
+ 188,
629
+ 823,
630
+ 229
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Hearing-Impaired People: This baseline was performed by three members of the Oxford Students’ Disability Community. After being introduced to the grammar of the GRID corpus, they observed 10 minutes of annotated videos from the training dataset, then annotated 300 random videos from the evaluation dataset. When uncertain, they were asked to pick the most probable answer. ",
637
+ "bbox": [
638
+ 176,
639
+ 237,
640
+ 823,
641
+ 292
642
+ ],
643
+ "page_idx": 5
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "Baseline-LSTM: Using the sentence-level training setup of LipNet, we replicate the model architecture of the previous deep learning GRID corpus state-of-the-art (Wand et al., 2016). See Appendix A for more implementation details. ",
648
+ "bbox": [
649
+ 174,
650
+ 300,
651
+ 823,
652
+ 342
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Baseline-2D: Based on the LipNet architecture, we replace the STCNN with spatial-only convolutions similar to those of Chung & Zisserman (2016a). Notably, contrary to the results we observe with LipNet, Chung & Zisserman (2016a) report $1 4 \\%$ and $3 1 \\%$ poorer performance of their STCNNs compared to the 2D architectures in their two datasets. ",
659
+ "bbox": [
660
+ 174,
661
+ 349,
662
+ 825,
663
+ 405
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Baseline-NoLM: Identical to LipNet, but with the language model used in beam search disabled. ",
670
+ "bbox": [
671
+ 171,
672
+ 412,
673
+ 808,
674
+ 426
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "4.3 PERFORMANCE EVALUATION ",
681
+ "text_level": 1,
682
+ "bbox": [
683
+ 176,
684
+ 443,
685
+ 416,
686
+ 457
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "To measure the performance of LipNet and the baselines, we compute the word error rate (WER) and the character error rate (CER), standard metrics for the performance of ASR models. We produce approximate maximum-probability predictions from LipNet by performing CTC beam search. WER (or CER) is defined as the minimum number of word (or character) insertions, substitutions, and deletions required to transform the prediction into the ground truth, divided by the number of words (or characters) in the ground truth. Note that WER is usually equal to classification error when the predicted sentence has the same number of words as the ground truth, particularly in our case since almost all errors are substitution errors. ",
693
+ "bbox": [
694
+ 174,
695
+ 468,
696
+ 825,
697
+ 580
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Table 2 summarises the performance of LipNet compared to the baselines. According to the literature, the accuracy of human lipreaders is around $2 0 \\%$ (Easton & Basala, 1982; Hilder et al., 2009). As expected, the fixed sentence structure and the limited subset of words for each position in the GRID corpus facilitate the use of context, increasing performance. On the unseen speakers split, the three hearing-impaired people achieve $5 7 . 3 \\%$ , $5 0 . { \\overset { - } { 4 } } { \\overset { - } { \\% } }$ , and $3 5 . 5 \\%$ WER respectively, yielding an average of $4 7 . 7 \\%$ WER. ",
704
+ "bbox": [
705
+ 174,
706
+ 588,
707
+ 825,
708
+ 670
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "table",
714
+ "img_path": "images/5b324a295a327b8214bbb4da1d271e260d19f3def508ad5771effabb97242ea3.jpg",
715
+ "table_caption": [
716
+ "Table 2: Performance of LipNet on the GRID dataset compared to the baselines, measured on two splits: (a) evaluating on only unseen speakers, and (b) evaluating on a 255 video subset of each speakers’ sentences. "
717
+ ],
718
+ "table_footnote": [],
719
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Unseen Speakers</td><td colspan=\"2\">Overlapped Speakers</td></tr><tr><td>CER</td><td>WER</td><td>CER</td><td>WER</td></tr><tr><td>Hearing-Impaired Person (avg)</td><td></td><td>47.7%</td><td></td><td></td></tr><tr><td>Baseline-LSTM</td><td>38.4%</td><td>52.8%</td><td>15.2%</td><td>26.3%</td></tr><tr><td>Baseline-2D</td><td>16.2%</td><td>26.7%</td><td>4.3%</td><td>11.6%</td></tr><tr><td>Baseline-NoLM</td><td>6.7%</td><td>13.6%</td><td>2.0%</td><td>5.6%</td></tr><tr><td>LipNet</td><td>6.4%</td><td>11.4%</td><td>1.9%</td><td>4.8%</td></tr></table>",
720
+ "bbox": [
721
+ 233,
722
+ 742,
723
+ 763,
724
+ 851
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "For both unseen and overlapped speakers evaluation, the highest performance is achieved by the architectures enhanced with convolutional stacks. LipNet exhibits a $2 . 3 \\times$ higher performance in the overlapped compared to the unseen speakers split. For unseen speakers, Baseline-2D and LipNet achieve $1 . 8 \\times$ and $4 . 2 \\times$ lower WER, respectively, than hearing-impaired people. ",
731
+ "bbox": [
732
+ 174,
733
+ 867,
734
+ 825,
735
+ 924
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "The WER for unseen speakers Baseline-2D is $2 6 . 7 \\%$ , whereas for LipNet it is $2 . 3 \\times$ lower, at $1 1 . 4 \\%$ . Similarly, the error rate for overlapped speakers was $2 . 4 \\times$ lower for LipNet compared to Baseline2D. Both results demonstrate the importance of combining STCNNs with RNNs. This performance difference confirms the intuition that extracting spatiotemporal features using a STCNN is better than aggregating spatial-only features. This observation contrasts with the empirical observations of Chung & Zisserman (2016a). Furthermore, LipNet’s use of STCNN, RNNs, and CTC cleanly allow processing both variable-length input and variable-length output sequences, whereas the architectures of Chung & Zisserman (2016a) and Chung & Zisserman (2016b) only handle the former. ",
742
+ "bbox": [
743
+ 173,
744
+ 103,
745
+ 825,
746
+ 215
747
+ ],
748
+ "page_idx": 6
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "Baseline-LSTM exhibits the lowest performance, in both unseen and overlapped speakers, with $5 2 . 8 \\%$ and $2 6 . 3 \\%$ WER, respectively. Interestingly, although Baseline-LSTM replicates the architecture of Wand et al. (2016), and despite the numerous data augmentation methods, the model performs $1 . 3 \\times$ lower than the reported $7 9 . 6 \\%$ word-level accuracy illustrating the difficulty of a sentence-level task even in a restricted grammar. ",
753
+ "bbox": [
754
+ 174,
755
+ 222,
756
+ 825,
757
+ 291
758
+ ],
759
+ "page_idx": 6
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "Finally, by disabling the language model, the Baseline-NoLM exhibits approximately $1 . 2 \\times$ higher WER than our proposed model. ",
764
+ "bbox": [
765
+ 174,
766
+ 299,
767
+ 821,
768
+ 327
769
+ ],
770
+ "page_idx": 6
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "4.4 LEARNED REPRESENTATIONS ",
775
+ "text_level": 1,
776
+ "bbox": [
777
+ 176,
778
+ 348,
779
+ 416,
780
+ 361
781
+ ],
782
+ "page_idx": 6
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "In this section, we analyse the learned representations of LipNet from a phonological perspective. First, we create saliency visualisations (Simonyan et al., 2013; Zeiler & Fergus, 2014) to illustrate where LipNet has learned to attend. In particular, we feed an input into the model and greedily decode an output sequence, yielding a CTC alignment $\\hat { u } \\in \\tilde { V } ^ { * }$ (following the notation of Sections 3.2 and 3.3). Then, we compute the gradient of $\\textstyle \\sum _ { t } p ( { \\hat { u } } _ { t } | \\mathbf { x } )$ with respect to the input video frame sequence, but unlike Simonyan et al. (2013), we use guided backpropagation (Springenberg et al., 2014). Second, we train LipNet to predict ARPAbet phonemes, instead of characters, to analyse visual phoneme similarities using intra-viseme and inter-viseme confusion matrices. ",
787
+ "bbox": [
788
+ 174,
789
+ 375,
790
+ 825,
791
+ 488
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "4.4.1 SALIENCY MAPS ",
798
+ "text_level": 1,
799
+ "bbox": [
800
+ 176,
801
+ 506,
802
+ 346,
803
+ 521
804
+ ],
805
+ "page_idx": 6
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "We apply saliency visualisation techniques to interpret LipNet’s learned behaviour, showing that the model attends to phonologically important regions in the video. In particular, in Figure 2 we analyse two saliency visualisations for the words please and lay for speaker 25, based on Ashby (2013). ",
810
+ "bbox": [
811
+ 174,
812
+ 532,
813
+ 825,
814
+ 574
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "image",
820
+ "img_path": "images/d6845168838f936d340381ba209455b7c18df7f8eeafe691226d8b5dedc3de4b.jpg",
821
+ "image_caption": [
822
+ "Figure 2: Saliency maps for the words (a) please and (b) lay, produced by backpropagation to the input, showing the places where LipNet has learned to attend. The pictured transcription is given by greedy CTC decoding. CTC blanks are denoted by $\\cdot \\_$ . "
823
+ ],
824
+ "image_footnote": [],
825
+ "bbox": [
826
+ 174,
827
+ 587,
828
+ 825,
829
+ 727
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "The production of the word please requires a great deal of articulatory movement at the beginning: the lips are pressed firmly together for the bilabial plosive $/ \\mathrm { p } /$ (frame 1). At the same time, the blade of the tongue comes in contact with the alveolar ridge in anticipation of the following lateral $/ \\mathrm { { l } } / .$ . The lips then part, allowing the compressed air to escape between the lips (frame 2). The jaw and lips then open further, seen in the distance between the midpoints of the upper and lower lips, and the lips spread (increasing the distance between the corners of the mouth), for the close vowel /iy/ (frame 3–4). Since this is a relatively steady-state vowel, lip position remains unchanged for the rest of its duration (frames 4–8), where the attention level drops considerably. The jaw and the lips then close slightly, as the blade of the tongue needs to be brought close to the alveolar ridge, for $/ \\mathbf { Z } /$ (frames 9–10), where attention resumes. ",
836
+ "bbox": [
837
+ 174,
838
+ 785,
839
+ 825,
840
+ 924
841
+ ],
842
+ "page_idx": 6
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Lay is interesting since the bulk of frontally visible articulatory movement involves the blade of the tongue coming into contact with the alveolar ridge for $/ \\mathrm { l } / $ (frames 2–6), and then going down for the vowel /ey/ (frames 7–9). That is exactly where most of LipNet’s attention is focused, as there is little change in lip position. ",
847
+ "bbox": [
848
+ 174,
849
+ 103,
850
+ 825,
851
+ 160
852
+ ],
853
+ "page_idx": 7
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "4.4.2 VISEMES ",
858
+ "text_level": 1,
859
+ "bbox": [
860
+ 174,
861
+ 178,
862
+ 292,
863
+ 193
864
+ ],
865
+ "page_idx": 7
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "According to DeLand (1931) and Fisher (1968), Alexander Graham Bell first hypothesised that multiple phonemes may be visually identical on a given speaker. This was later verified, giving rise to the concept of a viseme, a visual equivalent of a phoneme (Woodward & Barber, 1960; Fisher, 1968). For our analysis, we use the phoneme-to-viseme mapping of Neti et al. (2000), clustering the phonemes into the following categories: Lip-rounding based vowels (V), Alveolar-semivowels (A), Alveolar-fricatives (B), Alveolar (C), Palato-alveolar (D), Bilabial (E), Dental (F), Labio-dental (G), and Velar (H). The full mapping can be found in Table 4 in Appendix A. The GRID corpus contain 31 out of the 39 phonemes in ARPAbet. We compute confusion matrices between phonemes and then group phonemes into viseme clusters, following Neti et al. (2000). Figure 3 shows the confusion matrices of the 3 most confused viseme categories, as well as the confusions between the viseme categories. The full phoneme confusion matrix is in Figure 4 in Appendix B. ",
870
+ "bbox": [
871
+ 173,
872
+ 204,
873
+ 825,
874
+ 316
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "image",
880
+ "img_path": "images/3feedcc8be2ef8745cfe831ae3909203f4444d251cb9705a44e0d9f421116203.jpg",
881
+ "image_caption": [
882
+ "Figure 3: Intra-viseme and inter-viseme confusion matrices, depicting the three categories with the most confusions, as well as the confusions between viseme clusters. Colours are row-normalised to emphasise the errors. "
883
+ ],
884
+ "image_footnote": [],
885
+ "bbox": [
886
+ 197,
887
+ 330,
888
+ 799,
889
+ 465
890
+ ],
891
+ "page_idx": 7
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "",
896
+ "bbox": [
897
+ 174,
898
+ 523,
899
+ 825,
900
+ 565
901
+ ],
902
+ "page_idx": 7
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Given that the speakers are British, the confusion between /aa/ and /ay/ (Figure 3a) is most probably due to the fact that the first element, and the greater part, of the diphthong /ay/ is articulatorily identical with /aa/: an open back unrounded vowel (Ferragne & Pellegrino, 2010). The confusion of /ih/ (a rather close vowel) and /ae/ (a very open vowel) is at first glance surprising, but in fact in the sample /ae/ occurs only in the word at, which is a function word normally pronounced with a reduced, weak vowel /ah/. /ah/ and $/ \\mathrm { i h } I$ are the most frequent unstressed vowels and there is a good deal of variation within and between them, e.g. private and watches (Cruttenden, 2014). ",
907
+ "bbox": [
908
+ 174,
909
+ 571,
910
+ 825,
911
+ 671
912
+ ],
913
+ "page_idx": 7
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "The confusion within the categories of bilabial stops $/ { \\mathrm { p } } { \\mathrm { ~ b ~ m } } ^ { \\prime }$ and alveolar stops /t d n/ (Figures 3b-c) is unsurprising: complete closure at the same place of articulation makes them look practically identical. The differences of velum action and vocal fold vibration are unobservable from the front. ",
918
+ "bbox": [
919
+ 176,
920
+ 678,
921
+ 821,
922
+ 719
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Finally, the quality of the viseme categorisation of Neti et al. (2000) is confirmed by the fact that the matrix in Figure 3d is diagonal, with only minor confusion between alveolar (C) and palatoalveolar (D) visemes. Articulatorily, alveolar $/ s \\ z /$ and palato-alveolar $/ \\mathrm { s h \\ z h } /$ fricatives are distinguished by only a small difference in tongue position: against the palate just behind the alveolar ridge, which is not easily observed from the front. The same can be said about dental /th/ and alveolar $/ \\mathrm { t } / $ . ",
929
+ "bbox": [
930
+ 174,
931
+ 726,
932
+ 823,
933
+ 810
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "5 CONCLUSIONS ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 176,
943
+ 833,
944
+ 328,
945
+ 849
946
+ ],
947
+ "page_idx": 7
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "We proposed LipNet, the first model to apply deep learning to end-to-end learning of a model that maps sequences of image frames of a speaker’s mouth to entire sentences. The end-to-end model eliminates the need to segment videos into words before predicting a sentence. LipNet requires neither hand-engineered spatiotemporal visual features nor a separately-trained sequence model. ",
952
+ "bbox": [
953
+ 174,
954
+ 867,
955
+ 823,
956
+ 924
957
+ ],
958
+ "page_idx": 7
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Our empirical evaluation illustrates the importance of spatiotemporal feature extraction and efficient temporal aggregation, confirming the intuition of Easton & Basala (1982). Furthermore, LipNet greatly outperforms a human lipreading baseline, exhibiting $4 . 1 \\times$ better performance, and $\\bar { 4 } . 8 \\%$ WER which is $2 . 8 \\times$ lower than the word-level state-of-the-art (Gergen et al., 2016) in the GRID corpus. ",
963
+ "bbox": [
964
+ 174,
965
+ 103,
966
+ 825,
967
+ 172
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "While LipNet is already an empirical success, the deep speech recognition literature (Amodei et al., 2015) suggests that performance will only improve with more data. In future work, we hope to demonstrate this by applying LipNet to larger datasets, such as a sentence-level variant of that collected by Chung & Zisserman (2016a). ",
974
+ "bbox": [
975
+ 174,
976
+ 180,
977
+ 825,
978
+ 236
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Some applications, such as silent dictation, demand the use of video only. However, to extend the range of potential applications of LipNet, we aim to apply this approach to a jointly trained audiovisual speech recognition model, where visual input assists with robustness in noisy environments. ",
985
+ "bbox": [
986
+ 174,
987
+ 243,
988
+ 825,
989
+ 285
990
+ ],
991
+ "page_idx": 8
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "ACKNOWLEDGMENTS ",
996
+ "text_level": 1,
997
+ "bbox": [
998
+ 176,
999
+ 304,
1000
+ 326,
1001
+ 318
1002
+ ],
1003
+ "page_idx": 8
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "This work was supported by an Oxford-Google DeepMind Graduate Scholarship, the EPSRC, and CIFAR. We would also like to thank: NVIDIA for their generous donation of DGX-1 and GTX Titan X GPUs, used in our experiments; Aine Jackson, Brittany Klug and Samantha Pugh for helping ´ us measure the experienced lipreader baseline; Mitko Sabev for his phonetics guidance; Odysseas Votsis for his video production help; and Alex Graves and Oiwi Parker Jones for helpful comments. ",
1008
+ "bbox": [
1009
+ 174,
1010
+ 328,
1011
+ 825,
1012
+ 400
1013
+ ],
1014
+ "page_idx": 8
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "REFERENCES ",
1019
+ "text_level": 1,
1020
+ "bbox": [
1021
+ 174,
1022
+ 424,
1023
+ 285,
1024
+ 439
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "I. Almajai, S. Cox, R. Harvey, and Y. Lan. Improved speaker independent lip reading using speaker adaptive training and deep neural networks. In IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 2722–2726, 2016. \nD. Amodei, R. Anubhai, E. Battenberg, C. Case, J. Casper, B. Catanzaro, J. Chen, M. Chrzanowski, A. Coates, G. Diamos, et al. Deep Speech 2: End-to-end speech recognition in English and Mandarin. arXiv preprint arXiv:1512.02595, 2015. \nP. Ashby. Understanding phonetics. Routledge, 2013. \nJ. S. Chung and A. Zisserman. Lip reading in the wild. In Asian Conference on Computer Vision, 2016a. \nJ. S. Chung and A. Zisserman. Out of time: automated lip sync in the wild. In Workshop on Multi-view Lip-reading, ACCV, 2016b. \nJ. Chung, C. Gulcehre, K. Cho, and Y. Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. \nM. Cooke, J. Barker, S. Cunningham, and X. Shao. An audio-visual corpus for speech perception and automatic speech recognition. The Journal of the Acoustical Society of America, 120(5):2421–2424, 2006. \nA. Cruttenden. Gimson’s pronunciation of English. Routledge, 2014. \nG. E. Dahl, D. Yu, L. Deng, and A. Acero. Context-dependent pre-trained deep neural networks for largevocabulary speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 20(1): 30–42, 2012. \nF. DeLand. The story of lip-reading, its genesis and development. 1931. \nR. D. Easton and M. Basala. Perceptual dominance during lipreading. Perception & Psychophysics, 32(6): 562–570, 1982. \nE. Ferragne and F. Pellegrino. Formant frequencies of vowels in 13 accents of the british isles. Journal of the International Phonetic Association, 40(01):1–34, 2010. \nC. G. Fisher. Confusions among visually perceived consonants. Journal of Speech, Language, and Hearing Research, 11(4):796–804, 1968. \nY. Fu, S. Yan, and T. S. Huang. Classification and feature extraction by simplexization. IEEE Transactions on Information Forensics and Security, 3(1):91–100, 2008. \nA. Garg, J. Noyola, and S. Bagadia. Lip reading using CNN and LSTM. Technical report, Stanford University, CS231n project report, 2016. \nS. Gergen, S. Zeiler, A. H. Abdelaziz, R. Nickel, and D. Kolossa. Dynamic stream weighting for turbodecoding-based audiovisual ASR. In Interspeech, pp. 2135–2139, 2016. \nA. J. Goldschen, O. N. Garcia, and E. D. Petajan. Continuous automatic speech recognition by lipreading. In Motion-Based recognition, pp. 321–343. Springer, 1997. \nA. Graves and N. Jaitly. Towards end-to-end speech recognition with recurrent neural networks. In International Conference on Machine Learning, pp. 1764–1772, 2014. \nA. Graves and J. Schmidhuber. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Networks, 18(5):602–610, 2005. \nA. Graves, S. Fernandez, F. Gomez, and J. Schmidhuber. Connectionist temporal classification: labelling ´ unsegmented sequence data with recurrent neural networks. In ICML, pp. 369–376, 2006. \nM. Gurban and J.-P. Thiran. Information theoretic feature extraction for audio-visual speech recognition. IEEE Transactions on Signal Processing, 57(12):4765–4776, 2009. \nK. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In IEEE International Conference on Computer Vision, pp. 1026–1034, 2015. \nS. Hilder, R. Harvey, and B.-J. Theobald. Comparison of human and machine-based lip-reading. In AVSP, pp. 86–89, 2009. \nG. Hinton, L. Deng, D. Yu, G. E. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. \nS. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \nD. Hu, X. Li, et al. Temporal multimodal learning in audiovisual speech recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 3574–3582, 2016. \nS. Ji, W. Xu, M. Yang, and K. Yu. 3d convolutional neural networks for human action recognition. IEEE transactions on pattern analysis and machine intelligence, 35(1):221–231, 2013. \nA. Karpathy, G. Toderici, S. Shetty, T. Leung, R. Sukthankar, and L. Fei-Fei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 1725–1732, 2014. \nD. E. King. Dlib-ml: A machine learning toolkit. JMLR, 10(Jul):1755–1758, 2009. \nD. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \nO. Koller, H. Ney, and R. Bowden. Deep learning of mouth shapes for sign language. In ICCV Workshop on Assistive Computer Vision and Robotics, pp. 85–91, 2015. \nA. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. \nP. Lucey and S. Sridharan. Patch-based representation of visual speech. In HCSNet workshop on use of vision in human-computer interaction, pp. 79–85, 2006. \nA. L. Maas, Z. Xie, D. Jurafsky, and A. Y. Ng. Lexicon-free conversational speech recognition with neural networks. In NAACL, 2015. \nI. Matthews, T. F. Cootes, J. A. Bangham, S. Cox, and R. Harvey. Extraction of visual features for lipreading. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(2):198–213, 2002. \nH. McGurk and J. MacDonald. Hearing lips and seeing voices. Nature, 264:746–748, 1976. \nC. Neti, G. Potamianos, J. Luettin, I. Matthews, H. Glotin, D. Vergyri, J. Sison, and A. Mashari. Audio visual speech recognition. Technical report, IDIAP, 2000. \nJ. Ngiam, A. Khosla, M. Kim, J. Nam, H. Lee, and A. Y. Ng. Multimodal deep learning. In International Conference on Machine Learning, pp. 689–696, 2011. \nH. Ninomiya, N. Kitaoka, S. Tamura, Y. Iribe, and K. Takeda. Integration of deep bottleneck features for audio-visual speech recognition. In International Speech Communication Association, 2015. \nK. Noda, Y. Yamaguchi, K. Nakadai, H. G. Okuno, and T. Ogata. Lipreading using convolutional neural network. In INTERSPEECH, pp. 1149–1153, 2014. \nG. Papandreou, A. Katsamanis, V. Pitsikalis, and P. Maragos. Multimodal fusion and learning with uncertain features applied to audiovisual speech recognition. In Workshop on Multimedia Signal Processing, pp. 264– 267, 2007. \nG. Papandreou, A. Katsamanis, V. Pitsikalis, and P. Maragos. Adaptive multimodal fusion by uncertainty compensation with application to audiovisual speech recognition. IEEE Transactions on Audio, Speech, and Language Processing, 17(3):423–435, 2009. \nS. Petridis and M. Pantic. Deep complementary bottleneck features for visual speech recognition. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 2304–2308. IEEE, 2016. \nV. Pitsikalis, A. Katsamanis, G. Papandreou, and P. Maragos. Adaptive multimodal fusion by uncertainty compensation. In Interspeech, 2006. \nG. Potamianos, C. Neti, G. Gravier, A. Garg, and A. W. Senior. Recent advances in the automatic recognition of audiovisual speech. Proceedings of the IEEE, 91(9):1306–1326, 2003. \nC. Sagonas, G. Tzimiropoulos, S. Zafeiriou, and M. Pantic. 300 faces in-the-wild challenge: The first facial landmark localization challenge. In IEEE International Conference on Computer Vision Workshops, pp. 397–403, 2013. \nK. Simonyan, A. Vedaldi, and A. Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. \nJ. T. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller. Striving for simplicity: The all convolutional net. In ICLR Workshop, 2014. \nC. Sui, M. Bennamoun, and R. Togneri. Listening with your eyes: Towards a practical visual speech recognition system using deep boltzmann machines. In IEEE International Conference on Computer Vision, pp. 154– 162, 2015. \nY. Takashima, R. Aihara, T. Takiguchi, Y. Ariki, N. Mitani, K. Omori, and K. Nakazono. Audio-visual speech recognition using bimodal-trained bottleneck features for a person with severe hearing loss. Interspeech, pp. 277–281, 2016. \nM. Wand, J. Koutnik, and J. Schmidhuber. Lipreading with long short-term memory. In IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 6115–6119, 2016. \nM. F. Woodward and C. G. Barber. Phoneme perception in lipreading. Journal of Speech, Language, and Hearing Research, 3(3):212–222, 1960. \nM. D. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833, 2014. \nG. Zhao, M. Barnard, and M. Pietikainen. Lipreading with local spatiotemporal descriptors. IEEE Transactions on Multimedia, 11(7):1254–1265, 2009. \nZ. Zhou, G. Zhao, X. Hong, and M. Pietikainen. A review of recent advances in visual speech decoding. ¨ Image and Vision Computing, 32(9):590–605, 2014. ",
1031
+ "bbox": [
1032
+ 171,
1033
+ 445,
1034
+ 826,
1035
+ 926
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "",
1042
+ "bbox": [
1043
+ 171,
1044
+ 89,
1045
+ 828,
1046
+ 904
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "",
1053
+ "bbox": [
1054
+ 171,
1055
+ 99,
1056
+ 826,
1057
+ 554
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "A ARCHITECTURE DETAILS ",
1064
+ "text_level": 1,
1065
+ "bbox": [
1066
+ 178,
1067
+ 102,
1068
+ 421,
1069
+ 118
1070
+ ],
1071
+ "page_idx": 11
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "In this appendix, we provide additional details about the implementation and architecture. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 133,
1079
+ 759,
1080
+ 148
1081
+ ],
1082
+ "page_idx": 11
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "A.1 IMPLEMENTATION ",
1087
+ "text_level": 1,
1088
+ "bbox": [
1089
+ 176,
1090
+ 167,
1091
+ 344,
1092
+ 183
1093
+ ],
1094
+ "page_idx": 11
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "LipNet is implemented using Torch, the warp-ctc CTC library (Amodei et al., 2015), and StanfordCTC’s decoder implementation. The network parameters were initialised using He initialisation (He et al., 2015), apart from the square GRU matrices that were orthogonally initialised, as described in (Chung et al., 2014). The models were trained with channel-wise dropout (dropout rate $p = 0 . 5$ ) after each pooling layer and mini-batches of size 50. We used the optimiser Adam (Kingma & Ba, 2014) with a learning rate of $1 0 ^ { - 4 }$ , and the default hyperparameters: a first-moment momentum coefficient of 0.9, a second-moment momentum coefficient of 0.999, and the numerical stability parameter \u000f = 10−8. ",
1099
+ "bbox": [
1100
+ 173,
1101
+ 194,
1102
+ 825,
1103
+ 306
1104
+ ],
1105
+ "page_idx": 11
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "The CER and WER scores were computed using CTC beam search with the following parameters for Stanford-CTC’s decoder: beam width 200, $\\alpha = 1$ , and $\\beta = 1 . 5$ . On top of that, we use a character 5-gram binarised language model, as suggested in (Graves & Jaitly, 2014). ",
1110
+ "bbox": [
1111
+ 176,
1112
+ 313,
1113
+ 825,
1114
+ 356
1115
+ ],
1116
+ "page_idx": 11
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "A.2 LIPNET ARCHITECTURE ",
1121
+ "text_level": 1,
1122
+ "bbox": [
1123
+ 176,
1124
+ 375,
1125
+ 388,
1126
+ 388
1127
+ ],
1128
+ "page_idx": 11
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "The videos were processed with DLib face detector (King, 2009) and the iBug face shape predictor with 68 landmarks (Sagonas et al., 2013). The RGB input frames were normalised using the following per-channel means and standard deviations: $[ \\mu _ { R } \\bar { = } 0 . 7 1 3 6 , \\sigma _ { R } = 0 . 1 1 3 8 , \\mu _ { G } = \\bar { 0 . 4 9 0 6 } , \\sigma _ { G } =$ $0 . 1 0 7 8 , \\mu _ { B } = 0 . 3 2 8 3 , \\sigma _ { B } = 0 . 0 9 1 7 ]$ ]. ",
1133
+ "bbox": [
1134
+ 174,
1135
+ 400,
1136
+ 823,
1137
+ 458
1138
+ ],
1139
+ "page_idx": 11
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Table 3 summarises the LipNet architecture hyperparameters, where $T$ denotes time, $C$ denotes channels, $F$ denotes feature dimension, $H$ and $W$ denote height and width and $V$ denotes the number of words in the vocabulary including the CTC blank symbol. ",
1144
+ "bbox": [
1145
+ 174,
1146
+ 464,
1147
+ 821,
1148
+ 506
1149
+ ],
1150
+ "page_idx": 11
1151
+ },
1152
+ {
1153
+ "type": "table",
1154
+ "img_path": "images/73f9f065b96cbe38f10f260e5c8ba0ad5df5cfe03b3df0673857386f45498514.jpg",
1155
+ "table_caption": [
1156
+ "Table 3: LipNet architecture hyperparameters. "
1157
+ ],
1158
+ "table_footnote": [],
1159
+ "table_body": "<table><tr><td>Layer</td><td>Size/Stride/Pad</td><td>Input size</td><td>Dimension order</td></tr><tr><td>STCNN</td><td>3 × 5×5/1,2,2/1,2,2</td><td>75 ×3× 50×100</td><td>T xC×H×W</td></tr><tr><td>Pool STCNN Pool</td><td>1×2× 2/1,2,2 3 × 5× 5/1,2,2/1,2,2 1×2×2/1,2,2</td><td>75 ×32×25× 50 75 × 32 ×12 × 25 × 64×12× 25</td><td>T × C ×H×W T × C×H×1 W</td></tr><tr><td>STCNN</td><td>3 × 3× 3/1,2,2/1,1,1</td><td>75 75 ×64×6 ×12</td><td>T × C×H×W T × C×H×W</td></tr><tr><td>Pool</td><td>1×2× 2/1,2,2</td><td>75 ×96×6×12</td><td>T C×H×W</td></tr><tr><td>Bi-GRU</td><td>256</td><td>75</td><td>×</td></tr><tr><td>Bi-GRU</td><td></td><td>× (96×3×6)</td><td>T × (C ×H×W)</td></tr><tr><td>Linear</td><td>256</td><td>75 × 512</td><td>T×F</td></tr><tr><td>Softmax</td><td>27 +blank</td><td>75 × 512 75×28</td><td>T×F</td></tr></table>",
1160
+ "bbox": [
1161
+ 214,
1162
+ 549,
1163
+ 782,
1164
+ 737
1165
+ ],
1166
+ "page_idx": 11
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Note that spatiotemporal convolution sizes depend on the number of channels, and the kernel’s three dimensions. Spatiotemporal kernel sizes are specified in the same order as the input size dimensions. The input dimension orderings are given in parentheses in the input size column. ",
1171
+ "bbox": [
1172
+ 176,
1173
+ 758,
1174
+ 823,
1175
+ 801
1176
+ ],
1177
+ "page_idx": 11
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Layers after the Bi-GRU are applied per-timestep. ",
1182
+ "bbox": [
1183
+ 174,
1184
+ 808,
1185
+ 501,
1186
+ 821
1187
+ ],
1188
+ "page_idx": 11
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "A.3 BASELINE-LSTM ARCHITECTURE ",
1193
+ "text_level": 1,
1194
+ "bbox": [
1195
+ 176,
1196
+ 840,
1197
+ 457,
1198
+ 854
1199
+ ],
1200
+ "page_idx": 11
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Baseline-LSTM replicates the setup of Wand et al. (2016), and is trained the same way as LipNet. The model uses two LSTM layers with 128 neurons. The input frames were converted to grayscale and were down-sampled to $5 0 \\times 2 5 \\mathrm { p x }$ , dropout $p = 0$ , and the parameters were initialised uniformly with values between $[ - 0 . 0 5 , 0 . 0 5 ]$ . ",
1205
+ "bbox": [
1206
+ 176,
1207
+ 867,
1208
+ 823,
1209
+ 924
1210
+ ],
1211
+ "page_idx": 11
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "B PHONEMES AND VISEMES",
1216
+ "text_level": 1,
1217
+ "bbox": [
1218
+ 176,
1219
+ 102,
1220
+ 428,
1221
+ 118
1222
+ ],
1223
+ "page_idx": 12
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Table 4 shows the phoneme to viseme clustering of Neti et al. (2000) and Figure 4 shows LipNet’s full phoneme confusion matrix. ",
1228
+ "bbox": [
1229
+ 173,
1230
+ 133,
1231
+ 825,
1232
+ 161
1233
+ ],
1234
+ "page_idx": 12
1235
+ },
1236
+ {
1237
+ "type": "table",
1238
+ "img_path": "images/75c522692c65d2d1ca6adf0be67397fee328b03b9f3bac063360bfa73afe49b0.jpg",
1239
+ "table_caption": [
1240
+ "Table 4: Phoneme to viseme clustering of Neti et al. (2000). "
1241
+ ],
1242
+ "table_footnote": [],
1243
+ "table_body": "<table><tr><td>Code</td><td>Viseme Class</td><td>Phonemes in Cluster</td></tr><tr><td>V1 V2 V3</td><td>Lip-rounding based vowels</td><td>/ao//ah/ /aa/ ler/ /oyl /aw/ /hh/ /uw/ /uh/ /owl /ael leh/ leyl /ayl</td></tr><tr><td>V4 A</td><td>Alveolar-semivowels</td><td>/ih/ /iy/ /ax/ /V lel/ /r/ lyl</td></tr><tr><td>B</td><td>Alveolar-fricatives</td><td>/s/ /zl</td></tr><tr><td>C</td><td>Alveolar</td><td>/t//d/ /n/len/</td></tr><tr><td>D</td><td>Palato-alveolar</td><td>/sh/ /zh/ /ch/ /jh/</td></tr><tr><td>E</td><td>Bilabial</td><td>/p/ /b/ /m/</td></tr><tr><td>F</td><td>Dental</td><td>/th//dh/</td></tr><tr><td>G</td><td>Labio-dental</td><td>/f/Ivl</td></tr><tr><td>H</td><td>Velar</td><td>/ng/ /k/ Ig/ /wl</td></tr><tr><td>S</td><td>Silence</td><td>/sil/ /sp/</td></tr></table>",
1244
+ "bbox": [
1245
+ 264,
1246
+ 205,
1247
+ 735,
1248
+ 419
1249
+ ],
1250
+ "page_idx": 12
1251
+ },
1252
+ {
1253
+ "type": "image",
1254
+ "img_path": "images/4fcca93a2c8e46800fb40e147a97a1af2435cf77ac1d2220fe4e2d17d3e81497.jpg",
1255
+ "image_caption": [
1256
+ "Figure 4: LipNet’s full phoneme confusion matrix. "
1257
+ ],
1258
+ "image_footnote": [],
1259
+ "bbox": [
1260
+ 245,
1261
+ 446,
1262
+ 758,
1263
+ 842
1264
+ ],
1265
+ "page_idx": 12
1266
+ }
1267
+ ]
parse/train/BkjLkSqxg/BkjLkSqxg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkjLkSqxg/BkjLkSqxg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/PxTIG12RRHS/PxTIG12RRHS.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/PxTIG12RRHS/PxTIG12RRHS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/PxTIG12RRHS/PxTIG12RRHS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/PxTIG12RRHS/PxTIG12RRHS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1PWi_lC-/S1PWi_lC-.md ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MULTI-TASK LEARNING ON MNIST IMAGE DATASETS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We apply multi-task learning to image classification tasks on MNIST-like datasets. MNIST dataset has been referred to as the drosophila of machine learning and has been the testbed of many learning theories. The NotMNIST dataset and the FashionMNIST dataset have been created with the MNIST dataset as reference. In this work, we exploit these MNIST-like datasets for multi-task learning. The datasets are pooled together for learning the parameters of joint classification networks. Then the learned parameters are used as the initial parameters to retrain disjoint classification networks. The baseline recognition model are all-convolution neural networks. Without multi-task learning, the recognition accuracies for MNIST, NotMNIST and FashionMNIST are $9 9 . 5 6 \%$ , $9 7 . 2 2 \%$ and $9 4 . 3 2 \%$ respectively. With multi-task learning to pre-train the networks, the recognition accuracies are respectively $9 9 . 7 0 \%$ , $9 7 . 4 6 \%$ and $9 5 . 2 5 \%$ . The results re-affirm that multi-task learning framework, even with data with different genres, does lead to significant improvement.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Multi-task learning (Caruana (1998)) enjoys the idea of pooling information that can be learned from data collected for multiple related tasks. Multiple sources of information can stem from multiple datasets, or even a single dataset, for multiple tasks. In this work, we focus on the case of using multiple datasets for multiple tasks. Namely, we use MNIST, FashionMNIST, and NotMNIST image datasets collected for digit recognition, fashion item recognition, and letter recognition, respectively.
12
+
13
+ Information sharing in multi-task training can be achieved in various formality. For neural-network based deep learning, the sharing can happen at the input layer, the hidden layers, or the output layer. Input-layer multi-tasking combines heterogeneous input data, hidden-layer multi-tasking shares multiple groups of hidden layer units, and output-layer multi-tasking pools multiple output groups of categories. The implementation of a multi-task learning system depends on the data and the tasks at hand.
14
+
15
+ Multi-task learning has been successfully applied to many applications of machine learning, from natural language processing (Collobert & Weston (2008)) and speech recognition (Deng et al. (2013)) to computer vision (Ren et al. (2015)) and drug discovery (Ramsundar et al. (2015)). A recent review of multi-task learning in deep learning can be found in (Ruder (2017)).
16
+
17
+ # 2 MNIST DATASETS
18
+
19
+ # 2.1 MNIST
20
+
21
+ The MNIST dataset (LeCun et al. (1998)) consists of a training set of 60,000 images, and a test set of 10,000 images. MNIST is often referred to as the drosophila of machine learning, as it is an ideal testbed for new machine learning theories or methods on real-world data. Table 1 lists the state-of-the-art performance on MNIST dataset. A few examples of MNIST dataset are shown in Table 2, alongside with examples of the other MNIST-like datasets.
22
+
23
+ Table 1: Recognition error rates on MNIST task of state-of-the-art systems
24
+ Table 2: Image examples of MNIST-like datasets
25
+
26
+ <table><tr><td>Method</td><td>Error rate</td></tr><tr><td>Wan et al. (2013)</td><td>0.21%</td></tr><tr><td>Ciregan et al. (2012)</td><td>0.23%</td></tr><tr><td>Sato et al. (2015)</td><td>0.23%</td></tr><tr><td>Chang &amp; Chen (2015)</td><td>0.24%</td></tr></table>
27
+
28
+ # 2.2 FASHIONMNIST
29
+
30
+ Xiao et al. (2017) presents the FashionMNIST dataset. It consists of images from the assortment on Zalandos website. As given out by name, the configuration of the FashionMNIST dataset completely parallels the configuration of the MNIST dataset. FashionMNIST consists of a training set of 60,000 images and a test set of 10,000 images. Each image is a $2 8 \times 2 8$ grayscale image associated with a label from 10 classes. FashionMNIST poses a more challenging classification task than the MNIST digits data. A leaderboard for FashionMNIST has been created and maintained at https://github.com/zalandoresearch/fashion-mnist.
31
+
32
+ ![](images/5c5d0bb78bdb2914e2c8106fecbe3c63d4f1cf2198f2c63c498993d15754d522.jpg)
33
+
34
+ # 2.3 NOTMNIST
35
+
36
+ Bulatov (2011) presents the NotMIST dataset. NotMNIST dataset consists of more than 500k $2 8 \times 2 8$ greyscale images of English letters from $A$ to $J$ , including a small hand-cleaned subset and a large uncleaned subset. From the uncleaned subset, we randomly select 60,000 examples as train set and 10,000 examples as test set.
37
+
38
+ # 3 METHOD
39
+
40
+ In short, we apply multi-task learning to learn from the MNIST-like datasets to pre-train the parameters of the all-convolution neural networks for individual image recognition tasks. The overall framework is depicted in Figure 1.
41
+
42
+ ![](images/dd2a5e432453b5c842b9c8cf4f67007f96f30244bcf996cc624c9f58cdb9c61b.jpg)
43
+ Figure 1: The proposed multi-task learning framework
44
+
45
+ # 3.1 ALL-CONVOLUTION NEURAL NETWORKS
46
+
47
+ A convolutional neural networks (CNN) (LeCun et al. (1998)) usually consists of alternating convolution layers and pooling layers. In contrast, an all-convolution neural network (Springenberg et al. (2014)) replace pooling layers by convolution layers. A feature map f created at a convolution layer can be represented by a three-dimensional tensor of order $W \times H \times N$ , where $W$ and $H$ are the width and height, $N$ is the number of channels. A pooling operation with a size of $k \times k$ and a stride of $r$ applied to a three-dimensional tensor results in another tensor s with
48
+
49
+ $$
50
+ s _ { i , j , n } = \left( \sum _ { w = - \lfloor k / 2 \rfloor } ^ { \lfloor k / 2 \rfloor } \sum _ { h = - \lfloor k / 2 \rfloor } ^ { \lfloor k / 2 \rfloor } \left. f _ { r \cdot i + w , r \cdot j + h , n } \right. ^ { p } \right) ^ { 1 / p }
51
+ $$
52
+
53
+ where the first 2 subscripts index position in the map, and the third subscript indexed the channel. If a convolution operation with the same stride were applied to $\mathbf { f }$ , we would have a tensor $\mathbf { c }$ with
54
+
55
+ $$
56
+ c _ { i , j , o } = \sigma \left( \sum _ { w = - \lfloor k / 2 \rfloor } ^ { \lfloor k / 2 \rfloor } \sum _ { h = - \lfloor k / 2 \rfloor } ^ { \lfloor k / 2 \rfloor } \sum _ { n = 1 } ^ { N } t _ { w , h , n , o } f _ { r \cdot i + w , r \cdot j + h , n } \right)
57
+ $$
58
+
59
+ where $\mathbf { t }$ is the convolution kernel tensor, and $\sigma ( \cdot )$ is an activation function. Thus, a pooling operation can be seen as a convolution operation with uniform kernel tensor and with $L ^ { p }$ -norm as the activation function.
60
+
61
+ # 4 EXPERIMENT
62
+
63
+ # 4.1 CLASSIFIER ARCHITECTURE AND MULTI-TASK LEARNING
64
+
65
+ The architecture of an all-convolution neural network for a single task is shown in Figure 2. The multi-task learning classifier has the same architecture as a single-task classifier except that the width of the output layer is proportional to the number of tasks. The target label is enhanced accordingly by zero-padding. As mentioned before, we combine the training data together, so that the training label dimension is increased from $[ 1 \times 1 0 ]$ to $[ 1 \times 2 0 ]$ by zero-padding. This is shown in Figure 3.
66
+
67
+ ![](images/ac23d7dabb36a6b95a776544ed2d7e602eeee03c2fb47483ca18f15b05732f49.jpg)
68
+ Figure 2: The architecture of an all-convolution neural network for a single task
69
+
70
+ ![](images/5f04f6f503b7669c78d2b79422ebfa31a22039d12bda9d76aa4b1e35e970d5b8.jpg)
71
+ Figure 3: The architecture of all-convolution neural network for multi-task learning
72
+
73
+ Multi-task learning with different combination of datasets are evaluated, namely 3 bi-task learning and 1 tri-task learning. For example, we combine the MNIST train dataset and FashionMNIST train dataset together. Thus, there are 120,000 examples to the bi-task learning network for MNIST and FashionMNIST. Each training example has an input image size of $2 8 \times 2 8$ and an output 1-hot vector size of 20.
74
+
75
+ Each network is trained with 50 epochs. A two-stage learning rate decay scheme is implemented. The initial learning rate is $1 0 ^ { - 3 }$ for the first stage of 25 epochs, and $1 0 ^ { - 5 }$ for the second stage of 25 epochs. When training a model, it is often recommended to lower the learning rate as the training progresses. So, we let learning rate decay in each epochs. The decay rate is $\frac { \mathbf { \bar { \rho } } _ { 1 } } { 1 + d \times n }$ where $d$ is the learning rate set in the begin divided by 25. $n$ is the number of current epochs. Figure 4 shows the learning rate scheme. The size of a mini-batch is set to 100, and the Adam optimizer is used.
76
+
77
+ When multi-task learning is complete, the parameters in the network is used to initialize single-task classifiers. Figure 5 illustrates how parameters are handed over. The single-task classifiers are then re-trained to perform their respective classification tasks.
78
+
79
+ ![](images/b29cbf66c659b1a0765c87255110fee722a9145d3f5c6e61aa9e32ecc4b603c9.jpg)
80
+ Figure 4: The learning rate scheme.
81
+
82
+ # 4.2 RESULTS
83
+
84
+ The experimental results are summarized in Table 3. We are happy to see that multi-task learning works, even though the MNIST, NotMNIST, and FashionMNIST datasets are images from totally different classes. The bi-task learning systems are always better than the single-task systems. Furthermore, the tri-task learning systems are the best, except for the MNIST $( 0 . 0 1 \%$ difference). The relative reduction in error rates by tri-task learning are respectively $3 1 . 8 \%$ for MNIST $( 9 9 . 5 6 \%$ to $9 9 . 7 0 \%$ ), $1 6 . 4 \%$ for FashionMNIST $( 9 4 . 3 2 \%$ to $9 5 . 2 5 \%$ ), and $8 . 6 \%$ for NotMNIST $( 9 7 . 2 2 \%$ to $9 7 . 4 6 \%$ ). The results confirm that multi-task learning is able to learn representation which is universal and robust to different tasks.
85
+
86
+ ![](images/d6df547dae357a04f5bf6418d55fbedf27c8ded7027bb51ff7a15333d33358fe.jpg)
87
+ Figure 5: Passing parameters from multi-task learning network to single-task networks
88
+
89
+ Table 3: Image recognition accuracy rates for MNIST tasks with multi-task learning
90
+
91
+ <table><tr><td>dataset</td><td>single-task</td><td>F+N</td><td>M+F</td><td>M+N</td><td>F+N+M</td></tr><tr><td>MNIST</td><td>99.56%</td><td></td><td>99.71%</td><td>99.70%</td><td>99.70%</td></tr><tr><td>NotMNIST</td><td>97.22%</td><td>97.38%</td><td></td><td>97.40%</td><td>97.46%</td></tr><tr><td>FashionMNIST</td><td>94.32%</td><td>95.20%</td><td>95.18%</td><td></td><td>95.25%</td></tr><tr><td></td><td></td><td></td><td></td><td>1</td><td></td></tr></table>
92
+
93
+ To better understand the effect of multi-task learning, we plot the distribution of the high dimensional-data of the classes by the $t$ -distributed stochastic neighbor embedding (t-SNE) (van der Maaten & Hinton (2008)). Figure 6 shows the t-SNE of the output values of several hidden layers of the classifiers. The separation between the learned class manifolds appears to increase with the integration of multi-task learning. The representation learned with multi-task learning in the loop looks better indeed.
94
+
95
+ # 5 CONCLUSION
96
+
97
+ In this paper, we use multi-task learning in pre-training an all-convolution neural network model. We pass the parameters of trained multi-task models to single-task models. Evaluation on MNISTlike datasets show that using multi-task learning can improve image recognition accuracy. The more data we use, the better results we get. This agrees with statistical learning theory that using more data reduces the generalization gap, thus improving test set performance, even if the data comes from a different domain. The classification tasks of the images of digits, letters, and fashion items share parts of their hierarchical representations. By multi-task learning, it is possible to make such common representation robust to help individual classification tasks.
98
+
99
+ ![](images/3e0390dfaf853045e89c03ded997c69f36c15fe35724b5b063088a7dcb6a5c9f.jpg)
100
+ Figure 6: Visualization of data manifolds with t-SNE. The left column is the case with multi-task learning, and the right column is the case without multi-task learning.
101
+
102
+ # REFERENCES
103
+
104
+ Yaroslav Bulatov. Notmnist dataset. Available at: http://yaroslavvb. blogspot. it/2011/09/notmnistdataset. html, 2011.
105
+
106
+ Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998.
107
+
108
+ Jia-Ren Chang and Yong-Sheng Chen. Batch-normalized maxout network in network. arXiv preprint arXiv:1511.02583, 2015.
109
+
110
+ Dan Ciregan, Ueli Meier, and Jurgen Schmidhuber. Multi-column deep neural networks for image ¨ classification. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3642–3649, 2012.
111
+
112
+ Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th International Conference on Machine Learning, pp. 160–167, 2008.
113
+
114
+ Li Deng, Geoffrey Hinton, and Brian Kingsbury. New types of deep neural network learning for speech recognition and related applications: An overview. In Proceedings of the IEEE Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 8599–8603, 2013.
115
+
116
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
117
+
118
+ Bharath Ramsundar, Steven Kearnes, Patrick Riley, Dale Webster, David Konerding, and Vijay Pande. Massively multitask networks for drug discovery. arXiv preprint arXiv:1502.02072, 2015.
119
+
120
+ Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In Proceedings of the Advances in Neural Information Processing Systems, pp. 91–99, 2015.
121
+
122
+ Sebastian Ruder. An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098, 2017.
123
+
124
+ Ikuro Sato, Hiroki Nishimura, and Kensuke Yokoi. Apac: Augmented pattern classification with neural networks. arXiv preprint arXiv:1505.03229, 2015.
125
+
126
+ Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014.
127
+
128
+ L.J.P. van der Maaten and G.E. Hinton. Visualizing high-dimensional data using t-SNE. Machine Learning Research, 9:2579–2605, 2008.
129
+
130
+ Li Wan, Matthew Zeiler, Sixin Zhang, Yann LeCun, and Rob Fergus. Regularization of neural networks using dropconnect. In Proceedings of the 30th international conference on machine learning (ICML), pp. 1058–1066, 2013.
131
+
132
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
parse/train/S1PWi_lC-/S1PWi_lC-_content_list.json ADDED
@@ -0,0 +1,728 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "MULTI-TASK LEARNING ON MNIST IMAGE DATASETS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 820,
10
+ 121
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
+ 398,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 209,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We apply multi-task learning to image classification tasks on MNIST-like datasets. MNIST dataset has been referred to as the drosophila of machine learning and has been the testbed of many learning theories. The NotMNIST dataset and the FashionMNIST dataset have been created with the MNIST dataset as reference. In this work, we exploit these MNIST-like datasets for multi-task learning. The datasets are pooled together for learning the parameters of joint classification networks. Then the learned parameters are used as the initial parameters to retrain disjoint classification networks. The baseline recognition model are all-convolution neural networks. Without multi-task learning, the recognition accuracies for MNIST, NotMNIST and FashionMNIST are $9 9 . 5 6 \\%$ , $9 7 . 2 2 \\%$ and $9 4 . 3 2 \\%$ respectively. With multi-task learning to pre-train the networks, the recognition accuracies are respectively $9 9 . 7 0 \\%$ , $9 7 . 4 6 \\%$ and $9 5 . 2 5 \\%$ . The results re-affirm that multi-task learning framework, even with data with different genres, does lead to significant improvement. ",
40
+ "bbox": [
41
+ 233,
42
+ 250,
43
+ 764,
44
+ 444
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 489,
55
+ 336,
56
+ 506
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Multi-task learning (Caruana (1998)) enjoys the idea of pooling information that can be learned from data collected for multiple related tasks. Multiple sources of information can stem from multiple datasets, or even a single dataset, for multiple tasks. In this work, we focus on the case of using multiple datasets for multiple tasks. Namely, we use MNIST, FashionMNIST, and NotMNIST image datasets collected for digit recognition, fashion item recognition, and letter recognition, respectively. ",
63
+ "bbox": [
64
+ 174,
65
+ 529,
66
+ 823,
67
+ 599
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Information sharing in multi-task training can be achieved in various formality. For neural-network based deep learning, the sharing can happen at the input layer, the hidden layers, or the output layer. Input-layer multi-tasking combines heterogeneous input data, hidden-layer multi-tasking shares multiple groups of hidden layer units, and output-layer multi-tasking pools multiple output groups of categories. The implementation of a multi-task learning system depends on the data and the tasks at hand. ",
74
+ "bbox": [
75
+ 174,
76
+ 606,
77
+ 823,
78
+ 689
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Multi-task learning has been successfully applied to many applications of machine learning, from natural language processing (Collobert & Weston (2008)) and speech recognition (Deng et al. (2013)) to computer vision (Ren et al. (2015)) and drug discovery (Ramsundar et al. (2015)). A recent review of multi-task learning in deep learning can be found in (Ruder (2017)). ",
85
+ "bbox": [
86
+ 174,
87
+ 696,
88
+ 825,
89
+ 752
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 MNIST DATASETS ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 176,
99
+ 784,
100
+ 362,
101
+ 801
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "2.1 MNIST ",
108
+ "text_level": 1,
109
+ "bbox": [
110
+ 174,
111
+ 821,
112
+ 269,
113
+ 837
114
+ ],
115
+ "page_idx": 0
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "The MNIST dataset (LeCun et al. (1998)) consists of a training set of 60,000 images, and a test set of 10,000 images. MNIST is often referred to as the drosophila of machine learning, as it is an ideal testbed for new machine learning theories or methods on real-world data. Table 1 lists the state-of-the-art performance on MNIST dataset. A few examples of MNIST dataset are shown in Table 2, alongside with examples of the other MNIST-like datasets. ",
120
+ "bbox": [
121
+ 176,
122
+ 853,
123
+ 823,
124
+ 922
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "table",
130
+ "img_path": "images/e8eeaffd3016938251eb0545e558abe870de0f421566692218898bdc8a977d42.jpg",
131
+ "table_caption": [
132
+ "Table 1: Recognition error rates on MNIST task of state-of-the-art systems ",
133
+ "Table 2: Image examples of MNIST-like datasets "
134
+ ],
135
+ "table_footnote": [],
136
+ "table_body": "<table><tr><td>Method</td><td>Error rate</td></tr><tr><td>Wan et al. (2013)</td><td>0.21%</td></tr><tr><td>Ciregan et al. (2012)</td><td>0.23%</td></tr><tr><td>Sato et al. (2015)</td><td>0.23%</td></tr><tr><td>Chang &amp; Chen (2015)</td><td>0.24%</td></tr></table>",
137
+ "bbox": [
138
+ 367,
139
+ 131,
140
+ 629,
141
+ 218
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "2.2 FASHIONMNIST ",
148
+ "text_level": 1,
149
+ "bbox": [
150
+ 174,
151
+ 252,
152
+ 333,
153
+ 267
154
+ ],
155
+ "page_idx": 1
156
+ },
157
+ {
158
+ "type": "text",
159
+ "text": "Xiao et al. (2017) presents the FashionMNIST dataset. It consists of images from the assortment on Zalandos website. As given out by name, the configuration of the FashionMNIST dataset completely parallels the configuration of the MNIST dataset. FashionMNIST consists of a training set of 60,000 images and a test set of 10,000 images. Each image is a $2 8 \\times 2 8$ grayscale image associated with a label from 10 classes. FashionMNIST poses a more challenging classification task than the MNIST digits data. A leaderboard for FashionMNIST has been created and maintained at https://github.com/zalandoresearch/fashion-mnist. ",
160
+ "bbox": [
161
+ 173,
162
+ 280,
163
+ 825,
164
+ 377
165
+ ],
166
+ "page_idx": 1
167
+ },
168
+ {
169
+ "type": "image",
170
+ "img_path": "images/5c5d0bb78bdb2914e2c8106fecbe3c63d4f1cf2198f2c63c498993d15754d522.jpg",
171
+ "image_caption": [],
172
+ "image_footnote": [],
173
+ "bbox": [
174
+ 279,
175
+ 422,
176
+ 717,
177
+ 704
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "2.3 NOTMNIST ",
184
+ "text_level": 1,
185
+ "bbox": [
186
+ 174,
187
+ 739,
188
+ 300,
189
+ 755
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Bulatov (2011) presents the NotMIST dataset. NotMNIST dataset consists of more than 500k $2 8 \\times 2 8$ greyscale images of English letters from $A$ to $J$ , including a small hand-cleaned subset and a large uncleaned subset. From the uncleaned subset, we randomly select 60,000 examples as train set and 10,000 examples as test set. ",
196
+ "bbox": [
197
+ 174,
198
+ 767,
199
+ 825,
200
+ 824
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "3 METHOD ",
207
+ "text_level": 1,
208
+ "bbox": [
209
+ 176,
210
+ 847,
211
+ 282,
212
+ 863
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "In short, we apply multi-task learning to learn from the MNIST-like datasets to pre-train the parameters of the all-convolution neural networks for individual image recognition tasks. The overall framework is depicted in Figure 1. ",
219
+ "bbox": [
220
+ 176,
221
+ 881,
222
+ 823,
223
+ 924
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "image",
229
+ "img_path": "images/dd2a5e432453b5c842b9c8cf4f67007f96f30244bcf996cc624c9f58cdb9c61b.jpg",
230
+ "image_caption": [
231
+ "Figure 1: The proposed multi-task learning framework "
232
+ ],
233
+ "image_footnote": [],
234
+ "bbox": [
235
+ 192,
236
+ 104,
237
+ 818,
238
+ 426
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "3.1 ALL-CONVOLUTION NEURAL NETWORKS ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 173,
248
+ 486,
249
+ 506,
250
+ 501
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "A convolutional neural networks (CNN) (LeCun et al. (1998)) usually consists of alternating convolution layers and pooling layers. In contrast, an all-convolution neural network (Springenberg et al. (2014)) replace pooling layers by convolution layers. A feature map f created at a convolution layer can be represented by a three-dimensional tensor of order $W \\times H \\times N$ , where $W$ and $H$ are the width and height, $N$ is the number of channels. A pooling operation with a size of $k \\times k$ and a stride of $r$ applied to a three-dimensional tensor results in another tensor s with ",
257
+ "bbox": [
258
+ 173,
259
+ 512,
260
+ 826,
261
+ 597
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "equation",
267
+ "img_path": "images/fdb9bf7614b27f5cc2e538cf67b4be6391455930356ef00fdf9cb1dcf3e88daa.jpg",
268
+ "text": "$$\ns _ { i , j , n } = \\left( \\sum _ { w = - \\lfloor k / 2 \\rfloor } ^ { \\lfloor k / 2 \\rfloor } \\sum _ { h = - \\lfloor k / 2 \\rfloor } ^ { \\lfloor k / 2 \\rfloor } \\left. f _ { r \\cdot i + w , r \\cdot j + h , n } \\right. ^ { p } \\right) ^ { 1 / p }\n$$",
269
+ "text_format": "latex",
270
+ "bbox": [
271
+ 325,
272
+ 603,
273
+ 673,
274
+ 659
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "where the first 2 subscripts index position in the map, and the third subscript indexed the channel. If a convolution operation with the same stride were applied to $\\mathbf { f }$ , we would have a tensor $\\mathbf { c }$ with ",
281
+ "bbox": [
282
+ 171,
283
+ 664,
284
+ 825,
285
+ 694
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "equation",
291
+ "img_path": "images/d41894f353c5f4242f9a88aeebf3cb489c32a246e0ad1a0d0b0a9b8fa2386d78.jpg",
292
+ "text": "$$\nc _ { i , j , o } = \\sigma \\left( \\sum _ { w = - \\lfloor k / 2 \\rfloor } ^ { \\lfloor k / 2 \\rfloor } \\sum _ { h = - \\lfloor k / 2 \\rfloor } ^ { \\lfloor k / 2 \\rfloor } \\sum _ { n = 1 } ^ { N } t _ { w , h , n , o } f _ { r \\cdot i + w , r \\cdot j + h , n } \\right)\n$$",
293
+ "text_format": "latex",
294
+ "bbox": [
295
+ 299,
296
+ 700,
297
+ 696,
298
+ 751
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "where $\\mathbf { t }$ is the convolution kernel tensor, and $\\sigma ( \\cdot )$ is an activation function. Thus, a pooling operation can be seen as a convolution operation with uniform kernel tensor and with $L ^ { p }$ -norm as the activation function. ",
305
+ "bbox": [
306
+ 174,
307
+ 758,
308
+ 825,
309
+ 801
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "4 EXPERIMENT ",
316
+ "text_level": 1,
317
+ "bbox": [
318
+ 174,
319
+ 823,
320
+ 316,
321
+ 838
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "4.1 CLASSIFIER ARCHITECTURE AND MULTI-TASK LEARNING ",
328
+ "text_level": 1,
329
+ "bbox": [
330
+ 173,
331
+ 854,
332
+ 620,
333
+ 869
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "The architecture of an all-convolution neural network for a single task is shown in Figure 2. The multi-task learning classifier has the same architecture as a single-task classifier except that the width of the output layer is proportional to the number of tasks. The target label is enhanced accordingly by zero-padding. As mentioned before, we combine the training data together, so that the training label dimension is increased from $[ 1 \\times 1 0 ]$ to $[ 1 \\times 2 0 ]$ by zero-padding. This is shown in Figure 3. ",
340
+ "bbox": [
341
+ 174,
342
+ 881,
343
+ 825,
344
+ 924
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "image",
350
+ "img_path": "images/ac23d7dabb36a6b95a776544ed2d7e602eeee03c2fb47483ca18f15b05732f49.jpg",
351
+ "image_caption": [
352
+ "Figure 2: The architecture of an all-convolution neural network for a single task "
353
+ ],
354
+ "image_footnote": [],
355
+ "bbox": [
356
+ 171,
357
+ 103,
358
+ 821,
359
+ 195
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "image",
365
+ "img_path": "images/5f04f6f503b7669c78d2b79422ebfa31a22039d12bda9d76aa4b1e35e970d5b8.jpg",
366
+ "image_caption": [
367
+ "Figure 3: The architecture of all-convolution neural network for multi-task learning "
368
+ ],
369
+ "image_footnote": [],
370
+ "bbox": [
371
+ 173,
372
+ 246,
373
+ 821,
374
+ 344
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "",
381
+ "bbox": [
382
+ 169,
383
+ 406,
384
+ 823,
385
+ 435
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Multi-task learning with different combination of datasets are evaluated, namely 3 bi-task learning and 1 tri-task learning. For example, we combine the MNIST train dataset and FashionMNIST train dataset together. Thus, there are 120,000 examples to the bi-task learning network for MNIST and FashionMNIST. Each training example has an input image size of $2 8 \\times 2 8$ and an output 1-hot vector size of 20. ",
392
+ "bbox": [
393
+ 173,
394
+ 441,
395
+ 825,
396
+ 511
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Each network is trained with 50 epochs. A two-stage learning rate decay scheme is implemented. The initial learning rate is $1 0 ^ { - 3 }$ for the first stage of 25 epochs, and $1 0 ^ { - 5 }$ for the second stage of 25 epochs. When training a model, it is often recommended to lower the learning rate as the training progresses. So, we let learning rate decay in each epochs. The decay rate is $\\frac { \\mathbf { \\bar { \\rho } } _ { 1 } } { 1 + d \\times n }$ where $d$ is the learning rate set in the begin divided by 25. $n$ is the number of current epochs. Figure 4 shows the learning rate scheme. The size of a mini-batch is set to 100, and the Adam optimizer is used. ",
403
+ "bbox": [
404
+ 173,
405
+ 517,
406
+ 825,
407
+ 603
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "When multi-task learning is complete, the parameters in the network is used to initialize single-task classifiers. Figure 5 illustrates how parameters are handed over. The single-task classifiers are then re-trained to perform their respective classification tasks. ",
414
+ "bbox": [
415
+ 176,
416
+ 609,
417
+ 823,
418
+ 652
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "image",
424
+ "img_path": "images/b29cbf66c659b1a0765c87255110fee722a9145d3f5c6e61aa9e32ecc4b603c9.jpg",
425
+ "image_caption": [
426
+ "Figure 4: The learning rate scheme. "
427
+ ],
428
+ "image_footnote": [],
429
+ "bbox": [
430
+ 199,
431
+ 666,
432
+ 797,
433
+ 808
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "4.2 RESULTS ",
440
+ "text_level": 1,
441
+ "bbox": [
442
+ 174,
443
+ 869,
444
+ 279,
445
+ 882
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "The experimental results are summarized in Table 3. We are happy to see that multi-task learning works, even though the MNIST, NotMNIST, and FashionMNIST datasets are images from totally different classes. The bi-task learning systems are always better than the single-task systems. Furthermore, the tri-task learning systems are the best, except for the MNIST $( 0 . 0 1 \\%$ difference). The relative reduction in error rates by tri-task learning are respectively $3 1 . 8 \\%$ for MNIST $( 9 9 . 5 6 \\%$ to $9 9 . 7 0 \\%$ ), $1 6 . 4 \\%$ for FashionMNIST $( 9 4 . 3 2 \\%$ to $9 5 . 2 5 \\%$ ), and $8 . 6 \\%$ for NotMNIST $( 9 7 . 2 2 \\%$ to $9 7 . 4 6 \\%$ ). The results confirm that multi-task learning is able to learn representation which is universal and robust to different tasks. ",
452
+ "bbox": [
453
+ 176,
454
+ 895,
455
+ 823,
456
+ 924
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "image",
462
+ "img_path": "images/d6df547dae357a04f5bf6418d55fbedf27c8ded7027bb51ff7a15333d33358fe.jpg",
463
+ "image_caption": [
464
+ "Figure 5: Passing parameters from multi-task learning network to single-task networks "
465
+ ],
466
+ "image_footnote": [],
467
+ "bbox": [
468
+ 210,
469
+ 101,
470
+ 787,
471
+ 351
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "table",
477
+ "img_path": "images/c56a9f0540db3bde08c24642604d54b2a4381462e08b451d2143ab02cb164068.jpg",
478
+ "table_caption": [
479
+ "Table 3: Image recognition accuracy rates for MNIST tasks with multi-task learning "
480
+ ],
481
+ "table_footnote": [],
482
+ "table_body": "<table><tr><td>dataset</td><td>single-task</td><td>F+N</td><td>M+F</td><td>M+N</td><td>F+N+M</td></tr><tr><td>MNIST</td><td>99.56%</td><td></td><td>99.71%</td><td>99.70%</td><td>99.70%</td></tr><tr><td>NotMNIST</td><td>97.22%</td><td>97.38%</td><td></td><td>97.40%</td><td>97.46%</td></tr><tr><td>FashionMNIST</td><td>94.32%</td><td>95.20%</td><td>95.18%</td><td></td><td>95.25%</td></tr><tr><td></td><td></td><td></td><td></td><td>1</td><td></td></tr></table>",
483
+ "bbox": [
484
+ 245,
485
+ 428,
486
+ 753,
487
+ 503
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "",
494
+ "bbox": [
495
+ 174,
496
+ 534,
497
+ 825,
498
+ 617
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "To better understand the effect of multi-task learning, we plot the distribution of the high dimensional-data of the classes by the $t$ -distributed stochastic neighbor embedding (t-SNE) (van der Maaten & Hinton (2008)). Figure 6 shows the t-SNE of the output values of several hidden layers of the classifiers. The separation between the learned class manifolds appears to increase with the integration of multi-task learning. The representation learned with multi-task learning in the loop looks better indeed. ",
505
+ "bbox": [
506
+ 174,
507
+ 623,
508
+ 825,
509
+ 708
510
+ ],
511
+ "page_idx": 4
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "5 CONCLUSION ",
516
+ "text_level": 1,
517
+ "bbox": [
518
+ 176,
519
+ 728,
520
+ 318,
521
+ 744
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "In this paper, we use multi-task learning in pre-training an all-convolution neural network model. We pass the parameters of trained multi-task models to single-task models. Evaluation on MNISTlike datasets show that using multi-task learning can improve image recognition accuracy. The more data we use, the better results we get. This agrees with statistical learning theory that using more data reduces the generalization gap, thus improving test set performance, even if the data comes from a different domain. The classification tasks of the images of digits, letters, and fashion items share parts of their hierarchical representations. By multi-task learning, it is possible to make such common representation robust to help individual classification tasks. ",
528
+ "bbox": [
529
+ 174,
530
+ 760,
531
+ 825,
532
+ 872
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "image",
538
+ "img_path": "images/3e0390dfaf853045e89c03ded997c69f36c15fe35724b5b063088a7dcb6a5c9f.jpg",
539
+ "image_caption": [
540
+ "Figure 6: Visualization of data manifolds with t-SNE. The left column is the case with multi-task learning, and the right column is the case without multi-task learning. "
541
+ ],
542
+ "image_footnote": [],
543
+ "bbox": [
544
+ 264,
545
+ 104,
546
+ 735,
547
+ 491
548
+ ],
549
+ "page_idx": 5
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "REFERENCES ",
554
+ "text_level": 1,
555
+ "bbox": [
556
+ 176,
557
+ 565,
558
+ 285,
559
+ 580
560
+ ],
561
+ "page_idx": 5
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Yaroslav Bulatov. Notmnist dataset. Available at: http://yaroslavvb. blogspot. it/2011/09/notmnistdataset. html, 2011. ",
566
+ "bbox": [
567
+ 176,
568
+ 589,
569
+ 823,
570
+ 617
571
+ ],
572
+ "page_idx": 5
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998. ",
577
+ "bbox": [
578
+ 174,
579
+ 628,
580
+ 727,
581
+ 643
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "Jia-Ren Chang and Yong-Sheng Chen. Batch-normalized maxout network in network. arXiv preprint arXiv:1511.02583, 2015. ",
588
+ "bbox": [
589
+ 169,
590
+ 655,
591
+ 823,
592
+ 684
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Dan Ciregan, Ueli Meier, and Jurgen Schmidhuber. Multi-column deep neural networks for image ¨ classification. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3642–3649, 2012. ",
599
+ "bbox": [
600
+ 174,
601
+ 694,
602
+ 826,
603
+ 737
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th International Conference on Machine Learning, pp. 160–167, 2008. ",
610
+ "bbox": [
611
+ 173,
612
+ 748,
613
+ 826,
614
+ 791
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Li Deng, Geoffrey Hinton, and Brian Kingsbury. New types of deep neural network learning for speech recognition and related applications: An overview. In Proceedings of the IEEE Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 8599–8603, 2013. ",
621
+ "bbox": [
622
+ 174,
623
+ 801,
624
+ 823,
625
+ 845
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
632
+ "bbox": [
633
+ 173,
634
+ 856,
635
+ 823,
636
+ 885
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "Bharath Ramsundar, Steven Kearnes, Patrick Riley, Dale Webster, David Konerding, and Vijay Pande. Massively multitask networks for drug discovery. arXiv preprint arXiv:1502.02072, 2015. ",
643
+ "bbox": [
644
+ 176,
645
+ 895,
646
+ 823,
647
+ 924
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In Proceedings of the Advances in Neural Information Processing Systems, pp. 91–99, 2015. ",
654
+ "bbox": [
655
+ 176,
656
+ 103,
657
+ 823,
658
+ 146
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Sebastian Ruder. An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098, 2017. ",
665
+ "bbox": [
666
+ 171,
667
+ 155,
668
+ 823,
669
+ 184
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Ikuro Sato, Hiroki Nishimura, and Kensuke Yokoi. Apac: Augmented pattern classification with neural networks. arXiv preprint arXiv:1505.03229, 2015. ",
676
+ "bbox": [
677
+ 171,
678
+ 193,
679
+ 823,
680
+ 222
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014. ",
687
+ "bbox": [
688
+ 171,
689
+ 229,
690
+ 823,
691
+ 260
692
+ ],
693
+ "page_idx": 6
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "L.J.P. van der Maaten and G.E. Hinton. Visualizing high-dimensional data using t-SNE. Machine Learning Research, 9:2579–2605, 2008. ",
698
+ "bbox": [
699
+ 169,
700
+ 267,
701
+ 823,
702
+ 296
703
+ ],
704
+ "page_idx": 6
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "Li Wan, Matthew Zeiler, Sixin Zhang, Yann LeCun, and Rob Fergus. Regularization of neural networks using dropconnect. In Proceedings of the 30th international conference on machine learning (ICML), pp. 1058–1066, 2013. ",
709
+ "bbox": [
710
+ 176,
711
+ 305,
712
+ 823,
713
+ 348
714
+ ],
715
+ "page_idx": 6
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. ",
720
+ "bbox": [
721
+ 174,
722
+ 357,
723
+ 821,
724
+ 387
725
+ ],
726
+ "page_idx": 6
727
+ }
728
+ ]
parse/train/S1PWi_lC-/S1PWi_lC-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1PWi_lC-/S1PWi_lC-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJc1hL5ee/SJc1hL5ee.md ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FASTTEXT.ZIP: COMPRESSING TEXT CLASSIFICATION MODELS
2
+
3
+ Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, Herve J ´ egou & Tomas Mikolov ´ Facebook AI Research {ajoulin,egrave,bojanowski,matthijs,rvj,tmikolov}@fb.com
4
+
5
+ # ABSTRACT
6
+
7
+ We consider the problem of producing compact architectures for text classification, such that the full model fits in a limited amount of memory. After considering different solutions inspired by the hashing literature, we propose a method built upon product quantization to store word embeddings. While the original technique leads to a loss in accuracy, we adapt this method to circumvent quantization artefacts. Combined with simple approaches specifically adapted to text classification, our approach derived from fastText requires, at test time, only a fraction of the memory compared to the original FastText, without noticeably sacrificing quality in terms of classification accuracy. Our experiments carried out on several benchmarks show that our approach typically requires two orders of magnitude less memory than fastText while being only slightly inferior with respect to accuracy. As a result, it outperforms the state of the art by a good margin in terms of the compromise between memory usage and accuracy.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Text classification is an important problem in Natural Language Processing (NLP). Real world usecases include spam filtering or e-mail categorization. It is a core component in more complex systems such as search and ranking. Recently, deep learning techniques based on neural networks have achieved state of the art results in various NLP applications. One of the main successes of deep learning is due to the effectiveness of recurrent networks for language modeling and their application to speech recognition and machine translation (Mikolov, 2012). However, in other cases including several text classification problems, it has been shown that deep networks do not convincingly beat the prior state of the art techniques (Wang & Manning, 2012; Joulin et al., 2016).
12
+
13
+ In spite of being (typically) orders of magnitude slower to train than traditional techniques based on n-grams, neural networks are often regarded as a promising alternative due to compact model sizes, in particular for character based models. This is important for applications that need to run on systems with limited memory such as smartphones.
14
+
15
+ This paper specifically addresses the compromise between classification accuracy and the model size. We extend our previous work implemented in the fastText library1. It is based on n-gram features, dimensionality reduction, and a fast approximation of the softmax classifier (Joulin et al., 2016). We show that a few key ingredients, namely feature pruning, quantization, hashing, and retraining, allow us to produce text classification models with tiny size, often less than 100kB when trained on several popular datasets, without noticeably sacrificing accuracy or speed.
16
+
17
+ We plan to publish the code and scripts required to reproduce our results as an extension of the fastText library, thereby providing strong reproducible baselines for text classifiers that optimize the compromise between the model size and accuracy. We hope that this will help the engineering community to improve existing applications by using more efficient models.
18
+
19
+ This paper is organized as follows. Section 2 introduces related work, Section 3 describes our text classification model and explains how we drastically reduce the model size. Section 4 shows the effectiveness of our approach in experiments on multiple text classification benchmarks.
20
+
21
+ # 2 RELATED WORK
22
+
23
+ Models for text classification. Text classification is a problem that has its roots in many applications such as web search, information retrieval and document classification (Deerwester et al., 1990; Pang & Lee, 2008). Linear classifiers often obtain state-of-the-art performance while being scalable (Agarwal et al., 2014; Joachims, 1998; Joulin et al., 2016; McCallum & Nigam, 1998). They are particularly interesting when associated with the right features (Wang & Manning, 2012). They usually require storing embeddings for words and n-grams, which makes them memory inefficient.
24
+
25
+ Compression of language models. Our work is related to compression of statistical language models. Classical approaches include feature pruning based on entropy (Stolcke, 2000) and quantization. Pruning aims to keep only the most important n-grams in the model, leaving out those with probability lower than a specified threshold. Further, the individual n-grams can be compressed by quantizing the probability value, and by storing the n-gram itself more efficiently than as a sequence of characters. Various strategies have been developed, for example using tree structures or hash functions, and are discussed in (Talbot & Brants, 2008).
26
+
27
+ Compression for similarity estimation and search. There is a large body of literature on how to compress a set of vectors into compact codes, such that the comparison of two codes approximates a target similarity in the original space. The typical use-case of these methods considers an indexed dataset of compressed vectors, and a query for which we want to find the nearest neighbors in the indexed set. One of the most popular is Locality-sensitive hashing (LSH) by Charikar (2002), which is a binarization technique based on random projections that approximates the cosine similarity between two vectors through a monotonous function of the Hamming distance between the two corresponding binary codes. In our paper, LSH refers to this binarization strategy2. Many subsequent works have improved this initial binarization technique, such as spectal hashing (Weiss et al., 2009), or Iterative Quantization (ITQ) (Gong & Lazebnik, 2011), which learns a rotation matrix minimizing the quantization loss of the binarization. We refer the reader to two recent surveys by Wang et al. (2014) and Wang et al. (2015) for an overview of the binary hashing literature.
28
+
29
+ Beyond these binarization strategies, more general quantization techniques derived from Jegou et al. (2011) offer better trade-offs between memory and the approximation of a distance estimator. The Product Quantization (PQ) method approximates the distances by calculating, in the compressed domain, the distance between their quantized approximations. This method is statistically guaranteed to preserve the Euclidean distance between the vectors within an error bound directly related to the quantization error. The original PQ has been concurrently improved by Ge et al. (2013) and Norouzi & Fleet (2013), who learn an orthogonal transform minimizing the overall quantization loss. In our paper, we will consider the Optimized Product Quantization (OPQ) variant (Ge et al., 2013).
30
+
31
+ Softmax approximation The aforementioned works approximate either the Euclidean distance or the cosine similarity (both being equivalent in the case of unit-norm vectors). However, in the context of fastText, we are specifically interested in approximating the maximum inner product involved in a softmax layer. Several approaches derived from LSH have been recently proposed to achieve this goal, such as Asymmetric LSH by Shrivastava & Li (2014), subsequently discussed by Neyshabur & Srebro (2015). In our work, since we are not constrained to purely binary codes, we resort a more traditional encoding by employing a magnitude/direction parametrization of our vectors. Therefore we only need to encode/compress an unitary d-dimensional vector, which fits the aforementioned LSH and PQ methods well.
32
+
33
+ Neural network compression models. Recently, several research efforts have been conducted to compress the parameters of architectures involved in computer vision, namely for state-of-theart Convolutional Neural Networks (CNNs) (Han et al., 2016; Lin et al., 2015). Some use vector quantization (Gong et al., 2014) while others binarize the network (Courbariaux et al., 2016). Denil et al. (2013) show that such classification models are easily compressed because they are overparametrized, which concurs with early observations by LeCun et al. (1990).
34
+
35
+ Some of these works both aim at reducing the model size and the speed. In our case, since the fastText classifier on which our proposal is built upon is already very efficient, we are primilarly interested in reducing the size of the model while keeping a comparable classification efficiency.
36
+
37
+ # 3 PROPOSED APPROACH
38
+
39
+ # 3.1 TEXT CLASSIFICATION
40
+
41
+ In the context of text classification, linear classifiers (Joulin et al., 2016) remain competitive with more sophisticated, deeper models, and are much faster to train. On top of standard tricks commonly used in linear text classification (Agarwal et al., 2014; Wang & Manning, 2012; Weinberger et al., 2009), Joulin et al. (2016) use a low rank constraint to reduce the computation burden while sharing information between different classes. This is especially useful in the case of a large output space, where rare classes may have only a few training examples. In this paper, we focus on a similar model, that is, which minimizes the softmax loss $\ell$ over $N$ documents:
42
+
43
+ $$
44
+ \sum _ { n = 1 } ^ { N } \ell ( y _ { n } , B A x _ { n } ) ,
45
+ $$
46
+
47
+ where $x _ { n }$ is a bag of one-hot vectors and $y _ { n }$ the label of the $n$ -th document. In the case of a large vocabulary and a large output space, the matrices $A$ and $B$ are big and can require gigabytes of memory. Below, we describe how we reduce this memory usage.
48
+
49
+ # 3.2 BOTTOM-UP PRODUCT QUANTIZATION
50
+
51
+ Product quantization is a popular method for compressed-domain approximate nearest neighbor search (Jegou et al., 2011). As a compression technique, it approximates a real-valued vector by finding the closest vector in a pre-defined structured set of centroids, referred to as a codebook. This codebook is not enumerated, since it is extremely large. Instead it is implicitly defined by its structure: a $d$ -dimensional vector $x \in \mathbb { R } ^ { d }$ is approximated as
52
+
53
+ $$
54
+ \hat { x } = \sum _ { i = 1 } ^ { k } q _ { i } ( x ) ,
55
+ $$
56
+
57
+ where the different subquantizers $q _ { i } : x \mapsto q _ { i } ( x )$ are complementary in the sense that their respective centroids lie in distinct orthogonal subspaces, i.e., $\forall i \neq j$ , $\forall x , y$ , $\langle q _ { i } ( x ) | q _ { j } ( y ) \rangle = 0$ . In the original PQ, the subspaces are aligned with the natural axis, while OPQ learns a rotation, which amounts to alleviating this constraint and to not depend on the original coordinate system. Another way to see this is to consider that PQ splits a given vector $x$ into $k$ subvectors $x ^ { i }$ , $i \stackrel { \cdot } { = } 1 \ldots k$ , each of dimension $d / k$ : $x = [ x ^ { 1 } \dots x ^ { i } \dots x ^ { k } ]$ , and quantizes each sub-vector using a distinct $\mathbf { k }$ -means quantizer. Each subvector $x ^ { i }$ is thus mapped to the closest centroid amongst $2 ^ { b }$ centroids, where $b$ is the number of bits required to store the quantization index of the subquantizer, typically $b = 8$ . The reconstructed vector can take $2 ^ { k b }$ distinct reproduction values, and is stored in $k b$ bits.
58
+
59
+ PQ estimates the inner product in the compressed domain as
60
+
61
+ $$
62
+ \boldsymbol { x } ^ { \top } \boldsymbol { y } \approx \hat { \boldsymbol { x } } ^ { \top } \boldsymbol { y } = \sum _ { i = 1 } ^ { k } q _ { i } ( \boldsymbol { x } ^ { i } ) ^ { \top } \boldsymbol { y } ^ { i } .
63
+ $$
64
+
65
+ This is a straightforward extension of the square L2 distance estimation of Jegou et al. (2011). In practice, the vector estimate $\hat { x }$ is trivially reconstructed from the codes, i.e., from the quantization indexes, by concatenating these centroids.
66
+
67
+ The two parameters involved in PQ, namely the number of subquantizers $k$ and the number of bits $b$ per quantization index, are typically set to $\dot { k } \in [ 2 , d / 2 ]$ , and $b = 8$ to ensure byte-alignment.
68
+
69
+ Discussion. PQ offers several interesting properties in our context of text classification. Firstly, the training is very fast because the subquantizers have a small number of centroids, i.e., 256 centroids for $b = 8$ . Secondly, at test time it allows the reconstruction of the vectors with almost no computational and memory overhead. Thirdly, it has been successfully applied in computer vision, offering much better performance than binary codes, which makes it a natural candidate to compress relatively shallow models. As observed by Sanchez & Perronnin (2011), using PQ just before the ´ last layer incurs a very limited loss in accuracy when combined with a support vector machine.
70
+
71
+ In the context of text classification, the norms of the vectors are widely spread, typically with a ratio of 1000 between the max and the min. Therefore kmeans performs poorly because it optimizes an absolute error objective, so it maps all low-norm vectors to 0. A simple solution is to separate the norm and the angle of the vectors and to quantize them separately. This allows a quantization with no loss of performance, yet requires an extra $b$ bits per vector.
72
+
73
+ Bottom-up strategy: re-training. The first works aiming at compressing CNN models like the one proposed by (Gong et al., 2014) used the reconstruction from off-the-shelf PQ, i.e., without any re-training. However, as observed in Sablayrolles et al. (2016), when using quantization methods like PQ, it is better to re-train the layers occurring after the quantization, so that the network can re-adjust itself to the quantization. There is a strong argument arguing for this re-training strategy: the square magnitude of vectors is reduced, on average, by the average quantization error for any quantizer satisfying the Lloyd conditions; see Jegou et al. (2011) for details.
74
+
75
+ This suggests a bottom-up learning strategy where we first quantize the input matrix, then retrain and quantize the output matrix (the input matrix being frozen). Experiments in section 4 show that it is worth adopting this strategy.
76
+
77
+ Memory savings with PQ. In practice, the bottom-up PQ strategy offers a compression factor of 10 without any noticeable loss of performance. Without re-training, we notice a drop in accuracy between $0 . 1 \%$ and $0 . 5 \%$ , depending on the dataset and setting; see Section 4 and the appendix.
78
+
79
+ # 3.3 FURTHER TEXT SPECIFIC TRICKS
80
+
81
+ The memory usage strongly depends on the size of the vocabulary, which can be large in many text classification tasks. While it is clear that a large part of the vocabulary is useless or redundant, directly reducing the vocabulary to the most frequent words is not satisfactory: most of the frequent words, like “the” or “is” are not discriminative, in contrast to some rare words, e.g., in the context of tag prediction. In this section, we discuss a few heuristics to reduce the space taken by the dictionary. They lead to major memory reduction, in extreme cases by a factor 100. We experimentally show that this drastic reduction is complementary with the PQ compression method, meaning that the combination of both strategies reduces the model size by a factor up to $\times 1 0 0 0$ for some datasets.
82
+
83
+ Pruning the vocabulary. Discovering which word or n-gram must be kept to preserve the overall performance is a feature selection problem. While many approaches have been proposed to select groups of variables during training (Bach et al., 2012; Meier et al., 2008), we are interested in selecting a fixed subset of $K$ words and ngrams from a pre-trained model. This can be achieved by selecting the $K$ embeddings that preserve as much of the model as possible, which can be reduced to selecting the $K$ words and ngrams associated with the highest norms.
84
+
85
+ While this approach offers major memory savings, it has one drawback occurring in some particular cases: some documents may not contained any of the $K$ best features, leading to a significant drop in performance. It is thus important to keep the $K$ best features under the condition that they cover the whole training set. More formally, the problem is to find a subset $s$ in the feature set $\nu$ that maximizes the sum of their norms $w _ { s }$ under the constraint that all the documents in the training set $\mathcal { D }$ are covered:
86
+
87
+ $$
88
+ \operatorname* { m a x } _ { S \subseteq \mathcal { V } } \sum _ { s \in \cal { S } } w _ { s } \quad \mathrm { ~ s . t . ~ } \quad | S | \leq K , P 1 _ { \cal { S } } \geq 1 _ { \cal { D } } ,
89
+ $$
90
+
91
+ where $P$ is a matrix such that $P _ { d s } = 1$ if the $s$ -th feature is in the $d$ -th document, and 0 otherwise. This problem is directly related to set covering problems that are NP-hard (Feige, 1998). Standard greedy approaches require the storing of an inverted index or to do multiple passes over the dataset, which is prohibitive on very large dataset (Chierichetti et al., 2010). This problem can be cast as an instance of online submodular maximization with a rank constraint (Badanidiyuru et al., 2014;
92
+
93
+ ![](images/15d78f88290b96691cc9018373eef6a0532bbee755b0815e5eb2080d3353a831.jpg)
94
+ Figure 1: Accuracy as a function of the memory per vector/embedding on 3 datasets from Zhang et al. (2015). Note, an extra byte is required when we encode the norm explicitly (”norm”).
95
+
96
+ Bateni et al., 2010). In our case, we use a simple online parallelizable greedy approach: For each document, we verify if it is already covered by a retained feature and, if not, we add the feature with the highest norm to our set of retained features. If the number of features is below $k$ , we add the features with the highest norm that have not yet been picked.
97
+
98
+ Hashing trick & Bloom filter. On small models, the dictionary can take a significant portion of the memory. Instead of saving it, we extend the hashing trick used in Joulin et al. (2016) to both words and n-grams. This strategy is also used in Vowpal Wabbit (Agarwal et al., 2014) in the context of online training. This allows us to save around 1-2Mb with almost no overhead at test time (just the cost of computing the hashing function).
99
+
100
+ Pruning the vocabulary while using the hashing trick requires keeping a list of the indices of the $K$ remaining buckets. At test time, a binary search over the list of indices is required. It has a complexity of $O ( \log ( K ) )$ and a memory overhead of a few hundreds of kilobytes. Using Bloom filters instead reduces the complexity $\mathcal { O } ( 1 )$ at test time and saves a few hundred kilobytes. However, in practice, it degrades performance.
101
+
102
+ # 4 EXPERIMENTS
103
+
104
+ This section evaluates the quality of our model compression pipeline and compare it to other compression methods on different text classification problems, and to other compact text classifiers.
105
+
106
+ Evaluation protocol and datasets. Our experimental pipeline is as follows: we train a model using fastText with the default setting unless specified otherwise. That is 2M buckets, a learning rate of 0.1 and 10 training epochs. The dimensionality $d$ of the embeddings is set to powers of 2 to avoid border effects that could make the interpretation of the results more difficult. As baselines, we use Locality-Sensitive Hashing (LSH) (Charikar, 2002), PQ (Jegou et al., 2011) and OPQ (Ge et al., 2013) (the non-parametric variant). Note that we use an improved version of LSH where random orthogonal matrices are used instead of random matrix projection Jegou et al. (2008). In a first ´ series of experiments, we use the 8 datasets and evaluation protocol of Zhang et al. (2015). These datasets contain few million documents and have at most 10 classes. We also explore the limit of quantization on a dataset with an extremely large output space, that is a tag dataset extracted from the YFCC100M collection (Thomee et al., 2016)3, referred to as FlickrTag in the rest of this paper.
107
+
108
+ ![](images/cdcd3e63a3059e96131d7fa08c0a03f66afb2540d2d14097ce9d24bf7f2608de.jpg)
109
+ Figure 2: Loss of accuracy as a function of the model size. We compare the compressed model with different level of pruning with NPQ and the full fastText model. We also compare with Zhang et al. (2015) and Xiao & Cho (2016). Note that the size is in log scale.
110
+ Table 1: Best ranked words w.r.t. entropy (left) and norm (right) on the Amazon full review dataset. We give the rank for both criteria. The norm ranking filters out words carrying little information.
111
+
112
+ # 4.1 SMALL DATASETS
113
+
114
+ Compression techniques. We compare three popular methods used for similarity estimation with compact codes: LSH, PQ and OPQ on the datasets released by Zhang et al. (2015). Figure 1 shows the accuracy as a function of the number of bytes used per embedding, which corresponds to the number $k$ of subvectors in the case of PQ and OPQ. See more results in the appendix. As discussed in Section 2, LSH reproduces the cosine similarity and is therefore not adapted to un-normalized data. Therefore we only report results with normalization. Once normalized, PQ and OPQ are almost lossless even when using only $k = 4$ subquantizers per embedding (equivalently, bytes). We observe in practice that using $k = d / 2$ , i.e., half of the components of the embeddings, works well in practice. In the rest of the paper and if not stated otherwise, we focus on this setting. The difference between the normalized versions of PQ and OPQ is limited and depends on the dataset. Therefore we adopt the normalized PQ (NPQ) for the rest of this study, since it is faster to train.
115
+
116
+ <table><tr><td>word</td><td>Entropy</td><td>Norm</td><td>word</td><td>Entropy</td><td>Norm</td></tr><tr><td>·</td><td>1</td><td>354</td><td>mediocre</td><td>1399</td><td>1</td></tr><tr><td>,</td><td>2</td><td>176</td><td>disappointing</td><td>454</td><td>2</td></tr><tr><td>the</td><td>3</td><td>179</td><td>SO-SO</td><td>2809</td><td>3</td></tr><tr><td>and</td><td>4</td><td>1639</td><td>lacks</td><td>1244</td><td>4</td></tr><tr><td>i</td><td>5</td><td>2374</td><td>worthless</td><td>1757</td><td>5</td></tr><tr><td>a</td><td>6</td><td>970</td><td>dreadful</td><td>4358</td><td>6</td></tr><tr><td>to</td><td>7</td><td>1775</td><td>drm</td><td>6395</td><td>7</td></tr><tr><td>it</td><td>8</td><td>1956</td><td>poorly</td><td>716</td><td>8</td></tr><tr><td>of</td><td>9</td><td>2815</td><td>uninspired</td><td>4245</td><td>9</td></tr><tr><td>this</td><td>10</td><td>3275</td><td>worst</td><td>402</td><td>10</td></tr></table>
117
+
118
+ Table 2: Performance on very small models. We use a quantization with $k = 1$ , hashing and an extreme pruning. The last row shows the average drop of performance for different size.
119
+
120
+ <table><tr><td>Dataset</td><td>full</td><td>64KiB</td><td>32KiB</td><td>16 KiB</td></tr><tr><td>AG</td><td>65M</td><td>92.1 91.4</td><td>90.6</td><td>89.1</td></tr><tr><td>Amazon full</td><td>108M</td><td>60.0 58.8</td><td>56.0</td><td>52.9</td></tr><tr><td>Amazon pol.</td><td>113M</td><td>94.5 93.3</td><td>92.1</td><td>89.3</td></tr><tr><td>DBPedia</td><td>87M</td><td>98.4 98.2</td><td>98.1</td><td>97.4</td></tr><tr><td>Sogou</td><td>73M</td><td>96.4 96.4</td><td>96.3</td><td>95.5</td></tr><tr><td>Yahoo</td><td>122M</td><td>72.1 70.0</td><td>69.0</td><td>69.2</td></tr><tr><td>Yelp full</td><td>78M</td><td>63.8 63.2</td><td>62.4</td><td>58.7</td></tr><tr><td>Yelp pol.</td><td>77M</td><td>95.7 95.3</td><td>94.9</td><td>93.2</td></tr><tr><td>Average diff. [%]</td><td></td><td>0</td><td>-0.8 -1.7</td><td>-3.5</td></tr></table>
121
+
122
+ Pruning. Figure 2 shows the performance of our model with different sizes. We fix $k = d / 2$ and use different pruning thresholds. NPQ offers a compression rate of $\times 1 0$ compared to the full model. As the pruning becomes more agressive, the overall compression can increase up up to $\times 1 , 0 0 0$ with little drop of performance and no additional overhead at test time. In fact, using a smaller dictionary makes the model faster at test time. We also compare with character-level Convolutional Neural Networks (CNN) (Zhang et al., 2015; Xiao & Cho, 2016). They are attractive models for text classification because they achieve similar performance with less memory usage than linear models (Xiao & Cho, 2016). Even though fastText with the default setting uses more memory, NPQ is already on par with CNNs’ memory usage. Note that CNNs are not quantized, and it would be worth seeing how much they can be quantized with no drop of performance. Such a study is beyond the scope of this paper. Our pruning is based on the norm of the embeddings according to the guidelines of Section 3.3. Table 1 compares the ranking obtained with norms to the ranking obtained using entropy, which is commonly used in unsupervised settings Stolcke (2000).
123
+
124
+ Extreme compression. Finally, in Table 2, we explore the limit of quantized model by looking at the performance obtained for models under 64KiB. Surprisingly, even at 64KiB and 32KiB, the drop of performance is only around $0 . 8 \%$ and $1 . 7 \%$ despite a compression rate of $\times 1 , 0 0 0 - 4 , 0 0 0$ .
125
+
126
+ # 4.2 LARGE DATASET: FLICKRTAG
127
+
128
+ In this section, we explore the limit of compression algorithms on very large datasets. Similar to Joulin et al. (2016), we consider a hashtag prediction dataset containing 312, 116 labels. We set the minimum count for words at 10, leading to a dictionary of 1, 427, 667 words. We take 10M buckets for n-grams and a hierarchical softmax. We refer to this dataset as FlickrTag.
129
+
130
+ Output encoding. We are interested in understanding how the performance degrades if the classifier is also quantized (i.e., the matrix $B$ in Eq. 1) and when the pruning is at the limit of the minimum number of features required to cover the full dataset.
131
+
132
+ <table><tr><td>Model</td><td>k</td><td>norm</td><td>retrain</td><td>Acc.</td><td>Size</td></tr><tr><td>full (uncompressed)</td><td></td><td></td><td></td><td>45.4</td><td>12 GiB</td></tr><tr><td>Input</td><td>128</td><td></td><td></td><td>45.0</td><td>1.7 GiB</td></tr><tr><td>Input</td><td>128</td><td>X</td><td></td><td>45.3</td><td>1.8 GiB</td></tr><tr><td>Input</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>1.8 GiB</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td></td><td>45.2</td><td>1.5 GiB</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td>X</td><td>45.4</td><td>1.5 GiB</td></tr></table>
133
+
134
+ Table 3: FlickrTag: Influence of quantizing the output matrix on performance. We use PQ for quantization with an optional normalization. We also retrain the output matrix after quantizing the input one. The ”norm” refers to the separate encoding of the magnitude and angle, while ”retrain” refers to the re-training bottom-up PQ method described in Section 3.2.
135
+
136
+ Table 3 shows that quantizing both the “input” matrix (i.e., $A$ in Eq. 1) and the “output” matrix (i.e., $B$ ) does not degrade the performance compared to the full model. We use embeddings with $d = 2 5 6$ dimensions and use $k = d / 2$ subquantizers. We do not use any text specific tricks, which leads to a compression factor of 8. Note that even if the output matrix is not retrained over the embeddings, the performance is only $0 . 2 \%$ away from the full model. As shown in the Appendix, using less subquantizers significantly decreases the performance for a small memory gain.
137
+
138
+ <table><tr><td>Model</td><td>full</td><td colspan="2"> Entropy pruning</td><td colspan="2">Norm pruning</td><td colspan="2">Max-Cover pruning</td></tr><tr><td>#embeddings Memory</td><td>11.5M 12GiB</td><td>2M 297MiB</td><td>1M 174MiB</td><td>2M 305MiB</td><td>1M 179MiB</td><td>2M 305MiB</td><td>1M 179MiB</td></tr><tr><td>Coverage [%]</td><td>88.4</td><td>70.5</td><td>70.5</td><td>73.2</td><td>61.9</td><td>88.4</td><td>88.4</td></tr><tr><td>Accuracy</td><td>45.4</td><td>32.1</td><td>30.5</td><td>41.6</td><td>35.8</td><td>45.5</td><td>43.9</td></tr></table>
139
+
140
+ Table 4: FlickrTag: Comparison of entropy pruning, norm pruning and max-cover pruning methods.
141
+ We show the coverage of the test set for each method.
142
+
143
+ Pruning. Table 4 shows how the performance evolves with pruning. We measure this effect on top of a fully quantized model. The full model misses $1 1 . 6 \%$ of the test set because of missing words (some documents are either only composed of hashtags or have only rare words). There are 312, 116 labels and thus it seems reasonable to keep embeddings in the order of the million. A naive pruning with 1M features misses about $3 0 - 4 0 \%$ of the test set, leading to a significant drop of performance. On the other hand, even though the max-coverage pruning approach was set on the train set, it does not suffer from any coverage loss on the test set. This leads to a smaller drop of performance. If the pruning is too aggressive, however, the coverage decreases significantly.
144
+
145
+ # 5 FUTURE WORK
146
+
147
+ It may be possible to obtain further reduction of the model size in the future. One idea is to condition the size of the vectors (both for the input features and the labels) based on their frequency (Chen et al., 2015; Grave et al., 2016). For example, it is probably not worth representing the rare labels by full 256-dimensional vectors in the case of the FlickrTag dataset. Thus, conditioning the vector size on the frequency and norm seems like an interesting direction to explore in the future.
148
+
149
+ We may also consider combining the entropy and norm pruning criteria: instead of keeping the features in the model based just on the frequency or the norm, we can use both to keep a good set of features. This could help to keep features that are both frequent and discriminative, and thereby to reduce the coverage problem that we have observed.
150
+
151
+ Additionally, instead of pruning out the less useful features, we can decompose them into smaller units (Mikolov et al., 2012). For example, this can be achieved by splitting every non-discriminative word into a sequence of character trigrams. This could help in cases where training and test examples are very short (for example just a single word).
152
+
153
+ # 6 CONCLUSION
154
+
155
+ In this paper, we have presented several simple techniques to reduce, by several orders of magnitude, the memory complexity of certain text classifiers without sacrificing accuracy nor speed. This is achieved by applying discriminative pruning which aims to keep only important features in the trained model, and by performing quantization of the weight matrices and hashing of the dictionary.
156
+
157
+ We will publish the code as an extension of the fastText library. We hope that our work will serve as a baseline to the research community, where there is an increasing interest for comparing the performance of various deep learning text classifiers for a given number of parameters. Overall, compared to recent work based on convolutional neural networks, fastText.zip is often more accurate, while requiring several orders of magnitude less time to train on common CPUs, and incurring a fraction of the memory complexity.
158
+
159
+ # REFERENCES
160
+
161
+ Alekh Agarwal, Olivier Chapelle, Miroslav Dud´ık, and John Langford. A reliable effective terascale linear learning system. Journal of Machine Learning Research, 15(1):1111–1133, 2014.
162
+
163
+ Francis Bach, Rodolphe Jenatton, Julien Mairal, and Guillaume Obozinski. Optimization with sparsity-inducing penalties. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 4(1):1–106, 2012.
164
+
165
+ Ashwinkumar Badanidiyuru, Baharan Mirzasoleiman, Amin Karbasi, and Andreas Krause. Streaming submodular maximization: Massive data summarization on the fly. In SIGKDD, pp. 671–680. ACM, 2014.
166
+
167
+ Mohammad Hossein Bateni, Mohammad Taghi Hajiaghayi, and Morteza Zadimoghaddam. Submodular secretary problem and extensions. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, pp. 39–52. Springer, 2010.
168
+
169
+ Moses S. Charikar. Similarity estimation techniques from rounding algorithms. In STOC, pp. 380– 388, May 2002.
170
+
171
+ Welin Chen, David Grangier, and Michael Auli. Strategies for training large vocabulary neural language models. arXiv preprint arXiv:1512.04906, 2015.
172
+
173
+ Flavio Chierichetti, Ravi Kumar, and Andrew Tomkins. Max-cover in map-reduce. In International Conference on World Wide Web, 2010.
174
+
175
+ Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training neural networks with weights and activations constrained to $+ 1$ or $^ { - 1 }$ . arXiv preprint arXiv:1602.02830, 2016.
176
+
177
+ M. Datar, N. Immorlica, P. Indyk, and V.S. Mirrokni. Locality-sensitive hashing scheme based on pstable distributions. In Proceedings of the Symposium on Computational Geometry, pp. 253–262, 2004.
178
+
179
+ Scott Deerwester, Susan T Dumais, George W Furnas, Thomas K Landauer, and Richard Harshman. Indexing by latent semantic analysis. Journal of the American society for information science, 1990.
180
+
181
+ Misha Denil, Babak Shakibi, Laurent Dinh, Marc-Aurelio Ranzato, and Nando et all de Freitas. Predicting parameters in deep learning. In NIPS, pp. 2148–2156, 2013.
182
+
183
+ Uriel Feige. A threshold of ln n for approximating set cover. JACM, 45(4):634–652, 1998.
184
+
185
+ Tiezheng Ge, Kaiming He, Qifa Ke, and Jian Sun. Optimized product quantization for approximate nearest neighbor search. In CVPR, June 2013.
186
+
187
+ Yunchao Gong and Svetlana Lazebnik. Iterative quantization: A procrustean approach to learning binary codes. In CVPR, June 2011.
188
+
189
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.
190
+
191
+ Edouard Grave, Armand Joulin, Moustapha Cisse, David Grangier, and Herv ´ e J ´ egou. Efficient ´ softmax approximation for gpus. arXiv preprint arXiv:1609.04309, 2016.
192
+
193
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016.
194
+
195
+ Herve J ´ egou, Matthijs Douze, and Cordelia Schmid. Hamming embedding and weak geometric ´ consistency for large scale image search. In ECCV, October 2008.
196
+
197
+ Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor ´ search. IEEE Trans. PAMI, January 2011.
198
+
199
+ Thorsten Joachims. Text categorization with support vector machines: Learning with many relevant features. Springer, 1998.
200
+
201
+ Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016.
202
+
203
+ Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. NIPS, 2:598–605, 1990.
204
+
205
+ Zhouhan Lin, Matthieu Courbariaux, Roland Memisevic, and Yoshua Bengio. Neural networks with few multiplications. arXiv preprint arXiv:1510.03009, 2015.
206
+
207
+ Andrew McCallum and Kamal Nigam. A comparison of event models for naive bayes text classification. In AAAI workshop on learning for text categorization, 1998.
208
+
209
+ Lukas Meier, Sara Van De Geer, and Peter Buhlmann. The group lasso for logistic regression. ¨ Journal of the Royal Statistical Society: Series B (Statistical Methodology), 70(1):53–71, 2008.
210
+
211
+ Tomas Mikolov. Statistical language models based on neural networks. In PhD thesis. VUT Brno, 2012.
212
+
213
+ Tomas Mikolov, Ilya Sutskever, Anoop Deoras, Hai-Son Le, Stefan Kombrink, and J Cernocky. Subword language modeling with neural networks. preprint, 2012.
214
+
215
+ Behnam Neyshabur and Nathan Srebro. On symmetric and asymmetric lshs for inner product search. In ICML, pp. 1926–1934, 2015.
216
+
217
+ Mohammad Norouzi and David Fleet. Cartesian k-means. In CVPR, June 2013.
218
+
219
+ Bo Pang and Lillian Lee. Opinion mining and sentiment analysis. Foundations and trends in information retrieval, 2008.
220
+
221
+ Alexandre Sablayrolles, Matthijs Douze, Herve J ´ egou, and Nicolas Usunier. How should we evalu-´ ate supervised hashing? arXiv preprint arXiv:1609.06753, 2016.
222
+
223
+ Jorge Sanchez and Florent Perronnin. High-dimensional signature compression for large-scale im- ´ age classification. In CVPR, 2011.
224
+
225
+ Anshumali Shrivastava and Ping Li. Asymmetric LSH for sublinear time maximum inner product search. In NIPS, pp. 2321–2329, 2014.
226
+
227
+ Andreas Stolcke. Entropy-based pruning of backoff language models. arXiv preprint cs/0006025, 2000.
228
+
229
+ David Talbot and Thorsten Brants. Randomized language models via perfect hash functions. In ACL, 2008.
230
+
231
+ Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. In Communications of the ACM, 2016.
232
+
233
+ Jingdong Wang, Heng Tao Shen, Jingkuan Song, and Jianqiu Ji. Hashing for similarity search: A survey. arXiv preprint arXiv:1408.2927, 2014.
234
+
235
+ Jun Wang, Wei Liu, Sanjiv Kumar, and Shih-Fu Chang. Learning to hash for indexing big data - A survey. CoRR, abs/1509.05472, 2015.
236
+
237
+ Sida Wang and Christopher D Manning. Baselines and bigrams: Simple, good sentiment and topic classification. In ACL, 2012.
238
+
239
+ Kilian Q Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In ICML, 2009.
240
+
241
+ Yair Weiss, Antonio Torralba, and Rob Fergus. Spectral hashing. In NIPS, December 2009.
242
+
243
+ Yijun Xiao and Kyunghyun Cho. Efficient character-level document classification by combining convolution and recurrent layers. arXiv preprint arXiv:1602.00367, 2016.
244
+
245
+ Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In NIPS, 2015.
246
+
247
+ # APPENDIX
248
+
249
+ In the appendix, we show some additional results. The model used in these experiments only had 1M ngram buckets. In Table 5, we show a thorough comparison of LSH, PQ and OPQ on 8 different datasets. Table 7 summarizes the comparison with CNNs in terms of accuracy and size. Table 8 show a thorough comparison of the hashing trick and the Bloom filters.
250
+
251
+ <table><tr><td>Quant. k</td><td>ULIOU</td><td></td><td>AG</td><td></td><td>Amz. f.</td><td></td><td>Amz. p.</td><td></td><td>DBP</td><td></td><td></td><td>Sogou</td><td></td><td>Yah.</td><td></td><td>Yelp f.</td><td></td><td>Yelp p.</td></tr><tr><td>full full,nodict</td><td></td><td></td><td>92.1 36M 92.1 34M</td><td></td><td>59.897M 59.9</td><td>78M</td><td>94.5 94.5</td><td>104M 83M</td><td>98.467M 98.4</td><td>56M</td><td>96.347M 96.3</td><td>42M</td><td>72 72.2</td><td>120M 91M</td><td>63.756M 63.648M</td><td></td><td>95.7 53M 95.646M</td><td></td></tr><tr><td>LSH</td><td>8</td><td></td><td>88.7</td><td>8.5M</td><td>51.3</td><td>20M</td><td>90.3</td><td>21M</td><td>92.7</td><td>14M</td><td>94.2</td><td>11M</td><td>54.8</td><td>23M</td><td>56.7</td><td>12M</td><td>92.2</td><td>12M</td></tr><tr><td>PQ</td><td>8</td><td></td><td>91.7</td><td>8.5M</td><td>59.3</td><td>20M</td><td>94.4</td><td>21M</td><td>97.4</td><td>14M</td><td>96.1</td><td>11M</td><td>71.3</td><td>23M</td><td>62.8</td><td>12M</td><td>95.4</td><td>12M</td></tr><tr><td>OPQ</td><td>8</td><td></td><td>91.9</td><td>8.5M</td><td>59.3</td><td>20M</td><td>94.4</td><td>21M</td><td>96.9</td><td>14M</td><td>95.8</td><td>11M</td><td>71.4</td><td>23M</td><td>62.5</td><td>12M</td><td>95.4</td><td>12M</td></tr><tr><td>LSH</td><td>8</td><td>X</td><td>91.9</td><td>9.5M</td><td>59.4</td><td>22M</td><td>94.5</td><td>24M</td><td>97.8</td><td>16M</td><td>96.2</td><td>12M</td><td>71.6</td><td>26M</td><td>63.4</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>PQ</td><td>8</td><td>X</td><td>92.0</td><td>9.5M</td><td>59.8</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.1</td><td>26M</td><td>63.7</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>OPQ</td><td>8</td><td>X</td><td>92.1</td><td>9.5M</td><td>59.9</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.2</td><td>26M</td><td>63.6</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>LSH</td><td>4</td><td></td><td>88.3</td><td>4.3M</td><td>50.5</td><td>9.7M</td><td>88.9</td><td>11M</td><td>91.6</td><td>7.0M</td><td>94.3</td><td>5.3M</td><td>54.6</td><td>12M</td><td>56.5</td><td>6.0M</td><td>92.9</td><td>5.7M</td></tr><tr><td>PQ</td><td>4</td><td></td><td>91.6</td><td>4.3M</td><td>59.2</td><td>9.7M</td><td>94.4</td><td>11M</td><td>96.3</td><td>7.0M</td><td>96.1</td><td>5.3M</td><td>71.0</td><td>12M</td><td>62.2</td><td>6.0M</td><td>95.4</td><td>5.7M</td></tr><tr><td>OPQ</td><td>4</td><td></td><td>91.7</td><td>4.3M</td><td>59.0</td><td>9.7M</td><td>94.4</td><td>11M</td><td>96.9</td><td>7.0M</td><td>95.6</td><td>5.3M</td><td>71.2</td><td>12M</td><td>62.6</td><td>6.0M</td><td>95.4</td><td>5.7M</td></tr><tr><td>LSH</td><td>4</td><td>X</td><td>92.1</td><td>5.3M</td><td>59.2</td><td>13M</td><td>94.4</td><td>13M</td><td>97.7</td><td>8.8M</td><td>96.2</td><td>6.6M</td><td>71.1</td><td>15M</td><td>63.1</td><td>7.4M</td><td>95.5</td><td>7.2M</td></tr><tr><td>PQ</td><td>4</td><td>X</td><td>92.1</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.4</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72.0</td><td>15M</td><td>63.6</td><td>7.5M</td><td></td><td>95.67.2M</td></tr><tr><td>OPQ</td><td>4</td><td>X</td><td>92.2</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.3</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72.1</td><td>15M</td><td>63.7</td><td>7.5M</td><td>95.6</td><td>7.2M</td></tr><tr><td>LSH</td><td>2</td><td></td><td>87.7</td><td>2.2M</td><td>50.1</td><td>4.9M</td><td>88.9</td><td>5.2M</td><td>90.6</td><td>3.5M</td><td>93.9</td><td>2.7M</td><td>51.4</td><td>5.7M</td><td>56.6</td><td>3.0M</td><td>91.3</td><td>2.9M</td></tr><tr><td>PQ</td><td>2</td><td></td><td>91.1</td><td>2.2M</td><td>58.7</td><td>4.9M</td><td>94.4</td><td>5.2M</td><td>87.1</td><td>3.6M</td><td>95.3</td><td>2.7M</td><td>69.5</td><td>5.7M</td><td>62.1</td><td>3.0M</td><td>95.4</td><td>2.9M</td></tr><tr><td>OPQ</td><td>2</td><td></td><td>91.4</td><td>2.2M</td><td>58.2</td><td>4.9M</td><td>94.3</td><td>5.2M</td><td>91.6</td><td>3.6M</td><td>94.2</td><td>2.7M</td><td>69.6</td><td>5.7M</td><td>62.1</td><td>3.0M</td><td>95.4</td><td>2.9M</td></tr><tr><td>LSH</td><td>2</td><td>X</td><td>91.8</td><td>3.2M</td><td>58.6</td><td>7.3M</td><td>94.3</td><td>7.8M</td><td>97.1</td><td>5.3M</td><td>96.1</td><td>4.0M</td><td>69.7</td><td>8.6M</td><td>62.7</td><td>4.5M</td><td></td><td>95.54.3M</td></tr><tr><td>PQ</td><td>2</td><td>X</td><td>91.9</td><td>3.2M</td><td>59.6</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.3</td><td>4.0M</td><td>71.3</td><td>8.6M</td><td>63.44.5M</td><td></td><td></td><td>95.64.3M</td></tr><tr><td>OPQ</td><td>2</td><td>X</td><td>92.1</td><td>3.2M</td><td>59.5</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.2</td><td>4.0M</td><td>71.5</td><td>8.6M</td><td>63.44.5M</td><td></td><td></td><td>95.64.3M</td></tr></table>
252
+
253
+ Table 5: Comparison between standard quantization methods. The original model has a dimensionality of 8 and 2M buckets. Note that all of the methods are without dictionary.
254
+
255
+ <table><tr><td>k</td><td>co</td><td colspan="2">AG</td><td colspan="2">Amz. f.</td><td colspan="2">Amz. p.</td><td colspan="2">DBP</td><td colspan="2">Sogou</td><td colspan="2">Yah.</td><td colspan="2">Yelp f.</td><td colspan="2">Yelp p.</td></tr><tr><td></td><td>full, nodict</td><td>92.1</td><td>34M</td><td>59.8</td><td>78M</td><td>94.5</td><td>83M</td><td>98.4</td><td>56M</td><td>96.3</td><td>42M</td><td>72.2</td><td>91M</td><td>63.7</td><td>48M</td><td>95.6</td><td>46M</td></tr><tr><td>8</td><td>full</td><td>92.0</td><td>9.5M</td><td>59.8</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.1</td><td>26M</td><td>63.7</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>4</td><td>full</td><td>92.1</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.4</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72</td><td>15M</td><td>63.6</td><td>7.5M</td><td>95.6</td><td>7.2M</td></tr><tr><td>2</td><td>full</td><td>91.9</td><td>3.2M</td><td>59.6</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.3</td><td>4.0M</td><td>71.3</td><td>8.6M</td><td>63.4</td><td>4.5M</td><td>95.6</td><td>4.3M</td></tr><tr><td>8</td><td>200K</td><td>92.0</td><td>2.5M</td><td>59.7</td><td>2.5M</td><td>94.3</td><td>2.5M</td><td>98.5</td><td>2.5M</td><td>96.6</td><td>2.5M</td><td>71.8</td><td>2.5M</td><td>63.3</td><td>2.5M</td><td>95.6</td><td>2.5M</td></tr><tr><td>8</td><td>100K</td><td>91.9</td><td>1.3M</td><td>59.5</td><td>1.3M</td><td>94.3</td><td>1.3M</td><td>98.5</td><td>1.3M</td><td>96.6</td><td>1.3M</td><td>71.6</td><td>1.3M</td><td>63.4</td><td>1.3M</td><td>95.6</td><td>1.3M</td></tr><tr><td>8</td><td>50K</td><td>91.7</td><td>645K</td><td>59.7</td><td>645K</td><td>94.3</td><td>644K</td><td>98.5</td><td>645K</td><td>96.6</td><td>645K</td><td>71.5</td><td>645K</td><td>63.2</td><td>645K</td><td>95.6</td><td>644K</td></tr><tr><td>8</td><td>10K</td><td>91.3</td><td>137K</td><td>58.6</td><td>137K</td><td>93.2</td><td>137K</td><td>98.5</td><td>137K</td><td>96.5</td><td>137K</td><td>71.3</td><td>137K</td><td>63.3</td><td>137K</td><td>95.4</td><td>137K</td></tr><tr><td>4</td><td>200K</td><td>92.0</td><td>1.8M</td><td>59.7</td><td>1.8M</td><td>94.3</td><td>1.8M</td><td>98.5</td><td>1.8M</td><td>96.6</td><td>1.8M</td><td>71.7</td><td>1.8M</td><td>63.3</td><td>1.8M</td><td>95.6</td><td>1.8M</td></tr><tr><td>4</td><td>100K</td><td>91.9</td><td>889K</td><td>59.5</td><td>889K</td><td>94.4</td><td>889K</td><td>98.5</td><td>889K</td><td>96.6</td><td>889K</td><td>71.7</td><td>889K</td><td>63.4</td><td>889K</td><td>95.6</td><td>889K</td></tr><tr><td>4</td><td>50K</td><td>91.7</td><td>449K</td><td>59.6</td><td>449K</td><td>94.3</td><td>449K</td><td>98.5</td><td>450K</td><td>96.6</td><td>449K</td><td>71.4</td><td>450K</td><td>63.2</td><td>449K</td><td>95.5</td><td>449K</td></tr><tr><td>4</td><td>10K</td><td>91.5</td><td>98K</td><td>58.6</td><td>98K</td><td>93.2</td><td>98K</td><td>98.5</td><td>98K</td><td>96.5</td><td>98K</td><td>71.2</td><td>98K</td><td>63.3</td><td>98K</td><td>95.4</td><td>98K</td></tr><tr><td></td><td>200K</td><td>91.9</td><td>1.4M</td><td>59.6</td><td>1.4M</td><td>94.3</td><td>1.4M</td><td>98.4</td><td>1.4M</td><td>96.5</td><td>1.4M</td><td>71.5</td><td>1.4M</td><td>63.2</td><td>1.4M</td><td>95.5</td><td>1.4M</td></tr><tr><td></td><td>100K</td><td>91.6</td><td>693K</td><td>59.5</td><td>693K</td><td>94.3</td><td>693K</td><td>98.4</td><td>694K</td><td>96.6</td><td>693K</td><td>71.1</td><td>694K</td><td>63.2</td><td>693K</td><td>95.6</td><td>693K</td></tr><tr><td>2222</td><td>50K</td><td>91.6</td><td>352K</td><td>59.6</td><td>352K</td><td>94.3</td><td>352K</td><td>98.4</td><td>352K</td><td>96.5</td><td>352K</td><td>71.1</td><td>352K</td><td>63.2</td><td>352K</td><td>95.6</td><td>352K</td></tr><tr><td></td><td>10K</td><td>91.3</td><td>78K</td><td>58.5</td><td>78K</td><td>93.2</td><td>78K</td><td>98.4</td><td>79K</td><td>96.5</td><td>78K</td><td>70.8</td><td>78K</td><td>63.2</td><td>78K</td><td>95.3</td><td>78K</td></tr></table>
256
+
257
+ Table 6: Comparison with different quantization and level of pruning. “co” is the cut-off parameter of the pruning.
258
+
259
+ <table><tr><td>Dataset</td><td>Zhang et al. (2015)</td><td></td><td>Xiao &amp; Cho (2016)</td><td></td><td>fastText+PQ,k= d/2</td></tr><tr><td>AG</td><td>90.2</td><td>108M</td><td>91.4</td><td>80M</td><td>91.9</td></tr><tr><td>Amz. f.</td><td>59.5</td><td>10.8M</td><td>59.2</td><td>1.6M</td><td>59.6 449K</td></tr><tr><td>Amz. p.</td><td>94.5</td><td>10.8M</td><td>94.1</td><td>1.6M</td><td>449K</td></tr><tr><td>DBP</td><td>98.3</td><td>108M</td><td>98.6</td><td>1.2M</td><td>98K</td></tr><tr><td>Sogou</td><td>95.1</td><td>108M</td><td>95.2</td><td>1.6M</td><td>98K</td></tr><tr><td>Yah.</td><td>70.5</td><td>108M</td><td>71.4</td><td>80M</td><td>889K</td></tr><tr><td>Yelp f.</td><td>61.6</td><td>108M</td><td>61.8</td><td>1.4M</td><td>98K</td></tr><tr><td>Yelp p.</td><td>94.8</td><td>108M</td><td>94.5</td><td>1.2M</td><td>449K</td></tr></table>
260
+
261
+ Table 7: Comparison between CNNs and fastText with and without quantization. The numbers for Zhang et al. (2015) are reported from Xiao & Cho (2016). Note that for the CNNs, we report the size of the model under the assumption that they use float32 storage. For fastText $( + \mathrm { P Q } )$ we report the memory used in RAM at test time.
262
+
263
+ Table 8: Comparison with and without Bloom filters. For NPQ, we set $d = 8$ and $k = 2$ .
264
+
265
+ <table><tr><td>Quant.</td><td>1ooom</td><td>co</td><td colspan="2">AG</td><td colspan="2">Amz. f.</td><td colspan="2">Amz. p.</td><td colspan="2">DBP</td><td colspan="2">Sogou</td><td colspan="2">Yah.</td><td colspan="2">Yelp f.</td><td colspan="2">Yelp p.</td></tr><tr><td>full,nodict</td><td></td><td></td><td>92.1</td><td>34M</td><td>59.8</td><td>78M</td><td>94.5</td><td>83M</td><td>98.4</td><td>56M</td><td>96.3</td><td>42M</td><td>72.2</td><td>91M</td><td>63.7</td><td>48M</td><td>95.6</td><td>46M</td></tr><tr><td>NPQ</td><td></td><td>200K</td><td>91.9</td><td>1.4M</td><td>59.6</td><td>1.4M</td><td>94.3</td><td>1.4M</td><td>98.4</td><td>1.4M</td><td>96.5</td><td>1.4M</td><td>71.5</td><td>1.4M</td><td>63.2</td><td>1.4M</td><td>95.5</td><td>1.4M</td></tr><tr><td>NPQ</td><td>X</td><td>200K</td><td>92.2</td><td>830K</td><td>59.3</td><td>830K</td><td>94.1</td><td>830K</td><td>98.4</td><td>830K</td><td>96.5</td><td>830K</td><td>70.7</td><td>830K</td><td>63.0</td><td>830K</td><td>95.5</td><td>830K</td></tr><tr><td>NPQ</td><td></td><td>100K</td><td>91.6</td><td>693K</td><td>59.5</td><td>693K</td><td>94.3</td><td>693K</td><td>98.4</td><td>694K</td><td>96.6</td><td>693K</td><td>71.1</td><td>694K</td><td>63.2</td><td>693K</td><td>95.6</td><td>693K</td></tr><tr><td>NPQ</td><td>X</td><td>100K</td><td>91.8</td><td>420K</td><td>59.1</td><td>420K</td><td>93.9</td><td>420K</td><td>98.4</td><td>420K</td><td>96.5</td><td>420K</td><td>70.6</td><td>420K</td><td>62.8</td><td>420K</td><td>95.3</td><td>420K</td></tr><tr><td>NPQ</td><td></td><td>50K</td><td>91.6</td><td>352K</td><td>59.6</td><td>352K</td><td>94.3</td><td>352K</td><td>98.4</td><td>352K</td><td>96.5</td><td>352K</td><td>71.1</td><td>352K</td><td>63.2</td><td>352K</td><td>95.6</td><td>352K</td></tr><tr><td>NPQ</td><td>X</td><td>50K</td><td>91.5</td><td>215K</td><td>58.8</td><td>215K</td><td>93.6</td><td>215K</td><td>98.3</td><td>215K</td><td>96.5</td><td>215K</td><td>70.1</td><td>215K</td><td>62.7</td><td>215K</td><td>95.1</td><td>215K</td></tr><tr><td>NPQ</td><td></td><td>10K</td><td>91.3</td><td>78K</td><td>58.5</td><td>78K</td><td>93.2</td><td>78K</td><td>98.4</td><td>79K</td><td>96.5</td><td>78K</td><td>70.8</td><td>78K</td><td>63.2</td><td>78K</td><td>95.3</td><td>78K</td></tr><tr><td>NPQ</td><td>X</td><td>10K</td><td>90.8</td><td>51K</td><td>56.8</td><td>51K</td><td>91.7</td><td>51K</td><td>98.1</td><td>51K</td><td>96.1</td><td>51K</td><td>68.7</td><td>51K</td><td>61.7</td><td>51K</td><td>94.5</td><td>51K</td></tr></table>
266
+
267
+ <table><tr><td>Model</td><td>k</td><td>norm</td><td>retrain</td><td>Acc.</td><td>Size</td></tr><tr><td>full</td><td></td><td></td><td></td><td>45.4</td><td>12G</td></tr><tr><td>Input</td><td>128</td><td></td><td></td><td>45.0</td><td>1.7G</td></tr><tr><td>Input</td><td>128</td><td>X</td><td></td><td>45.3</td><td>1.8G</td></tr><tr><td>Input</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>1.8G</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td></td><td>45.2</td><td>1.5G</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td>X</td><td>45.4</td><td>1.5G</td></tr><tr><td>Input+Output, co=2M</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>305M</td></tr><tr><td>Input+Output, n co=1M</td><td>128</td><td>X</td><td>X</td><td>43.9</td><td>179M</td></tr><tr><td>Input</td><td>64</td><td></td><td></td><td>44.0</td><td>1.1G</td></tr><tr><td>Input</td><td>64</td><td>X</td><td></td><td>44.7</td><td>1.1G</td></tr><tr><td>Input</td><td>64</td><td>X</td><td></td><td>44.9</td><td>1.1G</td></tr><tr><td>Input+Output</td><td>64</td><td>X</td><td></td><td>44.6</td><td>784M</td></tr><tr><td>Input+Output</td><td>64</td><td>X</td><td>X</td><td>44.8</td><td>784M</td></tr><tr><td>Input+Output, co=2M</td><td>64</td><td>X</td><td></td><td>42.5</td><td>183M</td></tr><tr><td>Input+Output, co=1M</td><td>64</td><td>X</td><td></td><td>39.9</td><td>118M</td></tr><tr><td>Input+Output, co=2M</td><td>64</td><td>X</td><td>X</td><td>45.0</td><td>183M</td></tr><tr><td>Input+Output,co=1M</td><td>64</td><td>X</td><td>X</td><td>43.4</td><td>118M</td></tr><tr><td>Input</td><td>32</td><td></td><td></td><td>40.5</td><td>690M</td></tr><tr><td>Input</td><td>32</td><td>X</td><td></td><td>42.4</td><td>701M</td></tr><tr><td>Input</td><td>32</td><td>X</td><td>X</td><td>42.9</td><td>701M</td></tr><tr><td>Input+Output</td><td>32</td><td>X</td><td></td><td>42.3</td><td>435M</td></tr><tr><td>Input+Output</td><td>32</td><td>X</td><td>X</td><td>42.8</td><td>435M</td></tr><tr><td>Input+Output,co=2M</td><td>32</td><td>X</td><td></td><td>35.0</td><td>122M</td></tr><tr><td>Input+Output, co=1M</td><td>32</td><td>X</td><td></td><td>32.6</td><td>88M</td></tr><tr><td>Input+Output, co=2M</td><td>32</td><td>X</td><td>X</td><td>43.3</td><td>122M</td></tr><tr><td>Input+Output, co=1M</td><td>32</td><td>X</td><td>X</td><td>41.6</td><td>88M</td></tr></table>
268
+
269
+ Table 9: FlickrTag: Comparison for a large dataset of (i) different quantization methods and parameters, (ii) with or without re-training.
parse/train/SJc1hL5ee/SJc1hL5ee_content_list.json ADDED
@@ -0,0 +1,1428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "FASTTEXT.ZIP: COMPRESSING TEXT CLASSIFICATION MODELS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 735,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, Herve J ´ egou & Tomas Mikolov ´ Facebook AI Research {ajoulin,egrave,bojanowski,matthijs,rvj,tmikolov}@fb.com ",
17
+ "bbox": [
18
+ 183,
19
+ 169,
20
+ 872,
21
+ 213
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 248,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We consider the problem of producing compact architectures for text classification, such that the full model fits in a limited amount of memory. After considering different solutions inspired by the hashing literature, we propose a method built upon product quantization to store word embeddings. While the original technique leads to a loss in accuracy, we adapt this method to circumvent quantization artefacts. Combined with simple approaches specifically adapted to text classification, our approach derived from fastText requires, at test time, only a fraction of the memory compared to the original FastText, without noticeably sacrificing quality in terms of classification accuracy. Our experiments carried out on several benchmarks show that our approach typically requires two orders of magnitude less memory than fastText while being only slightly inferior with respect to accuracy. As a result, it outperforms the state of the art by a good margin in terms of the compromise between memory usage and accuracy. ",
40
+ "bbox": [
41
+ 233,
42
+ 281,
43
+ 764,
44
+ 460
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 489,
55
+ 336,
56
+ 505
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Text classification is an important problem in Natural Language Processing (NLP). Real world usecases include spam filtering or e-mail categorization. It is a core component in more complex systems such as search and ranking. Recently, deep learning techniques based on neural networks have achieved state of the art results in various NLP applications. One of the main successes of deep learning is due to the effectiveness of recurrent networks for language modeling and their application to speech recognition and machine translation (Mikolov, 2012). However, in other cases including several text classification problems, it has been shown that deep networks do not convincingly beat the prior state of the art techniques (Wang & Manning, 2012; Joulin et al., 2016). ",
63
+ "bbox": [
64
+ 174,
65
+ 521,
66
+ 825,
67
+ 632
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In spite of being (typically) orders of magnitude slower to train than traditional techniques based on n-grams, neural networks are often regarded as a promising alternative due to compact model sizes, in particular for character based models. This is important for applications that need to run on systems with limited memory such as smartphones. ",
74
+ "bbox": [
75
+ 174,
76
+ 640,
77
+ 825,
78
+ 695
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "This paper specifically addresses the compromise between classification accuracy and the model size. We extend our previous work implemented in the fastText library1. It is based on n-gram features, dimensionality reduction, and a fast approximation of the softmax classifier (Joulin et al., 2016). We show that a few key ingredients, namely feature pruning, quantization, hashing, and retraining, allow us to produce text classification models with tiny size, often less than 100kB when trained on several popular datasets, without noticeably sacrificing accuracy or speed. ",
85
+ "bbox": [
86
+ 174,
87
+ 703,
88
+ 823,
89
+ 786
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We plan to publish the code and scripts required to reproduce our results as an extension of the fastText library, thereby providing strong reproducible baselines for text classifiers that optimize the compromise between the model size and accuracy. We hope that this will help the engineering community to improve existing applications by using more efficient models. ",
96
+ "bbox": [
97
+ 176,
98
+ 794,
99
+ 825,
100
+ 849
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "This paper is organized as follows. Section 2 introduces related work, Section 3 describes our text classification model and explains how we drastically reduce the model size. Section 4 shows the effectiveness of our approach in experiments on multiple text classification benchmarks. ",
107
+ "bbox": [
108
+ 176,
109
+ 856,
110
+ 823,
111
+ 898
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 102,
122
+ 339,
123
+ 117
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Models for text classification. Text classification is a problem that has its roots in many applications such as web search, information retrieval and document classification (Deerwester et al., 1990; Pang & Lee, 2008). Linear classifiers often obtain state-of-the-art performance while being scalable (Agarwal et al., 2014; Joachims, 1998; Joulin et al., 2016; McCallum & Nigam, 1998). They are particularly interesting when associated with the right features (Wang & Manning, 2012). They usually require storing embeddings for words and n-grams, which makes them memory inefficient. ",
130
+ "bbox": [
131
+ 174,
132
+ 133,
133
+ 825,
134
+ 217
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Compression of language models. Our work is related to compression of statistical language models. Classical approaches include feature pruning based on entropy (Stolcke, 2000) and quantization. Pruning aims to keep only the most important n-grams in the model, leaving out those with probability lower than a specified threshold. Further, the individual n-grams can be compressed by quantizing the probability value, and by storing the n-gram itself more efficiently than as a sequence of characters. Various strategies have been developed, for example using tree structures or hash functions, and are discussed in (Talbot & Brants, 2008). ",
141
+ "bbox": [
142
+ 174,
143
+ 233,
144
+ 825,
145
+ 330
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Compression for similarity estimation and search. There is a large body of literature on how to compress a set of vectors into compact codes, such that the comparison of two codes approximates a target similarity in the original space. The typical use-case of these methods considers an indexed dataset of compressed vectors, and a query for which we want to find the nearest neighbors in the indexed set. One of the most popular is Locality-sensitive hashing (LSH) by Charikar (2002), which is a binarization technique based on random projections that approximates the cosine similarity between two vectors through a monotonous function of the Hamming distance between the two corresponding binary codes. In our paper, LSH refers to this binarization strategy2. Many subsequent works have improved this initial binarization technique, such as spectal hashing (Weiss et al., 2009), or Iterative Quantization (ITQ) (Gong & Lazebnik, 2011), which learns a rotation matrix minimizing the quantization loss of the binarization. We refer the reader to two recent surveys by Wang et al. (2014) and Wang et al. (2015) for an overview of the binary hashing literature. ",
152
+ "bbox": [
153
+ 174,
154
+ 347,
155
+ 825,
156
+ 513
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Beyond these binarization strategies, more general quantization techniques derived from Jegou et al. (2011) offer better trade-offs between memory and the approximation of a distance estimator. The Product Quantization (PQ) method approximates the distances by calculating, in the compressed domain, the distance between their quantized approximations. This method is statistically guaranteed to preserve the Euclidean distance between the vectors within an error bound directly related to the quantization error. The original PQ has been concurrently improved by Ge et al. (2013) and Norouzi & Fleet (2013), who learn an orthogonal transform minimizing the overall quantization loss. In our paper, we will consider the Optimized Product Quantization (OPQ) variant (Ge et al., 2013). ",
163
+ "bbox": [
164
+ 174,
165
+ 521,
166
+ 825,
167
+ 632
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Softmax approximation The aforementioned works approximate either the Euclidean distance or the cosine similarity (both being equivalent in the case of unit-norm vectors). However, in the context of fastText, we are specifically interested in approximating the maximum inner product involved in a softmax layer. Several approaches derived from LSH have been recently proposed to achieve this goal, such as Asymmetric LSH by Shrivastava & Li (2014), subsequently discussed by Neyshabur & Srebro (2015). In our work, since we are not constrained to purely binary codes, we resort a more traditional encoding by employing a magnitude/direction parametrization of our vectors. Therefore we only need to encode/compress an unitary d-dimensional vector, which fits the aforementioned LSH and PQ methods well. ",
174
+ "bbox": [
175
+ 174,
176
+ 647,
177
+ 825,
178
+ 773
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Neural network compression models. Recently, several research efforts have been conducted to compress the parameters of architectures involved in computer vision, namely for state-of-theart Convolutional Neural Networks (CNNs) (Han et al., 2016; Lin et al., 2015). Some use vector quantization (Gong et al., 2014) while others binarize the network (Courbariaux et al., 2016). Denil et al. (2013) show that such classification models are easily compressed because they are overparametrized, which concurs with early observations by LeCun et al. (1990). ",
185
+ "bbox": [
186
+ 174,
187
+ 790,
188
+ 825,
189
+ 873
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Some of these works both aim at reducing the model size and the speed. In our case, since the fastText classifier on which our proposal is built upon is already very efficient, we are primilarly interested in reducing the size of the model while keeping a comparable classification efficiency. ",
196
+ "bbox": [
197
+ 174,
198
+ 103,
199
+ 825,
200
+ 146
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "3 PROPOSED APPROACH",
207
+ "text_level": 1,
208
+ "bbox": [
209
+ 176,
210
+ 166,
211
+ 390,
212
+ 183
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "3.1 TEXT CLASSIFICATION ",
219
+ "text_level": 1,
220
+ "bbox": [
221
+ 176,
222
+ 196,
223
+ 372,
224
+ 212
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "In the context of text classification, linear classifiers (Joulin et al., 2016) remain competitive with more sophisticated, deeper models, and are much faster to train. On top of standard tricks commonly used in linear text classification (Agarwal et al., 2014; Wang & Manning, 2012; Weinberger et al., 2009), Joulin et al. (2016) use a low rank constraint to reduce the computation burden while sharing information between different classes. This is especially useful in the case of a large output space, where rare classes may have only a few training examples. In this paper, we focus on a similar model, that is, which minimizes the softmax loss $\\ell$ over $N$ documents: ",
231
+ "bbox": [
232
+ 173,
233
+ 222,
234
+ 825,
235
+ 320
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "equation",
241
+ "img_path": "images/c05cd0c78ee183bfdc3d491b82c10824be5f6171e8f5cd0618e076f92ec5d0d3.jpg",
242
+ "text": "$$\n\\sum _ { n = 1 } ^ { N } \\ell ( y _ { n } , B A x _ { n } ) ,\n$$",
243
+ "text_format": "latex",
244
+ "bbox": [
245
+ 419,
246
+ 325,
247
+ 542,
248
+ 368
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "where $x _ { n }$ is a bag of one-hot vectors and $y _ { n }$ the label of the $n$ -th document. In the case of a large vocabulary and a large output space, the matrices $A$ and $B$ are big and can require gigabytes of memory. Below, we describe how we reduce this memory usage. ",
255
+ "bbox": [
256
+ 174,
257
+ 372,
258
+ 825,
259
+ 415
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "3.2 BOTTOM-UP PRODUCT QUANTIZATION ",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 176,
269
+ 431,
270
+ 480,
271
+ 445
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Product quantization is a popular method for compressed-domain approximate nearest neighbor search (Jegou et al., 2011). As a compression technique, it approximates a real-valued vector by finding the closest vector in a pre-defined structured set of centroids, referred to as a codebook. This codebook is not enumerated, since it is extremely large. Instead it is implicitly defined by its structure: a $d$ -dimensional vector $x \\in \\mathbb { R } ^ { d }$ is approximated as ",
278
+ "bbox": [
279
+ 174,
280
+ 457,
281
+ 825,
282
+ 527
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "equation",
288
+ "img_path": "images/da90bf504a17fc52277df137768f58020e30b1c0175980506fa045aa6bb8dafe.jpg",
289
+ "text": "$$\n\\hat { x } = \\sum _ { i = 1 } ^ { k } q _ { i } ( x ) ,\n$$",
290
+ "text_format": "latex",
291
+ "bbox": [
292
+ 446,
293
+ 532,
294
+ 547,
295
+ 577
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "where the different subquantizers $q _ { i } : x \\mapsto q _ { i } ( x )$ are complementary in the sense that their respective centroids lie in distinct orthogonal subspaces, i.e., $\\forall i \\neq j$ , $\\forall x , y$ , $\\langle q _ { i } ( x ) | q _ { j } ( y ) \\rangle = 0$ . In the original PQ, the subspaces are aligned with the natural axis, while OPQ learns a rotation, which amounts to alleviating this constraint and to not depend on the original coordinate system. Another way to see this is to consider that PQ splits a given vector $x$ into $k$ subvectors $x ^ { i }$ , $i \\stackrel { \\cdot } { = } 1 \\ldots k$ , each of dimension $d / k$ : $x = [ x ^ { 1 } \\dots x ^ { i } \\dots x ^ { k } ]$ , and quantizes each sub-vector using a distinct $\\mathbf { k }$ -means quantizer. Each subvector $x ^ { i }$ is thus mapped to the closest centroid amongst $2 ^ { b }$ centroids, where $b$ is the number of bits required to store the quantization index of the subquantizer, typically $b = 8$ . The reconstructed vector can take $2 ^ { k b }$ distinct reproduction values, and is stored in $k b$ bits. ",
302
+ "bbox": [
303
+ 173,
304
+ 580,
305
+ 825,
306
+ 707
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "PQ estimates the inner product in the compressed domain as ",
313
+ "bbox": [
314
+ 173,
315
+ 713,
316
+ 570,
317
+ 728
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/02fad22067c82eb0dad378962f56e449cf2de483837478a0d1407957fcdf283b.jpg",
324
+ "text": "$$\n\\boldsymbol { x } ^ { \\top } \\boldsymbol { y } \\approx \\hat { \\boldsymbol { x } } ^ { \\top } \\boldsymbol { y } = \\sum _ { i = 1 } ^ { k } q _ { i } ( \\boldsymbol { x } ^ { i } ) ^ { \\top } \\boldsymbol { y } ^ { i } .\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 398,
328
+ 733,
329
+ 599,
330
+ 777
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "This is a straightforward extension of the square L2 distance estimation of Jegou et al. (2011). In practice, the vector estimate $\\hat { x }$ is trivially reconstructed from the codes, i.e., from the quantization indexes, by concatenating these centroids. ",
337
+ "bbox": [
338
+ 173,
339
+ 789,
340
+ 825,
341
+ 832
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "The two parameters involved in PQ, namely the number of subquantizers $k$ and the number of bits $b$ per quantization index, are typically set to $\\dot { k } \\in [ 2 , d / 2 ]$ , and $b = 8$ to ensure byte-alignment. ",
348
+ "bbox": [
349
+ 173,
350
+ 838,
351
+ 823,
352
+ 867
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Discussion. PQ offers several interesting properties in our context of text classification. Firstly, the training is very fast because the subquantizers have a small number of centroids, i.e., 256 centroids for $b = 8$ . Secondly, at test time it allows the reconstruction of the vectors with almost no computational and memory overhead. Thirdly, it has been successfully applied in computer vision, offering much better performance than binary codes, which makes it a natural candidate to compress relatively shallow models. As observed by Sanchez & Perronnin (2011), using PQ just before the ´ last layer incurs a very limited loss in accuracy when combined with a support vector machine. ",
359
+ "bbox": [
360
+ 176,
361
+ 881,
362
+ 823,
363
+ 924
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "",
370
+ "bbox": [
371
+ 174,
372
+ 103,
373
+ 823,
374
+ 159
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "In the context of text classification, the norms of the vectors are widely spread, typically with a ratio of 1000 between the max and the min. Therefore kmeans performs poorly because it optimizes an absolute error objective, so it maps all low-norm vectors to 0. A simple solution is to separate the norm and the angle of the vectors and to quantize them separately. This allows a quantization with no loss of performance, yet requires an extra $b$ bits per vector. ",
381
+ "bbox": [
382
+ 174,
383
+ 166,
384
+ 825,
385
+ 236
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Bottom-up strategy: re-training. The first works aiming at compressing CNN models like the one proposed by (Gong et al., 2014) used the reconstruction from off-the-shelf PQ, i.e., without any re-training. However, as observed in Sablayrolles et al. (2016), when using quantization methods like PQ, it is better to re-train the layers occurring after the quantization, so that the network can re-adjust itself to the quantization. There is a strong argument arguing for this re-training strategy: the square magnitude of vectors is reduced, on average, by the average quantization error for any quantizer satisfying the Lloyd conditions; see Jegou et al. (2011) for details. ",
392
+ "bbox": [
393
+ 174,
394
+ 251,
395
+ 825,
396
+ 349
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "This suggests a bottom-up learning strategy where we first quantize the input matrix, then retrain and quantize the output matrix (the input matrix being frozen). Experiments in section 4 show that it is worth adopting this strategy. ",
403
+ "bbox": [
404
+ 174,
405
+ 357,
406
+ 825,
407
+ 398
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Memory savings with PQ. In practice, the bottom-up PQ strategy offers a compression factor of 10 without any noticeable loss of performance. Without re-training, we notice a drop in accuracy between $0 . 1 \\%$ and $0 . 5 \\%$ , depending on the dataset and setting; see Section 4 and the appendix. ",
414
+ "bbox": [
415
+ 176,
416
+ 414,
417
+ 825,
418
+ 457
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "3.3 FURTHER TEXT SPECIFIC TRICKS ",
425
+ "text_level": 1,
426
+ "bbox": [
427
+ 176,
428
+ 473,
429
+ 442,
430
+ 488
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "The memory usage strongly depends on the size of the vocabulary, which can be large in many text classification tasks. While it is clear that a large part of the vocabulary is useless or redundant, directly reducing the vocabulary to the most frequent words is not satisfactory: most of the frequent words, like “the” or “is” are not discriminative, in contrast to some rare words, e.g., in the context of tag prediction. In this section, we discuss a few heuristics to reduce the space taken by the dictionary. They lead to major memory reduction, in extreme cases by a factor 100. We experimentally show that this drastic reduction is complementary with the PQ compression method, meaning that the combination of both strategies reduces the model size by a factor up to $\\times 1 0 0 0$ for some datasets. ",
437
+ "bbox": [
438
+ 174,
439
+ 500,
440
+ 825,
441
+ 611
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Pruning the vocabulary. Discovering which word or n-gram must be kept to preserve the overall performance is a feature selection problem. While many approaches have been proposed to select groups of variables during training (Bach et al., 2012; Meier et al., 2008), we are interested in selecting a fixed subset of $K$ words and ngrams from a pre-trained model. This can be achieved by selecting the $K$ embeddings that preserve as much of the model as possible, which can be reduced to selecting the $K$ words and ngrams associated with the highest norms. ",
448
+ "bbox": [
449
+ 174,
450
+ 626,
451
+ 825,
452
+ 710
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "While this approach offers major memory savings, it has one drawback occurring in some particular cases: some documents may not contained any of the $K$ best features, leading to a significant drop in performance. It is thus important to keep the $K$ best features under the condition that they cover the whole training set. More formally, the problem is to find a subset $s$ in the feature set $\\nu$ that maximizes the sum of their norms $w _ { s }$ under the constraint that all the documents in the training set $\\mathcal { D }$ are covered: ",
459
+ "bbox": [
460
+ 174,
461
+ 717,
462
+ 825,
463
+ 800
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "equation",
469
+ "img_path": "images/130acb8ea66ae03ff25174aa0c7531c2bda761c18bb70a3b1cef1cb6635a9218.jpg",
470
+ "text": "$$\n\\operatorname* { m a x } _ { S \\subseteq \\mathcal { V } } \\sum _ { s \\in \\cal { S } } w _ { s } \\quad \\mathrm { ~ s . t . ~ } \\quad | S | \\leq K , P 1 _ { \\cal { S } } \\geq 1 _ { \\cal { D } } ,\n$$",
471
+ "text_format": "latex",
472
+ "bbox": [
473
+ 341,
474
+ 804,
475
+ 651,
476
+ 838
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "where $P$ is a matrix such that $P _ { d s } = 1$ if the $s$ -th feature is in the $d$ -th document, and 0 otherwise. This problem is directly related to set covering problems that are NP-hard (Feige, 1998). Standard greedy approaches require the storing of an inverted index or to do multiple passes over the dataset, which is prohibitive on very large dataset (Chierichetti et al., 2010). This problem can be cast as an instance of online submodular maximization with a rank constraint (Badanidiyuru et al., 2014; ",
483
+ "bbox": [
484
+ 174,
485
+ 853,
486
+ 825,
487
+ 924
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "image",
493
+ "img_path": "images/15d78f88290b96691cc9018373eef6a0532bbee755b0815e5eb2080d3353a831.jpg",
494
+ "image_caption": [
495
+ "Figure 1: Accuracy as a function of the memory per vector/embedding on 3 datasets from Zhang et al. (2015). Note, an extra byte is required when we encode the norm explicitly (”norm”). "
496
+ ],
497
+ "image_footnote": [],
498
+ "bbox": [
499
+ 184,
500
+ 107,
501
+ 808,
502
+ 295
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Bateni et al., 2010). In our case, we use a simple online parallelizable greedy approach: For each document, we verify if it is already covered by a retained feature and, if not, we add the feature with the highest norm to our set of retained features. If the number of features is below $k$ , we add the features with the highest norm that have not yet been picked. ",
509
+ "bbox": [
510
+ 174,
511
+ 387,
512
+ 825,
513
+ 444
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Hashing trick & Bloom filter. On small models, the dictionary can take a significant portion of the memory. Instead of saving it, we extend the hashing trick used in Joulin et al. (2016) to both words and n-grams. This strategy is also used in Vowpal Wabbit (Agarwal et al., 2014) in the context of online training. This allows us to save around 1-2Mb with almost no overhead at test time (just the cost of computing the hashing function). ",
520
+ "bbox": [
521
+ 174,
522
+ 478,
523
+ 825,
524
+ 549
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Pruning the vocabulary while using the hashing trick requires keeping a list of the indices of the $K$ remaining buckets. At test time, a binary search over the list of indices is required. It has a complexity of $O ( \\log ( K ) )$ and a memory overhead of a few hundreds of kilobytes. Using Bloom filters instead reduces the complexity $\\mathcal { O } ( 1 )$ at test time and saves a few hundred kilobytes. However, in practice, it degrades performance. ",
531
+ "bbox": [
532
+ 174,
533
+ 555,
534
+ 825,
535
+ 626
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "4 EXPERIMENTS ",
542
+ "text_level": 1,
543
+ "bbox": [
544
+ 176,
545
+ 665,
546
+ 326,
547
+ 681
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "This section evaluates the quality of our model compression pipeline and compare it to other compression methods on different text classification problems, and to other compact text classifiers. ",
554
+ "bbox": [
555
+ 174,
556
+ 707,
557
+ 821,
558
+ 736
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Evaluation protocol and datasets. Our experimental pipeline is as follows: we train a model using fastText with the default setting unless specified otherwise. That is 2M buckets, a learning rate of 0.1 and 10 training epochs. The dimensionality $d$ of the embeddings is set to powers of 2 to avoid border effects that could make the interpretation of the results more difficult. As baselines, we use Locality-Sensitive Hashing (LSH) (Charikar, 2002), PQ (Jegou et al., 2011) and OPQ (Ge et al., 2013) (the non-parametric variant). Note that we use an improved version of LSH where random orthogonal matrices are used instead of random matrix projection Jegou et al. (2008). In a first ´ series of experiments, we use the 8 datasets and evaluation protocol of Zhang et al. (2015). These datasets contain few million documents and have at most 10 classes. We also explore the limit of quantization on a dataset with an extremely large output space, that is a tag dataset extracted from the YFCC100M collection (Thomee et al., 2016)3, referred to as FlickrTag in the rest of this paper. ",
565
+ "bbox": [
566
+ 174,
567
+ 770,
568
+ 825,
569
+ 924
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "image",
575
+ "img_path": "images/cdcd3e63a3059e96131d7fa08c0a03f66afb2540d2d14097ce9d24bf7f2608de.jpg",
576
+ "image_caption": [
577
+ "Figure 2: Loss of accuracy as a function of the model size. We compare the compressed model with different level of pruning with NPQ and the full fastText model. We also compare with Zhang et al. (2015) and Xiao & Cho (2016). Note that the size is in log scale. ",
578
+ "Table 1: Best ranked words w.r.t. entropy (left) and norm (right) on the Amazon full review dataset. We give the rank for both criteria. The norm ranking filters out words carrying little information. "
579
+ ],
580
+ "image_footnote": [],
581
+ "bbox": [
582
+ 215,
583
+ 107,
584
+ 779,
585
+ 429
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "4.1 SMALL DATASETS ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 174,
595
+ 507,
596
+ 338,
597
+ 521
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Compression techniques. We compare three popular methods used for similarity estimation with compact codes: LSH, PQ and OPQ on the datasets released by Zhang et al. (2015). Figure 1 shows the accuracy as a function of the number of bytes used per embedding, which corresponds to the number $k$ of subvectors in the case of PQ and OPQ. See more results in the appendix. As discussed in Section 2, LSH reproduces the cosine similarity and is therefore not adapted to un-normalized data. Therefore we only report results with normalization. Once normalized, PQ and OPQ are almost lossless even when using only $k = 4$ subquantizers per embedding (equivalently, bytes). We observe in practice that using $k = d / 2$ , i.e., half of the components of the embeddings, works well in practice. In the rest of the paper and if not stated otherwise, we focus on this setting. The difference between the normalized versions of PQ and OPQ is limited and depends on the dataset. Therefore we adopt the normalized PQ (NPQ) for the rest of this study, since it is faster to train. ",
604
+ "bbox": [
605
+ 173,
606
+ 532,
607
+ 825,
608
+ 685
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "table",
614
+ "img_path": "images/5a6d1d3a78e17847d7f942fce2c5a8c91548f3864931f56d56e31adf1e251089.jpg",
615
+ "table_caption": [],
616
+ "table_footnote": [],
617
+ "table_body": "<table><tr><td>word</td><td>Entropy</td><td>Norm</td><td>word</td><td>Entropy</td><td>Norm</td></tr><tr><td>·</td><td>1</td><td>354</td><td>mediocre</td><td>1399</td><td>1</td></tr><tr><td>,</td><td>2</td><td>176</td><td>disappointing</td><td>454</td><td>2</td></tr><tr><td>the</td><td>3</td><td>179</td><td>SO-SO</td><td>2809</td><td>3</td></tr><tr><td>and</td><td>4</td><td>1639</td><td>lacks</td><td>1244</td><td>4</td></tr><tr><td>i</td><td>5</td><td>2374</td><td>worthless</td><td>1757</td><td>5</td></tr><tr><td>a</td><td>6</td><td>970</td><td>dreadful</td><td>4358</td><td>6</td></tr><tr><td>to</td><td>7</td><td>1775</td><td>drm</td><td>6395</td><td>7</td></tr><tr><td>it</td><td>8</td><td>1956</td><td>poorly</td><td>716</td><td>8</td></tr><tr><td>of</td><td>9</td><td>2815</td><td>uninspired</td><td>4245</td><td>9</td></tr><tr><td>this</td><td>10</td><td>3275</td><td>worst</td><td>402</td><td>10</td></tr></table>",
618
+ "bbox": [
619
+ 289,
620
+ 699,
621
+ 709,
622
+ 853
623
+ ],
624
+ "page_idx": 5
625
+ },
626
+ {
627
+ "type": "table",
628
+ "img_path": "images/b88d49372c0f39d2c472eb7c2d26f438cecfa02b2501a0ef991d696cfaa1c7c3.jpg",
629
+ "table_caption": [
630
+ "Table 2: Performance on very small models. We use a quantization with $k = 1$ , hashing and an extreme pruning. The last row shows the average drop of performance for different size. "
631
+ ],
632
+ "table_footnote": [],
633
+ "table_body": "<table><tr><td>Dataset</td><td>full</td><td>64KiB</td><td>32KiB</td><td>16 KiB</td></tr><tr><td>AG</td><td>65M</td><td>92.1 91.4</td><td>90.6</td><td>89.1</td></tr><tr><td>Amazon full</td><td>108M</td><td>60.0 58.8</td><td>56.0</td><td>52.9</td></tr><tr><td>Amazon pol.</td><td>113M</td><td>94.5 93.3</td><td>92.1</td><td>89.3</td></tr><tr><td>DBPedia</td><td>87M</td><td>98.4 98.2</td><td>98.1</td><td>97.4</td></tr><tr><td>Sogou</td><td>73M</td><td>96.4 96.4</td><td>96.3</td><td>95.5</td></tr><tr><td>Yahoo</td><td>122M</td><td>72.1 70.0</td><td>69.0</td><td>69.2</td></tr><tr><td>Yelp full</td><td>78M</td><td>63.8 63.2</td><td>62.4</td><td>58.7</td></tr><tr><td>Yelp pol.</td><td>77M</td><td>95.7 95.3</td><td>94.9</td><td>93.2</td></tr><tr><td>Average diff. [%]</td><td></td><td>0</td><td>-0.8 -1.7</td><td>-3.5</td></tr></table>",
634
+ "bbox": [
635
+ 279,
636
+ 101,
637
+ 717,
638
+ 262
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Pruning. Figure 2 shows the performance of our model with different sizes. We fix $k = d / 2$ and use different pruning thresholds. NPQ offers a compression rate of $\\times 1 0$ compared to the full model. As the pruning becomes more agressive, the overall compression can increase up up to $\\times 1 , 0 0 0$ with little drop of performance and no additional overhead at test time. In fact, using a smaller dictionary makes the model faster at test time. We also compare with character-level Convolutional Neural Networks (CNN) (Zhang et al., 2015; Xiao & Cho, 2016). They are attractive models for text classification because they achieve similar performance with less memory usage than linear models (Xiao & Cho, 2016). Even though fastText with the default setting uses more memory, NPQ is already on par with CNNs’ memory usage. Note that CNNs are not quantized, and it would be worth seeing how much they can be quantized with no drop of performance. Such a study is beyond the scope of this paper. Our pruning is based on the norm of the embeddings according to the guidelines of Section 3.3. Table 1 compares the ranking obtained with norms to the ranking obtained using entropy, which is commonly used in unsupervised settings Stolcke (2000). ",
645
+ "bbox": [
646
+ 173,
647
+ 325,
648
+ 825,
649
+ 507
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Extreme compression. Finally, in Table 2, we explore the limit of quantized model by looking at the performance obtained for models under 64KiB. Surprisingly, even at 64KiB and 32KiB, the drop of performance is only around $0 . 8 \\%$ and $1 . 7 \\%$ despite a compression rate of $\\times 1 , 0 0 0 - 4 , 0 0 0$ . ",
656
+ "bbox": [
657
+ 174,
658
+ 522,
659
+ 825,
660
+ 565
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "4.2 LARGE DATASET: FLICKRTAG ",
667
+ "text_level": 1,
668
+ "bbox": [
669
+ 176,
670
+ 582,
671
+ 421,
672
+ 597
673
+ ],
674
+ "page_idx": 6
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "In this section, we explore the limit of compression algorithms on very large datasets. Similar to Joulin et al. (2016), we consider a hashtag prediction dataset containing 312, 116 labels. We set the minimum count for words at 10, leading to a dictionary of 1, 427, 667 words. We take 10M buckets for n-grams and a hierarchical softmax. We refer to this dataset as FlickrTag. ",
679
+ "bbox": [
680
+ 174,
681
+ 608,
682
+ 825,
683
+ 664
684
+ ],
685
+ "page_idx": 6
686
+ },
687
+ {
688
+ "type": "table",
689
+ "img_path": "images/9dd039811ceba7becce7e87300b0c7dfc5f9eecce1bcd7813cfa807b1261647a.jpg",
690
+ "table_caption": [
691
+ "Output encoding. We are interested in understanding how the performance degrades if the classifier is also quantized (i.e., the matrix $B$ in Eq. 1) and when the pruning is at the limit of the minimum number of features required to cover the full dataset. "
692
+ ],
693
+ "table_footnote": [],
694
+ "table_body": "<table><tr><td>Model</td><td>k</td><td>norm</td><td>retrain</td><td>Acc.</td><td>Size</td></tr><tr><td>full (uncompressed)</td><td></td><td></td><td></td><td>45.4</td><td>12 GiB</td></tr><tr><td>Input</td><td>128</td><td></td><td></td><td>45.0</td><td>1.7 GiB</td></tr><tr><td>Input</td><td>128</td><td>X</td><td></td><td>45.3</td><td>1.8 GiB</td></tr><tr><td>Input</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>1.8 GiB</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td></td><td>45.2</td><td>1.5 GiB</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td>X</td><td>45.4</td><td>1.5 GiB</td></tr></table>",
695
+ "bbox": [
696
+ 281,
697
+ 734,
698
+ 715,
699
+ 854
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Table 3: FlickrTag: Influence of quantizing the output matrix on performance. We use PQ for quantization with an optional normalization. We also retrain the output matrix after quantizing the input one. The ”norm” refers to the separate encoding of the magnitude and angle, while ”retrain” refers to the re-training bottom-up PQ method described in Section 3.2. ",
706
+ "bbox": [
707
+ 173,
708
+ 864,
709
+ 825,
710
+ 921
711
+ ],
712
+ "page_idx": 6
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "Table 3 shows that quantizing both the “input” matrix (i.e., $A$ in Eq. 1) and the “output” matrix (i.e., $B$ ) does not degrade the performance compared to the full model. We use embeddings with $d = 2 5 6$ dimensions and use $k = d / 2$ subquantizers. We do not use any text specific tricks, which leads to a compression factor of 8. Note that even if the output matrix is not retrained over the embeddings, the performance is only $0 . 2 \\%$ away from the full model. As shown in the Appendix, using less subquantizers significantly decreases the performance for a small memory gain. ",
717
+ "bbox": [
718
+ 174,
719
+ 103,
720
+ 825,
721
+ 188
722
+ ],
723
+ "page_idx": 7
724
+ },
725
+ {
726
+ "type": "table",
727
+ "img_path": "images/0f5d3e973dd3a009925f06836fbc45a469f92c4d8ba04b6106d5c3063189683b.jpg",
728
+ "table_caption": [],
729
+ "table_footnote": [],
730
+ "table_body": "<table><tr><td>Model</td><td>full</td><td colspan=\"2\"> Entropy pruning</td><td colspan=\"2\">Norm pruning</td><td colspan=\"2\">Max-Cover pruning</td></tr><tr><td>#embeddings Memory</td><td>11.5M 12GiB</td><td>2M 297MiB</td><td>1M 174MiB</td><td>2M 305MiB</td><td>1M 179MiB</td><td>2M 305MiB</td><td>1M 179MiB</td></tr><tr><td>Coverage [%]</td><td>88.4</td><td>70.5</td><td>70.5</td><td>73.2</td><td>61.9</td><td>88.4</td><td>88.4</td></tr><tr><td>Accuracy</td><td>45.4</td><td>32.1</td><td>30.5</td><td>41.6</td><td>35.8</td><td>45.5</td><td>43.9</td></tr></table>",
731
+ "bbox": [
732
+ 186,
733
+ 202,
734
+ 810,
735
+ 295
736
+ ],
737
+ "page_idx": 7
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "Table 4: FlickrTag: Comparison of entropy pruning, norm pruning and max-cover pruning methods. \nWe show the coverage of the test set for each method. ",
742
+ "bbox": [
743
+ 174,
744
+ 304,
745
+ 821,
746
+ 333
747
+ ],
748
+ "page_idx": 7
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "Pruning. Table 4 shows how the performance evolves with pruning. We measure this effect on top of a fully quantized model. The full model misses $1 1 . 6 \\%$ of the test set because of missing words (some documents are either only composed of hashtags or have only rare words). There are 312, 116 labels and thus it seems reasonable to keep embeddings in the order of the million. A naive pruning with 1M features misses about $3 0 - 4 0 \\%$ of the test set, leading to a significant drop of performance. On the other hand, even though the max-coverage pruning approach was set on the train set, it does not suffer from any coverage loss on the test set. This leads to a smaller drop of performance. If the pruning is too aggressive, however, the coverage decreases significantly. ",
753
+ "bbox": [
754
+ 173,
755
+ 359,
756
+ 825,
757
+ 472
758
+ ],
759
+ "page_idx": 7
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "5 FUTURE WORK ",
764
+ "text_level": 1,
765
+ "bbox": [
766
+ 176,
767
+ 492,
768
+ 334,
769
+ 508
770
+ ],
771
+ "page_idx": 7
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "It may be possible to obtain further reduction of the model size in the future. One idea is to condition the size of the vectors (both for the input features and the labels) based on their frequency (Chen et al., 2015; Grave et al., 2016). For example, it is probably not worth representing the rare labels by full 256-dimensional vectors in the case of the FlickrTag dataset. Thus, conditioning the vector size on the frequency and norm seems like an interesting direction to explore in the future. ",
776
+ "bbox": [
777
+ 174,
778
+ 526,
779
+ 825,
780
+ 597
781
+ ],
782
+ "page_idx": 7
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "We may also consider combining the entropy and norm pruning criteria: instead of keeping the features in the model based just on the frequency or the norm, we can use both to keep a good set of features. This could help to keep features that are both frequent and discriminative, and thereby to reduce the coverage problem that we have observed. ",
787
+ "bbox": [
788
+ 174,
789
+ 603,
790
+ 825,
791
+ 659
792
+ ],
793
+ "page_idx": 7
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Additionally, instead of pruning out the less useful features, we can decompose them into smaller units (Mikolov et al., 2012). For example, this can be achieved by splitting every non-discriminative word into a sequence of character trigrams. This could help in cases where training and test examples are very short (for example just a single word). ",
798
+ "bbox": [
799
+ 174,
800
+ 665,
801
+ 825,
802
+ 722
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "6 CONCLUSION ",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 176,
812
+ 744,
813
+ 318,
814
+ 761
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "In this paper, we have presented several simple techniques to reduce, by several orders of magnitude, the memory complexity of certain text classifiers without sacrificing accuracy nor speed. This is achieved by applying discriminative pruning which aims to keep only important features in the trained model, and by performing quantization of the weight matrices and hashing of the dictionary. ",
821
+ "bbox": [
822
+ 174,
823
+ 776,
824
+ 825,
825
+ 833
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "We will publish the code as an extension of the fastText library. We hope that our work will serve as a baseline to the research community, where there is an increasing interest for comparing the performance of various deep learning text classifiers for a given number of parameters. Overall, compared to recent work based on convolutional neural networks, fastText.zip is often more accurate, while requiring several orders of magnitude less time to train on common CPUs, and incurring a fraction of the memory complexity. ",
832
+ "bbox": [
833
+ 174,
834
+ 840,
835
+ 825,
836
+ 924
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "REFERENCES ",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 176,
846
+ 102,
847
+ 287,
848
+ 118
849
+ ],
850
+ "page_idx": 8
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Alekh Agarwal, Olivier Chapelle, Miroslav Dud´ık, and John Langford. A reliable effective terascale linear learning system. Journal of Machine Learning Research, 15(1):1111–1133, 2014. ",
855
+ "bbox": [
856
+ 174,
857
+ 126,
858
+ 823,
859
+ 155
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Francis Bach, Rodolphe Jenatton, Julien Mairal, and Guillaume Obozinski. Optimization with sparsity-inducing penalties. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 4(1):1–106, 2012. ",
866
+ "bbox": [
867
+ 173,
868
+ 162,
869
+ 823,
870
+ 193
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Ashwinkumar Badanidiyuru, Baharan Mirzasoleiman, Amin Karbasi, and Andreas Krause. Streaming submodular maximization: Massive data summarization on the fly. In SIGKDD, pp. 671–680. ACM, 2014. ",
877
+ "bbox": [
878
+ 173,
879
+ 200,
880
+ 823,
881
+ 242
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Mohammad Hossein Bateni, Mohammad Taghi Hajiaghayi, and Morteza Zadimoghaddam. Submodular secretary problem and extensions. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, pp. 39–52. Springer, 2010. ",
888
+ "bbox": [
889
+ 173,
890
+ 252,
891
+ 823,
892
+ 295
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Moses S. Charikar. Similarity estimation techniques from rounding algorithms. In STOC, pp. 380– 388, May 2002. ",
899
+ "bbox": [
900
+ 171,
901
+ 304,
902
+ 823,
903
+ 333
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Welin Chen, David Grangier, and Michael Auli. Strategies for training large vocabulary neural language models. arXiv preprint arXiv:1512.04906, 2015. ",
910
+ "bbox": [
911
+ 169,
912
+ 340,
913
+ 823,
914
+ 371
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Flavio Chierichetti, Ravi Kumar, and Andrew Tomkins. Max-cover in map-reduce. In International Conference on World Wide Web, 2010. ",
921
+ "bbox": [
922
+ 171,
923
+ 378,
924
+ 823,
925
+ 409
926
+ ],
927
+ "page_idx": 8
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training neural networks with weights and activations constrained to $+ 1$ or $^ { - 1 }$ . arXiv preprint arXiv:1602.02830, 2016. ",
932
+ "bbox": [
933
+ 174,
934
+ 416,
935
+ 825,
936
+ 459
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "M. Datar, N. Immorlica, P. Indyk, and V.S. Mirrokni. Locality-sensitive hashing scheme based on pstable distributions. In Proceedings of the Symposium on Computational Geometry, pp. 253–262, 2004. ",
943
+ "bbox": [
944
+ 173,
945
+ 467,
946
+ 823,
947
+ 510
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Scott Deerwester, Susan T Dumais, George W Furnas, Thomas K Landauer, and Richard Harshman. Indexing by latent semantic analysis. Journal of the American society for information science, 1990. ",
954
+ "bbox": [
955
+ 173,
956
+ 518,
957
+ 825,
958
+ 561
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Misha Denil, Babak Shakibi, Laurent Dinh, Marc-Aurelio Ranzato, and Nando et all de Freitas. Predicting parameters in deep learning. In NIPS, pp. 2148–2156, 2013. ",
965
+ "bbox": [
966
+ 176,
967
+ 570,
968
+ 823,
969
+ 601
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Uriel Feige. A threshold of ln n for approximating set cover. JACM, 45(4):634–652, 1998. ",
976
+ "bbox": [
977
+ 174,
978
+ 608,
979
+ 766,
980
+ 625
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Tiezheng Ge, Kaiming He, Qifa Ke, and Jian Sun. Optimized product quantization for approximate nearest neighbor search. In CVPR, June 2013. ",
987
+ "bbox": [
988
+ 174,
989
+ 631,
990
+ 820,
991
+ 661
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Yunchao Gong and Svetlana Lazebnik. Iterative quantization: A procrustean approach to learning binary codes. In CVPR, June 2011. ",
998
+ "bbox": [
999
+ 174,
1000
+ 670,
1001
+ 821,
1002
+ 699
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014. ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 707,
1012
+ 823,
1013
+ 736
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Edouard Grave, Armand Joulin, Moustapha Cisse, David Grangier, and Herv ´ e J ´ egou. Efficient ´ softmax approximation for gpus. arXiv preprint arXiv:1609.04309, 2016. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 744,
1023
+ 825,
1024
+ 775
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 781,
1034
+ 825,
1035
+ 811
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Herve J ´ egou, Matthijs Douze, and Cordelia Schmid. Hamming embedding and weak geometric ´ consistency for large scale image search. In ECCV, October 2008. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 820,
1045
+ 821,
1046
+ 849
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor ´ search. IEEE Trans. PAMI, January 2011. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 857,
1056
+ 821,
1057
+ 887
1058
+ ],
1059
+ "page_idx": 8
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Thorsten Joachims. Text categorization with support vector machines: Learning with many relevant features. Springer, 1998. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 895,
1067
+ 821,
1068
+ 924
1069
+ ],
1070
+ "page_idx": 8
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016. ",
1075
+ "bbox": [
1076
+ 171,
1077
+ 103,
1078
+ 825,
1079
+ 132
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. NIPS, 2:598–605, 1990. ",
1086
+ "bbox": [
1087
+ 176,
1088
+ 140,
1089
+ 805,
1090
+ 156
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Zhouhan Lin, Matthieu Courbariaux, Roland Memisevic, and Yoshua Bengio. Neural networks with few multiplications. arXiv preprint arXiv:1510.03009, 2015. ",
1097
+ "bbox": [
1098
+ 176,
1099
+ 164,
1100
+ 823,
1101
+ 194
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Andrew McCallum and Kamal Nigam. A comparison of event models for naive bayes text classification. In AAAI workshop on learning for text categorization, 1998. ",
1108
+ "bbox": [
1109
+ 176,
1110
+ 200,
1111
+ 821,
1112
+ 231
1113
+ ],
1114
+ "page_idx": 9
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Lukas Meier, Sara Van De Geer, and Peter Buhlmann. The group lasso for logistic regression. ¨ Journal of the Royal Statistical Society: Series B (Statistical Methodology), 70(1):53–71, 2008. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 238,
1122
+ 821,
1123
+ 268
1124
+ ],
1125
+ "page_idx": 9
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Tomas Mikolov. Statistical language models based on neural networks. In PhD thesis. VUT Brno, 2012. ",
1130
+ "bbox": [
1131
+ 174,
1132
+ 275,
1133
+ 823,
1134
+ 304
1135
+ ],
1136
+ "page_idx": 9
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Tomas Mikolov, Ilya Sutskever, Anoop Deoras, Hai-Son Le, Stefan Kombrink, and J Cernocky. Subword language modeling with neural networks. preprint, 2012. ",
1141
+ "bbox": [
1142
+ 173,
1143
+ 311,
1144
+ 823,
1145
+ 342
1146
+ ],
1147
+ "page_idx": 9
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Behnam Neyshabur and Nathan Srebro. On symmetric and asymmetric lshs for inner product search. In ICML, pp. 1926–1934, 2015. ",
1152
+ "bbox": [
1153
+ 173,
1154
+ 349,
1155
+ 823,
1156
+ 378
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Mohammad Norouzi and David Fleet. Cartesian k-means. In CVPR, June 2013. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 386,
1166
+ 699,
1167
+ 402
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Bo Pang and Lillian Lee. Opinion mining and sentiment analysis. Foundations and trends in information retrieval, 2008. ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 410,
1177
+ 823,
1178
+ 439
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Alexandre Sablayrolles, Matthijs Douze, Herve J ´ egou, and Nicolas Usunier. How should we evalu-´ ate supervised hashing? arXiv preprint arXiv:1609.06753, 2016. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 446,
1188
+ 821,
1189
+ 477
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Jorge Sanchez and Florent Perronnin. High-dimensional signature compression for large-scale im- ´ age classification. In CVPR, 2011. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 484,
1199
+ 823,
1200
+ 513
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Anshumali Shrivastava and Ping Li. Asymmetric LSH for sublinear time maximum inner product search. In NIPS, pp. 2321–2329, 2014. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 521,
1210
+ 821,
1211
+ 551
1212
+ ],
1213
+ "page_idx": 9
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Andreas Stolcke. Entropy-based pruning of backoff language models. arXiv preprint cs/0006025, 2000. ",
1218
+ "bbox": [
1219
+ 173,
1220
+ 558,
1221
+ 823,
1222
+ 588
1223
+ ],
1224
+ "page_idx": 9
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "David Talbot and Thorsten Brants. Randomized language models via perfect hash functions. In ACL, 2008. ",
1229
+ "bbox": [
1230
+ 173,
1231
+ 595,
1232
+ 823,
1233
+ 626
1234
+ ],
1235
+ "page_idx": 9
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. In Communications of the ACM, 2016. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 632,
1243
+ 823,
1244
+ 676
1245
+ ],
1246
+ "page_idx": 9
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Jingdong Wang, Heng Tao Shen, Jingkuan Song, and Jianqiu Ji. Hashing for similarity search: A survey. arXiv preprint arXiv:1408.2927, 2014. ",
1251
+ "bbox": [
1252
+ 171,
1253
+ 684,
1254
+ 821,
1255
+ 713
1256
+ ],
1257
+ "page_idx": 9
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Jun Wang, Wei Liu, Sanjiv Kumar, and Shih-Fu Chang. Learning to hash for indexing big data - A survey. CoRR, abs/1509.05472, 2015. ",
1262
+ "bbox": [
1263
+ 171,
1264
+ 720,
1265
+ 823,
1266
+ 751
1267
+ ],
1268
+ "page_idx": 9
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Sida Wang and Christopher D Manning. Baselines and bigrams: Simple, good sentiment and topic classification. In ACL, 2012. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 757,
1276
+ 823,
1277
+ 787
1278
+ ],
1279
+ "page_idx": 9
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Kilian Q Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In ICML, 2009. ",
1284
+ "bbox": [
1285
+ 173,
1286
+ 795,
1287
+ 823,
1288
+ 825
1289
+ ],
1290
+ "page_idx": 9
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Yair Weiss, Antonio Torralba, and Rob Fergus. Spectral hashing. In NIPS, December 2009. ",
1295
+ "bbox": [
1296
+ 171,
1297
+ 832,
1298
+ 776,
1299
+ 848
1300
+ ],
1301
+ "page_idx": 9
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Yijun Xiao and Kyunghyun Cho. Efficient character-level document classification by combining convolution and recurrent layers. arXiv preprint arXiv:1602.00367, 2016. ",
1306
+ "bbox": [
1307
+ 171,
1308
+ 856,
1309
+ 821,
1310
+ 886
1311
+ ],
1312
+ "page_idx": 9
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In NIPS, 2015. ",
1317
+ "bbox": [
1318
+ 171,
1319
+ 892,
1320
+ 823,
1321
+ 922
1322
+ ],
1323
+ "page_idx": 9
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "APPENDIX ",
1328
+ "text_level": 1,
1329
+ "bbox": [
1330
+ 176,
1331
+ 103,
1332
+ 263,
1333
+ 117
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "table",
1339
+ "img_path": "images/a2a6acc82590e8292c5be9f305174fbbbb2706328e9ca6446c5fa0412a92a47d.jpg",
1340
+ "table_caption": [
1341
+ "In the appendix, we show some additional results. The model used in these experiments only had 1M ngram buckets. In Table 5, we show a thorough comparison of LSH, PQ and OPQ on 8 different datasets. Table 7 summarizes the comparison with CNNs in terms of accuracy and size. Table 8 show a thorough comparison of the hashing trick and the Bloom filters. "
1342
+ ],
1343
+ "table_footnote": [],
1344
+ "table_body": "<table><tr><td>Quant. k</td><td>ULIOU</td><td></td><td>AG</td><td></td><td>Amz. f.</td><td></td><td>Amz. p.</td><td></td><td>DBP</td><td></td><td></td><td>Sogou</td><td></td><td>Yah.</td><td></td><td>Yelp f.</td><td></td><td>Yelp p.</td></tr><tr><td>full full,nodict</td><td></td><td></td><td>92.1 36M 92.1 34M</td><td></td><td>59.897M 59.9</td><td>78M</td><td>94.5 94.5</td><td>104M 83M</td><td>98.467M 98.4</td><td>56M</td><td>96.347M 96.3</td><td>42M</td><td>72 72.2</td><td>120M 91M</td><td>63.756M 63.648M</td><td></td><td>95.7 53M 95.646M</td><td></td></tr><tr><td>LSH</td><td>8</td><td></td><td>88.7</td><td>8.5M</td><td>51.3</td><td>20M</td><td>90.3</td><td>21M</td><td>92.7</td><td>14M</td><td>94.2</td><td>11M</td><td>54.8</td><td>23M</td><td>56.7</td><td>12M</td><td>92.2</td><td>12M</td></tr><tr><td>PQ</td><td>8</td><td></td><td>91.7</td><td>8.5M</td><td>59.3</td><td>20M</td><td>94.4</td><td>21M</td><td>97.4</td><td>14M</td><td>96.1</td><td>11M</td><td>71.3</td><td>23M</td><td>62.8</td><td>12M</td><td>95.4</td><td>12M</td></tr><tr><td>OPQ</td><td>8</td><td></td><td>91.9</td><td>8.5M</td><td>59.3</td><td>20M</td><td>94.4</td><td>21M</td><td>96.9</td><td>14M</td><td>95.8</td><td>11M</td><td>71.4</td><td>23M</td><td>62.5</td><td>12M</td><td>95.4</td><td>12M</td></tr><tr><td>LSH</td><td>8</td><td>X</td><td>91.9</td><td>9.5M</td><td>59.4</td><td>22M</td><td>94.5</td><td>24M</td><td>97.8</td><td>16M</td><td>96.2</td><td>12M</td><td>71.6</td><td>26M</td><td>63.4</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>PQ</td><td>8</td><td>X</td><td>92.0</td><td>9.5M</td><td>59.8</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.1</td><td>26M</td><td>63.7</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>OPQ</td><td>8</td><td>X</td><td>92.1</td><td>9.5M</td><td>59.9</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.2</td><td>26M</td><td>63.6</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>LSH</td><td>4</td><td></td><td>88.3</td><td>4.3M</td><td>50.5</td><td>9.7M</td><td>88.9</td><td>11M</td><td>91.6</td><td>7.0M</td><td>94.3</td><td>5.3M</td><td>54.6</td><td>12M</td><td>56.5</td><td>6.0M</td><td>92.9</td><td>5.7M</td></tr><tr><td>PQ</td><td>4</td><td></td><td>91.6</td><td>4.3M</td><td>59.2</td><td>9.7M</td><td>94.4</td><td>11M</td><td>96.3</td><td>7.0M</td><td>96.1</td><td>5.3M</td><td>71.0</td><td>12M</td><td>62.2</td><td>6.0M</td><td>95.4</td><td>5.7M</td></tr><tr><td>OPQ</td><td>4</td><td></td><td>91.7</td><td>4.3M</td><td>59.0</td><td>9.7M</td><td>94.4</td><td>11M</td><td>96.9</td><td>7.0M</td><td>95.6</td><td>5.3M</td><td>71.2</td><td>12M</td><td>62.6</td><td>6.0M</td><td>95.4</td><td>5.7M</td></tr><tr><td>LSH</td><td>4</td><td>X</td><td>92.1</td><td>5.3M</td><td>59.2</td><td>13M</td><td>94.4</td><td>13M</td><td>97.7</td><td>8.8M</td><td>96.2</td><td>6.6M</td><td>71.1</td><td>15M</td><td>63.1</td><td>7.4M</td><td>95.5</td><td>7.2M</td></tr><tr><td>PQ</td><td>4</td><td>X</td><td>92.1</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.4</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72.0</td><td>15M</td><td>63.6</td><td>7.5M</td><td></td><td>95.67.2M</td></tr><tr><td>OPQ</td><td>4</td><td>X</td><td>92.2</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.3</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72.1</td><td>15M</td><td>63.7</td><td>7.5M</td><td>95.6</td><td>7.2M</td></tr><tr><td>LSH</td><td>2</td><td></td><td>87.7</td><td>2.2M</td><td>50.1</td><td>4.9M</td><td>88.9</td><td>5.2M</td><td>90.6</td><td>3.5M</td><td>93.9</td><td>2.7M</td><td>51.4</td><td>5.7M</td><td>56.6</td><td>3.0M</td><td>91.3</td><td>2.9M</td></tr><tr><td>PQ</td><td>2</td><td></td><td>91.1</td><td>2.2M</td><td>58.7</td><td>4.9M</td><td>94.4</td><td>5.2M</td><td>87.1</td><td>3.6M</td><td>95.3</td><td>2.7M</td><td>69.5</td><td>5.7M</td><td>62.1</td><td>3.0M</td><td>95.4</td><td>2.9M</td></tr><tr><td>OPQ</td><td>2</td><td></td><td>91.4</td><td>2.2M</td><td>58.2</td><td>4.9M</td><td>94.3</td><td>5.2M</td><td>91.6</td><td>3.6M</td><td>94.2</td><td>2.7M</td><td>69.6</td><td>5.7M</td><td>62.1</td><td>3.0M</td><td>95.4</td><td>2.9M</td></tr><tr><td>LSH</td><td>2</td><td>X</td><td>91.8</td><td>3.2M</td><td>58.6</td><td>7.3M</td><td>94.3</td><td>7.8M</td><td>97.1</td><td>5.3M</td><td>96.1</td><td>4.0M</td><td>69.7</td><td>8.6M</td><td>62.7</td><td>4.5M</td><td></td><td>95.54.3M</td></tr><tr><td>PQ</td><td>2</td><td>X</td><td>91.9</td><td>3.2M</td><td>59.6</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.3</td><td>4.0M</td><td>71.3</td><td>8.6M</td><td>63.44.5M</td><td></td><td></td><td>95.64.3M</td></tr><tr><td>OPQ</td><td>2</td><td>X</td><td>92.1</td><td>3.2M</td><td>59.5</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.2</td><td>4.0M</td><td>71.5</td><td>8.6M</td><td>63.44.5M</td><td></td><td></td><td>95.64.3M</td></tr></table>",
1345
+ "bbox": [
1346
+ 75,
1347
+ 202,
1348
+ 910,
1349
+ 517
1350
+ ],
1351
+ "page_idx": 10
1352
+ },
1353
+ {
1354
+ "type": "table",
1355
+ "img_path": "images/8bc40cec7313fcf1eca2cbf124b392f0266ca4e258655ad146c83644e83ca7ec.jpg",
1356
+ "table_caption": [
1357
+ "Table 5: Comparison between standard quantization methods. The original model has a dimensionality of 8 and 2M buckets. Note that all of the methods are without dictionary. "
1358
+ ],
1359
+ "table_footnote": [],
1360
+ "table_body": "<table><tr><td>k</td><td>co</td><td colspan=\"2\">AG</td><td colspan=\"2\">Amz. f.</td><td colspan=\"2\">Amz. p.</td><td colspan=\"2\">DBP</td><td colspan=\"2\">Sogou</td><td colspan=\"2\">Yah.</td><td colspan=\"2\">Yelp f.</td><td colspan=\"2\">Yelp p.</td></tr><tr><td></td><td>full, nodict</td><td>92.1</td><td>34M</td><td>59.8</td><td>78M</td><td>94.5</td><td>83M</td><td>98.4</td><td>56M</td><td>96.3</td><td>42M</td><td>72.2</td><td>91M</td><td>63.7</td><td>48M</td><td>95.6</td><td>46M</td></tr><tr><td>8</td><td>full</td><td>92.0</td><td>9.5M</td><td>59.8</td><td>22M</td><td>94.5</td><td>24M</td><td>98.4</td><td>16M</td><td>96.3</td><td>12M</td><td>72.1</td><td>26M</td><td>63.7</td><td>14M</td><td>95.6</td><td>13M</td></tr><tr><td>4</td><td>full</td><td>92.1</td><td>5.3M</td><td>59.8</td><td>13M</td><td>94.5</td><td>13M</td><td>98.4</td><td>8.8M</td><td>96.3</td><td>6.6M</td><td>72</td><td>15M</td><td>63.6</td><td>7.5M</td><td>95.6</td><td>7.2M</td></tr><tr><td>2</td><td>full</td><td>91.9</td><td>3.2M</td><td>59.6</td><td>7.3M</td><td>94.5</td><td>7.8M</td><td>98.1</td><td>5.3M</td><td>96.3</td><td>4.0M</td><td>71.3</td><td>8.6M</td><td>63.4</td><td>4.5M</td><td>95.6</td><td>4.3M</td></tr><tr><td>8</td><td>200K</td><td>92.0</td><td>2.5M</td><td>59.7</td><td>2.5M</td><td>94.3</td><td>2.5M</td><td>98.5</td><td>2.5M</td><td>96.6</td><td>2.5M</td><td>71.8</td><td>2.5M</td><td>63.3</td><td>2.5M</td><td>95.6</td><td>2.5M</td></tr><tr><td>8</td><td>100K</td><td>91.9</td><td>1.3M</td><td>59.5</td><td>1.3M</td><td>94.3</td><td>1.3M</td><td>98.5</td><td>1.3M</td><td>96.6</td><td>1.3M</td><td>71.6</td><td>1.3M</td><td>63.4</td><td>1.3M</td><td>95.6</td><td>1.3M</td></tr><tr><td>8</td><td>50K</td><td>91.7</td><td>645K</td><td>59.7</td><td>645K</td><td>94.3</td><td>644K</td><td>98.5</td><td>645K</td><td>96.6</td><td>645K</td><td>71.5</td><td>645K</td><td>63.2</td><td>645K</td><td>95.6</td><td>644K</td></tr><tr><td>8</td><td>10K</td><td>91.3</td><td>137K</td><td>58.6</td><td>137K</td><td>93.2</td><td>137K</td><td>98.5</td><td>137K</td><td>96.5</td><td>137K</td><td>71.3</td><td>137K</td><td>63.3</td><td>137K</td><td>95.4</td><td>137K</td></tr><tr><td>4</td><td>200K</td><td>92.0</td><td>1.8M</td><td>59.7</td><td>1.8M</td><td>94.3</td><td>1.8M</td><td>98.5</td><td>1.8M</td><td>96.6</td><td>1.8M</td><td>71.7</td><td>1.8M</td><td>63.3</td><td>1.8M</td><td>95.6</td><td>1.8M</td></tr><tr><td>4</td><td>100K</td><td>91.9</td><td>889K</td><td>59.5</td><td>889K</td><td>94.4</td><td>889K</td><td>98.5</td><td>889K</td><td>96.6</td><td>889K</td><td>71.7</td><td>889K</td><td>63.4</td><td>889K</td><td>95.6</td><td>889K</td></tr><tr><td>4</td><td>50K</td><td>91.7</td><td>449K</td><td>59.6</td><td>449K</td><td>94.3</td><td>449K</td><td>98.5</td><td>450K</td><td>96.6</td><td>449K</td><td>71.4</td><td>450K</td><td>63.2</td><td>449K</td><td>95.5</td><td>449K</td></tr><tr><td>4</td><td>10K</td><td>91.5</td><td>98K</td><td>58.6</td><td>98K</td><td>93.2</td><td>98K</td><td>98.5</td><td>98K</td><td>96.5</td><td>98K</td><td>71.2</td><td>98K</td><td>63.3</td><td>98K</td><td>95.4</td><td>98K</td></tr><tr><td></td><td>200K</td><td>91.9</td><td>1.4M</td><td>59.6</td><td>1.4M</td><td>94.3</td><td>1.4M</td><td>98.4</td><td>1.4M</td><td>96.5</td><td>1.4M</td><td>71.5</td><td>1.4M</td><td>63.2</td><td>1.4M</td><td>95.5</td><td>1.4M</td></tr><tr><td></td><td>100K</td><td>91.6</td><td>693K</td><td>59.5</td><td>693K</td><td>94.3</td><td>693K</td><td>98.4</td><td>694K</td><td>96.6</td><td>693K</td><td>71.1</td><td>694K</td><td>63.2</td><td>693K</td><td>95.6</td><td>693K</td></tr><tr><td>2222</td><td>50K</td><td>91.6</td><td>352K</td><td>59.6</td><td>352K</td><td>94.3</td><td>352K</td><td>98.4</td><td>352K</td><td>96.5</td><td>352K</td><td>71.1</td><td>352K</td><td>63.2</td><td>352K</td><td>95.6</td><td>352K</td></tr><tr><td></td><td>10K</td><td>91.3</td><td>78K</td><td>58.5</td><td>78K</td><td>93.2</td><td>78K</td><td>98.4</td><td>79K</td><td>96.5</td><td>78K</td><td>70.8</td><td>78K</td><td>63.2</td><td>78K</td><td>95.3</td><td>78K</td></tr></table>",
1361
+ "bbox": [
1362
+ 91,
1363
+ 583,
1364
+ 892,
1365
+ 832
1366
+ ],
1367
+ "page_idx": 10
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Table 6: Comparison with different quantization and level of pruning. “co” is the cut-off parameter of the pruning. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 847,
1375
+ 825,
1376
+ 876
1377
+ ],
1378
+ "page_idx": 10
1379
+ },
1380
+ {
1381
+ "type": "table",
1382
+ "img_path": "images/7b583938fc3620706ee3be48ccf01b11b3457d113956cb175da280a329971ab2.jpg",
1383
+ "table_caption": [],
1384
+ "table_footnote": [
1385
+ "Table 7: Comparison between CNNs and fastText with and without quantization. The numbers for Zhang et al. (2015) are reported from Xiao & Cho (2016). Note that for the CNNs, we report the size of the model under the assumption that they use float32 storage. For fastText $( + \\mathrm { P Q } )$ we report the memory used in RAM at test time. "
1386
+ ],
1387
+ "table_body": "<table><tr><td>Dataset</td><td>Zhang et al. (2015)</td><td></td><td>Xiao &amp; Cho (2016)</td><td></td><td>fastText+PQ,k= d/2</td></tr><tr><td>AG</td><td>90.2</td><td>108M</td><td>91.4</td><td>80M</td><td>91.9</td></tr><tr><td>Amz. f.</td><td>59.5</td><td>10.8M</td><td>59.2</td><td>1.6M</td><td>59.6 449K</td></tr><tr><td>Amz. p.</td><td>94.5</td><td>10.8M</td><td>94.1</td><td>1.6M</td><td>449K</td></tr><tr><td>DBP</td><td>98.3</td><td>108M</td><td>98.6</td><td>1.2M</td><td>98K</td></tr><tr><td>Sogou</td><td>95.1</td><td>108M</td><td>95.2</td><td>1.6M</td><td>98K</td></tr><tr><td>Yah.</td><td>70.5</td><td>108M</td><td>71.4</td><td>80M</td><td>889K</td></tr><tr><td>Yelp f.</td><td>61.6</td><td>108M</td><td>61.8</td><td>1.4M</td><td>98K</td></tr><tr><td>Yelp p.</td><td>94.8</td><td>108M</td><td>94.5</td><td>1.2M</td><td>449K</td></tr></table>",
1388
+ "bbox": [
1389
+ 240,
1390
+ 205,
1391
+ 753,
1392
+ 335
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "table",
1398
+ "img_path": "images/202c88cfb98e239a64d6b0def870225e77ac934cdf111c4aa5dd4309c6f7e242.jpg",
1399
+ "table_caption": [
1400
+ "Table 8: Comparison with and without Bloom filters. For NPQ, we set $d = 8$ and $k = 2$ . "
1401
+ ],
1402
+ "table_footnote": [],
1403
+ "table_body": "<table><tr><td>Quant.</td><td>1ooom</td><td>co</td><td colspan=\"2\">AG</td><td colspan=\"2\">Amz. f.</td><td colspan=\"2\">Amz. p.</td><td colspan=\"2\">DBP</td><td colspan=\"2\">Sogou</td><td colspan=\"2\">Yah.</td><td colspan=\"2\">Yelp f.</td><td colspan=\"2\">Yelp p.</td></tr><tr><td>full,nodict</td><td></td><td></td><td>92.1</td><td>34M</td><td>59.8</td><td>78M</td><td>94.5</td><td>83M</td><td>98.4</td><td>56M</td><td>96.3</td><td>42M</td><td>72.2</td><td>91M</td><td>63.7</td><td>48M</td><td>95.6</td><td>46M</td></tr><tr><td>NPQ</td><td></td><td>200K</td><td>91.9</td><td>1.4M</td><td>59.6</td><td>1.4M</td><td>94.3</td><td>1.4M</td><td>98.4</td><td>1.4M</td><td>96.5</td><td>1.4M</td><td>71.5</td><td>1.4M</td><td>63.2</td><td>1.4M</td><td>95.5</td><td>1.4M</td></tr><tr><td>NPQ</td><td>X</td><td>200K</td><td>92.2</td><td>830K</td><td>59.3</td><td>830K</td><td>94.1</td><td>830K</td><td>98.4</td><td>830K</td><td>96.5</td><td>830K</td><td>70.7</td><td>830K</td><td>63.0</td><td>830K</td><td>95.5</td><td>830K</td></tr><tr><td>NPQ</td><td></td><td>100K</td><td>91.6</td><td>693K</td><td>59.5</td><td>693K</td><td>94.3</td><td>693K</td><td>98.4</td><td>694K</td><td>96.6</td><td>693K</td><td>71.1</td><td>694K</td><td>63.2</td><td>693K</td><td>95.6</td><td>693K</td></tr><tr><td>NPQ</td><td>X</td><td>100K</td><td>91.8</td><td>420K</td><td>59.1</td><td>420K</td><td>93.9</td><td>420K</td><td>98.4</td><td>420K</td><td>96.5</td><td>420K</td><td>70.6</td><td>420K</td><td>62.8</td><td>420K</td><td>95.3</td><td>420K</td></tr><tr><td>NPQ</td><td></td><td>50K</td><td>91.6</td><td>352K</td><td>59.6</td><td>352K</td><td>94.3</td><td>352K</td><td>98.4</td><td>352K</td><td>96.5</td><td>352K</td><td>71.1</td><td>352K</td><td>63.2</td><td>352K</td><td>95.6</td><td>352K</td></tr><tr><td>NPQ</td><td>X</td><td>50K</td><td>91.5</td><td>215K</td><td>58.8</td><td>215K</td><td>93.6</td><td>215K</td><td>98.3</td><td>215K</td><td>96.5</td><td>215K</td><td>70.1</td><td>215K</td><td>62.7</td><td>215K</td><td>95.1</td><td>215K</td></tr><tr><td>NPQ</td><td></td><td>10K</td><td>91.3</td><td>78K</td><td>58.5</td><td>78K</td><td>93.2</td><td>78K</td><td>98.4</td><td>79K</td><td>96.5</td><td>78K</td><td>70.8</td><td>78K</td><td>63.2</td><td>78K</td><td>95.3</td><td>78K</td></tr><tr><td>NPQ</td><td>X</td><td>10K</td><td>90.8</td><td>51K</td><td>56.8</td><td>51K</td><td>91.7</td><td>51K</td><td>98.1</td><td>51K</td><td>96.1</td><td>51K</td><td>68.7</td><td>51K</td><td>61.7</td><td>51K</td><td>94.5</td><td>51K</td></tr></table>",
1404
+ "bbox": [
1405
+ 86,
1406
+ 619,
1407
+ 919,
1408
+ 791
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "table",
1414
+ "img_path": "images/aa57190841d9d805c71d4831ad3d1d6e2a74910e6d6095d3fc30a4925439025b.jpg",
1415
+ "table_caption": [],
1416
+ "table_footnote": [
1417
+ "Table 9: FlickrTag: Comparison for a large dataset of (i) different quantization methods and parameters, (ii) with or without re-training. "
1418
+ ],
1419
+ "table_body": "<table><tr><td>Model</td><td>k</td><td>norm</td><td>retrain</td><td>Acc.</td><td>Size</td></tr><tr><td>full</td><td></td><td></td><td></td><td>45.4</td><td>12G</td></tr><tr><td>Input</td><td>128</td><td></td><td></td><td>45.0</td><td>1.7G</td></tr><tr><td>Input</td><td>128</td><td>X</td><td></td><td>45.3</td><td>1.8G</td></tr><tr><td>Input</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>1.8G</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td></td><td>45.2</td><td>1.5G</td></tr><tr><td>Input+Output</td><td>128</td><td>X</td><td>X</td><td>45.4</td><td>1.5G</td></tr><tr><td>Input+Output, co=2M</td><td>128</td><td>X</td><td>X</td><td>45.5</td><td>305M</td></tr><tr><td>Input+Output, n co=1M</td><td>128</td><td>X</td><td>X</td><td>43.9</td><td>179M</td></tr><tr><td>Input</td><td>64</td><td></td><td></td><td>44.0</td><td>1.1G</td></tr><tr><td>Input</td><td>64</td><td>X</td><td></td><td>44.7</td><td>1.1G</td></tr><tr><td>Input</td><td>64</td><td>X</td><td></td><td>44.9</td><td>1.1G</td></tr><tr><td>Input+Output</td><td>64</td><td>X</td><td></td><td>44.6</td><td>784M</td></tr><tr><td>Input+Output</td><td>64</td><td>X</td><td>X</td><td>44.8</td><td>784M</td></tr><tr><td>Input+Output, co=2M</td><td>64</td><td>X</td><td></td><td>42.5</td><td>183M</td></tr><tr><td>Input+Output, co=1M</td><td>64</td><td>X</td><td></td><td>39.9</td><td>118M</td></tr><tr><td>Input+Output, co=2M</td><td>64</td><td>X</td><td>X</td><td>45.0</td><td>183M</td></tr><tr><td>Input+Output,co=1M</td><td>64</td><td>X</td><td>X</td><td>43.4</td><td>118M</td></tr><tr><td>Input</td><td>32</td><td></td><td></td><td>40.5</td><td>690M</td></tr><tr><td>Input</td><td>32</td><td>X</td><td></td><td>42.4</td><td>701M</td></tr><tr><td>Input</td><td>32</td><td>X</td><td>X</td><td>42.9</td><td>701M</td></tr><tr><td>Input+Output</td><td>32</td><td>X</td><td></td><td>42.3</td><td>435M</td></tr><tr><td>Input+Output</td><td>32</td><td>X</td><td>X</td><td>42.8</td><td>435M</td></tr><tr><td>Input+Output,co=2M</td><td>32</td><td>X</td><td></td><td>35.0</td><td>122M</td></tr><tr><td>Input+Output, co=1M</td><td>32</td><td>X</td><td></td><td>32.6</td><td>88M</td></tr><tr><td>Input+Output, co=2M</td><td>32</td><td>X</td><td>X</td><td>43.3</td><td>122M</td></tr><tr><td>Input+Output, co=1M</td><td>32</td><td>X</td><td>X</td><td>41.6</td><td>88M</td></tr></table>",
1420
+ "bbox": [
1421
+ 289,
1422
+ 305,
1423
+ 707,
1424
+ 679
1425
+ ],
1426
+ "page_idx": 12
1427
+ }
1428
+ ]
parse/train/SJc1hL5ee/SJc1hL5ee_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJc1hL5ee/SJc1hL5ee_model.json ADDED
The diff for this file is too large to render. See raw diff