Decoding method, speech recognition device and system

By introducing special lexical units and setting their relationships, the problem of degradation in prediction performance of output lexical units caused by the low probability of input lexical units in the autoregressive decoding method is solved, and the prediction ability of the neural network under low-probability inputs is improved.

CN111192576BActive Publication Date: 2024-08-27SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910846620.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-14
Filing Date
2019-09-09
Publication Date
2024-08-27
Estimated Expiration
2039-09-09

AI Technical Summary

Technical Problem

In autoregressive decoding methods, the low probability of input lexical units leads to the degradation of output lexical unit prediction performance, making it difficult to generate efficient subsequent lexical units.

Method used

By introducing a special lexical unit, setting its relationship with the output lexical unit to be less than or equal to a predetermined value, and shielding the special lexical unit in the conditional probability to ensure that it does not affect other lexical units, select the lexical unit with a higher probability as the next input Lexical unit.

Benefits of technology

It improves the reliability and accuracy of the output lexical units, avoids performance degradation caused by low-probability lexical units, and enhances the prediction ability of the neural network under low-probability inputs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111192576B_ABST
    Figure CN111192576B_ABST
Patent Text Reader

Abstract

A decoding method, a speech recognition device and a system are provided. The method predicts the probability of a candidate of an output lexical unit based on at least one previous input lexical unit; determines the output lexical unit among the candidates based on the predicted probability; and determines the next input lexical unit by selecting one of the output lexical unit and a predefined special lexical unit based on the determined probability of the output lexical unit.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the benefit of Korean Patent Application No. 10-2018-0139787, filed on November 14, 2018, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety for all purposes by reference. Technical Field

[0002] The present invention relates to a method and device for speech recognition. Background Art

[0003] When a sequence with an undefined length is received as an input in an artificial neural network, an output of an undefined length is generated. Generally, to handle this problem, an encoder-decoder artificial neural network model as a sequence-to-sequence model may be implemented. For example, a method of continuously outputting subsequent outputs for each lexical unit corresponding to a unit constituting a sequence based on the previous output of the neural network as input so as to calculate an output with an undefined length using an artificial neural network may be referred to as autoregressive decoding. Summary of the invention

[0004] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.

[0005] In one general aspect, a decoding method implemented by a processor in a first neural network includes: predicting a probability of a candidate for an output lexical unit based on at least one previous input lexical unit; determining an output lexical unit among the candidates based on the predicted probability; and determining a next input lexical unit by selecting the output lexical unit and one of a predefined special lexical unit based on the determined probability of the output lexical unit.

[0006] A special lexeme may be determined as the next input lexeme, and reliability of a candidate of a next output lexeme predicted based on the special lexeme is higher than reliability of a candidate of a next output lexeme predicted based on the output lexeme.

[0007] The step of determining the output lexical unit may include selecting the output lexical unit from the candidates based on a combination of probabilities of the candidates predicted by one or more second neural networks interacting with the first artificial neural network and probabilities of the candidates predicted by the first artificial neural network.

[0008] The input layer of the neural network may include a plurality of nodes corresponding to each candidate and a special node corresponding to a special lexical unit.

[0009] The at least one previous input token may include at least one of an output token previously predicted by the neural network and a special token.

[0010] The step of determining the output token may include selecting the token with the highest probability among the candidates.

[0011] The method may be a recognition method using the first neural network and the one or more second neural networks.

[0012] The step of determining the next input lexical unit may include: comparing the probability of the output lexical unit with a threshold probability; when the probability of the output lexical unit is lower than the threshold probability, selecting a special lexical unit as the next input lexical unit; when the probability of the output lexical unit is higher than or equal to the threshold probability, selecting the output lexical unit as the next input lexical unit.

[0013] The step of predicting the probability of the candidate of the output token may include predicting the probability of the candidate of the output token based on the relationship between the at least one previous input token and the output token.

[0014] The method may further include determining a next output lexical unit based on the at least one previous input lexical unit and the next input lexical unit.

[0015] The method may further include: shielding the special lexical unit to prevent lexical units other than the special lexical unit from noticing the special lexical unit.

[0016] The method may further include, when the special lexical unit is determined to be the next input lexical unit, setting a relationship between the next output lexical unit and the special lexical unit to be less than or equal to a predetermined value.

[0017] The step of determining the output lexical unit may include: determining whether the output lexical unit is similar to the special lexical unit; and when the output lexical unit is similar to the special lexical unit, determining a lexical unit with a second highest probability among the candidates as the output lexical unit.

[0018] In one general aspect, a decoding method implemented by a processor in a first neural network includes: predicting the probability of candidates for an output lexical unit based on at least one previous input lexical unit; selecting an output lexical unit from the candidates based on a combination of the probabilities of the candidates predicted by one or more second neural networks interacting with the first neural network and the probabilities of the candidates predicted by the first neural network; comparing the probability of the output lexical unit in the first neural network with the probability of the output lexical unit in a determined neural network of the one or more second neural networks having the highest probability of the output lexical unit; and determining a next input lexical unit in the first neural network by selecting one of the output lexical unit and a predefined special lexical unit based on a result of the comparison.

[0019] The step of determining the next input lexical unit may include: when the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is greater than or equal to a threshold, selecting a special lexical unit as the next input lexical unit of the first neural network; when the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is less than the threshold, selecting the output lexical unit as the next input lexical unit of the first neural network.

[0020] The difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is greater than or equal to the threshold, and the reliability of the candidate of the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate of the next output lexical unit predicted by the output lexical unit.

[0021] The input layer of the neural network may include a plurality of nodes corresponding to each candidate and a special node corresponding to a special lexical unit.

[0022] The at least one previous input lexical unit may include at least one of an output lexical unit previously predicted by the artificial neural network and a special lexical unit.

[0023] The step of predicting the probability of the candidate of the output token may include predicting the probability of the candidate of the output token based on the relationship between the at least one previous input token and the output token.

[0024] The method may include determining a next output token based on the at least one previous input token and the next input token.

[0025] The method may include masking the special lexical unit to prevent lexical units other than the special lexical unit from noticing the special lexical unit.

[0026] The method may include, when the special lexical unit is determined to be the next input lexical unit, setting a relationship between the next output lexical unit and the special lexical unit to be less than or equal to a predetermined value.

[0027] The step of determining the output lexical unit may include: determining whether the output lexical unit is similar to the special lexical unit; and when the output lexical unit is similar to the special lexical unit, determining a lexical unit with a second highest probability among the candidates as the output lexical unit.

[0028] In one general aspect, a speech recognition device includes: one or more processors configured to: implement at least a first neural network including one or more processors, the one or more processors configured to predict a probability of a candidate for an output lexical unit based on at least one previous input lexical unit of an input; determine an output lexical unit among the candidates based on the predicted probability; and determine a next input lexical unit by selecting one of the output lexical unit and a predefined special lexical unit based on the determined probability of the output lexical unit.

[0029] When a special lexeme is determined to be the next input lexeme, the reliability of the candidate of the next output lexeme predicted based on the special lexeme may be higher than the reliability of the candidate of the next output lexeme predicted based on the output lexeme.

[0030] An input layer of the neural network may include a plurality of nodes corresponding to each of the plurality of candidates and a special node corresponding to a special lexical unit.

[0031] The at least one previous input token may include at least one of an output token previously predicted by the neural network and a special token.

[0032] The one or more processors may be configured to select a token having a highest probability among the candidates.

[0033] The one or more processors may be further configured to implement one or more second neural networks, wherein the one or more processors are further configured to select an output lexical unit from the candidates based on a combination of the probabilities of the candidates predicted by the second neural network interacting with the first neural network and the probabilities of the candidates predicted by the first neural network.

[0034] The one or more processors may also be configured to: compare the probability of an output lexical unit with a threshold probability; when the probability of an output lexical unit is lower than the threshold probability, select a special lexical unit as the next input lexical unit; when the probability of an output lexical unit is higher than or equal to the threshold probability, select the output lexical unit as the next input lexical unit.

[0035] The one or more processors may be further configured to predict a probability of a candidate for an output token based on a relationship between the at least one previous input token and the output token.

[0036] The one or more processors may be further configured to determine a next output token based on the at least one previous input token and the next input token.

[0037] The one or more processors may be further configured to mask the special lexical unit to prevent lexical units other than the special lexical unit from noticing the special lexical unit.

[0038] The one or more processors may be further configured to, when the special lexical unit is determined to be the next input lexical unit, set the relationship between the next output lexical unit and the special lexical unit to be less than or equal to a predetermined value.

[0039] The one or more processors may also be configured to: determine whether the output lexical unit is similar to the special lexical unit; and when the output lexical unit is similar to the special lexical unit, determine the lexical unit with the second highest probability among the candidates as the output lexical unit.

[0040] In one general aspect, a speech recognition device includes one or more processors configured to implement at least a first neural network including a processor configured to: predict a probability of a candidate for an output lexical unit based on at least one previous input lexical unit; select an output lexical unit from the candidates based on a combination of the probabilities of the candidates predicted by one or more second neural networks interacting with the first neural network and the probabilities of the candidates predicted by the first neural network; compare the probability of the output lexical unit in the first neural network with the probability of the output lexical unit in a determined neural network of the one or more second neural networks having the highest probability of the output lexical unit; and determine a next input lexical unit in the first neural network by selecting one of the output lexical unit and a predefined special lexical unit based on a result of the comparison.

[0041] The one or more processors may also be configured to: select a special lexical unit as the next input lexical unit of the first neural network when the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is greater than or equal to a threshold; and select the output lexical unit as the next input lexical unit of the first neural network when the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is less than the threshold.

[0042] When the difference between the probability of an output lexical unit in the first neural network and the probability of an output lexical unit in the determined neural network is greater than or equal to the threshold, the reliability of the candidate for the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate for the next output lexical unit predicted by the output lexical unit.

[0043] In one general aspect, a speech recognition system includes: one or more processors; one or more memories storing instructions that, when executed by the one or more processors, configure the one or more processors to perform the following processing: extracting speech features from an input speech signal and generating encoding features; determining candidate probabilities of output lexical units based on the encoding features and previously determined recognition results; and determining the next output lexical unit based on determined weights of candidates generated by a language model neural network and determined weights of candidates determined by a speech recognition neural network.

[0044] Other features and aspects will be apparent from the following detailed description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 An example of an autoregressive decoding method in an artificial neural network according to one or more embodiments is shown.

[0046] Figure 2 An example of a method of masking a specific lexical unit in an artificial neural network to which an attention mechanism is applied according to one or more embodiments is shown.

[0047] Figure 3 An example of an encoder-decoder structure artificial neural network system according to one or more embodiments is shown.

[0048] Figure 4 An example of an encoder-decoder structure artificial neural network system based on an ensemble technique according to one or more embodiments is shown.

[0049] Figure 5 An example of application in a speech recognition artificial neural network with an additional language model according to one or more embodiments is shown.

[0050] Figure 6 An example of a speech recognition artificial neural network system with an additional language model artificial neural network is shown in accordance with one or more embodiments.

[0051] Fig. 7AAn example of applying the integration technology to a language model artificial neural network decoder and a speech recognition artificial neural network decoder according to one or more embodiments is shown.

[0052] Figure 7B An example of applying the integration technology to a speech recognition artificial neural network decoder and a language model artificial neural network decoder using special lexical units according to one or more embodiments is shown.

[0053] Figure 8 An example of a decoding method in an artificial neural network according to one or more embodiments is shown.

[0054] Fig. 9 An example of a method of processing a lexical unit with a low probability in an artificial neural network based on autoregressive sequence generation according to one or more embodiments is shown.

[0055] Fig.10 An example of a device for processing lexical units with low probability in an artificial neural network based on autoregressive sequence generation is shown.

[0056] Throughout the drawings and detailed description, unless otherwise described or provided, the same figure reference numerals will be understood to refer to the same elements, features and structures. The drawings may not be drawn to scale, and the relative sizes, proportions and depictions of the elements in the drawings may be exaggerated for clarity, illustration and convenience. DETAILED DESCRIPTION

[0057] The following specific embodiments are provided to help the reader gain a comprehensive understanding of the methods, devices and / or systems described herein. However, after understanding the disclosure of the present application, various permutations, modifications and equivalents of the methods, devices and / or systems described herein will be clear. For example, the order of operations described herein is merely an example and is not limited to the order set forth herein, but can be changed as is clear after understanding the disclosure of the present application, except for operations that must occur in a specific order. In addition, for greater clarity and simplicity, descriptions of features known in the art may be omitted.

[0058] The features described herein may be implemented in various forms and should not be construed as being limited to the examples described herein. Rather, the examples described herein have been provided to illustrate only some of the many possible ways to implement the methods, devices, and / or systems described herein, which will be clear after understanding the disclosure of this application.

[0059] Although terms such as "first", "second", and "third" may be used herein to describe various members, components, regions, layers, or portions, these members, components, regions, layers, or portions are not limited by these terms. Rather, these terms are only used to distinguish one member, component, region, layer, or portion from another member, component, region, layer, or portion. Therefore, without departing from the teachings of the examples described herein, what is referred to as a first member, first component, first region, first layer, or first portion may also be referred to as a second member, second component, second region, second layer, or second portion.

[0060] Throughout the specification, when an element such as a layer, a region or a substrate is described as being “on”, “connected to” or “coupled to” another element, the element may be directly “on”, “connected to” or “coupled to” the other element, or one or more other elements may be present therebetween. Conversely, when an element is described as being “directly on”, “directly connected to” or “directly coupled to” another element, other elements may not be present therebetween.

[0061] The terms used herein are only used to describe various examples and are not intended to limit the present disclosure. Unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. The terms "comprise", "include" and "have" indicate the presence of the features, quantities, operations, components, elements and / or combinations thereof set forth, but do not exclude the presence or addition of one or more other features, quantities, operations, components, elements and / or combinations thereof.

[0062] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which the present disclosure belongs after understanding the present disclosure. Unless explicitly defined as such herein, terms (such as those defined in general dictionaries) will be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal manner.

[0063] Hereinafter, example embodiments will be described in detail with reference to the accompanying drawings. Like reference numerals refer to like elements throughout.

[0064] Figure 1 is a diagram illustrating an example of an autoregressive decoding method in an artificial neural network.

[0065] Reference Figure 1 , the decoder 120 receives as input the encoded features 110. For example, in an embodiment, the decoder 120 receives input from an example encoder connected to the front end of the decoder 120, such as in an artificial neural network.

[0066] The encoder and decoder 120 may be a sequence-to-sequence encoder-decoder implemented by an encoder-decoder neural network. As a non-limiting example, the neural network may be a deep neural network (DNN). In such an example, the DNN may include one or more of a fully connected network, a deep convolutional network, a recursive neural network (RNN), a recursive deep neural network (RDNN), and / or a bidirectional recursive neural network (BDRNN), wherein the fully connected network, the deep convolutional network, the recursive neural network, the recursive deep neural network, and / or the bidirectional recursive neural network may respectively include different or overlapping neural network parts having such full, convolutional, recursive connections and / or bidirectional recursive connections. The nodes of the layers in the neural network may affect each other nonlinearly. In addition, the parameters of the neural network (such as the values ​​output from each of the multiple nodes, the connection relationship between the nodes, etc.) may be optimized by learning (e.g., by loss-based backpropagation).

[0067] As a non-limiting example, the neural network may be a processor-implemented neural network model, and various processes may be implemented by the neural network model as a dedicated computing architecture, wherein the neural network model, after extensive training, may provide a computationally intuitive mapping between input patterns and output patterns or pattern recognition of input patterns. The training capability to generate such mappings or perform such example pattern recognition may be referred to as the learning capability of the neural network. Such training capability may also enable the dedicated computing architecture to classify such input patterns or portions of input patterns as belonging to members of one or more predetermined groups. In addition, due to the specialized training, such a specially trained neural network may therefore have a generalization capability to generate relatively accurate or reliable outputs for, for example, input patterns for which the neural network may not have been trained.

[0068] In an example, a sequence-to-sequence encoder-decoder may have a network structure of an integrated encoder and decoder, and may generate a sequence of recognition results from an input sequence. For example, an encoder and decoder 120 implemented by a sequence-to-sequence structure may generate a recognition result corresponding to an input speech from an input speech. An exemplary integrated encoder and decoder 120 may be pre-trained to generate a sequence of recognition results from an input sequence.

[0069] Use of the term "may" herein with respect to an example or embodiment (eg, with respect to what an example or embodiment may include or achieve) means that there is at least one example or embodiment that includes or achieves such feature, and all examples and embodiments are not limited thereto.

[0070] The encoder generates a coding feature 110 by encoding the input sequence. The encoder generates coding information by extracting features from the input sequence. The coding feature 110 is applied to the decoder 120. The decoder 120 generates a recognition result based on the coding feature 110.

[0071] Reference Figure 1 The decoder 120 having received the encoding feature 110 determines the lexical unit 1 105 as an output lexical unit based on the start lexical unit 115 corresponding to the input lexical unit. The decoder 120 having determined the lexical unit 1 105 as an output lexical unit determines the lexical unit 1 105 as a next input lexical unit.

[0072] In the encoder-decoder structure artificial neural network, the decoder 120 obtains the output lexical unit based on the information calculated by the encoder for each step. In this example, the decoder 120 obtains the output lexical unit according to the input lexical unit selected until the previous step.

[0073] For example, the decoder 120, which has determined the token 1 105 as an input token, predicts the probability of a candidate for an output token based on the token 1 105. 1 to c m Represents a candidate for output token. 1 to p m Represents the probability of the candidate. Based on the probability, the output lexical unit is determined from the candidates. For example, the lexical unit with the highest probability is selected from the candidates as the output lexical unit.

[0074] For example, in step i, the lexical unit t i The conditional probability of can be expressed as shown in the following formula 1.

[0075] [Formula 1]

[0076] p(t i |t 1 , t 2 , ..., t i-1 , H e )

[0077] In formula 1, H e represents the hidden representation of the encoder and corresponds to the encoded feature 110. 1 to i-1 Represents the input token selected so far. For ease of description, although Figure 1 The encoding feature 110 is shown to be applied to the nodes of the first step in the decoder 120 , but the encoding feature 110 may also be similarly applied to other nodes thereafter.

[0078] Generally, in a sequence-to-sequence model that performs autoregressive decoding, a token selected as an output token is determined as the next input token. Since the output token is determined based on the input token selected until the previous step, when the next input token is selected as an output token in the sequence-to-sequence model, the performance of predicting the next token may be degraded due to the selected output token.

[0079] For example, in the output token candidate c 1 to c m Among them, c with lower probability i can be determined as an output lexical unit. Due to the characteristic of generating subsequent output based on the previous lexical unit, when generating the next lexical unit based on a lexical unit with a relatively low probability in such a typical autoregressive decoding process, if the probability of the previous lexical unit is relatively low, it may be difficult to efficiently generate the subsequent lexical unit. For example, although c i has the highest probability, but c 1 to c m As an example, in an environment where model ensemble autoregressive decoding is performed by selecting and using one of the lexical units generated in various artificial neural network models, the next lexical unit may be generated as an ensemble result based on a lexical unit generated by another artificial neural network.

[0080] Therefore, when the input token t i-1 When the probability of i |t 1 , t 2 , ..., t i-1 ,h e ) accurately predicts the t corresponding to the output token i .

[0081] In the example, if we exclude the token t in Formula 1 related to the conditional probability i-1 To calculate the probability, so that based on the input token t with lower probability i-1 To accurately predict the output token t i , such problems can be solved. However, since the conditional probabilities can be learned from the learning data, if the conditional probabilities are calculated independently of the previous tokens, the original goal of the neural network will not be achieved or the accuracy will be greatly reduced.

[0082] In the example of the decoding method here, even in the input token t i-1 When the probability of t is low, you can also use special lexical units t that do not affect the conditional probability. NC To accurately predict the output token ti .

[0083] Reference Figure 1 , the output token c to be determined as the output of token 1 105 i The probability p i With the threshold probability θ nc For comparison. Threshold probability θ nc It can be a predetermined value (e.g., the minimum value of the probability of the input token that will obtain the desired output). i The probability p i Higher than or equal to the threshold probability θ nc , we can determine that the expected output can be obtained. In this example, the output token c i is determined to be the next input token.

[0084] If the output token c i The probability p i The probability of being below the threshold θ nc , then when the output lexical unit c i When c is determined as the next input lexical unit, it can be determined that the expected output will not be obtained. i The probability p i The probability of being below the threshold θ nc , then output lexical unit c i will not be determined or used as the next input token. In this example, the predefined special token NC is used instead of the output token c. i , is determined as or used as the next input token.

[0085] The reliability of the candidate for the next output lexical unit predicted based on the special lexical unit may be higher than the reliability of the candidate for the next output lexical unit predicted based on the output lexical unit with a probability below the threshold probability. The artificial neural network may be pre-trained to meet such characteristics. The method of training the artificial neural network will be described in detail later. i The probability p i The probability of being below the threshold θ nc When the reliability of the candidate of the next output lexical unit predicted based on the special lexical unit NC is higher than that based on c i The reliability of the candidate for the predicted next output token.

[0086] Reliability can be expressed as the reliability of a lexical unit as the degree to which the learning data is closer to the correct answer lexical unit. i The probability p i The probability of being below the threshold θ nc When, based on c iThe output lexical unit with the highest probability among the candidates for the predicted next output lexical unit based on the special lexical unit NC may be closer to the correct answer lexical unit than the output lexical unit with the highest probability among the candidates for the predicted next output lexical unit.

[0087] When the artificial neural network determines the next input lexical unit by selecting one of the output lexical unit and the special lexical unit, the next output lexical unit may be determined based on at least one input lexical unit and the next input lexical unit. When the special lexical unit NC is determined as the next input lexical unit, the artificial neural network determines the lexical unit 3 125 corresponding to the next output lexical unit based on the lexical unit 1 105 corresponding to the input lexical unit and the special lexical unit NC corresponding to the next input lexical unit. In addition, when the special lexical unit NC is determined as the next input lexical unit, the artificial neural network may set the relationship between the next output lexical unit and the special lexical unit NC to be less than or equal to a predetermined value.

[0088] Figure 2 is a diagram illustrating an example of a method of masking a specific lexical unit in an artificial neural network to which an attention mechanism is applied.

[0089] Reference Figure 2 The decoder 220 predicts the probability of a candidate of an output lexical unit based on the relationship between at least one input lexical unit and the output lexical unit. The decoder 220 predicts the probability of a candidate of an output lexical unit using a weight that selectively varies based on the input lexical unit.

[0090] For example, the artificial neural network may be an artificial neural network to which an attention mechanism is applied, and the artificial neural network is trained to appropriately represent the relationship of the initially predicted tokens based on the attention mechanism.

[0091] The decoder 220 masks the special lexical unit to prevent other lexical units from noticing the special lexical unit, so that the special lexical unit does not affect other lexical units.

[0092] For example, in addition to the input tokens "Hi", "this", and "is", the output token corresponding to the input token "is" may notice the special token NC. Because the special token should not affect other tokens, the special token is shielded to prevent the output token corresponding to the input token "is" from noticing the special token NC.

[0093] Will refer to Figures 3 to 5 Describe the encoder-decoder structure artificial neural network system in detail.

[0094] Figure 3is a block diagram showing an example of an encoder-decoder structure artificial neural network system.

[0095] Reference Figure 3 The encoder-decoder structure artificial neural network system includes an artificial neural network 310 including an encoder 320 and a decoder 330. The encoder-decoder structure artificial neural network system may further include an input preprocessor 340, an attention mask calculator 350, and a lexical unit corrector 360. Figure 3 The decoder 330 may correspond to the reference Figure 1 The decoder 120 described and referenced Figure 2 Decoder 220 is described.

[0096] The encoder-decoder structure artificial neural network system processes lexical units with relatively low probability in a single artificial neural network 310.

[0097] The sequence-to-sequence encoder-decoder is a network structure in which the encoder 320 and the decoder 330 are integrated, and generates a sequence of recognition results from an input sequence.

[0098] The input preprocessor 340 may perform a preprocessing operation on the input of the artificial neural network. For example, the input preprocessor 340 may remove noise from the input signal based on the training of the artificial neural network or may process the input signal into a form suitable for input to the artificial neural network (e.g., in a form expected by the artificial neural network).

[0099] The token corrector 360 can correct tokens by replacing them with special tokens whose probability is predicted to be less than a threshold probability θ during execution. NC The output lexical unit of the algorithm is used to perform correction operations in order to allow a particular lexical unit to be used to predict the next input lexical unit.

[0100] In addition, the lexical unit corrector 360 determines whether the output lexical unit is the same as the special lexical unit. When the output lexical unit is the same as the special lexical unit, the lexical unit with the second highest probability is determined as the output lexical unit. In this way, the special lexical unit is prevented from appearing as output.

[0101] The attention mask calculator 350 masks the attention weights to prevent other tokens from noticing the special token so that the other tokens do not have conditional probabilities associated with the special token. The attention mask calculator 350 may operate in the same manner during learning or training and execution.

[0102] Figure 3 Only examples of the present disclosure are explained, and it is noted that additional components are intended to be included in other examples (such as in the reconstructed device example). Figure 3Various examples with various technical modifications and changes may be applied. For example, the decoder 330 may be a broad concept including the attention mask calculator 350 and the lexical unit corrector 360.

[0103] Figure 4 is a block diagram illustrating an example of an encoder-decoder structure artificial neural network system using an integration technique.

[0104] Reference Figure 4 , the artificial neural network system includes a plurality of artificial neural networks 410, 420 and 430. The artificial neural network 410 may include an encoder 411 and a decoder 412, the artificial neural network 420 may include an encoder 421 and a decoder 422, and the artificial neural network 430 may include an encoder 431 and a decoder 432.

[0105] In the encoder-decoder structure artificial neural network system using the integration technology, m encoders may not necessarily correspond to m decoders. In an example, a specific decoder may not have a decoder of a corresponding encoder. For example, artificial neural network 420 and artificial neural network 430 may include respective decoders 422 and decoders 432, but may not include respective encoders 421 and encoders 431. Optionally, the artificial neural network system includes a plurality of input preprocessors 440, 441, and 442. When artificial neural network 420 does not include encoder 421, input preprocessor 441 may be omitted, and when artificial neural network 430 does not include encoder 431, input preprocessor 442 may be omitted.

[0106] According to the integration technique, an output token may be selected from the candidates for the output token based on a combination of probabilities of the candidates for the output token predicted by the plurality of decoders 412 , 422 , and 432 using the plurality of artificial neural networks 410 , 420 , and 430 .

[0107] When using the integration technique, the decoders 412, 422, and 432 may determine different output tokens as tokens with the highest probability. For example, the decoder 412 of the artificial neural network 410 may determine c1 as the token with the highest probability, the decoder 422 of the artificial neural network 420 may determine c2 as the token with the highest probability, and the decoder 432 of the artificial neural network 430 may determine c3 as the token with the highest probability.

[0108] Even when each of the decoders 412, 422, and 432 determines a different output lexical unit as the lexical unit with the highest probability, one output lexical unit may be determined for all the decoders. For example, an output lexical unit may be selected from the candidates of the output lexical unit based on a combination of the candidates of the output lexical unit predicted by the plurality of decoders 412, 422, and 432.

[0109] When the selected output token is forcibly input as the next input token of all decoders, the output token that is not determined to be the token with the highest probability may be input as the next input token in some decoders.

[0110] For example, c1 may be selected as an output lexical unit based on a combination of probabilities of candidates c1, c2, and c3 of the output lexical unit predicted by the plurality of decoders 412, 422, and 432. In this example, decoder 422 and decoder 432 may generate a next lexical unit based on c1, which is a candidate of the output lexical unit generated by decoder 412, rather than generating the next output lexical unit based on candidates c2 and c3 determined by decoder 422 and decoder 432 as lexical units with the highest probabilities. Due to the autoregressive property of obtaining the next lexical unit based on the previous lexical unit, artificial neural networks 420 and 430 using the next input lexical unit c1 with a relatively low probability as input in their decoders 422 and 432 may not accurately predict the next output lexical unit.

[0111] An encoder-decoder structure artificial neural network system using an integration technique can use special lexical units that do not affect the conditional probability so that output lexical units are normally predicted using lexical units that are not determined by the encoder-decoder structure artificial neural network system as inputs.

[0112] When implementing the integration of several artificial neural networks, the t of the output lexical unit of each j-th artificial neural network will be determined. max The probability P j (t max ) and the determined t max The probability of the output lexical unit of the artificial neural network 410 having the highest probability is compared. For example, among the candidates c1, c2, and c3 of the output lexical unit, the probability p2(c1) of c1 determined as the output lexical unit in the artificial neural network 420 can be compared with the probability p1(c1) of c1 in the artificial neural network 410 that has determined c1 to have the highest probability.

[0113] When the output word unit probability difference between the artificial neural network 410 with the highest output word unit probability and the jth artificial neural network is determined When the difference between p1(c1) and p2(c1) is greater than the threshold value θ, the special lexical unit is selected as the next input lexical unit of the jth artificial neural network. DIFF, a special lexical unit instead of c1 may be selected as the next input lexical unit of the artificial neural network 420. When the output lexical unit probability difference between the artificial neural network 410 having the highest output lexical unit probability and the jth artificial neural network is less than a threshold value, the determined output lexical unit may be selected as the next input lexical unit of the jth artificial neural network.

[0114] When the output word unit probability difference between the artificial neural network with the highest output word unit probability and the jth artificial neural network is determined When it is greater than or equal to the threshold, the reliability of the candidate for the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate for the next output lexical unit predicted based on the output lexical unit.

[0115] For example, in Figure 2 The description of the method of masking special tokens in the example of can also be applied to the use of Figure 4 An encoder-decoder structure artificial neural network system based on the integration technology.

[0116] The token corrector 460 performs this by replacing tokens whose probability is predicted to be less than a threshold probability θ during execution with special tokens. NC The output lexical unit of is used to perform correction so that a particular lexical unit can be used to predict the next input lexical unit.

[0117] During execution, when the output word unit probability difference between the artificial neural network with the highest output word unit probability and the jth artificial neural network is determined, When it is greater than or equal to the threshold, the lexical unit corrector 460 selects the special lexical unit as the next input lexical unit of the jth artificial neural network.

[0118] In addition, the lexical unit corrector 460 determines whether the output lexical unit is the same as the special lexical unit. When the output lexical unit is the same as the special lexical unit, the lexical unit with the second highest probability is determined as the output lexical unit. Therefore, the special lexical unit can be prevented from appearing as output or being provided as output.

[0119] The attention mask calculator 450 masks the attention weights to prevent other tokens from noticing the special token so that the other tokens do not have conditional probabilities associated with the special token. The attention mask calculator 450 may operate in the same manner during learning and during execution, inference, or implementation.

[0120] Figure 51 is a block diagram showing an example of a speech recognition artificial neural network with an additional language model artificial neural network. In an example, the speech recognition artificial neural network can be implemented as a speech recognition device. The speech recognition device can collect sound or input from a user using a receiver or sensor (e.g., a microphone) as a component of the speech recognition device, or can receive a speech signal from a receiver, wherein the receiver is separate from the speech recognition device or is external to the speech recognition device.

[0121] The speech recognition device may be an electronic device used by each user, and may be or include, for example, a smart phone, a smart tablet, a wearable device (such as a smart bracelet), a personal digital assistant (PDA), a laptop computer, their internal components, or a separate device connected to them. In another example, the speech recognition device is an electronic device shared by multiple users, and includes, for example, a speech recognition speaker and a speech recognition TV.

[0122] Reference Figure 5 The speech recognition artificial neural network including the language model artificial neural network includes a speech recognition model artificial neural network 510 and a language model artificial neural network 520.

[0123] In the example of speech recognition (i.e., machine speech recognition), the decoder 512 may use speech or speech signals as input to the encoder 511 and output a word sequence corresponding to the recognition result. In addition, the language model artificial neural network 520 may include a decoder 521 that determines the probability of a word sequence in a general sentence. The language model artificial neural network 520 may be used to improve performance.

[0124] Even if the word (or character, word) is a new word, the speech recognition model artificial neural network that predicts or estimates the word based on the actual speech at each time point can generate the word by listening to the speech and combining phonemes according to the pronunciation. However, in the example of the language model artificial neural network trained with general sentences, when the word is a new word (e.g., a new position, a newly created word, etc.), the output probability of the word may be very low. When trying to predict the next word using a word with such a low probability as input, the language model artificial neural network may not be able to make a correct prediction because the next word will be output from an input that has not yet been learned.

[0125] The lexical unit corrector 560 and the attention mask calculator 550 can be used to convert the reference Figure 4 The special lexical units described as not affecting the conditional probability are introduced into the language model artificial neural network 520. Therefore, the language model artificial neural network 520 can normally predict the output lexical units using the lexical units that are not determined as lexical units with the highest probability by the language model artificial neural network 520 as inputs.

[0126] The speech signal input to the encoder 511 may refer to an analog waveform that is captured or input to a speech recognition device (wherein the analog waveform is subsequently converted to a digital waveform and may include the noise reduction described above, and in some examples, the analog waveform is subsequently converted to feature data for the digital waveform before being acted on or applied to / provided to the speech recognition model 510), and / or may refer to such feature data that is acted on or applied to / provided to the speech recognition model 510 in an example speech sequence format. Therefore, for ease of description and not to limit the examples thereto, for purposes of specification hereinafter, the speech signal terminology will be discussed as corresponding to such post-collection processing that has been performed on the captured audio to ultimately generate example feature data, where the example feature data is in the form of an example speech sequence for the purpose of being applied to / provided to / input to a speech recognition model (i.e., the example feature data is in the form of an application / providing / input to a speech recognition model to which such information is desired). As described above, the speech recognition device may perform all such post-collection processing of the captured speech and implement the speech recognition model 510 itself, or the speech recognition device may not perform post-collection processing of the captured speech or may perform some or all of the post-collection processing of the captured speech, while a speech recognition server (as an example of another speech recognition device) may subsequently perform any remaining post-collection processing on the captured speech to generate corresponding speech information in the form expected by the speech recognition model 510, and implement the speech recognition model 510, for example, through the speech recognition device.

[0127] Will refer to Figures 6 to 7B An example of a speech recognition artificial neural network with an additional language model artificial neural network is described in detail.

[0128] Figure 6 is a diagram illustrating an example of a speech recognition artificial neural network system including an additional language model artificial neural network.

[0129] Reference Figure 6 , the speech recognition artificial neural network system including an additional language model artificial neural network includes an encoder 610, a speech recognition artificial neural network decoder 620 and a language model (LM) artificial neural network decoder 630.

[0130] The speech recognition artificial neural network system including the additional language model artificial neural network can extract speech features 640 from the input speech. The input speech is a speech signal including information about each of a plurality of frames. The speech features 640 are a sequence of information extracted in units of at least one frame and represented by a multidimensional vector. Hereinafter, for ease of description, an example in which the input speech is "Hi MinChul this is" will be described.

[0131] The speech recognition artificial neural network system including the additional language model artificial neural network can generate a recognition result sequence from the input speech sequence using the integration of the language model artificial neural network decoder 630 and the speech recognition artificial neural network decoder 620. "Integration" can refer to a single neural network module that is adopted or considered together, for example, a combination of the language model artificial neural network decoder 630 and the speech recognition artificial neural network decoder 620.

[0132] The language model artificial neural network decoder 630 and the speech recognition artificial neural network decoder 620 output recognition results in units of lexical units, and generate a final recognition result by integrating the recognition results based on integration weights.

[0133] For example, the speech recognition artificial neural network decoder 620 determines the candidates of the output lexical unit based on the input speech and the predetermined recognition result. In addition, the language model artificial neural network decoder 630 determines the candidates of the output lexical unit based on the predetermined recognition result. In this example, the candidates of each output lexical unit in the output lexical unit can be integrated based on the integration weight to generate the final recognition result.

[0134] The encoder 610 and the decoder 620 are pre-trained to generate a recognition result sequence from a sequence of correct answer text pairs corresponding to the input speech. In addition, the language model artificial neural network decoder 630 is pre-trained to generate a recognition result sequence from a predetermined text sequence.

[0135] In the example, the encoder 610 encodes the speech feature 640 to generate the encoded feature 650. The encoder 610 generates the encoding information by changing the dimension of the speech feature 640. The encoded feature 650 is applied to the speech recognition artificial neural network decoder 620. The speech recognition artificial neural network decoder 620 generates candidates for output lexical units based on the encoded feature 650 and the previously determined recognition results in units of lexical units. In addition, the language model artificial neural network decoder 630 generates candidates for output lexical units based on the previously determined recognition results in units of lexical units. The two recognition results are integrated based on a predetermined integration weight to generate a final recognition result. For example, the integration weight of the speech recognition artificial neural network decoder 620 and the integration weight of the language model artificial neural network decoder 630 can be 1:0.2.

[0136] Will refer to Fig. 7A and Figure 7B An example of applying the integration technology in a language model artificial neural network decoder and a speech recognition artificial neural network decoder is described in detail.

[0137] Fig. 7Ais a diagram showing an example of applying the integration technology in a language model artificial neural network decoder and a speech recognition artificial neural network decoder.

[0138] Reference Fig. 7A As a non-limiting example, the speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 may correspond to Figure 6 The speech recognition artificial neural network decoder 620 and the language model artificial neural network decoder 630.

[0139] The speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 can each be an autoregressive decoder, and predict the probability of the candidate of the output lexical unit based on the input lexical unit "Hi". For example, the speech recognition artificial neural network decoder 710 outputs "MinChul" and "Bixby" as candidates for the output lexical unit based on the input lexical unit "Hi" and the encoded speech features, and predicts the probabilities of the candidates to be 0.7 and 0.1, respectively. In addition, the language model artificial neural network decoder 720 outputs "MinChul" and "Bixby" as candidates for the output lexical unit based on the input lexical unit "Hi", and predicts the probabilities of the candidates to be 0.001 and 0.8, respectively.

[0140] The speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 determine the output lexical unit among the candidates based on the integrated weight. For example, "MinChul" has a final weight of 0.7002 (= 0.7 + 0.2 * 0.001), and "Bixby" has a final weight of 0.26 (= 0.1 + 0.2 * 0.8). In this example, "MinChul" is determined as the output lexical unit.

[0141] In the autoregressive decoding environment, the language model artificial neural network decoder 720 inputs “MinChul” as the next input token determined to be the ensemble result, rather than inputting “Bixby” which is determined to be the token with the highest probability by the language model artificial neural network decoder 720. Because “MinChul” is determined to have a lower probability by the language model artificial neural network decoder 720, it may be difficult to accurately predict the next output token in the language model artificial neural network decoder 720.

[0142] For example, the language model artificial neural network decoder 720 outputs "this" and "dis" as candidates for the next output lexical unit based on the next input lexical unit "MinChul", and the probabilities of the predicted candidates are 0.01 and 0.01, respectively. The speech recognition artificial neural network decoder 710 outputs "this" and "dis" as candidates for the next output lexical unit based on the next input lexical unit "MinChul", and the probabilities of the predicted candidates "this" and "dis" are 0.34 and 0.38, respectively. Because the pronunciations of "this" and "dis" are similar, the probabilities of "this" and "dis" may be similar in the speech recognition artificial neural network decoder 710.

[0143] The speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 determine the next output lexical unit among the candidates based on the integrated weight. For example, "this" has a final weight of 0.342 (= 0.34 + 0.2 * 0.01), and "dis" has a final weight of 0.382 (= 0.38 + 0.2 * 0.01). Therefore, "dis" is determined as the next output lexical unit. In this way, the speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 can output "dis" which is different from the input speech "this".

[0144] In the aforementioned example, among the candidates of the current output lexical unit predicted by the language model artificial neural network decoder 720, the probability of "MinChul" determined by the integration of the speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 may be lower than the threshold probability. Due to the lower probability of "MinChul", the language model artificial neural network decoder 720 may not accurately distinguish "this" and "dis" as the next output lexical unit. Due to the performance degradation of the language model artificial neural network decoder 720 that supplements the performance of the speech recognition artificial neural network decoder 710, an incorrect result (such as, as described above, outputting "dis" which is different from "this") may be obtained.

[0145] Will refer to Figure 7B An example of applying the integration technique in a language model artificial neural network decoder and a speech recognition artificial neural network decoder using special lexical units is further described.

[0146] Figure 7B is a diagram showing an example of applying the integration technology in a language model artificial neural network decoder based on implementing a special lexical unit and a speech recognition artificial neural network decoder.

[0147] Reference Figure 7B, the speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 use the integrated weights to determine "MinChul" as the output lexical unit among the candidates.

[0148] The language model artificial neural network decoder 720 compares the probability of "MinChul" with a predetermined threshold probability. For example, the threshold probability is 0.01. Figure 7B As shown in , the probability of "MinChul" predicted by the language model artificial neural network decoder 720 is 0.001 which is less than the threshold probability 0.01. Therefore, the language model artificial neural network decoder 720 selects the special lexical unit NC instead of "MinChul" as the next input lexical unit.

[0149] The language model artificial neural network decoder 720 outputs "this" and "dis" as candidates for the next output lexical unit based on the special lexical unit NC corresponding to the next input lexical unit, and predicts the probabilities of the candidates "this" and "dis" to be 0.4 and 0.1, respectively. The speech recognition artificial neural network decoder 710 outputs "this" and "dis" as candidates for the next output lexical unit based on "MinChul" corresponding to the next input lexical unit, and predicts the probabilities of the candidates "this" and "dis" to be 0.34 and 0.38, respectively.

[0150] The speech recognition artificial neural network decoder 710 and the language model artificial neural network decoder 720 use the integrated weights to determine the next output lexical unit among the candidates. For example, "this" has a final weight of 0.42 (= 0.34 + 0.2 * 0.4), and "dis" has a final weight of 0.4 (= 0.38 + 0.2 * 0.1). Therefore, "this" is determined as the next output lexical unit.

[0151] Figure 8 is a flowchart showing an example of a decoding method in an artificial neural network. Figure 8 However, the order of some operations may be changed or some operations may be omitted without departing from the spirit and scope of the illustrative examples described. Figure 8 Many of the operations shown in the figure can be implemented by a computer based on special-purpose hardware that performs the specified functions or a combination of special-purpose hardware and computer instructions. Figure 8 One or more blocks or combinations of blocks. Figure 8 In addition to the description, Figures 1 to 7B The description also applies to Figure 8 Therefore, the above description may not be repeated here.

[0152] Reference Figure 8 , operations 810 to 830 may be performed by Figure 3 The decoder 330 is executed. The decoder 330 may be implemented by one or more hardware components or one or more components including both hardware and software.

[0153] In operation 810 , the decoder 330 predicts probabilities of candidates for output tokens based on at least one input token of an initial input.

[0154] In operation 820, the decoder 330 determines the output lexical unit from the candidates based on the determined probabilities. For example, the decoder 330 may select the lexical unit with the highest probability from the candidates. In addition, the decoder 330 may also select the output lexical unit based on a combination of the probabilities of the candidates predicted by the second artificial neural network interacting with the first artificial neural network and the probabilities of the candidates predicted by the first artificial neural network.

[0155] In operation 830, the decoder 330 determines a next input token by selecting one of an output token and a predefined special token based on the determined probability of the output token.

[0156] The at least one input token includes at least one of a special token and an output token previously predicted by the artificial neural network.

[0157] The input layer of the artificial neural network may include a plurality of nodes corresponding to the candidates and a special node corresponding to the special lexical unit.

[0158] Fig. 9 is a flowchart showing an example of a method for processing a lexical unit with a low probability in an artificial neural network based on autoregressive sequence generation. Fig. 9 However, the order of some operations may be changed or some operations may be omitted without departing from the spirit and scope of the illustrative examples described. Fig. 9 Many of the operations shown in the figure can be implemented by a computer based on special-purpose hardware that performs the specified functions or a combination of special-purpose hardware and computer instructions. Fig. 9 One or more blocks or combinations of blocks. Fig. 9 In addition to the description, Figures 1 to 8 The description also applies to Fig. 9 Therefore, the above description may not be repeated here.

[0159] Reference Fig. 9 In operation 901, an artificial neural network generated based on an autoregressive sequence receives an input. For example, a speech recognition artificial neural network system may receive a speech input.

[0160] In operation 902, the encoder generates encoding features from the received input. For example, the encoder may generate encoding information by changing the dimension of the speech feature.

[0161] In operation 903, the decoder predicts the probability of the candidate of the output lexical unit based on the encoding feature. The decoder obtains the output lexical unit based on the information calculated by the encoder for each step. In this example, the decoder obtains the output lexical unit based on the input lexical unit selected until the previous step.

[0162] In operation 904, the decoder determines the output token from the candidates based on the predicted probabilities. For example, the decoder outputs the token with the highest probability in the i-th step. i Determine the output token.

[0163] In operation 905, the decoder determines whether the output lexical unit is identical to the special lexical unit.

[0164] In operation 906, when the output lexical unit is the same as the special lexical unit, the decoder determines the lexical unit with the second highest probability among the candidates as the output lexical unit. In this way, the special lexical unit is prevented from being output.

[0165] In operation 907, when the output token is different from the special token, the decoder compares the probability of the output token with a threshold probability.

[0166] In operation 908, when the probability of the output token is higher than or equal to the threshold probability, the decoder selects the output token as the next input token.

[0167] In operation 909, when the probability of the output token is less than the threshold probability, the decoder selects a special token instead of the output token as the next input token.

[0168] In operation 910, the decoder masks a special lexical unit to prevent other lexical units from noticing the special lexical unit, so that the special lexical unit does not affect other lexical units.

[0169] Introduce a special lexical unit t that does not affect the conditional probability NC , so that even in the input token t i-1 When the probability of t is low, t is also appropriately predicted (for example, within a predetermined accuracy) as the output token. i The special token is learned to have the characteristics as shown in Formula 2 below.

[0170] [Formula 2]

[0171] p(t i <T 1 >,tNC ,<T 2 >,H e )=p(t i <T 1 >,<T 2 >,H e ) for any t i

[0172] In formula 2, <T 1 >、 <T 2 > is any sequence of tokens and includes the empty sequence. When learning t according to Formula 2 NC If t i-1 The probability that the NC , then use t NC Replace t i-1 To prevent including the lexical unit t i-1 The conditional probability of θ is calculated so that the next token is predicted correctly. Replace The lexical unit of the correct answer sentence for learning with a predetermined probability is changed to t NC To train artificial neural networks.

[0173] When the main artificial neural network and the auxiliary artificial neural network are distinguished, the learning data of the auxiliary artificial neural network can be analyzed by using the probability θ Replace The correct answer lexical unit is changed to perform training. For example, in the case of a speech recognition artificial neural network system with an additional language model artificial neural network, the language model artificial neural network can be an auxiliary artificial neural network. In this example, by using probability θ in the learning data of the language model artificial neural network Replace Perform training by changing the correct answer token.

[0174] Fig.10 is a block diagram illustrating an apparatus for processing lexical units with low probability in an artificial neural network based on autoregressive sequence generation.

[0175] Reference Fig.10 , a device 1000 for processing lexical units with low probability in an artificial neural network based on autoregressive sequence generation includes one or more sensors 1010, a processor 1030, and a communication interface 1070. The device 1000 also includes a memory 1050 and a display 1090. The one or more sensors 1010, the processor 1030, the memory 1050, the communication interface 1070, and the display 1090 can communicate with each other through a communication bus 1005.

[0176] For example, the one or more sensors 1010 include a microphone sensor and a voice sensor, but are not limited thereto.

[0177] Processor 1030 executes reference Figures 1 to 9 The processor 1030 may execute a program and control the device 1000. The computer instructions or codes executed by the processor 1030 are stored in the memory 1050.

[0178] For example, the processor 1030 includes a central processing unit (CPU) or a graphics processing unit (GPU).

[0179] The memory 1050 stores data processed by the processor 1030. For example, the memory 1050 stores a program. The memory 1050 may be a volatile memory or a nonvolatile memory.

[0180] The communication interface 1070 is connected to the sensor 1010, the processor 1030, and the memory 1050 to perform data transmission and reception. The communication interface 1070 is connected to an external device to perform data transmission and reception. In the following description, the expression "transmitting and receiving "A"" refers to transmitting and receiving data or information representing "A".

[0181] For example, the communication interface 1070 is implemented as a circuit in the device 1000. In one example, the communication interface 1070 may include an internal bus and an external bus. In another example, the communication interface 1070 may be an element configured to connect the device 1000 to an external device. The communication interface 1070 receives data from the external device and sends the data to the processor 1030 and the memory 1050.

[0182] The display 1090 displays the decoding result. For example, the translation result and the speech recognition result can be displayed on the display 1090.

[0183] Here about Figures 1 to 10The described devices, input preprocessors 340 / 440 / 441 / 442, attention mask calculators 350 / 450 / 550, encoders 320 / 411 / 421 / 431 / 511, decoders 330 / 412 / 422 / 432 / 512 / 521, lexical unit correctors 360 / 460 / 560, speech preprocessors 540, sensors 1010, memory 1050, processors 1030, displays 1090, communication interfaces 1070, components, means and other components are hardware components and are implemented by hardware components. Examples of hardware components that can be used to perform the operations described in this application include, as appropriate, controllers, sensors, generators, drivers, memories, comparators, arithmetic logic units, adders, subtractors, multipliers, dividers, integrators, and any other electronic components configured to perform the operations described in this application. In other examples, one or more hardware components in the hardware components for performing the operations described in the present application are implemented by computing hardware (e.g., by one or more processors or computers). Processors or computers may be implemented by one or more processing elements (such as logic gate arrays, controllers and arithmetic logic units, digital signal processors, microcomputers, programmable logic controllers, field programmable gate arrays, programmable logic arrays, microprocessors, or any other device or combination of devices configured to respond and execute instructions in a limited manner to achieve the desired result). In one example, a processor or computer includes or is connected to one or more memories storing instructions or software executed by a processor or computer. The hardware components implemented by a processor or computer may execute instructions or software (such as an operating system (OS) and one or more software applications running on the OS) for performing the operations described in the present application. The hardware components may also access, manipulate, process, create, and store data in response to the execution of instructions or software. For simplicity, the singular term "processor" or "computer" may be used for the description of the examples described in the present application, but in other examples, multiple processors or computers may be used, or a processor or computer may include multiple processing elements or multiple types of processing elements or both. For example, a single hardware component or two or more hardware components may be implemented by a single processor, or two or more processors, or a processor and a controller. One or more hardware components may be implemented by one or more processors, or a processor and a controller, and one or more other hardware components may be implemented by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller may implement a single hardware component or two or more hardware components.The hardware components may have any one or more of different processing configurations, where examples of different processing configurations include: a single processor, independent processors, parallel processors, single instruction single data (SISD) multiprocessing, single instruction multiple data (SIMD) multiprocessing, multiple instruction single data (MISD) multiprocessing, and multiple instruction multiple data (MIMD) multiprocessing.

[0184] About performing the operations described in this application Figures 1 to 10 The method shown and discussed is performed by computing hardware (e.g., by one or more processors or computers), wherein the computing hardware is implemented as described above to execute instructions or software to perform the operations performed by the method described in this application. For example, a single operation or two or more operations may be performed by a single processor or two or more processors, or a processor and a controller. One or more operations may be performed by one or more processors, or a processor and a controller, and one or more other operations may be performed by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller may perform a single operation or two or more operations.

[0185] Instructions or software for controlling computing hardware (e.g., one or more processors or computers) to implement hardware components and perform methods as described above may be written as computer programs, code segments, instructions, or any combination thereof to individually or collectively instruct or configure one or more processors or computers to operate as a machine or special-purpose computer to perform operations performed by the hardware components and methods as described above. In one example, the instructions or software include machine code (such as machine code generated by a compiler) that is directly executed by one or more processors or computers. In another example, the instructions or software include high-level code that is executed by one or more processors or computers using an interpreter. Instructions or software may be written in any programming language based on the block diagrams and flow charts shown in the accompanying drawings and the corresponding descriptions in the specification, wherein the block diagrams and flow charts shown in the accompanying drawings and the corresponding descriptions in the specification disclose algorithms for performing operations performed by the hardware components and methods as described above.

[0186] Instructions or software for controlling computing hardware (e.g., one or more processors or computers) to implement hardware components and perform the methods described above, and any associated data, data files, and data structures, may be recorded, stored, or fixed in or on one or more non-transitory computer-readable storage media. Examples of non-transitory computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, as non-limiting examples of Blu-ray or optical disk storage devices, hard disk drives (HDD), solid state drives (SSD), card-type memories (such as multimedia cards or micro cards (e.g., secure digital (SD) or extreme digital (XD)), magnetic tapes, floppy disks, magneto-optical data storage devices, optical data storage devices, hard disks, solid state disks, and any other device, wherein any other device is configured to store instructions or software and any associated data, data files, and data structures in a non-transitory manner and provide the instructions or software and any associated data, data files, and data structures to one or more processors or computers so that one or more processors or computers can execute the instructions. In one example, the instructions or software and any associated data, data files, and data structures are distributed on a networked computer system so that the instructions and software and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner by one or more processors or computers.

[0187] Although the present disclosure includes specific examples, it will be clear that, after understanding the disclosure of the present application, various changes in form and detail may be made in these examples without departing from the spirit and scope of the claims and their equivalents. The examples described herein are considered to be descriptive only and not for limiting purposes. The description of the features or aspects in each example will be considered to be applicable to similar features or aspects in other examples. If the described techniques are performed in a different order, and / or if the components in the described systems, architectures, devices, or circuits are combined in different ways, and / or replaced or supplemented by other components or their equivalents, suitable results may be achieved. Therefore, the scope of the present disclosure is not limited by specific embodiments, but by the claims and their equivalents, and all changes within the scope of the claims and their equivalents should be interpreted as included in the present disclosure.

Claims

1. A decoding method implemented by a processor in a first neural network, the decoding method include: Predicting a probability of a candidate output token based on at least one previous input token; Determine the output token among the candidates based on the predicted probability; as well as determining a next input token by selecting one of an output token and a predefined special token based on the determined probability of the output token, The step of determining the next input lexical unit includes: Compare the probability of the output token to the threshold probability; When the probability of the output lexical unit is lower than the threshold probability, selecting a special lexical unit as the next input lexical unit; and When the probability of the output lexical unit is higher than or equal to the threshold probability, the output lexical unit is selected as the next input lexical unit.

2. The decoding method according to claim 1, in, When a special lexical unit is determined to be the next input lexical unit, the reliability of the candidate of the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate of the next output lexical unit predicted based on the output lexical unit.

3. The decoding method according to claim 2, in, The steps of determining the output token include: An output token is selected from the candidates based on a combination of probabilities of the candidates predicted by one or more second neural networks interacting with the first neural network and probabilities of the candidates predicted by the first neural network.

4. The decoding method according to claim 1, in, The input layer of the first neural network includes a plurality of nodes corresponding to each candidate and a special node corresponding to a special lexical unit.

5. The decoding method according to claim 1, in, The at least one previous input token includes at least one of an output token previously predicted by the first neural network and a special token.

6. The decoding method according to claim 1, in, The steps of determining the output token include: The token with the highest probability among the candidates is selected.

7. The decoding method according to claim 3, in, The method is a recognition method using a first neural network and the one or more second neural networks.

8. The decoding method according to claim 1, in, The steps of predicting the probability of candidates for outputting a token include: The probability of a candidate for the output token is predicted based on the relationship between the at least one previous input token and the output token.

9. The decoding method according to claim 1, further comprising: include: A next output lexical unit is determined based on the at least one previous input lexical unit and the next input lexical unit.

10. The decoding method according to claim 2, further comprising: include: Masking a special token prevents tokens other than the special token from noticing the special token.

11. The decoding method according to claim 1, further comprising: include: When the special lexical unit is determined to be the next input lexical unit, the relationship between the next output lexical unit and the special lexical unit is set to be less than or equal to a predetermined value.

12. The decoding method according to claim 1, in, The steps of determining the output token include: determining whether the output token is identical to a particular token; and When the output lexical unit is identical to the special lexical unit, the lexical unit with the second highest probability among the candidates is determined as the output lexical unit.

13. A decoding method implemented by a processor in a first neural network, the decoding method include: Predicting a probability of a candidate output token based on at least one previous input token; selecting an output token from the candidates based on a combination of probabilities of the candidates predicted by one or more second neural networks interacting with the first neural network and probabilities of the candidates predicted by the first neural network; comparing the probability of outputting a token in the first neural network with the probability of outputting a token in a determined neural network of the one or more second neural networks having the highest probability of outputting a token; as well as determining a next input token in the first neural network by selecting one of an output token and a predefined special token based on a result of the comparison, The step of determining the next input lexical unit includes: When the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is greater than or equal to a threshold, selecting a special lexical unit as the next input lexical unit of the first neural network, and When the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is less than the threshold, the output lexical unit is selected as the next input lexical unit of the first neural network.

14. The decoding method according to claim 13, in, When the difference between the probability of an output lexical unit in the first neural network and the probability of an output lexical unit in the determined neural network is greater than or equal to the threshold, the reliability of the candidate for the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate for the next output lexical unit predicted by the output lexical unit.

15. The decoding method according to claim 13, in, The input layer of the first neural network includes a plurality of nodes corresponding to each candidate and a special node corresponding to a special lexical unit.

16. The decoding method according to claim 13, in, The at least one previous input token includes at least one of an output token previously predicted by the first neural network and a special token.

17. The decoding method according to claim 13, in, The steps of predicting the probability of candidates for outputting a token include: The probability of a candidate for the output token is predicted based on the relationship between the at least one previous input token and the output token.

18. The decoding method according to claim 13, further comprising: include: A next output lexical unit is determined based on the at least one previous input lexical unit and the next input lexical unit.

19. The decoding method according to claim 13, further comprising: include: Masking a special token prevents tokens other than the special token from noticing the special token.

20. The decoding method according to claim 13, further comprising: include: When the special lexical unit is determined to be the next input lexical unit, the relationship between the next output lexical unit and the special lexical unit is set to be less than or equal to a predetermined value.

21. The decoding method according to claim 13, in, The steps of determining the output token include: determining whether the output token is identical to a particular token; and When the output lexical unit is identical to the special lexical unit, the lexical unit with the second highest probability among the candidates is determined as the output lexical unit.

22. A non-transitory computer-readable storage medium storing instructions, in, When the instruction is executed by a processor, the processor is caused to execute the decoding method according to claim 1.

23. A speech recognition device, include: One or more processors configured to implement at least a first neural network, the one or more processors configured to: predicting a probability of a candidate for an output token based on at least one previous input token; Determine the output token among the candidates based on the predicted probability; and determining a next input lexical unit by selecting one of the output lexical unit and the predefined special lexical unit based on the determined probability of the output lexical unit, Wherein, the one or more processors are further configured to: Compare the probability of the output token to the threshold probability; When the probability of the output lexical unit is lower than the threshold probability, selecting a special lexical unit as the next input lexical unit; and When the probability of the output lexical unit is higher than or equal to the threshold probability, the output lexical unit is selected as the next input lexical unit.

24. The speech recognition device according to claim 23, in, When a special lexical unit is determined to be the next input lexical unit, the reliability of the candidate of the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate of the next output lexical unit predicted based on the output lexical unit.

25. The speech recognition device according to claim 23, in, The input layer of the first neural network includes a plurality of nodes corresponding to each candidate and a special node corresponding to a special lexical unit.

26. The speech recognition device according to claim 23, in, The at least one previous input token includes at least one of an output token previously predicted by the first neural network and a special token.

27. The speech recognition device according to claim 23, in, The one or more processors are configured to select a token having a highest probability among the candidates.

28. The speech recognition device according to claim 23, in, The one or more processors are further configured to implement one or more second neural networks, wherein the one or more processors are further configured to select an output lexical unit from the candidates based on a combination of the probabilities of the candidates predicted by the second neural network interacting with the first neural network and the probabilities of the candidates predicted by the first neural network.

29. The speech recognition device according to claim 23, in, The one or more processors are further configured to predict a probability of a candidate for an output token based on a relationship between the at least one previous input token and the output token.

30. The speech recognition device according to claim 23, in, The one or more processors are further configured to determine a next output lexical unit based on the at least one previous input lexical unit and the next input lexical unit.

31. The speech recognition device according to claim 23, in, The one or more processors are further configured to mask the special lexical unit to prevent lexical units other than the special lexical unit from noticing the special lexical unit.

32. The speech recognition device according to claim 23, in, The one or more processors are further configured to, when the special lexical unit is determined to be the next input lexical unit, set the relationship between the next output lexical unit and the special lexical unit to be less than or equal to a predetermined value.

33. The speech recognition device according to claim 23, in, The one or more processors are further configured to: Determine whether the output token is the same as a special token; as well as When the output lexical unit is identical to the special lexical unit, the lexical unit with the second highest probability among the candidates is determined as the output lexical unit.

34. A speech recognition device, the speech recognition device include: One or more processors configured to implement at least a first neural network, the one or more processors configured to: Predicting a probability of a candidate output token based on at least one previous input token; selecting an output token from the candidates based on a combination of probabilities of the candidates predicted by one or more second neural networks interacting with the first neural network and probabilities of the candidates predicted by the first neural network; comparing the probability of outputting a token in the first neural network with the probability of outputting a token in a determined neural network of the one or more second neural networks having the highest probability of outputting a token; as well as determining a next input token in the first neural network by selecting one of an output token and a predefined special token based on a result of the comparison, Wherein, the one or more processors are further configured to: When the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is greater than or equal to a threshold, selecting a special lexical unit as the next input lexical unit of the first neural network, and When the difference between the probability of the output lexical unit in the first neural network and the probability of the output lexical unit in the determined neural network is less than the threshold, the output lexical unit is selected as the next input lexical unit of the first neural network.

35. The speech recognition device according to claim 34, in, When the difference between the probability of an output lexical unit in the first neural network and the probability of an output lexical unit in the determined neural network is greater than or equal to the threshold, the reliability of the candidate for the next output lexical unit predicted based on the special lexical unit is higher than the reliability of the candidate for the next output lexical unit predicted by the output lexical unit.

36. A speech recognition system, include: one or more processors; One or more memories storing instructions, which, when executed by the one or more processors, configure the one or more processors to perform the following processing: Extracting speech features from an input speech signal and generating coded features; Determining the probability of a candidate for outputting a lexical unit based on the encoding features and the previously determined recognition results; Selecting an output lexical unit from the candidates based on a combination of probabilities of the candidates generated by the speech recognition neural network and probabilities of the candidates generated by the language model neural network; comparing the probability of output tokens in the speech recognition neural network with the probability of output tokens in the language model neural network; as well as determining a next input token in the language model neural network by selecting one of the output token and the predefined special token based on the result of the comparison, When the difference between the probability of the output lexical unit in the speech recognition neural network and the probability of the output lexical unit in the language model neural network is greater than or equal to a threshold, a special lexical unit is selected as the next input lexical unit of the language model neural network. When the difference between the probability of the output lexical unit in the speech recognition neural network and the probability of the output lexical unit in the language model neural network is less than the threshold, the output lexical unit is selected as the next input lexical unit of the language model neural network.