Parameter allocation method and device for multi-language machine translation model, equipment and medium
By dynamically debugging the pruning rate based on gradient consistency in the multilingual machine translation model and optimizing parameter allocation, the negative transfer problem is solved, the overall translation performance is improved, and adaptive parameter allocation and translation quality are achieved.
Patent Information
- Application Number
- CN202410854813.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-27
AI Technical Summary
While existing multi-language machine translation models improve the translation performance of low-resource languages, they will have a negative impact on the translation performance of high-resource languages, leading to negative transfer. Moreover, the current model pruning method cannot effectively suppress negative transfer, affecting the overall performance. Translation performance.
By dynamically debugging the pruning rate based on the consistency of the language direction gradient and the average gradient, optimizing parameter allocation promotes the positive transfer of cross-language knowledge, suppresses negative transfer, and improves the overall translation performance. Specific methods include parameter adjustment of the multilingual machine translation model, calculation of directional gradients and average gradients, evaluation of similarity coefficients, dynamic adjustment of the pruning rate, and parameter pruning based on the target pruning rate.
It achieves adaptive parameter allocation, improves the overall translation performance of the model, reduces mutual interference between different language features, enhances language features that positively contribute to translation performance, and improves translation quality in multi-language environments.
Smart Images

Figure CN118690761A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data security technology, and in particular to a method, apparatus, device and medium for allocating parameters of a multilingual machine translation model. Background Art
[0002] In the field of multilingual translation, multilingual machine translation models used to translate between different languages can make full use of the common features between languages by sharing parameters, thereby improving the efficiency and accuracy of translation. However, while this method of sharing parameters improves the translation performance of low-resource languages, it will have a negative impact on the translation performance of high-resource languages. This phenomenon is known as negative transfer in the industry, that is, in the process of multilingual learning, due to the mutual interference between different language features, the overall translation performance decreases.
[0003] Currently, the industry often uses model pruning to find sub-networks for each language direction to alleviate the problem of negative transfer between languages in multilingual machine translation. However, the pruning rate in the current pruning process needs to be manually adjusted, and the pruning rate is fixed for all language directions. It cannot adapt to language differences and does not take into account the mutual influence between languages. As a result, the current solution cannot effectively suppress negative transfer, affecting the overall translation performance of the model. Summary of the invention
[0004] The embodiments of the present application provide a parameter allocation method, apparatus, device and medium for a multilingual machine translation model, which can dynamically adjust the pruning rate in each direction based on the consistency between the gradient in each direction and the average gradient to achieve parameter allocation optimization in each direction, effectively promote the positive transfer of cross-language knowledge, inhibit negative transfer, and thus improve the overall translation performance of the model.
[0005] In a first aspect, an embodiment of the present application provides a parameter allocation method for a multilingual machine translation model, comprising: performing parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, and obtaining an absolute value ranking of multiple model parameters under each of the language directions; performing joint parameter adjustment processing on each of the language directions of the multilingual machine translation model based on the language pair data set, and obtaining a directional gradient of each of the language directions; determining an average language direction gradient according to the directional gradient of each of the language directions, and determining a first similarity coefficient corresponding to the directional gradient of each of the language directions and the average language direction gradient; determining a directional pruning rate of the corresponding language direction according to each of the first similarity coefficients; performing iterative joint parameter adjustment processing on the multilingual machine translation model, and iteratively adjusting the directional pruning rate according to a second similarity coefficient of each language direction obtained in each iteration, and obtaining a target pruning rate for each language direction; performing pruning processing on the multiple model parameters according to the target pruning rate and the absolute value ranking under each of the language directions.
[0006] In some embodiments, determining the directional pruning rate of the corresponding language direction according to each of the first similarity coefficients includes: determining the first pruning coefficient corresponding to each of the first similarity coefficients based on a preset coefficient threshold; and obtaining the directional pruning rate of the corresponding language direction according to the first pruning coefficient.
[0007] In some embodiments, the first pruning coefficient corresponding to each of the first similarity coefficients is determined based on a preset coefficient threshold, including: when the first similarity coefficient is greater than or equal to the preset coefficient threshold, the first pruning coefficient corresponding to the first similarity coefficient is determined to be zero; when the first similarity coefficient is less than the coefficient threshold, the difference between the first similarity coefficient and the coefficient threshold is determined, and the first pruning coefficient corresponding to the first similarity coefficient is determined based on the difference and a preset correlation coefficient, wherein the first pruning coefficient increases as the first similarity coefficient decreases.
[0008] In some embodiments, the iterative adjustment of the directional pruning rate according to the second similarity coefficient of each language direction obtained in each iteration to obtain a target pruning rate for each language direction includes: determining, based on the coefficient threshold, a second pruning coefficient corresponding to the second similarity coefficient of each language direction obtained in each iteration; and adjusting the directional pruning rate according to the second pruning coefficient to obtain a target pruning rate for each language direction.
[0009] In some embodiments, adjusting the directional pruning rate according to the second pruning coefficient to obtain a target pruning rate for each language direction includes: obtaining a pruning margin ratio corresponding to the directional pruning rate, wherein the pruning margin ratio represents the proportion of the model parameters that have not been pruned in the corresponding language direction; determining the product of the second pruning coefficient and the pruning margin ratio, and determining the sum of the product and the directional pruning rate as the target pruning rate.
[0010] In some embodiments, the multilingual machine translation model includes multiple language modules, and the method further includes: performing module parameter adjustment processing on each of the language modules of the multilingual machine translation model based on the language pair data set to obtain the module gradient of each of the language modules in each of the language directions, and the module absolute value ranking of multiple model parameters of each of the language modules; determining the corresponding language module average gradient according to the module gradient of each of the language modules in each of the language directions, and determining the first module similarity coefficient between the module gradient corresponding to each of the language directions and the language module average gradient; determining the module pruning rate of the corresponding language direction according to each of the first module similarity coefficients; performing iterative module parameter adjustment processing on the multilingual machine translation model, and iteratively adjusting the module pruning rate according to the second module similarity coefficient of each of the language modules in each of the language directions obtained in each iteration to obtain the target module pruning rate of each of the language modules in each of the language directions; performing pruning processing on the multiple model parameters of each of the language modules according to the target module pruning rate and the absolute value ranking in each of the language directions.
[0011] In some embodiments, determining the module pruning rate of the corresponding language direction according to each of the first module similarity coefficients respectively includes: determining the first module pruning coefficient corresponding to each of the first module similarity coefficients based on a preset coefficient threshold; and obtaining the module pruning rate of the language module in the corresponding language direction according to the first module pruning coefficient.
[0012] In some embodiments, the iterative adjustment of the module pruning rate according to the second module similarity coefficient of each language module in each language direction obtained in each iteration to obtain a target module pruning rate of each language module in each language direction includes: determining the second module pruning coefficient corresponding to the second module similarity coefficient of each language direction obtained in each iteration based on the coefficient threshold; adjusting the module pruning rate according to the second module pruning coefficient to obtain the target module pruning rate of each language module in each language direction.
[0013] In some embodiments, before performing parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair dataset, the method further includes: performing initial training processing on the multilingual machine translation model so that multiple model parameters of the multilingual machine translation model in each language direction are the same.
[0014] In some embodiments, the first similarity coefficient comprises a cosine similarity between a directional gradient of the language direction and an average gradient of the language direction.
[0015] In a second aspect, an embodiment of the present application provides a parameter allocation device for a multilingual machine translation model, comprising: a fine-tuning training module, configured to perform parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, and obtain an absolute value ranking of multiple model parameters under each of the language directions; a joint training module, configured to perform joint parameter adjustment processing on each of the language directions of the multilingual machine translation model based on the language pair data set, and obtain a directional gradient of each of the language directions; determine an average language direction gradient according to the directional gradient of each of the language directions, and determine a first similarity coefficient corresponding to the directional gradient of each of the language directions and the average language direction gradient; a pruning adjustment module, configured to determine a directional pruning rate of the corresponding language direction according to each of the first similarity coefficients; perform iterative joint parameter adjustment processing on the multilingual machine translation model, and iteratively adjust the directional pruning rate according to the second similarity coefficient of each language direction obtained in each iteration, and obtain a target pruning rate for each language direction; perform pruning processing on the multiple model parameters according to the target pruning rate and the absolute value ranking under each of the language directions.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; at least one memory for storing at least one program; and when at least one of the programs is executed by at least one of the processors, a parameter allocation method for a multilingual machine translation model as described in any one of the first aspects above is implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the parameter allocation method for a multilingual machine translation model as described in any one of the first aspects above.
[0018] The parameter allocation method, device, equipment and medium of the multilingual machine translation model provided by the embodiment scheme of the present application can perform parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, and obtain the absolute value ranking of the model parameters to identify the parameters that have a greater impact on the translation performance; further, perform joint parameter adjustment processing on each language direction of the model to obtain the directional gradient of each language direction, and reflect the sensitivity and performance change trend of the model in a specific language direction through the directional gradient; further, by calculating the first similarity coefficient between the directional gradient of each language direction and the average gradient of the language direction, the consistency between the language directions is evaluated, and the higher the similarity coefficient, the more positive the contribution of the language direction to the integrity is; further, the pruning rate of each language direction is determined according to the first similarity coefficient, and the pruning rate of each language direction is determined through iterative joint parameter adjustment processing, combined with each iteration. The second similarity coefficient obtained by the generation is used to further adjust the pruning rate to obtain the target pruning rate for each language direction. Under the condition of continuous optimization of the pruning rate, the model parameters are pruned according to the target pruning rate and the absolute value sorting of the parameters to remove the parameters that contribute less to the translation performance and retain the key parameters. It can be understood that the present application is based on gradient consistency to perform dynamic pruning rate adjustment and automatically and dynamically optimize the parameter allocation scheme, so there is no need for manual intervention, which improves the efficiency and accuracy of model adjustment. The pruning rates of various language directions are not uniformly fixed. By evaluating the gradient consistency to dynamically adjust the pruning rate, it can adapt to the differences between different languages, so that the present application can identify and strengthen the language features that have a positive contribution to the translation performance, promote the positive transfer of cross-language knowledge, and reduce the mutual interference between different language features, effectively suppress negative transfer, and improve the overall translation performance of the model in a multilingual environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a method for allocating parameters of a multilingual machine translation model provided in one embodiment of the present application;
[0020] Figure 2 A flow chart for determining a directional pruning rate provided in an embodiment of the present application;
[0021] Figure 3 A flowchart for determining a first pruning coefficient provided in an embodiment of the present application;
[0022] Figure 4 A flow chart for obtaining a target pruning rate provided in an embodiment of the present application;
[0023] Figure 5 Another flow chart for obtaining a target pruning rate provided by an embodiment of the present application;
[0024] Figure 6A flowchart for obtaining a target module pruning rate provided in an embodiment of the present application;
[0025] Figure 7 A flowchart for determining a module pruning rate provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of an example of a method for allocating parameters of a multilingual machine translation model provided in one embodiment of the present application;
[0027] Fig. 9 A schematic diagram of another example of a parameter allocation method for a multilingual machine translation model provided in an embodiment of the present application;
[0028] Fig.10 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] In some embodiments, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms first, second, etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0031] In addition, unless otherwise clearly specified and limited, the term "connected" should be understood in a broad sense. For example, it can be a fixed connection or a movable connection, a detachable connection or a non-detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or the two can communicate with each other; it can be a direct connection or an indirect connection through an intermediate medium.
[0032] In the description of the embodiments of the present application, the description of reference terms "one embodiment / implementation", "another embodiment / implementation" or "certain embodiments / implementations", "in the above embodiments / implementations", etc. means that the specific features, structures, materials or characteristics described in combination with the implementation or example are included in at least two embodiments or implementations disclosed in the present application. In the disclosure of this application, the schematic representation of the above terms does not necessarily refer to the same embodiment or implementation. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart.
[0033] In the field of multilingual translation, multilingual translation models can use a single model to achieve translation between multiple languages, making full use of the commonalities of languages and effectively improving translation efficiency. This is mainly due to the effective knowledge transfer between different languages that share parameters. However, full parameter sharing is not equally beneficial to all languages. Although including more languages in a single model can improve the performance of low-resource languages, it will also damage the performance of high-resource languages. In multilingual translation models, this phenomenon is called negative transfer, that is, when a model with full parameter sharing attempts to learn multiple languages at the same time, the extracted language features will interfere with each other, adversely affecting performance.
[0034] Currently, the industry often uses model pruning to find the sub-network for each language direction to alleviate the problem of negative transfer between languages in multilingual machine translation. Specifically, the current solution can manually set a unified pruning rate for all language directions, and use the pruning rate to prune the parameters according to the degree of parameter importance on all fine-tuning models. The remaining parameters are the sub-networks of the language direction. Finally, the sub-networks of all language directions are integrated to train the final multilingual machine translation model. During training for each language direction, only the parameters of its sub-network part are updated, and during inference, the sub-network part of the current language direction is also used for inference. It is understandable that the pruning rate in the current pruning process needs to be manually debugged, and the pruning rate is fixed for all language directions, and cannot adapt to language differences. It does not take into account the mutual influence between languages, resulting in the current solution being unable to effectively suppress negative transfer and affecting the overall translation performance of the model.
[0035] Therefore, the present application provides a parameter allocation method, device, equipment and medium for a multilingual machine translation model, the method comprising: adjusting parameters for each language direction of the multilingual machine translation model based on a preset language data set to obtain an absolute value ranking of the model parameters; performing joint parameter adjustment to obtain directional gradients of each language direction, determining an average gradient and a first similarity coefficient based on the directional gradients, and then determining a directional pruning rate; adjusting the directional pruning rate based on a second similarity coefficient through iterative joint parameter adjustment to obtain a target pruning rate, and pruning the model parameters of each language direction based on the target pruning rate and the absolute value ranking, wherein the present application can dynamically adjust the pruning rate of each direction based on the consistency between the gradients of each direction and the average gradient to achieve parameter allocation optimization in each direction, effectively promote the positive transfer of cross-language knowledge, inhibit negative transfer, and thereby improve the overall translation performance of the model.
[0036] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0037] refer to Figure 1 , Figure 1A flowchart of a method for allocating parameters of a multilingual machine translation model provided in an embodiment of the present application; a first aspect of an embodiment of the present application provides a method for allocating parameters of a multilingual machine translation model, including but not limited to:
[0038] Step S110, performing parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, and obtaining an absolute value ranking of multiple model parameters in each language direction;
[0039] Step S120, performing joint parameter adjustment processing on each language direction of the multilingual machine translation model based on the language pair dataset to obtain a directional gradient for each language direction;
[0040] Step S130, determining the average language direction gradient according to the directional gradient of each language direction, and determining a first similarity coefficient corresponding to the directional gradient of each language direction and the average language direction gradient;
[0041] Step S140, determining the direction pruning rate of the corresponding language direction according to each first similarity coefficient;
[0042] Step S150, performing iterative joint parameter adjustment processing on the multilingual machine translation model, and iteratively adjusting the direction pruning rate according to the second similarity coefficient of each language direction obtained in each iteration, to obtain a target pruning rate for each language direction;
[0043] Step S160 , pruning multiple model parameters in each language direction according to the target pruning rate and absolute value sorting.
[0044] Among them, model pruning is an optimization technology used to reduce the complexity of machine learning models and improve the efficiency and generalization ability of models. In multilingual translation models, pruning usually refers to removing those parameters that contribute less to model performance from existing model parameters, thereby obtaining a more streamlined sub-model to reduce the overfitting problem of the model, while reducing the computational cost of the model and improving model performance. Through model pruning, the present application can identify and retain the parameters that are most critical to the translation task and remove those parameters that may cause negative migration.
[0045] Among them, multilingual machine translation refers to the use of a single machine translation model to achieve translation tasks between multiple languages. Compared with the traditional single language translation model, the multilingual machine translation model can learn the commonalities between different languages by sharing parameters, thereby improving resource utilization efficiency and translation quality, especially in low-resource languages. This model design allows the model to effectively transfer knowledge between different languages, but at the same time it also needs to solve the problem of negative transfer between different language features.
[0046] Among them, gradient consistency is a concept used in the training process of multilingual machine translation models, which measures the similarity between the gradient in each individual language direction and the average gradient in all language directions; specifically, in the present application, gradient consistency is evaluated by a first similarity coefficient, which may include a cosine similarity coefficient, that is, the cosine value of the angle between two vectors. The closer this value is to 1, the more similar the two vectors are, that is, the more consistent the gradient directions are. The pruning rate can then be dynamically adjusted by evaluating the gradient consistency to improve the overall translation performance of the model in a multilingual environment.
[0047] It is understandable that the embodiment of the present application provides a multilingual machine translation parameter allocation strategy, which aims to adaptively allocate a sub-network of appropriate size for each language direction. Specifically, the present application defines a gradient consistency metric to measure the similarity between the gradient of each language direction and the overall training target gradient. The allocation of parameters is closely centered on this gradient consistency. The higher the first similarity coefficient, the higher the gradient consistency. The language direction that shows higher cross-language consistency will be allocated more parameter resources due to its significant positive contribution to the overall goal. On the contrary, if the gradient consistency of a certain language direction is low, it implies that it may have an adverse effect on the overall performance. At this time, the present application will reduce the potential interference effect by reducing its parameter allocation. In addition, given that the degree of interference exhibited by different parts of the model may vary, the embodiment of the present application can further propose a parameter allocation strategy based on module-level gradient consistency to achieve more accurate and efficient resource allocation.
[0048] In some embodiments, corresponding to steps S110 to S160, the present application can perform parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, and obtain an absolute value ranking of the model parameters to identify the parameters that have a greater impact on the translation performance; further, perform joint parameter adjustment processing on each language direction of the model to obtain a directional gradient for each language direction, and reflect the sensitivity and performance change trend of the model in a specific language direction through the directional gradient; further, by calculating the first similarity coefficient between the directional gradient of each language direction and the average gradient of the language direction, the consistency between the language directions is evaluated, and the higher the similarity coefficient, the more consistent the language direction is with the overall goal, and the greater the positive contribution to the integrity; further, the pruning rate of each language direction is determined according to the first similarity coefficient, and the pruning rate of each language direction is determined through iterative joint parameter adjustment processing, combined with the first similarity coefficient obtained in each iteration. Second similarity coefficient, further adjust the pruning rate to obtain the target pruning rate for each language direction. Under the condition of continuous optimization of the pruning rate, the model parameters are pruned according to the target pruning rate and the absolute value sorting of the parameters to remove the parameters that contribute less to the translation performance and retain the key parameters. It can be understood that the present application is based on gradient consistency to perform dynamic pruning rate adjustment and automatically and dynamically optimize the parameter allocation scheme, so there is no need for manual intervention, which improves the efficiency and accuracy of model adjustment. The pruning rates of various language directions are not uniformly fixed. By evaluating the gradient consistency to dynamically adjust the pruning rate, it can adapt to the differences between different languages, so that the present application can identify and strengthen the language features that contribute positively to the translation performance, promote the positive transfer of cross-language knowledge, and reduce the mutual interference between different language features, effectively suppress negative transfer, and improve the overall translation performance of the model in a multilingual environment.
[0049] In some embodiments, before performing parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set, the method also includes: performing initial training processing on the multilingual machine translation model so that multiple model parameters of the multilingual machine translation model in each language direction are the same; it can be understood that a multilingual machine translation model is constructed, and the parameters of the model are completely shared in the initial stage, which means that all language pairs use the same model architecture and parameter settings, and the basic model is fine-tuned using the data set of each language direction. The purpose of this step is to enable the model to better adapt to the characteristics and differences of each specific language pair. Through fine-tuning, the absolute value ranking of the model parameters in each language direction can be obtained. In model pruning, it is generally believed that the larger the absolute value of the parameter, the greater the contribution of this parameter to the current task, and therefore its importance is also higher. After obtaining the parameter importance ranking, based on the pruning rate obtained in the subsequent steps, it is determined how much proportion of parameters should be cut in each language direction to achieve parameter allocation of the multilingual machine translation model.
[0050] In some embodiments, in each language direction, multiple model parameters are pruned according to a target pruning rate and an absolute value sorting, that is, the model parameters are pruned according to the calculated pruning rate and parameter importance sorting. In this process, those parameters that contribute less to the translation performance, that is, parameters with smaller absolute values, are pruned first. Since the pruning process is performed through multiple iterations, the pruning rate is adjusted in each iteration according to the change in model performance and the new parameter importance evaluation to achieve better model performance. This allows the present application to adapt to the differences between different languages and optimize the model parameters by dynamically adjusting the pruning rate, rather than adopting a unified and fixed pruning strategy, to promote the positive transfer of cross-language knowledge and reduce interference between different language features, thereby improving the overall translation performance of the model.
[0051] refer to Figure 2 , Figure 2 A flowchart for determining a directional pruning rate is provided for an embodiment of the present application; in some embodiments, the directional pruning rate of the corresponding language direction is determined according to each first similarity coefficient, including but not limited to:
[0052] Step S210, determining the first pruning coefficient corresponding to each first similarity coefficient based on a preset coefficient threshold;
[0053] Step S220: obtaining a directional pruning rate of a corresponding language direction according to the first pruning coefficient.
[0054] In some embodiments, jointly training a multilingual model can be understood as a model that simultaneously processes data of multiple language pairs during training to achieve cross-language knowledge transfer and shared representation. During the training process, the gradient updates of different language directions are observed to evaluate their consistency with the overall training goal. Each first similarity coefficient is the similarity between the language direction gradient and the average gradient as a consistency indicator, which measures the closeness of the language pair direction update target to the overall average target. The larger the first similarity coefficient, the greater the contribution of the language direction to the overall training goal, and therefore more parameters should be allocated; on the contrary, language direction pairs with smaller first similarity coefficients may cause interference and require more parameter pruning; corresponding to steps S210 to S220, based on a preset coefficient threshold, a first pruning coefficient is determined for each language pair, the first pruning coefficient is a coefficient calculated based on a preset calculation formula based only on the first similarity coefficient, and the coefficient is used to update and adjust the calculated direction pruning rate in the previous iteration to determine how much proportion of parameters should be pruned in the corresponding language direction.
[0055] It can be understood that the model in this application can dynamically allocate sub-networks of different sizes to different language pairs to optimize the overall translation performance. For language pairs with high consistency with the overall goal, the model will retain more parameters; and for language pairs with low consistency and possible interference, more parameters will be cut off, thereby improving the overall performance of multi-language translation.
[0056] In some embodiments, the directional gradient grad1 of the language pair l is combined with the language directional average gradient grad avg The similarity between them is defined as the consistency C l :
[0057] C l =cos(grad l ,grad avg ) (1)
[0058] C l The larger the value, the more helpful the language l is to the overall training goal. l If it is smaller, it means that language l may cause interference and needs more parameter pruning. Therefore, the first pruning coefficient of language l and the directional pruning rate R l It can be defined as:
[0059]
[0060] Among them, without iterative update, the first pruning coefficient and the directional pruning rate R l same.
[0061] refer to Figure 3 , Figure 3 A flowchart for determining a first pruning coefficient is provided for an embodiment of the present application; in some embodiments, the first pruning coefficient corresponding to each first similarity coefficient is determined based on a preset coefficient threshold, including but not limited to:
[0062] Step S310, when the first similarity coefficient is greater than or equal to a preset coefficient threshold, determining a first pruning coefficient corresponding to the first similarity coefficient to be zero;
[0063] Step S320, when the first similarity coefficient is less than the coefficient threshold, determine the difference between the first similarity coefficient and the coefficient threshold, and determine the first pruning coefficient corresponding to the first similarity coefficient according to the difference and a preset correlation coefficient, wherein the first pruning coefficient increases as the first similarity coefficient decreases.
[0064] In some embodiments, the present application may set one or more coefficient thresholds as judgment criteria, which are used to evaluate whether the gradient consistency of each language direction meets the expected standard. If the first similarity coefficient of a language pair (i.e., the similarity between the gradient of the language pair and the average gradient) is greater than or equal to the preset coefficient threshold, this indicates that the language pair is highly consistent with the overall training goal. In this case, the corresponding first pruning coefficient is determined to be zero, which means that the parameters of this language pair are not pruned and all parameters are retained; if the first similarity coefficient is less than the preset coefficient threshold, this means that the language pair may cause certain interference to the overall training goal. At this time, it is necessary to calculate the relationship between the difference between the first similarity coefficient and the coefficient threshold and the pruning coefficient, and determine the first pruning coefficient of the language pair based on this difference and another preset correlation coefficient. The correlation coefficient is a hyperparameter used to adjust the pruning intensity. The first pruning coefficient is designed to increase as the first similarity coefficient decreases, that is, the lower the gradient consistency of the language pair, the higher the corresponding pruning coefficient, which means that more parameters need to be pruned.
[0065] In some embodiments, the first similarity coefficient includes the cosine similarity between the directional gradient of the language direction and the average gradient of the language direction, corresponding to the above expression (2), where R l and C l The hyperparameter λ corresponding to the coefficient threshold and the hyperparameter β corresponding to the correlation coefficient respectively determine the starting point of pruning and the pruning rate affected by C. l The sensitivity of the influence; σ indicates that it can only take values greater than 0. l -λ>0 indicates that there is a strong correlation between language l and other languages, so this application will set R l = 0. When C l -λ<0, R l The value range of C is between (0,1), and l The smaller the value of , the fewer parameters will be assigned to the language l, and the corresponding R l The value will be larger if we do not consider the change of gradient over time. l That is, it can be used as the final pruning rate. However, in fact, the dynamic change of the pruning rate is taken into account in the present application method. Therefore, R l For expression description only.
[0066] In some embodiments, reference Figure 4 , Figure 4 A flowchart for obtaining a target pruning rate is provided for an embodiment of the present application; in some embodiments, the direction pruning rate is iteratively adjusted according to the second similarity coefficient of each language direction obtained in each iteration to obtain the target pruning rate of each language direction, including but not limited to:
[0067] Step S410, determining the second pruning coefficients corresponding to the second similarity coefficients of each language direction obtained in each iteration based on the coefficient threshold;
[0068] Step S420: adjusting the directional pruning rate according to the second pruning coefficient to obtain a target pruning rate for each language direction.
[0069] In some embodiments, based on the coefficient threshold, the corresponding second pruning coefficient is determined for the second similarity coefficient of each language direction obtained in each iteration, and the direction pruning rate is adjusted according to the second pruning coefficient to obtain the target pruning rate of each language direction. It can be understood that, considering that the gradient similarity situation will change during the training process, the present application can calculate the pruning rate of language l at the iteration number t to dynamically update the pruning rate, and the target pruning rate is based on the directional pruning rate in the previous iteration The calculation is obtained so that the present application can dynamically adjust the pruning rate according to the current consistency in each iteration, update the language-specific sub-network, and realize the adaptive optimization of the parameters of the model in different language directions during the training process, thereby improving the translation performance and reducing unnecessary computing resource consumption.
[0070] refer to Figure 5 , Figure 5 Another flow chart for obtaining a target pruning rate provided by an embodiment of the present application; in some embodiments, the directional pruning rate is adjusted according to the second pruning coefficient to obtain a target pruning rate for each language direction, including but not limited to:
[0071] Step S510, obtaining a pruning margin ratio corresponding to a direction pruning rate, wherein the pruning margin ratio represents a ratio of unpruned model parameters in a corresponding language direction;
[0072] Step S520: determine the product of the second pruning coefficient and the pruning margin ratio, and determine the target pruning rate as the sum of the product and the directional pruning rate.
[0073] In some embodiments, a pruning margin ratio corresponding to a directional pruning rate is obtained, and the pruning margin ratio represents the ratio of unpruned model parameters, and then the product of the second pruning coefficient and the pruning margin ratio can be determined, and the product of the product and the directional pruning rate is added to determine the target pruning rate. Specifically, the expression for calculating the pruning rate of the language l at the iteration number t is as follows:
[0074]
[0075] in, Based on the previous iteration Calculated, pruning margin ratio It indicates the proportion of parameters still related to language l after the previous pruning to the total number of parameters in the model. The new sub-network is obtained by replacing the second pruning coefficient The corresponding changes are merged with the previous sub-network, and then in each iteration, the pruning rate is dynamically adjusted according to the current consistency, thereby dynamically updating the language-specific sub-network.
[0076] It can be understood that both the first pruning coefficient and the second pruning coefficient can be calculated based on the above formula (2), and both the first pruning coefficient and the second pruning coefficient are inversely proportional to the corresponding directional pruning rate.
[0077] refer to Figure 6 , Figure 6 A flowchart for obtaining a target module pruning rate is provided for an embodiment of the present application; in some embodiments, the multilingual machine translation model includes multiple language modules, and the method also includes but is not limited to:
[0078] Step S610, performing module parameter adjustment processing on each language module of the multilingual machine translation model based on the language pair dataset, obtaining the module gradient of each language module in each language direction, and the module absolute value ranking of multiple model parameters of each language module;
[0079] Step S620, determining the corresponding language module average gradient according to the module gradient of each language module in each language direction, and determining the first module similarity coefficient between the module gradient corresponding to each language direction and the language module average gradient;
[0080] Step S630, determining the module pruning rate of the corresponding language direction according to each first module similarity coefficient;
[0081] Step S640, performing iterative module parameter adjustment processing on the multilingual machine translation model, and iteratively adjusting the module pruning rate according to the second module similarity coefficient of each language module in each language direction obtained in each iteration, to obtain the target module pruning rate of each language module in each language direction;
[0082] Step S650, in each language direction, pruning is performed on multiple model parameters of each language module according to the target module pruning rate and absolute value sorting.
[0083] In some embodiments, steps S610 to S650 involve parameter optimization and pruning processes for different language modules in a multilingual machine translation model. For each language module in the multilingual machine translation model, the corresponding language pair data set is used to train or fine-tune the data set. Through this process, a module ladder of each language module in each language direction is obtained; at the same time, multiple model parameters of each language module are sorted to obtain an absolute value sorting of the module parameters; further, based on the module gradient of each language module in each language direction, the average gradient of the language module is calculated, and then the first module similarity coefficient between the module gradient corresponding to each language direction and the average gradient of the language module is determined, and this coefficient reflects the consistency between the module gradient and the average gradient; further, based on each first module similarity coefficient, the module pruning rate of each language direction is determined. The higher the similarity coefficient, the lower the pruning rate may be, indicating that the language module contributes more to the overall goal; the lower the similarity coefficient, the higher the pruning rate, indicating that more parameters may need to be pruned; further, the model is iteratively adjusted for module parameters. In each iteration, the module pruning rate is iteratively adjusted according to the second module similarity coefficient of each language module in each language direction. Through this process, the target module pruning rate of each language module in each language direction is obtained; further, in each language direction, multiple model parameters of each language module are pruned according to the target module pruning rate and the absolute value of the module parameters. This process will remove those parameters that contribute less to the translation performance, retain the key parameters, and optimize the model structure.
[0084] It is understandable that in a multilingual machine translation model, considering that different components (such as different layers, blocks or weight matrices) may have different effects on the translation performance of different language pairs, the consistency of each language pair on each component of the model can be calculated. By calculating the local consistency and dynamically adjusting the pruning rate accordingly, a more refined parameter allocation can be achieved in different parts, so that the model can better adapt to the differences between different language pairs, thereby achieving fine control of different module components in the model and further improving the overall translation performance of the multilingual machine translation model.
[0085] refer to Figure 7 , Figure 7 A flowchart for determining a module pruning rate is provided for an embodiment of the present application; in some embodiments, the module pruning rate of the corresponding language direction is determined according to each first module similarity coefficient, including but not limited to:
[0086] Step S710, determining the first module pruning coefficient corresponding to each first module similarity coefficient based on a preset coefficient threshold;
[0087] Step S720: obtaining a module pruning rate of a language module in a corresponding language direction according to the first module pruning coefficient.
[0088] In some embodiments, the module pruning rate is iteratively adjusted according to the second module similarity coefficient of each language module in each language direction obtained in each iteration to obtain the target module pruning rate of each language module in each language direction, including: determining the second module pruning coefficient corresponding to the second module similarity coefficient of each language direction obtained in each iteration based on a coefficient threshold; adjusting the module pruning rate according to the second module pruning coefficient to obtain the target module pruning rate of each language module in each language direction.
[0089] In some embodiments, determining the first module pruning coefficient corresponding to each first module similarity coefficient based on a preset coefficient threshold includes, when the first module similarity coefficient is greater than or equal to the preset coefficient threshold, determining the first pruning coefficient corresponding to the first module similarity coefficient to be zero; when the first module similarity coefficient is less than the coefficient threshold, determining the difference between the first module similarity coefficient and the coefficient threshold, and determining the first module pruning coefficient corresponding to the first module similarity coefficient based on the difference and a preset correlation coefficient, wherein the first module pruning coefficient increases as the first module similarity coefficient decreases.
[0090] In some embodiments, adjusting the module pruning rate according to the second module pruning coefficient to obtain the target module pruning rate of each language module in each language module includes obtaining the pruning margin ratio corresponding to the module pruning rate, wherein the pruning margin ratio represents the proportion of unpruned model parameters under the corresponding language module; determining the product of the second module pruning coefficient and the pruning margin ratio, and determining the sum of the product and the module pruning rate as the target module pruning rate.
[0091] In some embodiments, the consistency of a language pair l on a module m in a multilingual machine translation model may be defined as:
[0092]
[0093] in, is the first module similarity coefficient that characterizes the consistency of language pair l on module m, The module gradient of module m in direction l, It is the average module similarity coefficient that characterizes the average consistency of all language pairs on module m. Through calculation, this application can obtain the consistency level of each language pair on each component of the model, so as to better understand the impact of different parts on different languages, and this application can more finely adjust the size of the sub-network to more effectively reduce interference and improve translation performance.
[0094] Then, this application will obtain the adaptive pruning rate of each module according to the local consistency:
[0095]
[0096] in, The target module pruning rate obtained for the current iteration, is the module pruning rate obtained in the previous iteration, is the pruning coefficient of the second module corresponding to the current iteration, For the corresponding pruning margin, based on the above formula, the present application can distinguish the interference degree of each module and prune according to the interference degree. By more targetedly reducing interference, the present application can retain more general knowledge, so that the present application can flexibly adjust the size of the sub-network in different modules to better balance language-specific knowledge and general knowledge and adapt to the differences between different language pairs, thereby improving translation performance and translation quality.
[0097] refer to Figure 8 , Figure 8 A schematic diagram of an example of a method for allocating parameters of a multilingual machine translation model provided in one embodiment of the present application; Figure 8 This is a schematic diagram of pruning multiple model parameters according to the target pruning rate and absolute value sorting in this application, wherein Full model represents the original module after preliminary training, eng-bos represents the translation direction from English to Bosnian, eng-fra represents the translation direction from English to French, and eng-mkd represents the translation direction from English to Macedonian. It can be seen that the directional pruning rates of multiple semantic directions are different, that is, the present application can distinguish the degree of interference in each direction and prune according to the degree of interference, effectively promoting the positive transfer of cross-language knowledge, suppressing cross-language negative interference, and improving the overall translation performance of the model.
[0098] refer to Fig. 9 , Fig. 9 A schematic diagram of another example of a parameter allocation method for a multilingual machine translation model provided in an embodiment of the present application; Fig. 9 This is a schematic diagram of pruning multiple model parameters of each language module in each language direction according to the target module pruning rate and absolute value sorting, wherein Full model represents the original module after preliminary training, eng-bos represents the translation direction from English to Bosnian, eng-fra represents the translation direction from English to French, and eng-mkd represents the translation direction from English to Macedonian. It can be seen that the module pruning rates of multiple modules in multiple semantic directions are different, that is, the present application can distinguish the interference degree of each module and prune according to the interference degree, so that the model can better adapt to the differences between different language pairs, thereby improving the translation quality.
[0099] Some embodiments of the present application provide an electronic device, Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, referring to Fig.10 The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for allocating parameters of a multilingual machine translation model according to any one of the above embodiments is implemented. For example, the method described above is executed. Figure 1 Steps S110 to S160 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S320 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S520 of the method, Figure 6 Steps S610 to S650 of the method, Figure 7 Method steps S710 to S720.
[0100] The electronic device 1000 of the embodiment of the present application includes one or more processors 1010 and a memory 1020. Fig.10 In the figure, a processor 1010 and a memory 1020 are taken as an example.
[0101] The processor 1010 and the memory 1020 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0102] The memory 1020, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1020 may optionally include a memory 1020 remotely disposed relative to the processor 1010, and these remote memories may be connected to the electronic device 1000 via a network. At the same time, examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0103] In some embodiments, when the processor executes the computer program, the parameter allocation method for the multilingual machine translation model of any one of the above embodiments is performed at preset intervals.
[0104] Those skilled in the art will understand that Fig.10 The device structure shown in the figure does not constitute a limitation on the electronic device 1000, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0105] exist Fig.10 In the electronic device 1000 shown, the processor 1010 can be used to call the parameter allocation method of the multilingual machine translation model stored in the memory 1020, so as to implement the parameter allocation method of the multilingual machine translation model.
[0106] Based on the hardware structure of the electronic device 1000, various embodiments of the parameter allocation device for the multilingual machine translation model of the present application are proposed. At the same time, the non-transient software program and instructions required to implement the parameter allocation method for the multilingual machine translation model of the above embodiments are stored in the memory. When executed by the processor, the parameter allocation method for the multilingual machine translation model of the above embodiments is executed.
[0107] The present application also provides a computer-readable storage medium storing computer-executable instructions, which are used to execute the above-mentioned method for allocating parameters of a multilingual machine translation model, and can enable the above-mentioned one or more processors to execute the method for allocating parameters of a multilingual machine translation model in any of the above-mentioned embodiments, for example, to execute the above-mentioned method for allocating parameters of a multilingual machine translation model. Figure 1 Steps S110 to S160 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S320 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S520 of the method, Figure 6 Steps S610 to S650 of the method, Figure 7 Method steps S710 to S720.
[0108] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network nodes. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer-readable storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD to ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0110] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A parameter allocation method for a multilingual machine translation model, It is characterized in that include: Based on a preset language pair data set, parameter adjustment processing is performed on each language direction of the multilingual machine translation model to obtain an absolute value ranking of multiple model parameters in each language direction; Performing joint parameter adjustment processing on each of the language directions of the multilingual machine translation model based on the language pair dataset to obtain a directional gradient for each of the language directions; Determine an average language direction gradient according to the directional gradient of each language direction, and determine a first similarity coefficient corresponding to the directional gradient of each language direction and the average language direction gradient; Determine the direction pruning rate of the corresponding language direction according to each of the first similarity coefficients; Iteratively performing joint parameter adjustment processing on the multilingual machine translation model, and iteratively adjusting the direction pruning rate according to the second similarity coefficient of each language direction obtained in each iteration to obtain a target pruning rate for each language direction; In each of the language directions, the plurality of model parameters are pruned according to the target pruning rate and the absolute value sorting.
2. The parameter allocation method for a multilingual machine translation model according to claim 1, It is characterized in that The determining the direction pruning rate of the corresponding language direction according to each of the first similarity coefficients respectively includes: Determine the first pruning coefficient corresponding to each of the first similarity coefficients based on a preset coefficient threshold; A directional pruning rate of a corresponding language direction is obtained according to the first pruning coefficient.
3. The parameter allocation method for a multilingual machine translation model according to claim 2, It is characterized in that Determining the first pruning coefficient corresponding to each of the first similarity coefficients based on a preset coefficient threshold respectively includes: When the first similarity coefficient is greater than or equal to a preset coefficient threshold, determining a first pruning coefficient corresponding to the first similarity coefficient to be zero; When the first similarity coefficient is less than the coefficient threshold, a difference between the first similarity coefficient and the coefficient threshold is determined, and a first pruning coefficient corresponding to the first similarity coefficient is determined according to the difference and a preset correlation coefficient, wherein the first pruning coefficient increases as the first similarity coefficient decreases.
4. The parameter allocation method for a multilingual machine translation model according to claim 2, It is characterized in that The iterative adjustment of the direction pruning rate according to the second similarity coefficient of each language direction obtained in each iteration to obtain a target pruning rate for each language direction includes: Determine, based on the coefficient threshold, the second pruning coefficient corresponding to the second similarity coefficient of each language direction obtained in each iteration; The directional pruning rate is adjusted according to the second pruning coefficient to obtain a target pruning rate for each language direction.
5. The parameter allocation method for a multilingual machine translation model according to claim 4, It is characterized in that The step of adjusting the directional pruning rate according to the second pruning coefficient to obtain a target pruning rate for each language direction includes: Obtaining a pruning margin ratio corresponding to the direction pruning rate, wherein the pruning margin ratio represents a ratio of the model parameters that have not been pruned in the corresponding language direction; The product of the second pruning coefficient and the pruning margin ratio is determined, and the sum of the product and the directional pruning rate is determined as the target pruning rate.
6. The parameter allocation method for a multilingual machine translation model according to claim 1, It is characterized in that The multilingual machine translation model includes multiple language modules, and the method further includes: Performing module parameter adjustment processing on each of the language modules of the multilingual machine translation model based on the language pair data set to obtain a module gradient of each of the language modules in each of the language directions, and a module absolute value ranking of a plurality of model parameters of each of the language modules; Determine the corresponding language module average gradient according to the module gradient of each language module in each language direction, and determine the first module similarity coefficient between the module gradient corresponding to each language direction and the language module average gradient; Determining the module pruning rate of the corresponding language direction according to each of the first module similarity coefficients; Iteratively adjusting the module parameters of the multilingual machine translation model, and iteratively adjusting the module pruning rate according to the second module similarity coefficient of each language module in each language direction obtained in each iteration, to obtain a target module pruning rate of each language module in each language direction; In each of the language directions, pruning is performed on multiple model parameters of each of the language modules according to the target module pruning rate and the absolute value sorting.
7. The parameter allocation method for a multilingual machine translation model according to claim 6, It is characterized in that The determining the module pruning rate of the corresponding language direction according to each of the first module similarity coefficients respectively includes: Determine the first module pruning coefficient corresponding to each of the first module similarity coefficients based on a preset coefficient threshold; The module pruning rate of the language module in the corresponding language direction is obtained according to the first module pruning coefficient.
8. The parameter allocation method for a multilingual machine translation model according to claim 7, It is characterized in that The iteratively adjusting the module pruning rate according to the second module similarity coefficient of each language module in each language direction obtained in each iteration to obtain the target module pruning rate of each language module in each language direction includes: Determine the second module pruning coefficient corresponding to the second module similarity coefficient of each language direction obtained in each iteration based on the coefficient threshold; The module pruning rate is adjusted according to the second module pruning coefficient to obtain a target module pruning rate of each of the language modules in each of the language directions.
9. The parameter allocation method for a multilingual machine translation model according to claim 1, It is characterized in that Before performing parameter adjustment processing on each language direction of the multilingual machine translation model based on the preset language pair data set, the method further includes: An initial training process is performed on the multilingual machine translation model so that multiple model parameters of the multilingual machine translation model in each language direction are the same.
10. The parameter allocation method for a multilingual machine translation model according to claim 1, It is characterized in that The first similarity coefficient includes the cosine similarity between the directional gradient of the language direction and the average gradient of the language direction.
11. A parameter allocation device for a multilingual machine translation model, It is characterized in that include: A fine-tuning training module is used to perform parameter adjustment processing on each language direction of the multilingual machine translation model based on a preset language pair data set to obtain an absolute value ranking of multiple model parameters under each of the language directions; A joint training module, configured to perform joint parameter adjustment processing on each of the language directions of the multilingual machine translation model based on the language pair data set to obtain a directional gradient of each of the language directions; determine an average language direction gradient according to the directional gradient of each of the language directions, and determine a first similarity coefficient corresponding to the directional gradient of each of the language directions and the average language direction gradient; A pruning adjustment module is used to determine the directional pruning rate of the corresponding language direction according to each of the first similarity coefficients; perform iterative joint parameter adjustment processing on the multilingual machine translation model, and iteratively adjust the directional pruning rate according to the second similarity coefficient of each language direction obtained in each iteration to obtain a target pruning rate for each language direction; In each of the language directions, the plurality of model parameters are pruned according to the target pruning rate and the absolute value sorting.
12. An electronic device, It is characterized in that include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the parameter allocation method for a multilingual machine translation model according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the parameter allocation method for a multilingual machine translation model according to any one of claims 1 to 10.
Citation Information
Patent Citations
Translation method, machine translation model training method and device and storage medium
CN110442878A
Compression method for compressing machine translation model into small equipment
CN112257466A
Model training method and device, machine translation method and device, equipment and storage medium
CN112380883A
Method and apparatus for constructing translation model
US20200250384A1
