Simultaneous machine translation method, simultaneous machine translation device, and program

By pre-training and refining a neural machine translation model with a monotonicity score, the method addresses the challenges of creating comprehensive conversion rules, achieving reduced delay and improved fluency in simultaneous machine translation across diverse language pairs.

JP7538986B2Active Publication Date: 2024-08-23NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021131963
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-08-23
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

Conventional methods for simultaneous machine translation face challenges in creating comprehensive conversion rules for each language pair and translation direction, leading to unnatural sentences and imbalanced optimization of fluency and monotonicity in word correspondences.

Method used

A neural machine translation model is pre-trained using bilingual data to minimize cross-entropy loss, followed by reinforcement learning with a monotonicity score to refine the model, and then fine-tuned to create bilingual data with more monotonous word correspondences, using a pre-trained multilingual model for wide applicability.

Benefits of technology

This approach generates bilingual data with improved monotonous word correspondences, reducing translation delay and enhancing fluency across various language pairs and directions, optimizing both factors simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007538986000008
    Figure 0007538986000008
  • Figure 0007538986000009
    Figure 0007538986000009
  • Figure 0007538986000010
    Figure 0007538986000010
Patent Text Reader

Abstract

To generate, as learning data for simultaneous machine translation, parallel translation data that have positions of words both subjected to translation appearing monotony close to each other.SOLUTION: A simultaneous machine translation method according to an embodiment causes a computer to execute: a pre-training procedure for pre-training a neural machine translation model so as to minimize a cross entropy loss using first parallel translation data; a fine tuning procedure for fine tuning the neural machine translation model having undergone the pre-training by, using second parallel translation data, enforced learning that has a reward which is a monotony score representing monotony corresponding to words between parallel translation sentences contained in second parallel translation data; a translation procedure for generating a target language sentence obtained by translating an original language sentence in the target language by the neural machine translation model having undergone the fine tuning using the original language sentence in the parallel translation sentence contained in third parallel translation data; and a parallel translation generating procedure for generating, as learning data for the simultaneous machine translation model, fourth parallel translation data that have the original language sentences and the target language sentences as parallel translation sentences.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a simultaneous machine translation method, a simultaneous machine translation device, and a program. [Background technology]

[0002] Simultaneous machine translation is the task of translating one language into another in real time. The biggest difference between simultaneous machine translation and regular machine translation is that simultaneous machine translation begins without waiting for the input sentence (source language sentence) to be completed. Simultaneous machine translation is applied to simultaneous interpretation and caption generation, which require real-time translation, so it is required to reduce the time it takes for a source language sentence to be translated into a target language sentence (hereinafter referred to as delay time or simply delay).

[0003] Here, identifying words that are translations of each other in two sentences that are translations of each other is called word alignment. In addition, if the order in which the words that are translations of each other appear in a sentence pair is the same (not reversed), the word alignment is said to be monotonic. It is known that simultaneous machine translation with less delay can be realized by training a simultaneous machine learning model using more monotonic bilingual data (data represented as pairs of source language sentences and their translations into the target language (i.e., bilingual sentence pairs)).

[0004] In simultaneous machine translation of language pairs with significantly different word orders (e.g., Japanese and English), methods have been proposed to convert the original bilingual data to generate bilingual data in which the positions of translated words are more monotonous. These methods can be broadly divided into methods in which conversion rules are created manually and methods in which conversion is performed automatically using machine learning.

[0005] Known methods for manually creating conversion rules are, for example, those proposed in Non-Patent Document 1 and Non-Patent Document 2. Non-Patent Document 1 proposes a method for creating individual conversion rules based on linguistic analysis, focusing on a specific translation direction of a specific language pair, such as translating from Japanese to English, and converting the English "A of B" to "B's A" so that the order of appearance of words corresponding to the Japanese "B of A" is the same. Non-Patent Document 2 proposes a method for dividing a long sentence into multiple segments and making adjustments such as repetition and omission of words so that each segment can be translated in order from the beginning.

[0006] Known methods for automatic conversion using machine learning include, for example, the method proposed in Non-Patent Document 3. Non-Patent Document 3 proposes a method for translating from English to Japanese, in which a pre-reordering method in statistical machine translation is used to rearrange Japanese sentences so that their word order is similar to that of English sentences, as an approximation to the "forward forward" interpretation strategy used by human simultaneous interpreters, and style conversion is performed using an unsupervised neural machine translation method to make the sentences natural and fluent, closer to the sentences in simultaneous interpretation. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] He He, Alvin Grissom II, John Morgan, Jordan Boyd-Graber, and Hal Daum´e III. Syntax-based rewriting for simultaneous machine translation. In Proceedings of the EMNLP 2015, pp. 55-64,2015. [Non-Patent Document 2] Akiko Nakabayashi, Tsuneaki Kato. Context-aware segmented corpus for simultaneous machine translation. Proceedings of the 27th Annual Conference of the Association for Natural Language Processing, pp. 1659-1663, 2021. [Non-Patent Document 3] Futamata, K., Sudo, K., Nakamura, T.. Proposal of a method for automatically generating pseudo-simultaneous translation corpora for English-Japanese simultaneous translation systems. Proceedings of the 26th Annual Conference of the Association for Natural Language Processing, pp. 1281-1284, 2020. Summary of the Invention [Problem to be solved by the invention]

[0008] However, the conventional method of manually creating conversion rules has the problem that individual conversion rules must be created for each language pair and translation direction based on linguistic analysis, and because individual conversion rules are created, the linguistic phenomena that can be handled by each rule are individual and therefore lack comprehensiveness.

[0009] Conventional methods of automatic conversion using machine learning make unnatural sentences by making word correspondences more monotonic through pre-sorting, and then turn them into fluent sentences through style conversion. However, this method has the problem that it is not possible to simultaneously optimize the monotonicity and fluency of word correspondences in a balanced manner.

[0010] One embodiment of the present invention has been made in consideration of the above points, and aims to generate bilingual data in which the positions of words that are translations of each other are similar to one another, as learning data for simultaneous machine translation. [Means for solving the problem]

[0011] In order to achieve the above object, a simultaneous machine translation method according to one embodiment includes a pre-training step of pre-training a neural machine translation model using first bilingual data so as to minimize cross-entropy loss; a fine-tuning step of fine-tuning the pre-trained neural machine translation model using second bilingual data through reinforcement learning with a monotonicity score representing the monotonicity of word correspondence between bilingual sentences included in the second bilingual data as a reward; a translation step of using a source language sentence among the bilingual sentences included in third bilingual data to create a target language sentence by translating the source language sentence into a target language using the fine-tuned neural machine translation model; and a bilingual creation step of creating fourth bilingual data in which the source language sentence and the target language sentence are bilingual sentences, as training data for the simultaneous machine translation model, executed by a computer. Effect of the Invention

[0012] It is possible to generate bilingual data in which the positions of words that are translations of each other are nearly monotonous, as learning data for simultaneous machine translation. [Brief description of the drawings]

[0013] [Figure 1] 1 is a diagram illustrating an example of a functional configuration of a simultaneous machine translation device according to an embodiment of the present invention. [Diagram 2] 10 is a flowchart showing an example of the flow of a learning process according to the present embodiment. [Diagram 3] 10 is a flowchart showing an example of the flow of a simultaneous machine translation process according to the present embodiment. [Figure 4] FIG. 1 is a diagram illustrating an example of a hardware configuration of a simultaneous machine translation device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] An embodiment of the present invention will be described below. In this embodiment, a method (hereinafter, referred to as a proposed method) is described in which bilingual data in which the positions of words that are translations of each other are monotonously close to each other are generated as learning data for simultaneous machine translation, and a simultaneous machine translation model is learned using this learning data, thereby realizing simultaneous machine translation with little delay. Then, a simultaneous machine translation device 10 that realizes simultaneous machine translation using this proposed method is described. Note that "learning" is also called "training."

[0015] <Preparation> Before explaining the proposed method, we will first explain the underlying technologies, terminology, concepts, etc.

[0016] <Neural Machine Translation> As with regular machine translation, in recent years, the use of neural networks in simultaneous machine translation (neural machine translation) has become mainstream. Simultaneous machine translation based on neural networks can be broadly divided into two methods. One is a method that processes the words of an input sentence one by one sequentially and outputs the result with a certain degree of delay. The delay between the input sentence and the output sentence can be fixed, as in the wait-k translation model (Reference 1), or dynamically determined by inference based on a policy trained by reinforcement learning (Reference 2). The other is a method called re-translation, in which translation is repeated every time a word is input (References 3 and 4).

[0017] <<Retranslation>> In retranslation, a data augmentation method called prefix training is used (References 3, 4). In normal neural machine translation, models are trained using sentence pairs in two languages ​​that are translations of each other. In prefix training, the model is trained not only using complete sentence pairs, but also using prefix pairs of sentence pairs that are translations of each other. This makes it possible to output the prefix of the translation result when a prefix of an input sentence is input in simultaneous machine translation.

[0018] There are two ways to create prefix pairs: extracting prefix pairs that contain mutually translated word pairs from a sentence pair that is a translation of the other, without any contradictions, and randomly extracting prefix pairs from a sentence pair that is a translation of the other. Previous studies have reported that there is no difference between German and English translations and English and French translations (References 3 and 4). However, in language pairs with significantly different word orders such as Japanese and English, it is difficult to obtain relatively short prefix pairs if the condition is that the pair contains a word pair that is a translation of the other. For example, in the case of Japanese and English translations, verbs often appear after the subject in English, whereas verbs often appear at the end of the sentence in Japanese, so it is difficult to create prefix pairs that contain mutually translated words without any contradictions.

[0019] As mentioned above, identifying words that are translated from one another in two sentences is called word correspondence, and word correspondence is said to be monotonic when the order of appearance of a pair of translated words is the same (not reversed). For example, let the words a1, a2, and a3 in the source language be b1, b2, and b3, respectively, when translated into the target language. In this case, if the translation result of the word string a1a2a3 is b1b2b3, the word correspondence is monotonic. On the other hand, if the translation result of the word string a1a2a3 is b1b3b2, the word correspondence is not monotonic because the order of appearance of the word pairs (a2, b2) and (a3, b3) is reversed.

[0020] <Wait-k Translation Model> Wait-k translation is a method of simultaneous machine translation in which input sentences are translated sequentially after a fixed k-word delay.

[0021] For a given source sentence X = (x1, x2, ) and a target sentence Y = (y1, y2, ), the Wait-k translation model is formulated as follows:

[0022]

number

[0023] The wait-k translation model does not process the whole source text X, but only a part of it x ≦g(t) This constraint is applied not only during inference but also during learning (training) to ensure that the training conditions and inference conditions do not diverge.

[0024] Knowledge Distillation Knowledge distillation is a technique in neural networks that uses the output of multiple or large and complex teacher models trained with correct answer data to train a small and lightweight student model (Reference 5). In general, knowledge distillation is often used to reduce the number of model parameters and speed up inference. In neural machine translation, it is known to be effective to translate source language sentences using a teacher model trained with bilingual data, and train a student model using pseudo-parallel data created from pairs of source language sentences and their translations (Reference 6). This method is called sequence-level knowledge distillation.

[0025] <Word recognition based on pre-trained multilingual models> Word alignment methods include those based on statistical machine translation, those based on neural machine translation, and those based on pre-trained multilingual models.

[0026] Methods based on statistical machine translation seek to find word alignments from bilingual data without supervision based on a statistical machine translation model, and are used in free software such as GIZA++ (Reference 7) and FastAlign (Reference 8). Methods based on neural machine translation are divided into two types: one that seeks word alignments from bilingual data without supervision based on a neural machine translation model (Reference 9), and one that seeks word alignments without supervision using correct answer data for word alignments (Reference 10). Word alignments based on statistical machine translation and neural machine translation have the problem that they require a large amount of bilingual data to train the word alignment model.

[0027] In recent years, word alignment methods based on pre-trained multilingual models such as multilingual BERT and XLM-RoBERTa have been proposed. Since pre-trained multilingual models are trained only from monolingual data of each language, these word alignment methods do not require large amounts of bilingual data and achieve accuracy that exceeds that of conventional word alignment methods based on statistical machine translation or neural machine translation.

[0028] Methods based on pre-trained multilingual models include supervised learning using correct answer data for word correspondence (Reference 11), and using bilingual data as a weak teacher signal without using correct answer data for word correspondence (Reference 12). The former has the advantage of being significantly more accurate than the latter. The latter has the advantage that it is more accurate than word correspondence based on conventional statistical machine translation or neural machine translation even without using any teacher signal, and can therefore be used to obtain word correspondence for any language pair supported by the pre-trained multilingual model (for example, multilingual BERT supports 104 languages).

[0029] <Sentence generation using reinforcement learning> Reinforcement learning is a method for learning a policy for an agent to select actions with the goal of maximizing value or cumulative reward value through interactions between the agent, which observes the current state and selects the action to be taken, and the environment, which returns a reward to the agent.

[0030] Reinforcement learning is often used to train models that optimize non-differentiable (non-gradient-calculatable) evaluation measures with respect to the parameters of a neural network, because it is possible to calculate a loss function even if the reward function that evaluates the agent's actions is not differentiable.

[0031] When using reinforcement learning for sentence generation, the goal is to

[0032]

number

[0033]

number

[0034] For example, in machine translation, if the input sentence is X, the output sentence (translation result) by the translation model is ^Y, and the reference translation (correct answer) is Y, and the reward R(^Y,Y) is the automatic evaluation measure of translation accuracy, BLEU, it is possible to train a neural machine translation model that maximizes the evaluation measure BLEU through reinforcement learning (Reference 13).

[0035] REINFORCE (Reference 14) is known as a simple method for implementing reinforcement learning. The loss function of REINFORCE is θ By sampling sentences from (^Y|X), it is approximated as shown in equation (3) below.

[0036]

number

[0037] In general, it is known that the loss reduction is slow especially in the early stages of learning in reinforcement learning using REINFORCE due to the large variance of reward values. Therefore, methods such as first learning a model using cross-entropy loss and then switching to reinforcement learning based on an evaluation index halfway through (Reference 13) and using the linear sum of cross-entropy loss and loss by reinforcement learning as the loss function as shown in the following equation (4) (Reference 15).

[0038]

number

[0039] In recent years, in fields such as image caption generation, self-critical sequence training (SCST), an extension of REINFORCE, has become standard as a sentence generation algorithm that optimizes non-differentiable sentence-level evaluation measures such as CIDEr and METEOR (Reference 16). In SCST, learning is stabilized by normalizing the reward using the own output at the test time, rather than estimating the baseline.

[0040] <Proposed method> The proposed method is explained below.

[0041] <Monotonicity score of word correspondence in bilingual sentence pairs> In this embodiment, a monotonicity score is defined that expresses the degree to which the word correspondence of a translation text pair is monotonic, based on the word correspondence.

[0042] Basically, any method can be used to find word correspondences, but in this embodiment, a method based on a pre-trained multilingual model that is applicable to a wide range of language pairs and has high accuracy is used (References 11 and 12).

[0043] All word-matching pairs S of the i-th bilingual sentence pair i =(a j ,b j ) (j=0,1,2,···), we define the monotonicity score of the word correspondence of the bilingual sentence pair as shown in Equation (5) below.

[0044]

number

[0045] The score function shown in formula (5) (hereinafter also referred to as the monotonicity score function) is the average of the differences in normalized word occurrence positions for a pair of words that are associated with each other. A translation model is trained using reinforcement learning to minimize this monotonicity score function. The reason for using reinforcement learning for optimization is that the monotonicity score function cannot be differentiated. Any monotonicity score can be used as long as it expresses the degree to which word associations are monotonic, such as Kendall's rank correlation coefficient.

[0046] The sentence-level reward for reinforcement learning is defined as follows:

[0047]

number

[0048] <Training a simultaneous machine translation model to optimize monotonicity scores> In this embodiment, both the teacher model and the student model use an encoder-decoder model based on Transformer (Reference 17). The teacher model can be any model that is a normal neural machine translation model. The student model can be any model that is a simultaneous machine translation model such as Wait-k or retranslation.

[0049] In the proposed method, a simultaneous machine translation model is trained (learned) by the following steps (a) to (c).

[0050] (a) Using the bilingual data, a teacher model is trained based on the cross-entropy loss. This corresponds to pre-training the translation model. Note that any training method can be used depending on the neural machine translation model used as the teacher model.

[0051] (b) Using the bilingual data, we train a teacher model using reinforcement learning based on the monotonicity score, which corresponds to fine-tuning the translation model.

[0052] (c) Using the output of the teacher model, a student model is trained based on the cross-entropy loss. Note that any training method can be used depending on the simultaneous machine translation model to be used as the student model.

[0053] In general, reinforcement learning takes time to train, so the pre-training described above in (a) is necessary to make the training more efficient.

[0054] It is desirable that the bilingual data used for fine-tuning in (b) above is different from the bilingual data used for pre-training in (a) above, because using unknown data during reinforcement learning increases the robustness of the model.

[0055] The above (c) is similar to the learning of the student model in knowledge distillation. The student model is trained using the result (target language sentence) of translating the source language sentence by the teacher model obtained in (b) above. However, while the general purpose of knowledge distillation is to create a student model with fewer parameters than the teacher model, the proposed method aims to create a simultaneous machine translation model as the student model, which can start translating without waiting for the completion of the sentence, using a general-purpose machine translation model as the teacher model.

[0056] <Inference for simultaneous machine translation models> When performing simultaneous machine translation, the student model obtained in (c) above is used as a simultaneous machine translation model to obtain an output sentence (target language sentence) from an input sentence (source language sentence).

[0057] <Functional configuration of the simultaneous machine translation device 10> The functional configuration of a simultaneous machine translation device 10 according to this embodiment is shown in Fig. 1. As shown in Fig. 1, the simultaneous machine translation device 10 according to this embodiment includes a teacher model pre-training unit 101, a teacher model fine-tuning unit 102, a translation decoding unit 103, a bilingual translation creating unit 104, a student model training unit 105, and a translation decoding unit 106. Each of these units is realized by, for example, processing executed by one or more programs installed in the simultaneous machine translation device 10 in a processor such as a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit).

[0058] The teacher model pre-training unit 101 receives the bilingual data 1100 as input and pre-trains the teacher model according to the above (a). The teacher model after this pre-learning is referred to as a "pre-trained teacher model 1200." Note that multiple bilingual data 1100 (datasets of the bilingual data 1100) are used in the pre-training.

[0059] The teacher model fine-tuning unit 102 receives the bilingual data 1300 as input and fine-tunes the pre-trained teacher model 1200 according to the above (b). The pre-trained teacher model 1200 after this fine tuning is referred to as the "fine-tuned teacher model 1400." Note that a plurality of bilingual data 1300 (datasets of the bilingual data 1300) are used during fine tuning. As described above, it is preferable that the dataset of the bilingual data 1300 is different from the dataset of the bilingual data 1100.

[0060] The translation decoding unit 103 receives a source language sentence 1500 of the bilingual data as an input, and translates the source language sentence 1500 into a target language sentence using the fine-tuned teacher model 1400. This target language sentence is referred to as a "target language sentence 1600." Note that a plurality of source language sentences 1500 are used during this translation. In addition, as a data set of a plurality of bilingual data each including the plurality of source language sentences 1500, a data set of bilingual data provided as training data for a simultaneous machine translation model may be used.

[0061] The bilingual translation creation unit 104 creates bilingual data 1700 that pairs a source language sentence 1500 with its translation, a target language sentence 1600. This bilingual data 1700 is new bilingual data that is a more monotonous version of the original bilingual data that contained the source language sentence 1500.

[0062] Student model training unit 105 receives bilingual data 1700 as input and trains the student model according to (c) above. The student model after this training is referred to as "student model 1800".

[0063] The translation and decoding unit 106 receives an input sentence (source language sentence) and translates it into an output sentence (target language sentence) using a student model 1800 .

[0064] 1 shows an example of a functional configuration in which training and inference are performed by the same simultaneous machine translation device 10, but training and inference may be performed by different devices. For example, the teacher model pre-training unit 101, teacher model fine-tuning unit 102, translation decoding unit 103, bilingual creation unit 104, and student model training unit 105 may be included in a training device (or a learning device), and the translation decoding unit 106 may be included in an inference device.

[0065] <Learning process> The learning process for training a simultaneous machine translation model will be described with reference to FIG.

[0066] First, the teacher model pre-training unit 101 receives the bilingual data 1100 as input and pre-trains the teacher model (neural machine translation model) according to the above (a) (step S101). That is, the teacher model pre-training unit 101 uses the bilingual data 1100 to train the teacher model so as to minimize the cross-entropy loss, and outputs the pre-trained teacher model 1200.

[0067] Next, the teacher model fine-tuning unit 102 fine-tunes the pre-trained teacher model 1200 by the above (b) using the bilingual data 1300 as input (step S102). That is, the teacher model fine-tuning unit 102 uses the bilingual data 1300 to train the pre-trained teacher model 1200 by reinforcement learning so as to maximize the cumulative reward value of the reward shown in formula (6) (in other words, so as to minimize the cumulative value of the monotonicity score shown in formula (5)), and outputs the fine-tuned teacher model 1400. As a result, when a source language sentence is input, a fine-tuned teacher model 1400 is obtained that outputs a target language sentence whose word correspondence with the source language sentence is close to monotonous. As described above, in this embodiment, a method based on a pre-trained multilingual model is used to obtain word correspondence (References 11 and 12).

[0068] Next, the translation / decoding unit 103 receives the source language sentence 1500 of the bilingual data as an input, and translates the source language sentence 1500 into a target language sentence 1600 using the fine-tuned teacher model 1400 (step S103).

[0069] Next, the translation creation unit 104 creates new translation data 1700 by pairing the source language sentence 1500 with its translation, the target language sentence 1600 (step S104). This results in the translation data 1700 having word correspondences closer to monotony than the original translation data that contained the source language sentence 1500.

[0070] Then, student model training unit 105 receives bilingual data 1700 as input and trains a student model (simultaneous machine translation model) according to (c) above (step S105). That is, student model training unit 105 trains the student model using bilingual data 1700 so as to minimize cross-entropy loss, and outputs trained student model 1800.

[0071] As a result of the above, a simultaneous machine translation model for simultaneously machine translating an input sentence (source language sentence) into an output sentence (target language sentence) is obtained as the student model 1800. At this time, the simultaneous machine translation device 10 according to the present embodiment creates new bilingual data with more monotonous word correspondence than the original bilingual data, and trains the simultaneous machine translation model with this new bilingual data.

[0072] In addition, when creating new bilingual data, a translation model trained by reinforcement learning with monotonicity based on word correspondence as a reward is used. This makes it possible to create more monotonic and fluent bilingual data. Furthermore, by using word correspondence based on a pre-trained multilingual model, it becomes possible to apply it to a wide range of language pairs and translation directions. In other words, by combining word correspondence based on a pre-trained multilingual model with reinforcement learning with monotonicity based on the word correspondence as a reward, it becomes possible to create bilingual data (training data) for simultaneous machine translation that is applicable to a wide range of language pairs and translation directions and that can achieve both monotonicity and fluency.

[0073] <Simultaneous machine translation processing> A simultaneous machine translation process when a source language sentence is simultaneously machine translated into a target language sentence using a simultaneous machine translation model will be described with reference to FIG.

[0074] The translation / decoding unit 106 receives a given input sentence (sentence in the source language) (step S201).

[0075] Next, the translation / decoding unit 106 translates the input sentence into an output sentence (target language sentence) using the student model 1800 (step S202).

[0076] Then, the translation / decoding unit 106 outputs the output sentence to a predetermined output destination (step S203). The output destination of the output sentence may be any predetermined output destination. For example, the output sentence may be output to a display or the like, or the output sentence may be output to a program that converts the output sentence into synthetic speech, and the synthetic speech may be output from a speaker or the like.

[0077] As a result, simultaneous machine translation can be realized in which a source language sentence is input and a target language sentence is output. Moreover, at this time, the student model 1800 trained by the above learning process can realize simultaneous machine translation with less delay than the conventional technology.

[0078] <Hardware configuration of the simultaneous machine translation device 10> The hardware configuration of the simultaneous machine translation device 10 according to this embodiment is shown in Fig. 4. As shown in Fig. 4, the simultaneous machine translation device 10 according to this embodiment is realized by the hardware configuration of a general computer or computer system, and has an input device 201, a display device 202, an external I / F 203, a communication I / F 204, a processor 205, and a memory device 206. Each of these pieces of hardware are connected to each other via a bus 207 so as to be able to communicate with each other.

[0079] The input device 201 is, for example, a keyboard, a mouse, a touch panel, various physical buttons, etc. The display device 202 is, for example, a display, a display panel, etc. Note that the simultaneous machine translation device 10 does not necessarily have to have at least one of the input device 201 and the display device 202, for example.

[0080] The external I / F 203 is an interface with an external device such as a recording medium 203a. The simultaneous machine translation device 10 can read and write data from and to the recording medium 203a via the external I / F 203. Examples of the recording medium 203a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.

[0081] The communication I / F 204 is an interface for connecting the simultaneous machine translation device 10 to a communication network. The processor 205 is, for example, a CPU, a GPU, or other computing device. The memory device 206 is, for example, a HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, a RAM (Random Access Memory), a ROM (Read Only Memory), or other storage device.

[0082] The simultaneous machine translation device 10 according to this embodiment can realize the above-mentioned learning process and simultaneous machine translation process by having the hardware configuration shown in Fig. 4. Note that the hardware configuration shown in Fig. 4 is only an example, and the simultaneous machine translation device 10 may have, for example, multiple processors 205, multiple memory devices 206, or various other hardware in addition to the hardware shown in the figure.

[0083] <Summary of the embodiment> This specification discloses at least the following simultaneous machine translation method, simultaneous machine translation device, and program:

[0084] (Additional note 1) a pre-training step of pre-training a neural machine translation model using the first bilingual data to minimize cross-entropy loss; a fine-tuning step of fine-tuning the pre-trained neural machine translation model by reinforcement learning using second bilingual data with a monotonicity score representing the monotonicity of word correspondences between bilingual sentences included in the second bilingual data as a reward; a translation step of using a source language sentence among the bilingual sentences included in the third bilingual data to create a target language sentence by translating the source language sentence into a target language using the fine-tuned neural machine translation model; a translation creation step of creating fourth bilingual data, which is a bilingual sentence of the source language sentence and the target language sentence, as learning data for a simultaneous machine translation model; A computer-implemented simultaneous machine translation method.

[0085] (Additional note 2) The simultaneous machine translation method includes: 2. The simultaneous machine translation method according to claim 1, further comprising a training step of training the simultaneous machine translation model using the fourth bilingual data so as to minimize cross-entropy loss.

[0086] (Additional note 3) The simultaneous machine translation method includes: 3. The method of claim 2, further comprising a simultaneous machine translation step of translating an input sentence in a source language into an output sentence in a target language using the trained simultaneous machine translation model.

[0087] (Additional note 4) The fine tuning procedure comprises: The simultaneous machine translation method according to any one of claims 1 to 3, further comprising: determining word correspondences between the bilingual sentences included in the second bilingual data based on a pre-trained multilingual model; and fine-tuning the pre-trained neural machine translation model by reinforcement learning using a monotonicity score of the determined word correspondences as a reward.

[0088] (Additional note 5) 5. The method for simultaneous machine translation according to claim 1, wherein the monotonicity score is the average of the greater of the differences between the normalized values ​​of the occurrence positions of each word included in the word pair represented by the word correspondence or 0.

[0089] (Additional note 6) 6. The method of claim 5, wherein the reward is 1 minus the value of the monotonicity score.

[0090] (Additional note 7) A pre-training unit that pre-trains a neural machine translation model using the first bilingual data so as to minimize cross-entropy loss; a fine-tuning unit that fine-tunes the pre-trained neural machine translation model by reinforcement learning using second bilingual data with a monotonicity score that indicates monotonicity of word correspondence between bilingual sentences included in the second bilingual data as a reward; a translation unit that uses a source language sentence among the bilingual sentences included in the third bilingual data to create a target language sentence by translating the source language sentence into a target language using the fine-tuned neural machine translation model; a parallel translation creating unit that creates fourth parallel translation data, which is a parallel translation of the source language sentence and the target language sentence, as learning data for a simultaneous machine translation model; A simultaneous machine translation device having:

[0091] (Additional note 8) 7. A program for causing a computer to execute the simultaneous machine translation method according to any one of claims 1 to 6.

[0092] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations of known technologies, and the like are possible without departing from the scope of the claims.

[0093] [References] Reference 1: Mingbo Ma, Liang Huang, Hao Xiong, Renjie Zheng, Kaibo Liu, Baigong Zheng, Chuanqiang Zhang, Zhongjun He, Hairong Liu, Xing Li, Hua Wu, and Haifeng Wang. Stacl: Simultaneous translation with implicit anticipation and controllable latency using prefix-to-prefix framework. In Proceedings of the ACL-2019, pp. 3025-3036, 2019. Row 2: Jiatao Gu, Graham Neubig, Kyunghyun Cho, and Victor OK Li. Learning to translate in realtime with neural machine translation. In Proceedings of the EACL-2017, pp. 107-111. 1053–1062, Row 3: Jan Niehues, Ngoc-Quan Pham, Thanh-Le Ha, Matthias Sperber, and Alex Waibel. Low-latency neural speech translation. In Proceedings of Interspeech 1293–1297, Row 4: Naveen Arivazhagan, Colin Cherry, Wolfgang Macherey, and George Foster. Re-translation versus streaming for simultaneous translation. In Proceedings of IWSLT-2020, pp. 101-1 220-227, Row 5:Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. In Proceedings of hte NeurIPS 2014 Deep Learning Workshop, Table 6: Yoon Kim and Alexander M. Rush. Sequence-level knowledge distillation. In Proceedings of the EMNLP-2016, pp. 107-111. 1317–1327, Picture 7: Franz Josef Och and Hermann Ney. A Systematic Comparison of Various Statistical Alignment Models. Computational Linguistics, Vol. 29, No. 1, pp. 19-51, Row 8:Chris Dyer, Victor Chahuneau, and Noah A. Smith. A Simple, Fast, and Effective Reparameterization of IBM Model 2 . 644–648, Row 9: Thomas Zenkel, JoernWuebker, and John DeNero. End-to-End NeuralWord Alignment Outperforms GIZA++. In Proceedings of the ACL-2020, pp. 101-1 1605-1607, Table 10: Sarthak Garg, Stephan Peitz, Udhyakumar Nallasamy, and Matthias Paulik. Jointly Learning to Align and Translate with Transformer Models. In Proceedings of the EMNLP-IJCNLP-2019, pp. 10-11. 4452-4461, Play 11: Masaaki Nagata, Katsuki Chousa, and Masaaki Nishino. A supervised word alignment method based on cross-language span prediction using multilingual bert. In Proceedings of the EMNLP-2020, pp. 101-1 555–565, Picture 12: Zi-Yi Dou and Graham Neubig. Word alignment by fine-tuning embeddings on parallel corpora. Round 13: Marc'Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence Level Training with Recurrent Neural Networks. In Proceedings of the ICLR-2016, 2016. FIGURE 14:Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, Vol. 8, No. 3-4, pp. 101-1 pp. 229–256, Picture 15: Lijun Wu, Fei Tian, ​​Tao Qin, Jianhuang Lai, and Tie-Yan Liu. A study of reinforcement learning for neural machine translation. In Proceedings of the EMNLP-2018, Row 16:Steven J. Rennie, Etienne Marcheret, Youssef Mroueh, Jarret Ross, and Vaibhava Goel. Selfcritical sequence training for image captioning. In Proceedings of the CVPR-2017, pp. 107-111. 7008-7024, Reference 17: Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention Is All You Need. In Proceedings of the NIPS 2017, pp. 5998-6008, 2017. [Explanation of symbols]

[0094] 10 Simultaneous machine translation device 101 Teacher Model Pre-Training Department 102 Teacher Model Fine Tuning Department 103 Translation and Decoding Department 104 Translation Department 105 Student Model Training Department 106 Translation and Decoding Department 201 Input Device 202 Display device 203 External I / F 203a Recording media 204 Communication I / F 205 Processor 206 Memory Device 207 Bus

Claims

1. a pre-training step of pre-training a neural machine translation model using the first bilingual data to minimize cross-entropy loss; a fine-tuning step of fine-tuning the pre-trained neural machine translation model by reinforcement learning using second bilingual data with a monotonicity score representing the monotonicity of word correspondences between bilingual sentences included in the second bilingual data as a reward; a translation step of using a source language sentence among the bilingual sentences included in the third bilingual data to create a target language sentence by translating the source language sentence into a target language using the fine-tuned neural machine translation model; a translation creation step of creating fourth bilingual data, which is a bilingual sentence of the source language sentence and the target language sentence, as learning data for a simultaneous machine translation model; A computer-implemented simultaneous machine translation method.

2. The simultaneous machine translation method includes: The method of claim 1 , further comprising: a training step of training the simultaneous machine translation model using the fourth bilingual data so as to minimize cross-entropy loss.

3. The simultaneous machine translation method includes:

3. The method of claim 2, further comprising a simultaneous machine translation step of translating an input sentence in a source language into an output sentence in a target language using the trained simultaneous machine translation model.

4. The fine tuning procedure comprises:

4. The method for simultaneous machine translation according to claim 1, further comprising: determining word correspondences between the bilingual sentences included in the second bilingual data based on a pre-trained multilingual model; and fine-tuning the pre-trained neural machine translation model by reinforcement learning using a monotonicity score of the determined word correspondence as a reward.

5. 5. The method according to claim 1, wherein the monotonicity score is an average of the greater of the differences between normalized values ​​of the occurrence positions of each word included in the word pair represented by the word correspondence or 0.

6. The method of claim 5 , wherein the reward is one minus the value of the monotonicity score.

7. A pre-training unit that pre-trains a neural machine translation model using the first bilingual data so as to minimize cross-entropy loss; a fine-tuning unit that fine-tunes the pre-trained neural machine translation model by reinforcement learning using second bilingual data with a monotonicity score representing monotonicity of word correspondence between bilingual sentences included in the second bilingual data as a reward; a translation unit that uses a source language sentence among the bilingual sentences included in the third bilingual data to create a target language sentence by translating the source language sentence into a target language using the fine-tuned neural machine translation model; a parallel translation creating unit that creates fourth parallel translation data, which is a parallel translation of the source language sentence and the target language sentence, as learning data for a simultaneous machine translation model; A simultaneous machine translation device having:

8. A program for causing a computer to execute the simultaneous machine translation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Sentence generation learning method, sentence generation learning device and program

    JP2021022007A

  • Sentence creation device

    JP2021179665A

  • Simultaneous interpretation system and method using translation unit bilingual corpus

    US20200159822A1