Neural machine translation (NMT) is an approach to machine translation that uses an artificial neural network to predict the likelihood of a sequence of words, typically predicting entire sentences in a single integrated model, however could predict larger sequences, depending on the sophistication of the system architecture. It is the dominant approach in machine translation today and can output predictions that rival human translations when transcribing between high-resource languages under specific conditions. However, there still remain challenges in NMT, particularly with languages that have less available virtual resources, and also in domain adaptation, where NMTs for certain languages may struggle to be applied for others. NMT systems tend to produce literal translations, so semantics may become lost or misconstrued during translation.
Overview In the translation task, a sentence 𝐱=x1,I (consisting of I tokens xi) in the source language is to be translated into a sentence 𝐲=x1,J (consisting of J tokens xj) in the target language. The source and target tokens are then converted into vectors, where they can be processed mathematically. NMT models assign a probability P(y|x) to potential translations y and then search a subset of potential translations for the one with the highest probability. Most NMT models are auto-regressive, meaning they calculate the probability of each target token as a function of the both source sentence and the previous target tokens. The probability of the whole translation is consequently the product of the probabilities of the individual predicted tokens: P(y|x)=∏j=1JP(yj|y1,i−1,𝐱) NMT models differ in how exactly they model the function P, but most use some variation of the encoder-decoder architecture: They first use an encoder network to process 𝐱 , and encode it into a vector (or matrix) representation of the source sentence. The model will then use a decoder network that usually produces one target word at a time, taking into account the source representation, and the tokens it has produced thus far. As soon as the decoder produces a special, end-of-sentence token, the decoding process is terminated.
History
Early approaches In 1987, Robert B. Allen demonstrated the use of feed-forward neural networks for translating auto-generated English sentences with a limited vocabulary of 31 words into Spanish. In this experiment, the sizes of the network's input and output layers were elected to be just large enough for the longest sentences in the source and target language, respectively, because the network lacked the tools to encode sequences of arbitrary length into fixed-size representation. In his summary, Allen also already hinted at the possibility of using auto-associative models, one for encoding the source, and one for decoding the target. Lonnie Chrisman built upon Allen's work in 1991, by training separate recursive auto-associative memory (RAAM) networks (developed by Jordan B. Pollack) for the source and the target language. Each of the RAAM networks were trained to encode an arbitrary-length sentence into a fixed-size, hidden representation and to decode the original sentence again from that representation. Additionally, the two networks were also trained to share their hidden representation, so the source encoder could produce a representation that the target decoder can rapidly re-translate. Forcada and Ñeco simplified this procedure in 1997 to directly train a source encoder and a target decoder in what they called a recursive hetero-associative memory (RHAM). Futhermore, in 1997, Castaño and Casacuberta employed an Elman's recurrent neural network in another machine translation task with very limited vocabulary and complexity. Even though these early approaches begin to resemble modern NMT, the computing resources of the time were insufficient in predicting large text datasets. Instead, other methods like Statistical machine translation (SMT) became the benchmark procedure of computational translation during the late 1990s, to the early 2000s.
Hybrid approaches During the time when Statistical machine translation was prevalent, some computer scientists used neural frameworks to replace various routines in the statistical machine translation, while still using the log-linear approach to hybridise the systems. For example, in various systems alongside various researchers, Holger Schwenk replaced the status-quo n-gram language model with a neural model in combination with estimated phrase translation probabilities, using a feed-forward network.
seq2seq
… excerpt ends here. Continue reading the full article.