Full text
Departamento de Sistemas Informáticos y Computación Universitat Politècnica de València Online Learning in Neural Machine Translation MASTER THESIS Máster en Inteligencia Artificial, Reconocimiento de Formas e Imagen Digital Author: Luis Cebrián Chuliá Tutor: Francisco Casacuberta Nolla Álvaro Peris Abril Course 2016-2017
Resum La traducció de gran qualitat es troba molt demanada en l’actualitat. Tot i que la traducció automàtica oferix unes prestacions acceptables, en alguns casos no és suficient i és necessària la supervisió humana. Per a facilitar la tasca de traducció de l’humà, els sistemes de traducció automàtica prenen part en aquest procés. Quan una nova oració en el llenguatge origen necessita ser traduïda, esta s’introduïx en el sistema, el qual obté com a eixida una hipòtesi de traducció. Llavors, l’humà corregix aquesta hipòtesi (també conegut com a post-editar) per a obtindre una traducció de major qualitat. Ser capaços de transferir el coneixement que l’ humà exhibix quan realitza la tasca de post-edició al sistema de traducció automàtica és una característica desitjable ja que s’ha demostrat que un sistema de traducció mes precís ajuda a augmentar l‘eficiència del procés de post-edició. Pel fet que el procés de post-edició requerix un sistema ja entrenat, les tècniques d’aprenentatge en línia són les adequades per aquesta tasca. En este treball, es proposen tres algoritmes d’aprenentatge en línia aplicats a un traductor automàtic neuronal en un escenari de post-edició. Estos algoritmes es basen en l’aproximació en línia Passive-Aggressive en la qual el model s’actualitza després de cada mostra amb l’objectiu de complir un criteri de correcció al mateix temps que manté informació prèvia apresa. L’objectiu és adaptar i refinar un sistema ja entrenat amb noves mostres al vol mentre el procés de post-edició es du a terme (per tant, el temps d’actualització ha de mantenir-se controlat). A més, estos algoritmes es comparen amb altres ben conegudes variants en línia de l’algoritme de descens per gradient estocàstic. Els resultats mostren una millora en la qualitat de les traduccions després d’aplicar estos algoritmes, reduint així l’esforç humà en el procés de post-edició. Paraules clau: Aprenentatge en línia, Traducció automàtica neuronal, Passive- Aggresive Resumen La traducción de gran calidad está muy demandada en la actualidad. A pesar de que la traducción automática ofrece unas prestaciones aceptables, en algunos casos no es suficiente y es necesaria la supervisión humana. Para facilitar la tarea de traducción del humano, los sistemas de traducción automática toman parte en este proceso. Cuando una nueva oración en el idioma origen necesita ser traducida, esta se introduce en el sistema, el cual obtiene como salida una hipótesis de traducción. El humano entonces, corrige esta hipótesis (también conocido como post-editar) para obtener una traducción de mayor calidad. Ser capaz de transferir el conocimiento que el humano exhibe cuando realiza la tarea de post-edición al sistema de traducción automática es una característica deseable puesto que se ha demostrado que un sistema de traducción mas preciso ayuda a aumentar la eficiencia del proceso de post-edición. Debido a que el proceso de post-edición requiere un sistema ya entrenado, las técnicas de aprendizaje en línea son las adecuadas para esta tarea. En este trabajo, se proponen tres algoritmos de aprendizaje en línea aplicados a un traductor automático neuronal en un escenario de post-edición. Estos algoritmos se basan iii
iv en la aproximación en línea Passive-Aggressive en la cual el modelo se actualiza después de cada muestra con el objetivo de cumplir un criterio de corrección a la vez que manteniendo información previa aprendida. El objetivo es adaptar y refinar un sistema ya entrenado con nuevas muestras al vuelo mientras el proceso de post-edición se lleva a cabo (por tanto, el tiempo de actualización debe mantenerse bajo control). Además, estos algoritmos se comparan con otras bien conocidas variantes en línea del algoritmo de descenso por gradiente estocástico. Los resultados muestran una mejora en la calidad de las traducciones después de aplicar estos algoritmos, reduciendo así el esfuerzo humano en el proceso de post-edición. Palabras clave: Aprendizaje en línea, Traducción automática neuronal, Passive- Aggresive Abstract High quality translations are in high demand these days. Although machine translation offers acceptable performance, it is not sufficient in some cases and human supervision is required. In order to ease the translation task of the human, machine translation systems take part in this process. When a sentence in the source language needs to be translated, it is fed to the system which outputs a hypothesis translation. The human then, corrects this hypothesis (also known as post-editing) in order to obtain a high quality translation. Being able to transfer the knowledge that a human translator exhibit when post-editing a translation to the machine translation system is a desirable feature, as it has been proven that a more accurate machine translation system helps to increase the efficiency of the post-editing process. Because the post-editing scenario requires an already trained system, online learning techniques are suited for this task. In this work, three online learning algorithms have been proposed and applied to a neural machine translation system in a post-editing scenario. They rely on the Passive-Aggressive online learning approach in which the model is updated after every sample in order to fulfil a correctness criterion while remembering previously learned information. The goal is to adapt and refine an already trained system with new samples on-the- fly as the post-editing process takes place (hence, the update time must be kept under control). Moreover, these new algorithms are compared with well-stablished online learning variants of the stochastic gradient descent algorithm. Results show improvements on the translation quality of the system after applying these algorithms, reducing human effort in the post-editing process. Key words: Online Learning, Neural Machine Translation, Passive-Aggresive
Contents Contents v List of Figures vii List of Tables vii 1 Motivation 1 2 Introduction to MT 3 2.1 Statistical machine translation ...................... 3 2.1.1 Language model ......................... 4 2.1.2 Translation model ......................... 5 2.1.3 Log-linear model .......................... 6 2.2 Assessment ................................. 6 2.2.1 BLEU ................................ 7 2.2.2 TER ................................. 8 2.2.3 METEOR .............................. 8 3 Neural machine translation 11 3.1 Modelling language with neural networks ............... 12 3.1.1 Continuous word representation: word embedding ..... 12 3.1.2 Dealing with sequences: recurrent neural networks ..... 13 3.1.3 Dealing with context: bidirectional recurrent neural networks 15 3.2 End-to-end translation: encoder-decoder ................ 15 3.2.1 Attention model .......................... 17 3.2.2 Decoding translations: beam search .............. 17 4 Training neural networks 19 4.1 The backpropagation algorithm ..................... 19 4.1.1 Backpropagation through time ................. 20 4.2 Stochastic gradient descent ........................ 21 4.2.1 SGD with momentum ...................... 22 4.2.2 Adagrad .............................. 22 4.2.3 Adadelta .............................. 23 4.2.4 Adam ................................ 23 5 Online learning 25 5.1 Online learning framework ....................... 25 5.2 Passive-Aggressive online learning ................... 26 5.3 PA online learning applied to NMT ................... 27 5.3.1 Passive-Aggressive via subgradient techniques ........ 28 5.3.2 Passive-Aggressive via projected subgradient techniques . . 29 5.3.3 Passive-Aggressive via SGD with regularization ....... 29 6 Experiments and results 31 6.1 Experimental framework ......................... 31 v
vi CONTENTS 6.1.1 Task description .......................... 31 6.1.2 Software .............................. 32 6.1.3 Corpora .............................. 32 6.1.4 NMT system ............................ 33 6.2 Results ................................... 34 6.2.1 Hyperparameter configuration ................. 34 6.2.2 Comparison between OL algorithms .............. 35 7 Future work and conclusions 39 7.1 Future work ................................ 39 7.1.1 Using other loss functions .................... 39 7.1.2 Inclusion of OL strategies in IMT ................ 40 7.2 Conclusions ................................ 40 Bibliography 41
List of Figures 2.1 Word aligment ............................... 5 3.1 LSTM .................................... 14 3.2 Bidirectional recurrent neural network ................. 15 3.3 Encoder-decoder ............................. 16 4.1 Backpropagation example ........................ 21 6.1 Influence of hyperparameters in PA algorithms ............ 35 6.2 Efect of tuning NMT systems in terms of BLEU ............ 36 6.3 Efect of tuning NMT systems in terms of TER ............. 37 6.4 Evolution of NMT systems ........................ 38 List of Tables 6.1 Statistics of the Xerox corpus ....................... 32 6.2 Statistics of the Emea corpus ....................... 33 6.3 Statistics of the TED corpus ....................... 33 6.4 Grid search values ............................. 34 6.5 Best configuration PA ........................... 34 6.6 Optimization hyperparameters ..................... 36 6.7 Results all tasks .............................. 38 vii
CHAPTER 1 Motivation We have seen in modern history how the improvement of transportation and telecommunications infrastructure has had a big impact in the movement of people. Now we are more exposed to other cultures, products and world views than ever before. As technology improves, the access to any kind of information has become something we can’t live without. However, different cultures often mean different languages which implies the appearance of obstacles when the need to communicate is mandatory. Thus, the need for a tool that helps us to overcome this obstacle arises. Machine Translation (MT) investigates the use of software to translate text or speech from one language into another. It aims at providing the best possible translation without human assistance. This research field was born in 1947 when Warren Weaver published a memorandum stating his beliefs about computer’s capability to translate one language into another using criptography, logic and linguistic patterns. In the next years a lot of projects emerged in the United States, the Soviet Union and Western Europe but the practical results were disappointing (Madsen,2009;Hutchins,2005). This finally led to the publication of a report from a special committee formed by the United States named ALPAC (Automatic Language Processing Advisory Committee) where they stated that there was no future for good-quality/costeffective MT. During the 70’s there was a new approach to the MT field that relied on the premise that a language is based on a set of grammatical and syntactic rules. This rule-based system needed a robust and carefully designed bilingual dictionary of linguistic information created by human experts. The big effort that this approach required was a big issue and it was then replaced by the corpus-based systems. At the same time, scientists focused on developing tools that would facilitate the translation process rather than replacing human translators, leading to the development of translation memory (TM) and other computer assisted translation (CAT) (Samson,2005) tools. Corpus-based systems rely on a parallel corpus of sentences in a source language and its translation in a target language. With enough number of samples, these systems can be trained to infer the translations of new sentences. For this purpose, statistical models are applied to the translation process as these are good at extracting relevant information from a set of (translation) examples. 1
8 Introduction to MT According to the experimentation made in (Papineni et al.,2002), N is set to 4, and wn=1 N. The BLEU score ranges from 0 to 1 being 1 the closest a candidate translation can be to the reference (identical in this case). This is the main measure we will use in the experimentation section. TER The translation error rate (TER) (Snover et al.,2006) is another measure used to assess translations. It measures the minimum number of edits needed to change a hypothesis so that it exactly matches the reference, normalized by the average length of the reference (if we have more than one). If we have several references the TER score will correspond to the minimum number of edits needed to match the closest reference. The possible edits include insertion, deletion and substitution of single words as well as shifts of word sequences. A shift is just a movement of contiguous words within the hypothesis. An important thing to note is that all edits, including shifts of any number of words and distance have equal cost. In a post-editing scenario this measure approximates the human effort required to correct a translation produced by a MT system. Because we want to reduce the human effort required, we want to achieve a low TER score. METEOR METEOR (Banerjee and Lavie,2005) was designed to address some of the issues that BLEU introduced, such as: the lack of recall, the use of higher order ngrams to model word order or the lack of explicit word-matching between translation and reference. It is based on the unigram matching between the machineproduced translation and the human-produced reference translation. Given a pair of sentences, METEOR generates an alignment between the two strings. In this context, an alignment is a matching between unigrams, such that every unigram in each string maps to zero or one unigram in the other string. In order to generate that alignment the process is divided in two phases, each of which has different stages. In the first phase, based on different criteria, different modules produce unigram mappings between the two strings. The "exact" module produces matches between two unigrams if they are exactly the same. The "porter stem" module produces unigram matches if they are the same after being stemmed. The "Word- Net synonymy" maps two strings if they are synonyms. This modules are ordered by priority and a given match will be chosen first if it is possible to form an alignment and if it also has higher priority than other matches produced by lower priority modules. For example, an exact match will be always prefered. In the second phase, the largest subset of unigram mappings is selected such that the resulting set constitutes an alignment as defined above. If more than one subset constitutes an alignment, this metric selects the one with fewer mapping crosses. If both sentences are written one below the other and a line is drawn
2.2 Assessment 9 between the matching unigrams, a cross is produced when these lines intersect with another mapping. Lastly, in order to obtain the METEOR score, an harmonic mean of precision and recall is computed over the unigrams and penalized if these unigrams are in different order compared to the reference. A high score will mean high quality translations.
CHAPTER 3 Neural machine translation State-of-the-art MT systems have relied on the phrase-based approach for a long time. However, a new neural approach has emerged, being the first technology that has been able to challenge former systems (Luong and Manning,2015;Jean et al.,2015). With the use of Graphic Processor Units (GPU), neural machine translation (NMT) has been able to cope with the high computational cost it requires to compete with state-of-the-art phrase-based systems (Bentivogli et al., 2016). This fact teamed with the improvements made to the encoder-decoder architecture (explained later in this chapter) such as the attention model, or the use of gated recurrent units to cope with context in long sentences, made NMT technology to advance by leaps and bounds. Apart from that, NMT demonstrated its power at the IWSLT12015 evaluation campaign, where one of these systems outperformed the up-to-then state-of-the-art phrase-based systems on the English- German task, a pair of languages difficult due to the disparity in morphology and syntax. The next year, Google announced that Google Translate made the leap to NMT because neural networks increase both fluency and accuracy of its translations2. Microsoft did the same with Microsoft Translator stating that neural networks better capture the context of full sentences before translating them, providing much higher quality translations3. However, despite the reasons these big companies have to shift to NMT we still lack a solid formal background that supports this technology. Things like the activation function choice, the number of units per layer or how many layers to use, are things that need a thorough study to understand them. For now, we can only study NMT systems, by looking at the translations and see what differences them from the ones produced by former approaches (Bentivogli et al.,2016). In this chapter we will give an overview of the NMT technology and how it can be used to perform the task at hand. First we will see how we can model the language with neural networks. Then we will present the current neural archi- 1International Workshop on Spoken Language Translation. 2Found in translation: More accurate, fluent sentences in Google Translate. 3Microsoft Translator launching Neural Network based translations for all its speech languages. 11
12 Neural machine translation tecture used to translate. Lastly, we will see how we perform the search task to find the best translation. Modelling language with neural networks Being able to represent language with neural networks is not an easy task. First, we need to solve the issue that comes from the words being represented as symbols rather than numbers. For this task, we need a continuous representation (a dense, real-valued vector) that both encapsulates relevant information of such symbols and reduces the impact of the curse of dimensionality. This latter term refers to the need of huge number of examples when learning complex functions (such as language). This fact gets worse as the number of variables increases (i.e. the size of the vocabulary) since the model needs to discriminate between a huge number of combinations of such values. Once we have solved the previous issue we face another: we need to manage the fact that sentences are not of the same length. Not only that, the input and output sentence can be of different length, so we need a way to process information of variable length. Lastly, we need a way to capture contextual information. All these three problems will be addressed in next subsections. Continuous word representation: word embedding A continuous representation of a word is a vector of features which characterize the meaning of that word. To understand this, if a human would have to extract these features, he would choose grammatical features such as gender or plurality. With neural networks we let the learning algorithm discover this realvalued features instead. The idea is to map every word in the vocabulary to a low-dimensional continuous-valued vector with the hope that similar words get similar representations in the feature space. The main goal behind it is to allow the model to generalize better to sequences that are not seen during training but whose features are similar to those who have been seen. Although distributed word representations were first proposed in the early 1980’s (Hinton,1986) and 1990’s (Castaño and Casacuberta,1997), it was not until the 2000’s that first approaches using neural networks appeared to model language. These models were studied first in terms of feed-forward networks (Bengio et al.,2003) and later in terms of recurrent neural networks (RNN) (Mikolov et al.,2010,2011) and yielded good word representation that condensed linguistic regularities in the vector representations (Mikolov et al.,2013b). One of the first approaches that successfully used neural networks to model language was the one proposed in Bengio et al. (2003). This work projected the words into a real-valued vector. Then, it used a feed-forward network focusing on learning both the word feature vector and the probability distribution function of word sequences in terms of these feature vectors by maximizing the loglikelihood over a training data. The results obtained with this approach demonstrated how distributed representation of words could be teamed up with neural networks to outperform regular n-gram models.
3.1 Modelling language with neural networks 13 All this work demonstrated outstanding performance in word-prediction but also the need for a more computationally efficient model (specially the ones involving RNN). For this purpose, Mikolov et al. (2013a) proposed a model that could learn word representation much faster with higher quality than previous approaches. It showed the learned relationship between words with simple algebra by simply adding and subtracting vectors for obtaining other words. For example, the word Rome could be obtained with: Paris - France + Italy. Dealing with sequences: recurrent neural networks When humans read a sentence, they understand each word based on their understanding of previous words. As you read, your brain retains information that is used to understand what is coming. Recurrent neural networks model this situation naturally. This is a major advantage since a variety of problems depend on an arbitrary sequence of time-dependent events, such as speech recognition, translation or language modelling. They take into account past information by means of a cycle between its units. This allows them to have an internal state that holds present and past information. In addition, depending on how these cycles are routed we find different architectures in the literature. An example of this is the Elman (Elman,1990) and Jordan (Jordan,1986) networks, also known as "simple recurrent networks" . The Elman architecture works as follows: given a sequence of vectors x= x1...xTthe network will produce a sequence of outputs y=y1...yT. At each time step (Eq. 3.1) the hidden state at time t,stgets calculated based on both, the input at time t,xtand the hidden state of the previous time step, st−1. Then, the output (Eq. 3.2 ) gets calculated based on st. st=σs(Wxt+Ust−1)(3.1) yt=σy(Vst)(3.2) In these equations, W,Uand Vare the weight matrices of the input, recurrent and output connections respectively, σsis an activation function such as sigmoid and σyis the output activation function, being usually, the softmax function (Eq. 3.18). Alternatively, the Jordan architecture is similar but the recurrent connection is achieved by taking into account the previous output rather than the previous hidden state (Eq. 3.3). st=σs(Wxt+Uyt−1)(3.3) However, one of the major flaws these networks have is their dependency on the complete past information. This prevents them from focusing only on recent information or on long-term dependencies, as depicted in (Bengio et al.,1994). When training them, they also feature the so-called vanishing gradient problem (explained in section 4.1) which prevents them from properly learning. To address this, several new recurrent architectures have been proposed, such as the long short term memory networks (Hochreiter and Schmidhuber,1997)
14 Neural machine translation known as LSTM (Fig. 3.1), or the gated recurrent units (GRU) (Cho et al.,2014) which have the special trait of mitigating the vanishing gradient problem. Both of these architectures feature parametrized gates that modulate how much input information is allowed to affect the hidden state, how much past information is let through to the next time step and how much information is forgotten. These are trainable parameters that allow the network to do this conveniently. In LSTM units, the memory cell mt(Eq. 3.4) depends on the previous memory cell mt−1and the new information ˜ mt(Eq. 3.5) coming from the input of the unit. The amount of information used to update mtfrom both mt−1and ˜ mtis modulated by gt(Eq. 3.6) and it(Eq. 3.7) which are the vector outputs of the forget gate and input gate whose values range from 0 to 1. By doing an elementwise multiplication they modulate the amount of information that will be used in the update, being 1 completely retain and 0 completely forget. The output of the unit stis modulated by the output gate (Eq. 3.8) getting Eq. 3.9. mt=gtmt−1+it˜ mt(3.4) ˜ mt=tanh(WM Yst−1+WM Xxt)(3.5) gt=σ(WF Yst−1+WF Xxt)(3.6) it=σ(WI Yst−1+WI Xxt)(3.7) ot=σ(WO Yst−1+WO Xxt)(3.8) st=ottanh(mt)(3.9) In these equations, WO Y,WI Y,WF Yand WM Yare the output gate, input gate, forget gate, and memory cell recurrent weight matrices and WO X,WI X,WF X,WM Xare the output gate, input gate, forget gate, and memory cell input weight matrices. σ(·)and tanh(·)are the sigma and hyperbolic tangent activation functions. Input Input Forget Output gate gate gate xt st−1 st−1st−1 st−1 xtxt xt −1 st Cell ˜ st it gt mt−1 mt ot Figure 3.1: LSTM unit
3.2 End-to-end translation: encoder-decoder 15 Dealing with context: bidirectional recurrent neural networks When processing sequences, there are times when future events are useful and provide more information to the network in order to better perform the task at hand. Regular RNN have the limitation that future information can not be reached from the current state. Bidirectional recurrent neural networks (BRNN) (Schuster and Paliwal,1997) address this issue allowing future information to be reachable from the current state. They do this by connecting two hidden layers of opposite direction to the same output layer, having then, information of past and future events. With this architecture we call forward layer the one that processes the sequence in the positive time direction (left to right) and backward layer the one that processes the sequence in the negative time direction (right to left). At each time step, the output of both layers are combined (e.g. adding them up) before applying the output activation function. Forward states Backward states t-1 tt+1 Output neuron group Hidden (state) neuron group Inputs Group of weights with information flow Figure 3.2: Structure of a bidirectional recurrent neural network shown unfolded in time for three time steps. Example borrowed from Schuster and Paliwal (1997). . End-to-end translation: encoder-decoder We have seen that when a RNN processes a sequence of length Tit produces an output sequence of the same length. In translation however, source and target sentence can (and usually are) of different lengths. To overcome this, two similar models were proposed by Sutskever et al. (2014) and Cho et al. (2014) which relied on the encoder-decoder approach. This work constitutes a common framework on which later work aims to improve it in different ways. The encoder-decoder approach consist in a two step process that first, maps the source sentence into a fixed length vector, and second, this vector is decoded to produce the target sentence (possibly of different size). It aims to directly model the conditional translation probability (Eq. 2.1). The input of the system is a sequence of words x=x1...xJpresent in the vocabulary of the source language Vxin a one-hot representation. This means that we have for each word xja vocabulary-sized vector ¯xj∈N|Vx|with all elements
16 Neural machine translation set to zero except for the one located at the position of xjin Vxwhich is set to one. Each word is projected to a fixed-length real-valued vector: xj=Es¯ xj(3.10) where xj∈Rdis the embedding of word xj,Es∈Rd×|Vx|is the source languaje projection matrix and dthe embedding size. c NULL x1x2xT y1y2yT0 y1yT0−1 Encoder Decoder Figure 3.3: Ilustration of the encoder-decoder approach. The encoder is an RNN that reads each element of the sequence of word embeddings. After reading each element in the positive direction, the hidden state hf jof the RNN is updated (Eq. 3.11). Once the end-of-sentence symbol is reached, the hidden state of the RNN c(Eq. 3.12), can be seen as a fixed-length summary of the whole input sequence. hf j=f(xj,hf j−1)(3.11) c=hf J(3.12) where fis a non-linear function. The decoder is another RNN which is trained to generate the output sequence by predicting the next word yigiven the hidden state si, the previous generated word yi−1and c. The hidden state of the decoder at time iis computed as: si=f(si−1,yi−1,c)(3.13) where fis a non-linear activation function (LSTM or GRU) that produce the hidden state vector si. The conditional probability for the next word yiis approximated (Eq. 3.14) assuming that it depends on the previous word (and all previous words that are in sito some extent). In this case, g(·)∈R|Vy|is the softmax function (Eq. 3.18) that produces a vector of probabilities of size |Vy|, which is the size of the vocabulary of the target language. ¯yi∈N|Vy|is the one-hot representation of the word yi.V∈R|Vy|×Lis the weight matrix and ϕ(·)is the L-sized output layer of a RNN. Pr(yi|y1...yi−1,c)≈¯y0 ig(Vϕ(si,yi−1,c)) (3.14) It is important to note that, during training, we want the decoder to learn to output the reference sentence. In order to help the model, we use the teacher forcing (Pascanu et al.,2013) technique. This technique consist of feeding the model
3.2 End-to-end translation: encoder-decoder 17 with the corresponding word in the reference sentence at time step i−1 instead of the previously generated word. Attention model One of the flaws that encoder-decoder models exhibit is that they have to condense an arbitrary length sentence into a fixed-length vector c. This is a bottleneck when dealing with long sentences, as noticed by Cho et al. (2014), and causes the system to perform poorly in these situations. In order to solve this, Bahdanau et al. (2014) proposed the so-called attention model. The basic idea is to use a different context vector depending on the current decoding stage. With this idea, Equation 3.14 is rewritten as: Pr(yi|y1...yi−1,c)≈¯y0 ig(Vϕ(si,yi−1,ci)) (3.15) where siis the RNN hidden state at time i: si=f(si−1,yi−1,ci)(3.16) We can see that at each time step, we use a different context vector ci. This vector is calculated based on a sequence of annotations (h1,..., hJ)extracted from the source sentence. These annotations have information that strongly describe the i-th word and surroundings. They are calculated by concatenating the forward and backward hidden states of a BRNN. The annotation hj= [hf j;hb j]∈R2S where hf jand hb jare the hidden states of the forward and backward layers of the BRNN and Sis the size of the hidden state (we assume that they are of the same size). Therefore, ciis calculated as the weighted sum of the annotations: ci= J ∑ j=1 αijhj(3.17) where αij is computed by the softmax function: αij =exp(eij) ∑J k=1exp(eik)(3.18) being eij =a(si−1,hj)an alignment model which scores how related the inputs at position jand the output at position iare. The alignment model is parametrized with a feed-forward neural network which is trained jointly with the whole system. Decoding translations: beam search When decoding the translation, the neural system provides, at each time step, a set of probabilities (with the softmax function) for each word in the vocabulary. Because we are maximizing equation 2.1 and the output probabilities of a given time step depend over the previous chosen word, we cannot just choose the one
24 Training neural networks decaying average of past squared gradients vtand an exponentially decaying average of past gradients mt: mt=β1·mt−1+ (1−β1)·∇`(Θt)(4.11) vt=β2·vt−1+ (1−β2)·∇`(Θt)2(4.12) The authors noticed that at early stages, the algorithm is biased towards zero. To counteract this they correct the above expressions as follows: ˆmt=mt 1−βt 1 (4.13) ˆvt=vt 1−βt 2 (4.14) leaving the update rule as: Θt+1=Θt−ρ √ˆvt+eˆmt(4.15) The default values the authors propose are 0.9 for β1and 0.999 for β2.
CHAPTER 5 Online learning Although computational resources have evolved to the point where it is relatively cheap to train a Pattern Recognition (PR) system, it is still a time-consuming process that takes days or even weeks to complete. As more and more data is available this problem is aggravated, specially on systems that interact with changing environments or that require a quick response at the same time they learn. In these cases, being able to adapt our system without training it from scratch becomes mandatory. In this chapter we will present the online learning framework which will serve to introduce our work, emphasizing its application to a post-editing scenario in MT. Next we will explain the Passive-Aggressive (PA) online learning algorithm. It has the main goal of avoiding the catastrophic interference (McCloskey and Cohen,1989) problem that threatens neural network systems in which they tend to forget previously learned information upon learning new information. Finally, we will propose three new PA-based algorithms for the task of NMT. Online learning framework PR systems have achieved an acceptable performance in very complex tasks that involves structured output and ambiguity such as machine translation or image description. Although these systems can reach a high performance on data similar to the one used to train them, their performance rapidly drops when the task is slightly different. In addition, getting enough manually annotated data of a specific domain in order to train a whole system might not be possible. Therefore, it is useful to train with generic out-of-domain data and then tune the system with domain-specific data. Because a complete retraining of the system might be infeasible, online learning techniques (Blum,1998) are chosen for this task. These techniques are particularly useful in the computer assisted translation (CAT) and interactive machine translation (IMT) paradigms, where human translators work jointly with machine translators in order to efficiently obtain high quality translations. In a post-editing scenario, the MT system translates a sentence and propose this as a hypothesis to a human translator which then corrects the sentence (if needed). Once a sentence is corrected what we have is a new pair of sentences that can be used to train the system. By using these new train- 25
26 Online learning ing samples to train our model, we progressively make the post-editing process more efficient. First, by making the system learn from its own errors and second, by easing the work of the human translator as it will have to correct less errors. Prior work in this area has also shown that human translators become more productive as the MT quality improves (Tatsumi,2009). The application of such techniques has been studied thoroughly (Martínez- Gómez et al.,2012;Lavie,2014;Martínez-Gómez et al.,2011) in classical phrasebased SMT systems. Results show that significant improvements can be achieved by adapting the system by means of online learning in terms of the effort the human would need to correct the hypothesis provided. However, there has been no published work (to the best of our knowledge) related to the application of these techniques in NMT systems. This works aims at providing new algorithms to apply online learning to these systems. Passive-Aggressive online learning A variety of online learning methods have been proposed in literature (Lu et al., 2016). A classical OL method is the Perceptron algorithm (Rosenblatt,1958) which updates the model by adding a misclassified example (parametrized with a factor) to the current parameters. From this work, a lot of new online learning algorithms have been developed based on the maximum margin criterion (Crammer and Singer,2003;Gentile,2001;Kivinen et al.,2004;Li and Long,2000) which tries to separate the classes as much as possible. One important technique that falls in this category is the Passive-Aggressive (PA) online learning method (Crammer et al.,2006). This has been proved as a very successful and popular online learning technique for solving many real-world applications. The idea behind the PA algorithm is very simple. When a new sample arrives it is classified and a loss is obtained, measuring the degree to which the prediction is wrong. The idea now is to find a new set of parameters (weights) that make the classifier to correctly classify the sample (aggressiveness) but by remaining relatively close to the previous set of parameters (passiveness). We will outline the PA approach in a binary classification problem as explained in Crammer et al. (2006). In a binary classification problem, each sample xt∈Rdhas a unique label yt∈ {+1, −1}associated. We assume that the classification function is based on a vector of weights Θ∈Rdwhich take the form of sign(Θ·x). The magnitude |Θ·x|is interpreted as the degree of confidence in the prediction. We refer to the term yt(Θt·xt)as the margin calculated at time t. Whenever the margin is positive, the sample has been classified correctly. However, we want the classifier to achieve a correct classification with some margin (in Crammer et al. (2006) this margin is set to 1). Then we define the loss `that suffers the classifier whenever the samples is classified incorrectly: `(Θ;(x,y)) = (0 if y(Θ·x)≤1 1−y(Θ·x)otherwise (5.1)
5.3 PA online learning applied to NMT 27 In order to progressively learn the weight vector Θ, the algorithm must update it after every sample. At time t, the new weight vector Θt+1is calculated by solving this constrained optimization: Θt+1=argmin Θ∈Rd 1 2kΘ−Θtk2s.t. `(Θ;(xt,yt)) = 0 (5.2) In this algorithm, if the loss is 0, the optimal solution is Θt+1=Θt. On the other hand, when the loss is greater than 0, the algorithm forces Θt+1to satisfy the constraint `(Θt+1;(xt,yt)) = 0 while being as close as possible to the previous weight vector to preserve knowledge of previous samples. If we derive Eq. 5.2, the update rule for the weight vector is: Θt+1=Θt+τtytxtwhere τt=`(Θt;(xt,yt)) kxtk2(5.3) However, this update rule is too aggressive and it might result in updating the model in such a way that in order to meet the constraint, it produces a lot of errors in later samples because the model was changed drastically. Therefore, a gentler update strategy is required. To do this, the authors introduce a non-negative slack ξvariable into the optimization problem defined in Eq. 5.2: Θt+1=argmin Θ∈Rd 1 2kΘ−Θtk2+Cξs.t. `(Θ;xt,yt)) ≤ξand ξ≥0 (5.4) The parameter Ccontrols the influence of the slack variable ξ. The authors coin the Cvariable as the aggressiveness parameter of the algorithm. The update rule in this case is the same Θt+1=Θt+τtytxtbut τtchanges to: τt=min{C,`(Θt;(xt,yt)) kxtk2}(5.5) PA online learning applied to NMT In this section we propose a new version of PA-based SGD. The development of this works is inspired by the application of the MIRA (a PA-based) algorithm (Crammer and Singer,2003) used in traditional SMT to tune the weights of the log-linear model. Also, the work develop in Martínez-Gómez et al. (2012) to the task of online adaptation gives us a feel of what can be achieved when adapting a MT system with OL. As any other PA technique, our algorithm aims to perform the minimum modification to the model parameters while fulfilling a correctness criterion. In our case, we use the loss function of the neural model for efficiency reasons (but we could have used another loss function such as BLEU).
28 Online learning Let htbe the hypothesis generated by the NMT system (using the parameters Θtat time t) of the source sentence xt. We consider that Θtis incorrect if the model assigns a lower probability to the target reference sentence ytthan to ht: pΘt(yt|xt)<pΘt(ht|xt)(5.6) When that happens, we want to search for a b Θsuch that b Θis close to Θtand pΘt(yt|xt)>pΘt(ht|xt). This is expressed with the loss function `: `(b Θ,xt,yt,ht) = log pb Θ(ht|xt)−log pb Θ(ht|xt)(5.7) With this loss function we are measuring how large is the gap between the probability given to the hypothesis and the probability given to the reference. By optimizing this function we reduce this gap with the idea that progressively, the hypothesis will be closer (i.e. similar) to the reference sentence. With the goal of optimizing this function, three variations of PA-based algorithms are developed. Passive-Aggressive via subgradient techniques In order to find b Θ, the problem can be formulated as: b Θ=argmin Θ 1 2kΘ−Θtk2+Cξs.t. `(b Θ,xt,yt,ht)≤ξand ξ≥0 (5.8) being Cthe parameter that controls the aggressiveness of the algorithm and ξ a slack variable (as discussed in Section 5.2). From this equation we have ξ≥ max(0, `(b Θ,xt,yt,ht)) and then, we define Ftas the function to optimize: Ft(Θ,xt,yt,ht) = 1 2kΘ−Θtk2+Cmax(0, `(b Θ,xt,yt,ht)) (5.9) aiming to find the set of parameters that minimize this function, i.e.: b Θ=argmin Θ Ft(Θ,xt,yt,ht)(5.10) Because we are optimizing a function (Ft) with discontinuity points (because the max(·)function has no derivative at 0) we have to use a subgradient method (Shor et al.,2003). This results in the derivative ∂ΘFt(Θ,xt,yt,ht)being: ∂ΘFt(Θ,xt,yt,ht) = Θ−Θt−C∇`(Θ,xt,yt,ht)`(Θ,xt,yt,ht)<0 Θ−Θt`(Θ,xt,yt,ht)>0 [Θ−Θt,Θ−Θt−C∇`(Θ,xt,yt,ht)] `(Θ,xt,yt,ht) = 0 (5.11)
5.3 PA online learning applied to NMT 29 where, on the discontinuity point (`(Θ,xt,yt,ht) = 0), we choose a value in the interval [Θ−Θt,Θ−Θt−C∇`(Θ,xt,yt,ht)]. We assume Θ−Θtwhen `(Θ,xt,yt,ht) = 0. Finally, we perform the update as: Θk+1=Θk−ρ·∂ΘFt(Θ,xt,yt,ht)|Θk(5.12) where ρis the learning rate, ∂ΘFtis the subgradient of Ftwith respect to Θ. We initialize Θk=0=Θtand the update is performed ktimes per sample. We denote this PA via subgradient technique update rule as PAS. Because we may want to achieve a higher probability of the reference sentence but with some margin m:pΘ(yt|xt) + m>pΘ(ht|xt)we can rewrite the subgradient ∂ΘFtwith the discontinuity point being mrather than zero (as defined in Eq. 5.11). Passive-Aggressive via projected subgradient techniques An extension of the PAS method is the projected PA subgradient method (PPAS) in which the optimization problem is reformulated (Boyd et al.,2003). We define Gt(Θ,xt,yt,ht)as max(0, `(b Θ,xt,yt,ht)). Then, Eq. 5.8 can be rewritten as: b Θ=argmin Θ Gt(Θ,xt,yt,ht)s.t. kΘ−Θtk2≤C(5.13) In this case, ∂ΘGt(Θ,xt,yt,ht)is defined as: ∂ΘGt(Θ,xt,yt,ht) = ∇`(Θ,xt,yt,ht)`(Θ,xt,yt,ht)<0 0`(Θ,xt,yt,ht)>0 [0, ∇`(Θ,xt,yt,ht)] `(Θ,xt,yt,ht) = 0 (5.14) and the update rule is performed in a two step process. First, we calculate the intermediate weight update ¯ Θk+1as: ¯ Θk+1=Θk−ρ∂ΘGt(Θ,xt,yt,ht)|Θk(5.15) and second, we apply the projection operator, being Θk+1: Θk+1=¯ Θk+1−Θt k¯ Θk+1−ΘtkC+Θt(5.16) As in the previous case, we initialize Θk=0=Θt. Passive-Aggressive via SGD with regularization We can also optimize `(Θ,xt,yt,ht)by means of SGD but with a regularization term, inspired by the PA principle of updating the model with new parameters
30 Online learning that are close to the current ones. We will refer to this algorithm as PAR. With this in mind, we can define the minimization problem as: b Θ=argmin Θ (`(Θ,xt,yt,ht) + C 2kΘ−Θtk2)(5.17) Because the minimization has no discontinuity points we don’t need to apply a subgradient method. The update rule then, results in: Θk+1=Θk−ρ·(∇`(Θ,xt,yt,ht)|Θk+C(Θk−Θt)) (5.18) As usual, Θk=0=Θt. We observe that when k=1 the update rule is plain SGD with no regularization term: Θk+1=Θk−ρ·(∇`(Θ,xt,yt,ht)|Θk+ : 0 C(Θk−Θt) ) (5.19) in that case, we introduce a small Gaussian noise νto the model parameters in order to avoid reaching local minima: Θk+1=Θk−ρ·(∇`(Θ,xt,yt,ht)|Θk+Cν)(5.20)
CHAPTER 6 Experiments and results After the proposal of three PA-based algorithms in Section 5.3, we will proceed to its testing and comparison with other well-known algorithms (those described in Section 4.2). In this section we will describe the experimental setup used to conduct the experimentation. First, we will describe the task in which we want to evaluate our algorithms. Then we will describe the NMT system used and the tools needed to work with it. After describing the corpora used, we will compare and discuss the results obtained. Experimental framework Before presenting the results, we will present the task at hand and describe the tools used to develop the mentioned algorithms and the corpora used to assess them. Task description In order to test these algorithms we will simulate (otherwise it would be too costly) a post-editing scenario. We will simulate this scenario in three different corpus or tasks (detailed in next subsections). First, we will train three neural models using for each one the training partition of its corresponding dataset. Once trained, these models will constitute the baseline models for each task. Then, we will refine these models with their respective test or development set of the corpus in which they were trained. For a given source sentence, the system produces its translation (the system’s hypothesis). This translation is stored for later evaluation. Then we take the post-edited sentence (in this case, the reference sentence) and update the system with it. This is repeated until the full set of sentences are translated. We evaluate the stored hypotheses and compare them with the ones produced by the baseline system. Our hope is to see an improvement in the quality of these translation. With this procedure we want to see up to what extent the OL algorithm can refine the baseline system. In order to measure the impact of each algorithm in the post-editing effort reduction we use the TER metric. In order to assess the quality of translations we will use the BLEU and METEOR metrics. 31
32 Experiments and results Software We have developed our work using the NMT-Keras toolkit1(Peris,2017). This (still in progress) software provides tools for the NMT task, such as: beam search decoding, support for GRU and LSTM networks, unknown word replacement, use of pretrained word embedding vectors an more. This software is based on a Python library called Keras2(Chollet et al.,2015). Keras offers an abstraction layer on top of Theano3(Theano Development Team, 2016) (a library for defining and evaluating mathematical expressions involving multi-dimensional arrays) and eases the task of building and training different neural network architectures. It has implemented utilities to save and load neural network models, monitor the training process and use predefined NN architectures. All the algorithms listed in Section 5.3 have been implemented in Keras and integrated in the NMT-Keras toolkit. Corpora In this work, we test all the algorithm in three different corpus: Xerox, Emea and TED. We use the standard partitions and the English-French language pair for all experiments. The text is kept true case and it is tokenized using the script from Moses 4. In the next subsections we will describe these corpus. Xerox The Xerox corpus (Barrachina et al.,2009) consists in translations of user manuals for Xerox printers. Table 6.1 shows all information regarding the partitions for the English-French language pair. Training Development Test Sentences 52k 984 994 Vocabulary size English 14k 1.8k 1.7k French 15.5k 1.9k 1.8k Words English 615k 10.9k 11.1k French 676k 11.7k 11.8k Table 6.1: Statistics of the Xerox corpus. In the table are collected the number of sentences and vocabulary size of each partition and language. k stands for thousands 1https://github.com/lvapeab/nmt-keras/ 2https://keras.io/ 3http://deeplearning.net/software/theano/ 4http://www.statmt.org/moses/
6.1 Experimental framework 33 Emea The Emea parallel corpus (Tiedemann,2009) is made out of documents from the European Medicine Agency. Table 6.2 shows all information regarding the partitions for the English-French language pair. Training Development Test Sentences 319k 500 1k Vocabulary size English 52k 2.8k 4.5k French 59.3k 2.9k 4.5k Words English 4.2M 10.3k 21.4k French 4.8M 12.3k 25.7k Table 6.2: Statistics of the Emea corpus. In the table are collected the number of sentences and vocabulary size of each partition and language. k stands for thousands and M for millions TED The TED corpus (Federico et al.,2011) gathers transcribed TED talks. Table 6.3 shows all information regarding the partitions for the English-French language pair. Training Development Test Sentences 159k 887 1.7k Vocabulary size English 46.7k 3.4k 4.9k French 58.2k 3.9k 4.9k Words English 2.17M 21.3k 33.5k French 2.3M 21.8k 35.7k Table 6.3: Statistics of the TED corpus. In the table are collected the number of sentences and vocabulary size of each partition and language. k stands for thousands NMT system For each corpus, we train a neural model over the training partition. Such model (similar to the one depicted in Bahdanau et al. (2014)) consists in an encoderdecoder LSTM network equipped with the attention mechanism. We made use of single-layered LSTM due to time limitations. The size of the hidden state of each LSTM, the word embedding size and the attention mechanism layer is 512 (our choice is based on the experimentations carried out in Britz et al. (2017)). The baseline systems have been trained with the Adadelta algorithm with the default parameters. During training, Gaussian noise (Graves,2011) and layer normalization (Ba et al.,2016) are applied as regularization methods. We also early stopped the training if the BLEU on the development set did not improve in 100,000 updates. The size of the beam is 6 in all experiments.
40 Future work and conclusions Inclusion of OL strategies in IMT The IMT scenario is tightly related with the post-editing scenario. IMT tries to collaborate with the human on the translation task with the goal of minimizing human effort. Often, the user only needs to point out the position in the sentence in which it is wrongly translated and the system will output an alternative suffix starting from that point. IMT is an active field and recent work has studied its application on NMT systems (Knowles and Koehn,2016;Peris et al.,2017b). As in the post-editing scenario, being able to apply OL techniques into an IMT framework might be beneficial in order to develop more adaptive and productive MT systems. Conclusions In this work, three OL algorithms have been proposed and applied to an NMT system. They rely on the Passive-Aggressive OL approach in which the MT model is updated after every sample in order to fulfil a correctness criterion while remembering previously learned information. Because these algorithms have a high number of hyperparameters to tune, an extensive grid search has been carried out in order to find the best combination. In addition, a study has been made to see how the different parameters affect each algorithm’s performance. Results show that, although they depend on several hyperparameters, those critical to the well behaviour of the algorithms are, in every case, the aggressiveness hyperparameter and the learning rate. Other parameters such as the margin or the number of iterations per sample offer minor improvements in the overall performance of the algorithm. These algorithms have been tested in a post-editing scenario where an already trained NMT system has to be refined as soon as new samples are available. Each new sample that arrives to the system is translated and corrected (we use the reference sentence instead). A loss function is computed in order to measure the distance between both sentences. Once we have this, we use it to adapt the system, aiming to avoid the committed mistakes. In order to evaluate how well these new algorithms behave, a comparison between these algorithms and wellknown OL gradient descent variants has been carried out. Results show that OL techniques help to refine and adapt the system on-the-fly, increasing the quality of translations and reducing the human effort in a post-editing scenario. We have found that the proposed PA-based algorithms offer a competitive performance: they improve the quality of translations in all tasks. Nevertheless, adaptive SGD- based algorithms performed generally better. Finally, part of the work developed in this thesis has been submitted to the 2017 Conference on Empirical Methods in Natural Language Processing (Peris et al.,2017a). Moreover, we plan to submit an article to a journal (yet to be determined).
Bibliography Ba, J. L., Kiros, J. R., and Hinton, G. E. (2016). Layer normalization. arXiv preprint arXiv:1607.06450. Bahdanau, D., Cho, K., and Bengio, Y. (2014). Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473. Banerjee, S. and Lavie, A. (2005). Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, volume 29, pages 65–72. Barrachina, S., Bender, O., Casacuberta, F., Civera, J., Cubel, E., Khadivi, S., Lagarda, A., Ney, H., Tomás, J., Vidal, E., et al. (2009). Statistical approaches to computer-assisted translation. Computational Linguistics, 35:3–28. Bengio, Y., Ducharme, R., Vincent, P., and Jauvin, C. (2003). A neural probabilistic language model. Journal of machine learning research, 3:1137–1155. Bengio, Y., Simard, P., and Frasconi, P. (1994). Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157– 166. Bentivogli, L., Bisazza, A., Cettolo, M., and Federico, M. (2016). Neural versus phrase-based machine translation quality: a case study. arXiv preprint arXiv:1608.04631. Bishop, C. M. (2006). Pattern recognition and machine learning. springer. Blum, A. (1998). On-line algorithms in machine learning. In Online algorithms, pages 306–325. Springer. Bottou, L. (1991). Stochastic gradient learning in neural networks. Proceedings of Neuro-Nımes, 91. Boyd, S., Xiao, L., and Mutapcic, A. (2003). Subgradient methods. lecture notes of EE392o, Stanford University, Autumn Quarter, 2004. Britz, D., Goldie, A., Luong, T., and Le, Q. (2017). Massive exploration of neural machine translation architectures. arXiv preprint arXiv:1703.03906. Brown, P. F., Cocke, J., Pietra, S. A. D., Pietra, V. J. D., Jelinek, F., Lafferty, J. D., Mercer, R. L., and Roossin, P. S. (1990). A statistical approach to machine translation. Computational linguistics, 16(2):79–85. 41
42 BIBLIOGRAPHY Brown, P. F., Pietra, V. J. D., Pietra, S. A. D., and Mercer, R. L. (1993). The mathematics of statistical machine translation: Parameter estimation. Computational linguistics, 19(2):263–311. Castaño, A. and Casacuberta, F. (1997). A connectionist approach to machine translation. In Fifth European Conference on Speech Communication and Technology. Chen, S. F. and Joshua, G. (1998). An empirical study of smoothing techniques for language modeling. Technical report, Harvard Computer Science Group. Chiang, D. (2012). Hope and fear for discriminative training of statistical translation models. Journal of Machine Learning Research, 13:1159–1187. Cho, K., Van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014). Learning phrase representations using rnn encoderdecoder for statistical machine translation. arXiv preprint arXiv:1406.1078. Chollet, F. et al. (2015). Keras. https://github.com/fchollet/keras . Chow, Y.-L. and Schwartz, R. (1989). The n-best algorithm: An efficient procedure for finding top n sentence hypotheses. In Proceedings of the workshop on Speech and Natural Language, pages 199–202. Association for Computational Linguistics. Chung, J., Gulcehre, C., Cho, K., and Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555. Crammer, K., Dekel, O., Keshet, J., Shalev-Shwartz, S., and Singer, Y. (2006). Online passive-aggressive algorithms. Journal of Machine Learning Research, 7:551– 585. Crammer, K. and Singer, Y. (2003). Ultraconservative online algorithms for multiclass problems. Journal of Machine Learning Research, 3:951–991. Duchi, J., Hazan, E., and Singer, Y. (2011). Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12:2121–2159. Elman, J. L. (1990). Finding structure in time. Cognitive science, 14(2):179–211. Federico, M., Bentivogli, L., Paul, M., and Stüker, S. (2011). Overview of the IWSLT evaluation campaign. In Proceedings of the International Workshop on Spoken Language Translation, pages 11–27. Gentile, C. (2001). A new approximate maximal margin classification algorithm. Journal of Machine Learning Research, 2:213–242. Golik, P., Doetsch, P., and Ney, H. (2013). Cross-entropy vs. squared error training: a theoretical and experimental comparison. In Proceedings of the Interspeech, pages 1756–1760. Graves, A. (2011). Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pages 2348–2356.
BIBLIOGRAPHY 43 Guo, J. (2013). Backpropagation through time. Unpubl. ms., Harbin Institute of Technology. Hinton, G. E. (1986). Learning distributed representations of concepts. In Proceedings of the eighth annual conference of the cognitive science society, volume 1, page 12. Amherst, MA. Hochreiter, S., Bengio, Y., Frasconi, P., and Schmidhuber, J. (2001). Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8):1735–1780. Hutchins, J. (2005). The history of machine translation in a nutshell. Retrieved December, 20:2009. Jean, S., Firat, O., Cho, K., Memisevic, R., and Bengio, Y. (2015). Montreal neural machine translation systems for wmt’15. In Proceedings of Empirical Methods in Natural Language Processing, pages 134–140. Jordan, M. I. (1986). Attractor dynamics and parallellism in a connectionist sequential machine. Kingma, D. and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. Kivinen, J., Smola, A. J., and Williamson, R. C. (2004). Online learning with kernels. IEEE transactions on signal processing, 52:2165–2176. Kneser, R. and Ney, H. (1995). Improved backing-off for m-gram language modeling. In Acoustics, Speech, and Signal Processing, volume 1, pages 181–184. IEEE. Knowles, R. and Koehn, P. (2016). Neural interactive translation prediction. In Proceedings of the Conference of the Association for Machine Translation in the Americas (AMTA), volume 1, pages 107–120. Koehn, P. (2004). Statistical significance tests for machine translation evaluation. In Proceedings of Empirical Methods in Natural Language Processing, pages 388– 395. Koehn, P. (2010). Statistical machine translation. Lavie, M. D. C. D. A. (2014). Learning from post-editing: Online model adaptation for statistical machine translation. Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics (EACL 14), page 395. LeCun, Y., Bengio, Y., and Hinton, G. (2015). Deep learning. Nature, 521:436–444. Li, Y. and Long, P. M. (2000). The relaxed online maximum margin algorithm. In Advances in neural information processing systems, pages 498–504. Lu, J., Zhao, P., and Hoi, S. C. (2016). Online passive-aggressive active learning. Machine Learning, 103:141–183.
44 BIBLIOGRAPHY Luong, M.-T. and Manning, C. D. (2015). Stanford neural machine translation systems for spoken language domains. In Proceedings of the International Workshop on Spoken Language Translation. Madsen, M. W. (2009). The limits of machine translation (thesis). Center for Language Technology, Univ. of Copenhagen, Copenhagen. Martínez-Gómez, P., Sanchis-Trilles, G., and Casacuberta, F. (2011). Online learning via dynamic reranking for computer assisted translation. Computational Linguistics and Intelligent Text Processing, pages 93–105. Martínez-Gómez, P., Sanchis-Trilles, G., and Casacuberta, F. (2012). Online adaptation strategies for statistical machine translation in post-editing scenarios. Pattern Recognition, 45(9):3193–3203. McCloskey, M. and Cohen, N. J. (1989). Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of learning and motivation, 24:109–165. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013a). Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781. Mikolov, T., Karafiát, M., Burget, L., Cernock` y, J., and Khudanpur, S. (2010). Recurrent neural network based language model. In Proceedings of the Interspeech, volume 2, page 3. Mikolov, T., Kombrink, S., Burget, L., ˇ Cernock` y, J., and Khudanpur, S. (2011). Extensions of recurrent neural network language model. In Acoustics, Speech and Signal Processing, pages 5528–5531. IEEE. Mikolov, T., Yih, W.-t., and Zweig, G. (2013b). Linguistic regularities in continuous space word representations. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT-2013), volume 13, pages 746–751. Och, F. J. (2003). Minimum error rate training in statistical machine translation. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pages 160–167. Papineni, K., Roukos, S., Ward, T., and Zhu, W.-J. (2002). Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting on association for computational linguistics, pages 311–318. Pascanu, R., Mikolov, T., and Bengio, Y. (2013). On the difficulty of training recurrent neural networks. International Conference on Machine Learning (3), 28:1310– 1318. Pennington, J., Socher, R., and Manning, C. D. (2014). Glove: Global vectors for word representation. In Proceedings of Empirical Methods in Natural Language Processing, volume 14, pages 1532–1543. Peris, Á. (2017). NMT-Keras. https://github.com/lvapeab/nmt-keras . GitHub repository.
BIBLIOGRAPHY 45 Peris, Á., Cebrián, L., and Casacuberta, F. (2017a). Online learning for neural machine translation post-editing. arXiv preprint arXiv:1706.03196. Peris, Á., Domingo, M., and Casacuberta, F. (2017b). Interactive neural machine translation. Computer Speech & Language, 45:201–220. Qian, N. (1999). On the momentum term in gradient descent learning algorithms. Neural networks, 12(1):145–151. Rosenblatt, F. (1958). The perceptron: A probabilistic model for information storage and organization in the brain. Psychological review, 65:386. Rumelhart, D. E., Hinton, G. E., and Williams, R. J. (1988). Learning representations by back-propagating errors. Cognitive modeling, 5(3):1. Samson, R. (2005). Computer-assisted translation. Training for the New Millennium: Pedagogies for translation and interpreting, 60:101. Schuster, M. and Paliwal, K. K. (1997). Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11):2673–2681. Shen, S., Cheng, Y., He, Z., He, W., Wu, H., Sun, M., and Liu, Y. (2016). Minimum risk training for neural machine translation. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 1683–1692. Shor, N., Zhurbenko, N., Likhovid, A., and Stetsyuk, P. (2003). Algorithms of nondifferentiable optimization: Development and application. Cybernetics and Systems Analysis, 39:537–548. Snover, M., Dorr, B., Schwartz, R., Micciulla, L., and Makhoul, J. (2006). A study of translation edit rate with targeted human annotation. In Proceedings of association for machine translation in the Americas, volume 200, pages 223–231. Sutskever, I., Vinyals, O., and Le, Q. V. (2014). Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104–3112. Tatsumi, M. (2009). Correlation between automatic evaluation metric scores, postediting speed, and some other factors. Proceedings of the Twelfth Machine Translation Summit (MT-Summit XII), pages 332–339. Theano Development Team (2016). Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688. Tiedemann, J. (2009). News from opus-a collection of multilingual parallel corpora with tools and interfaces. In Recent advances in natural language processing, volume 5, pages 237–248. Zeiler, M. D. (2012). Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701. Zens, R., Och, F. J., and Ney, H. (2002). Phrase-based statistical machine translation. In Annual Conference on Artificial Intelligence, pages 18–32. Springer.