scieee AI-readable full text Open interactive document viewer

NEURAL AND STATISTICAL MACHINE TRANSLATION: CONFRONTING THE STATE OF THE ART

NEURAL AND STATISTICAL MACHINE TRANSLATION: CONFRONTING THE STATE OF THE ART, NEURAL AND STATISTICAL MACHINE TRANSLATION: CONFRONTING THE STATE OF THE ART

Abstract

This paper presents a comparison of neural and statistical machine translation from the perspective oftheir emergence, development, and the challenges they currently face. The aim is to provide an overview ofthe state of the art of two of the most recently used automatic translation systems, confronting theirdevelopment, as well as the results they demonstrate in real translation tests. The methodology of analysisis based on the translation of a medical corpus using both machine translation models. The results largelyreflect the common achievements and issues that persist in these models

Full text

International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 DIO:10.5121/ijnlc.2024.13601 1 NEURAL AND STATISTICAL MACHINE TRANSLATION: CONFRONTING THE STATE OF THE ART Daniel Rojas Plata and Noé Alejandro Castro Sánchez Department of Computer Science, Cenidet/TecNM, Morelos, Mexico ABSTRACT This paper presents a comparison of neural and statistical machine translation from the perspective of their emergence, development, and the challenges they currently face. The aim is to provide an overview of the state of the art of two of the most recently used automatic translation systems, confronting their development, as well as the results they demonstrate in real translation tests. The methodology of analysis is based on the translation of a medical corpus using both machine translation models. The results largely reflect the common achievements and issues that persist in these models. KEYWORDS Machine Translation, Artificial Neural Networks, Statistical Machine Translation, Contrastive Analysis, Large Language Models. 1. INTRODUCTION The general presupposition about translation—or at least a widespread belief—is that all expressions in one language can find an equivalent in a different language. The translator’s job is then to find those words that in both languages refer to the same situation with the least possible loss of meaning and that are accepted by the community of speakers. Understood in this way, this process requires not only knowledge of the languages in which one is working but also a system of discrimination that guides the individual in choosing the word that, in their judgment, constitutes the best equivalent for a given situation. Now, what would happen if none of these conditions are met? That is, would it be possible for a translation to occur without knowing the grammatical rules of any of the languages involved or evaluating what the specific meanings of the words would be? This scenario would have sounded impossible and even absurd until a few years ago. However, this is what happens with the most recent Machine Translation (MT) systems. With the arrival of new automated information processing systems, it is possible to produce translations that are not based on the aforementioned assumptions but instead make use of large data sets to find similar sequences that have been previously translated. In this way, if a sequence like A-B-C-D has been frequently translated into the target language as Z-Y-X-W, it is highly likely that this same sequence will work in most of the contexts in which it appears, and even a variant like A-C-B-D could be deduced as Z-X-Y-W. This reasoning is convincing because it is based on a set of observations made on a large scale, usually millions of words. The path that these systems have followed since their inception in the last century to the present day has been tortuous, as many projects were abandoned due to a lack of results [9]. However, this same path appears promising when we consider that classical translation is a lengthy process that requires International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 2 many resources and has experienced rapid growth in recent years. MT systems, on the other hand, are practical and convenient, as they can translate a vast number of documents in a very short time. In this work, the fundamentals of MT are confronted, starting with the assumptions from which they originate and subsequently focusing on two of the systems that are most commonly used today: Statistical Machine Translation (SMT) and Neural Machine Translation (NMT). The objective is to offer a synthesis of the processes that underpin these systems, delve into their architectures, and analyze their advantages and disadvantages. The different sections of the article follow this organization. It begins with an exposition of the main milestones of MT, as well as the logic presented by their theoretical approaches. Subsequently, SMT and NMT are described, and an analysis of different studies that have been conducted comparing both systems is presented. Finally, a direct comparison of SMT and NMT is proposed through the evaluation of the quality of their translations on a medical corpus. 2. MILESTONES OF MT 2.1. Beginnings The automation of translation is not a recent pursuit, or at least, not in terms of its theorization. During the 17th century, various philosophers, including Leibniz and Newton, considered the possibility of a universal language. Even John Wilkins outlined what could be called an ontology of such a language [20]. On the other hand, in terms of practice, it was not until the mid-20th century that some MT projects formally emerged, such as the Georgetown experiment (United States), the Météo system (Canada), or Systran (United States) [23]. Many of the early systems were rule-based (Rule-Based Machine Translation). With them, the aim is to recreate a morphosyntax that allows connecting the source and target languages. Dictionaries are also used to cover the lexical aspect. However, the drawbacks of this method are that it is difficult to resolve exceptions in languages, as this requires constant rewriting of rules. This meant that, although rule-based systems represented the first attempt to establish a state of the art in MT in the mid-20th century, their impact was not consistent. 2.2. Statistics The second major approach to the problem was corpus-based. In fact, the main methods employed could be summarized as rules and corpus [12, 8]. Although also emerging in the mid20th century, corpus-based MT did not make significant progress until the end of that century when, following improvements in the processing of large volumes of information, solid results could be obtained. Indeed, in the last thirty years, the state of the art in MT has been dominated by these models. Now, the proposal that brought renewed impetus to this type of system is Statistical Machine Translation (SMT). Although developed in the mid-20th century by Warren Weaver, it was not until the 1990s that SMT fully developed [25]. The premise of this method is that sentences in a text are independent of each other. That is, it is not necessary to relate the previous sentence to the current one to obtain an adequate translation. SMT relies on large amounts of data to derive statistical models. In these cases, human-made translations that have been aligned in large parallel corpora are used. The process consists of comparing data in two different languages in search of the best equivalence between them. This is resolved by resorting to a weighting of the most probable equivalent. Following Bayes’ theorem, this can be expressed as follows [2]: International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 3 ŷ = arg max Pr(x) Pr(y|x) In this equation, ŷ maximizes the probability that y is a translation of x. As observed, the translation seems to depend on a probabilistic estimation rather than the application of a specific syntax. This is true to the extent that the approach being operated rests on statistical considerations. However, there is a language modelling that the system itself constructs, that is, it establishes its own rules for selecting the most probable equivalent. An example of the above is the translation of the phrase “my life” from English to Spanish, which can be translated as “mi vida,” but also as “mi vivir,” since the word “life” has two meanings. To select which would be the most probable choice, the system initially determines that “vida” occurs in a Y percentage in the consulted translations, while “vivir” occurs in a Z percentage. However, in the second instance, it can be determined that when preceded by the word “my,” “vida” is translated at a much higher percentage. This eliminates ambiguity without the need to establish a grammatical class of noun or verb. This is what is known as Phrase-Based Statistical Machine Translation (PBSMT). Here, the translations are small sequences of words that allow for determining the appropriate equivalencies. It should be noted that these sequences are not a phrase in the linguistic sense, but function at a more abstract level. Indeed, among the elements that compose them, dependencies are not established but rather a sequentiality [9]. SMT systems have experienced exponential development in the state of the art. Mainly those based on phrases (PBSMT) have shown high evaluations in experiments with widely studied languages, as well as low-resource ones [16]. However, there are still limitations in these systems, which are related to the lack of precision in certain cases and the process they use. According to [17], the main problems facing SMT are:  Sentence alignment, as a single phrase can be translated as two in the corpus;  Statistical anomalies, where due to the abundance of certain sequences, the system only recognizes these referents and systematically uses them for all translations;  Data loss and absence of translations, which mainly concerns idioms that were not collected in the training corpus;  Word order, especially with morphologically rich and low-resource languages. Additionally, SMT systems are costly in the sense that they involve the formation of large corpora, and sometimes the results are not as expected. As a practical case, Google Translator can be cited, as one of the MT systems that until the beginning of the 21st century was based on a statistical approach and has now implemented a neural network system [14]. In fact, the neural network model has been the one that has mostly developed recently and has even begun to position itself as the new state of the art in terms of MT. 2.3. Neural Networks The emergence of neural networks took place in the 1950s when Frank Rosenblatt, following the works of Warren McCulloch and Walter Pitts, created the perceptron [19] (Figure 1). The idea of the perceptron originates from the concept of a neuron, where a stimulus, corresponding to an input value, is processed to obtain an output response. International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 4 Figure 1. Perceptron designed by Rosenblatt [4] defines a neural network as a machine learning method in which a machine learns to solve decision problems based on input information. The way this process occurs is through a weighted sum, that is, a function f(x). Formally, this can be represented as: y = f (x1w1 + x2w2 + x3w3 … xnwn + b) In this equation, the input value x is multiplied by the weight w and summed among the different values, taking into account the bias b, which results in an independent value. The result of this weighted sum is y. The weight is defined by the relevance that this value has within the system. This process is repeated throughout the network, adjusting the probability of y with each weighting. This perceptron model was later complemented by other contributions such as the multilayer perceptron, sigmoid neurons, and backpropagation. These concepts allowed the system to become more complex, which resulted in greater accuracy. Neural networks allow for obtaining a single solution to a probability problem solved through the analysis of previous data. This concept of deep learning is what allows a translation to occur. In the case of MT, the neural network is fed with bilingual texts that maximize the probability that a target sequence Y is the equivalent of a source sequence X [27]. The neural network thus calculates the dispersion of the elements based on the sequences of the target language, which is conditioned on the sequence presented by the source language. Often, this network is composed of two parts: the initial network that encodes the sequence into a vector representation (encoder) and a final network that decodes the supplied sequence to produce the resulting sequence (decoder). These types of networks are called encoder-decoder [6]. Returning to the example of “my life,” NMT also resorts to the probability that an element in one language is the equivalent of another in another language. The difference with other models lies in that NMT does not estimate this probability separately, that is, it does not resort to a translation model, a language model, and another of sequentiality, but produces word-by-word, sequentially chaining the output. A crucial stage for the development of an NMT system concerns the training of the network with texts that allow establishing correspondences between two specific languages. The corpora that are regularly used are parallel and constitute the basis of the network training. The n-grams contained in them are mapped as vectors to predict equivalencies. Given this, it can be established that this process is costly from the point of view of processing, as the system must process millions of words to reach acceptable predictions. However, the advantages of NMT systems are many if one considers that, once the model is trained, it can translate large amounts of documents while improving itself with each translation. Now, although it represents an improvement, NMT is far from being entirely perfect. Among the main drawbacks, [10] mention the following: International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 5  sacrifices accuracy for fluency,  shows poor results with low-resource languages,  has problems translating infrequent words, and  has difficulties with long sentences. Additionally, [28] point out that the training of these systems is quite slow and they eventually fail to translate all the words of the original sentence, which can lead to unexpected translations. As observed, both SMT and NMT have strong points as well as weaknesses. However, to establish a more detailed comparison between the two, it is advisable to analyze them head-tohead in direct translation tests. In the following section, a review of some experiments that have been proposed to compare the performance of both systems is presented. 3. COMPARISON OF THE SAME STATE OF THE ART Although the development of NMT has gained ground over SMT in the last ten years, this does not mean that a decision has been made on which system provides better results. For example, [30] argue that although NMT systems achieve better fluency in translations than SMT systems, the former have problems with accuracy, especially for infrequent words. Similarly, [26] point out that NMT has problems with over-translation (e.g., of proper names: “Sr. Rosales” (esp.) > “Mr. Rose bush” (eng.)) or under-translation. Finally, for some authors [10] SMT simply produces better translations, while for others [22], it is NMT that offers more consistent results. Numerous studies have tested both systems by analyzing different aspects of their performance, which include performance metrics, translation accuracy, handling of linguistic structures (complex morphology vs. simple morphology), word order, and post-translation editing. Similarly, the existence of resources has been taken into account, that is, less translated languages (e.g., indigenous or minority languages) versus widely analyzed languages (e.g., English or Spanish). To establish a more reasoned comparison, it is advisable to look in detail at some of these studies. In a study that took into account nine language pairs (English to German/Czech/Russian/Romanian and vice versa, and English to Finnish), [24] found that NMT systems had a better rating in automated metrics than phrase-based statistical systems (PBMT). Not only was the fluency of the translations better in the former, but the word order and the inflection system were generally more accurate in all the languages studied. Other experiments suggest that certain translations obtained through SMT systems are better perceived by humans. This is the case of [3], who analyze the performance of both systems in a set of texts on e-commerce, patents, and online courses. According to the results of their study, in automatic metrics such as BLEU or METEOR [5], NMT systems perform better. This is mainly observed in the translations of online courses, which show better fluency. However, these same authors generally report problems of inconsistencies in the adequacy of certain translations, a greater need for post-translation editing, and errors of omission and addition. On the other hand, although with worse results in automated metrics, SMT performs better precisely where NMT fails. As for the appreciation of humans who analyzed the translations, these were generally better perceived. Similarly, smaller-scale studies have been conducted on language pairs in which SMT and NMT systems are tested. [1] conducted a study on the post-editing work that was necessary after International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 6 translating a series of TED talks from English to German. These authors argue that the editing of translations in NMT was globally 26% less compared to the translations obtained by SMT. The changes that were evaluated mainly corresponded to errors in word order and lexical and morphological errors. Similarly, NMT systems showed a lower number of morphological errors (-19%), word order errors (-50%), and lexical errors (-17%). Therefore, NMT seems to perform better in morphologically complex languages like German. Finally, it should be mentioned that, in most of the studies analyzed, the results are not entirely consistent for all types of documents. While in certain texts and in a particular aspect (morphosyntax, lexicon, fluency, post-editing, human evaluation, omissions), a certain model achieves better results, in the same aspect in another type of text, the result may be different. This is a recurring point in this type of study, which should be taken into account for a general evaluation. 4. METHODOLOGY OF COMPARISON At this point, it is worth carrying out a test on the performance and accuracy of both models to establish our own perspective. We conduct a detailed analysis of NMT and SMT for translating medical terminology between English and Spanish. Our goal is to evaluate their relative performance in fluency, accuracy, and handling of domain-specific vocabulary. This comparison is performed on the Medical Domain Corpus (MDC), a parallel dataset comprising medical texts in both languages. The methodology involves:  Dataset: Selection of a medical domain dataset with terminology-specific texts.  Translation Systems:  SMT: Implemented using Moses, a PBSMT toolkit.  NMT: Implemented using OpenNMT-py, a state-of-the-art NMT framework.  Metrics: BLEU and METEOR scores are calculated to evaluate the translations quantitatively.  Qualitative Analysis: Examples of translations are analyzed to assess the systems’ handling of medical terminology, word order, and context retention. The following Python code illustrates the workflow for training SMT and NMT models and evaluating their performance on the MDC dataset. International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 7 5. RESULTS AND DISCUSSION As observed, the evaluation of SMT and NMT systems for translating medical terminology between English and Spanish involves a comparative analysis based on translations of a parallel corpus of medical texts. This corpus is derived from publicly available datasets and enriched with domain-specific terminologies, such as medical diagnoses, procedures, pharmacological terms, and technical descriptions. The translations generated by both systems are assessed using BLEU and METEOR scores, which provide distinct but complementary measures of translation quality. The results in Table 1 indicate that NMT outperforms SMT in terms of fluency and the naturalness of the translated text. The encoder-decoder architecture, which is integral to NMT, captures contextual nuances more effectively than SMT’s phrase-based approach. For instance, in translating phrases such as “acute myocardial infarction”, NMT consistently generated the correct equivalent “infarto agudo de miocardio”, preserving both the medical precision and the syntactic coherence of the target language. SMT, however, occasionally rendered partial or less idiomatic translations, such as “agudo infarto myocardial”, reflecting issues with phrase segmentation and alignment during the translation process. Table 1. Bleu and Meteor scores for SMT and NMT. Model BLEU METEOR SMT (Moses) 37.8 61.2 NMT (OpenNMT) 42.6 65.8 In terms of adequacy, both systems achieved high levels of accuracy when translating common or frequently occurring terms. However, SMT struggled with rare or complex multi-word expressions, such as “severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2)”. While International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 8 NMT effectively translated this as “síndrome respiratorio agudo grave por coronavirus 2 (SARSCoV-2)”, SMT introduced inconsistencies like missing elements or mistranslating components, leading to “síndrome grave agudo respiratorio coronavirus”. This discrepancy highlights NMT’s superior ability to handle infrequent words and complex sequences, likely due to its end-to-end training framework that inherently models long-range dependencies in the input text. 5.1. Evaluation Metrics: Bleu and Meteor Scores Quantitative evaluation further supports these qualitative observations. BLEU scores, which measure n-gram precision while penalizing length mismatches, favored NMT across most translation tasks. For the corpus as a whole, NMT achieved an average BLEU score of 42.6, compared to SMT’s 37.8. This five-point difference underscores NMT’s advantage in generating translations that align closely with the reference texts. METEOR scores, which emphasize semantic matches and include a recall-oriented approach, also showed a similar trend, with NMT scoring an average of 65.8 compared to SMT’s 61.2. These metrics consistently reflect NMT’s ability to produce translations that better preserve meaning and linguistic accuracy. Interestingly, the disparity between the two systems was more pronounced in sentence-level evaluations than in document-level ones. SMT occasionally performed well on isolated terms but lacked the cohesive contextual handling displayed by NMT, especially for longer sentences with embedded medical jargon. For example, SMT exhibited challenges when translating sentences with nested clauses, such as “The patient presented with acute onset of fever, chills, and dyspnea, likely secondary to bacterial pneumonia.” NMT rendered this accurately as “El paciente presentó fiebre de inicio agudo, escalofríos y disnea, probablemente secundarios a neumonía bacteriana,” whereas SMT struggled with syntactic reordering, yielding a less coherent translation. 5.2. Handling of Medical Terminology The ability to correctly translate specialized terminology is paramount in medical translation. Both systems performed admirably when dealing with well-documented and standardized terms, such as those found in the International Classification of Diseases (ICD) or standard pharmacological vocabularies. For example, both SMT and NMT correctly translated “Type 2 diabetes mellitus” as “diabetes mellitus tipo 2.” However, the real divergence emerged with less common or novel terms. NMT demonstrated greater robustness in translating newly encountered expressions, likely due to its ability to generalize from the contextual embeddings generated during training. To a certain extent, this goes against what [10] and [30] mention about NMT systems having problems with new terms. One area where SMT had a noticeable edge was in terms of rare phrases that appeared explicitly in the training data. Due to its reliance on frequency-based statistical models, SMT occasionally produced better translations for such cases compared to NMT, which might have introduced minor variations in terminology not present in the reference corpus. However, this advantage was limited to specific contexts and did not generalize across other tasks. 5.3. Error Analysis: Gaps and Challenges Despite its overall superiority, NMT was not without its challenges. One recurring issue was the over-translation or omission of terms. For example, when translating “multidrug-resistant tuberculosis”, NMT added redundant modifiers, yielding “tuberculosis resistente a múltiples medicamentos y drogas,” whereas SMT produced the concise and accurate “tuberculosis resistente a múltiples medicamentos.” Such errors highlight a trade-off in NMT between International Journal on Natural Language Computing (IJNLC) Vol.13, No.5/6, December 2024 9 generating fluent outputs and maintaining terminological precision. This aspect was previously reported by [10], who suggests that NMT systems sacrifice accuracy for fluency. SMT, on the other hand, exhibited a higher rate of under-translation, particularly for sentences with a high density of specialized terms. An example includes the translation of “computed tomography angiography” into “angiografía de tomografía computarizada,” which was occasionally truncated to “tomografía computarizada” by SMT, leading to a loss of critical medical details. This was also reported by [17] as data loss. These results have also been pointed out by other authors, as we have seen in the studies analyzed previously. Therefore, these are common issues that have not ceased to be present in these models. 5.4. Practical Implications and Broader Considerations The practical implications of these findings are significant, particularly for high-stakes domains like medicine. NMT’s ability to produce more fluent and contextually accurate translations makes it a preferable choice for translating patient records, diagnostic reports, and medical research. However, its occasional lack of terminological precision underscores the need for post-editing and domain-specific customization. SMT, while less fluent, remains a viable option for tasks requiring explicit control over phrase alignment, such as glossary creation or when translating into languages with limited parallel corpora. From a computational perspective, the training and inference times of NMT were substantially higher than those of SMT, reflecting the resource-intensive nature of deep learning approaches. While this trade-off is justifiable for high-quality outputs, it may pose challenges in low-resource settings where computational infrastructure is limited. Furthermore, the availability and quality of bilingual medical corpora remain critical factors influencing the performance of both systems. 6. FURTHER DISCUSSIONS IN THE MT STATE OF THE ART: LARGE LANGUAGE MODELS While both SMT and NMT have achieved significant success in machine translation, they still face limitations, particularly in capturing the nuances of human language and generating naturalsounding translations. In recent years, Large language models (LLMs) have emerged as a powerful new paradigm in MT [21, 15]. These models are trained on massive datasets of text and code, allowing them to learn complex linguistic patterns and generate human-quality text. The potential of LLMs for MT has recently garnered significant interest, with researchers exploring how they can be leveraged to improve existing techniques [29]. LLMs offer several potential benefits for SMT and NMT. One key advantage is their ability to address the data sparsity issue that often plagues SMT. SMT models typically require vast amounts of parallel training data to achieve optimal performance. However, for many language pairs, such data may be scarce. LLMs, on the other hand, can be trained on much larger and more diverse datasets of monolingual text [11]. This exposure to a broader range of linguistic data can improve the LLM’s understanding of language structure and semantics, which can then be applied to enhance the translation quality of SMT models. Another advantage of LLMs is their capacity for language modeling. SMT traditionally focuses on translating individual words or phrases, often neglecting the broader context of the sentence. LLMs, however, can analyze and understand the contextual relationships between words, enabling them to generate more fluent