Cascaded Encoders for Simplified Streaming and Non-Streaming ASR
The cascaded encoder architecture for ASR systems addresses the challenge of managing separate streaming and non-streaming models by using a unified model with a streaming and non-streaming encoder, enhancing efficiency and accuracy in both modes.
Patent Information
- Application Number
- JP2023524424
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-04-21
- Filing Date
- 2021-05-01
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-01
AI Technical Summary
Existing end-to-end automatic speech recognition (ASR) systems face challenges in managing separate models for streaming and non-streaming applications, leading to increased runtime and inefficiencies.
A cascaded encoder architecture that includes a streaming encoder and a non-streaming encoder, sharing a single decoder to perform speech recognition in both modes, allowing for unified training and operation in either streaming or non-streaming scenarios.
The cascaded encoder model enables efficient and accurate speech recognition in both low-latency streaming and high-accuracy non-streaming modes, reducing the need for separate models and improving overall system performance.
Smart Images

Figure 0007554925000008 
Figure 0007554925000007 
Figure 0007554925000009
Abstract
Description
[Technical field]
[0001] This disclosure relates to an on-device end-to-end model for simplified streaming and non-streaming automatic speech recognition (ASR). [Background technology]
[0002] Automatic speech recognition (ASR) systems have evolved from multiple models, where each model had a specialized purpose to an integrated model that uses a single neural network to directly map audio waveforms (i.e., input sequences) to output sentences (i.e., output sequences). This integration has established a sequence-to-sequence approach, which generates a sequence of words (or graphemes) given a sequence of audio features. In the integrated structure, all components of the model may be trained together as a single end-to-end (E2E) neural network. Here, an E2E model refers to a model whose architecture is composed entirely of neural networks. A complete neural network works without external components and / or manually designed components (e.g., finite state transducers, dictionaries, or text normalization modules). Also, when training E2E models, these models generally do not require bootstrapping from decision trees or time alignment from a separate system. These E2E automatic speech recognition (ASR) systems have made great progress and have outperformed traditional ASR systems in several common benchmarks, including word error rate (WER). The architecture of an E2E ASR model is primarily application dependent. For example, some applications involving user interaction, such as voice search or on-device dictation, require the model to perform recognition in a streaming manner. Other applications, such as offline video captioning, do not require the model to stream and can fully utilize future context to improve performance. Existing E2E approaches generally include separate ASR for streaming and non-streaming applications. Managing multiple models, each for a different application, can create unique challenges and lead to longer runtimes for the ASR system. Summary of the Invention [Means for solving the problem]
[0003] One aspect of the present disclosure provides an automatic speech recognition (ASR) model including a first encoder, a second encoder, and a decoder. The first encoder receives as input a sequence of acoustic frames and generates a first high-order feature representation for a corresponding acoustic frame in the sequence of acoustic frames at each of a plurality of output steps. The second encoder receives as input the first high-order feature representation generated by the first encoder at each of the plurality of output steps and generates a second high-order feature representation for the corresponding first high-order feature frame at each of the plurality of output steps. The decoder receives as input the second high-order feature representation generated by the second encoder at each of the plurality of output steps and generates a first probability distribution over possible speech recognition hypotheses at each of a plurality of time steps.
[0004] Implementations of the present disclosure may include one or more of any of the following features. In some implementations, the second encoder generates the second high-order feature representation without receiving any acoustic frames as input. In some examples, the decoder is further configured to receive as input the first high-order feature representation generated by the first encoder at each of the multiple output steps and generate a second probability distribution over possible speech recognition hypotheses at each of the multiple time steps. In these examples, the model further includes generating a final speech recognition result by modifying the initial speech recognition result from the first probability distribution based on the second probability distribution. Additionally or alternatively, the decoder may further include a prediction network and a joint network. The prediction network receives as input the sequence of non-blank symbols output by the final softmax layer and generates a dense representation at each of the multiple output steps. The joint network is configured to receive as input the dense representation generated by the prediction network at each of the multiple output steps. The joint network is also configured to receive the first high-order feature representation generated by the first encoder at each of the plurality of output steps when the ASR model is operating in streaming mode, and to generate a second probability distribution over the possible speech recognition hypotheses at each of the plurality of output steps when the ASR model is operating in non-streaming mode. The joint network is configured to receive the second high-order feature representation generated by the second encoder at each of the plurality of output steps, and to generate a first probability distribution over the possible speech recognition hypotheses at each of the plurality of output steps when the ASR model is operating in non-streaming mode.
[0005] In some implementations, the decoder includes a long short-term memory (LSTM) based decoder. Alternatively, the decoder includes a V2 embedded lookup table. In some examples, the first encoder includes a causal encoder including multiple one-way long short-term memory (LSTM) layers. Additionally or alternatively, the second encoder includes a non-causal encoder including one or more bidirectional long short-term memory (LSTM) layers. In some implementations, the model is configured to receive a set of training utterances and train the first encoder and the second encoder jointly using the set of training utterances. Here, the model trains the first encoder and the second encoder jointly by generating a first loss for the first encoder, generating a second loss for the second encoder, and minimizing a weighted sum of the first loss and the second loss.
[0006] Another aspect of the disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations including receiving a sequence of acoustic frames as input to an automatic speech recognition (ASR) model and performing streaming and non-streaming speech recognition on the sequence of acoustic frames using the ASR model. The operations also include generating, by a first encoder, a first high-order feature representation for a corresponding acoustic frame in the sequence of acoustic frames in each of a plurality of output steps and receiving the first high-order feature representation generated by the first encoder in each of the plurality of output steps as input to a second encoder. The operations further include generating, by the second encoder, a second high-order feature representation for the corresponding first high-order feature frame in each of the plurality of output steps, receiving the second high-order feature representation generated by the second encoder in each of the plurality of output steps as input to a decoder, and generating, at each of a plurality of time steps, a first probability distribution over possible speech recognition hypotheses.
[0007] This aspect may include one or more of any of the following features: In some implementations, the second encoder generates the second high-order feature representation without receiving any acoustic frames as input. In some examples, the operations further include receiving as input to a decoder the first high-order feature representation generated by the first encoder at each of the plurality of output steps when the ASR model is operating in streaming mode, and generating, by the decoder, a second probability distribution over possible speech recognition hypotheses at each of the plurality of time steps. In these examples, the operations may further include generating a final speech recognition result by modifying the initial speech recognition result from the first probability distribution based on the second probability distribution. Additionally or alternatively, the operations further include, when the ASR model is operating in streaming mode, receiving as input to a prediction network, the sequence of non-blank symbols output by the final softmax layer; generating, by the prediction network, a dense representation at each of the plurality of output steps; receiving as input to a joint network, the dense representation generated by the prediction network at each of the plurality of steps and the first high-order feature representation generated by the first encoder at each of the plurality of output steps; and generating, by the joint network, a second probability distribution over possible speech recognition hypotheses at each of the plurality of output steps. The operations further include, when the ASR model is operating in a non-streaming mode, receiving as an input to a prediction network, the sequence of non-blank symbols output by the final softmax layer; generating, by the prediction network, a dense representation at each of the plurality of output steps; receiving as inputs to a joint network, the dense representation generated by the prediction network at each of the plurality of output steps and a second higher-order feature representation generated by the second encoder at each of the plurality of output steps; and generating, by the joint network, a first probability distribution over possible speech recognition hypotheses at each of the plurality of output steps.
[0008] In some implementations, the decoder includes a long short-term memory (LSTM) based decoder. Alternatively, the decoder includes a V2 embedded lookup table. In some examples, the first encoder includes a causal encoder including multiple one-way long short-term memory (LSTM) layers. Additionally or alternatively, the second encoder includes a non-causal encoder including one or more bidirectional long short-term memory (LSTM) layers. In some implementations, the operations further include receiving a set of training utterances and jointly training the first encoder and the second encoder using the set of training utterances. Here, the model jointly trains the first encoder and the second encoder by generating a first loss for the first encoder, generating a second loss for the second encoder, and minimizing a weighted sum of the first loss and the second loss.
[0009] The details of one or more implementations of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0010] [Figure 1A] FIG. 1 is a schematic diagram of an exemplary speech environment using a cascade encoder model architecture for automatic speech recognition. [Figure 1B] FIG. 1 is a schematic diagram of an exemplary speech environment using a cascade encoder model architecture for automatic speech recognition. [Figure 2A] FIG. 1 is a schematic diagram of a cascade encoder model architecture. [Figure 2B] FIG. 1 is a schematic diagram of a cascade encoder model architecture. [Figure 2C] FIG. 1 is a schematic diagram of a cascade encoder model architecture. [Diagram 3] FIG. 1 is a schematic diagram of an example training process for encouraging a cascade encoder model to learn consistent predictions for both non-synthetic and synthetic speech. [Figure 4]1 is a flowchart of an example arrangement of operations for a method of implementing a cascade encoder model for streaming and non-streaming automatic speech recognition. [Diagram 5] FIG. 1 is a schematic diagram of an example computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Like reference numbers in the various drawings indicate like elements.
[0012] End-to-end (E2E) automatic speech recognition (ASR) models are traditionally configured to operate in either streaming or non-streaming modes. Traditionally, E2E ASR models include an encoder and a decoder as the main components. Applications involving end-user interaction, such as voice search or on-device dictation, may require the model to perform recognition in a streaming manner, where words are expected to be output with as little latency as possible as they are spoken. This precludes the use of models that use future context to improve accuracy, such as bidirectional LSTMs. In contrast, applications such as offline video captioning may not require streaming recognition and may fully utilize any available future context to improve performance.
[0013] The implementations herein are directed to a single E2E ASR model that uses a cascaded encoder that can operate in both streaming and non-streaming modes. The cascaded encoder includes a streaming encoder and a non-streaming encoder, and a single decoder of the ASR model is configured to learn to decode either the output from the streaming encoder or the output from the non-streaming encoder. In addition to ASR models, this architecture can be applied to other models, such as machine translation, that implement both streaming and non-streaming modes.
[0014] 1A and 1B are examples of audio environments 100, 100a-100b. In the audio environment 100, a manner in which a user 104 interacts with a computing device, such as a user device 10, may be via voice input. The user device 10 (also commonly referred to as device 10) is configured to capture voice (e.g., streaming audio data) from one or more users 104 in the audio environment 100. Here, streaming audio data may refer to utterances 106 by the user 104 that act as audible queries, commands for the device 10, and audible communications captured by the device 10. The voice-enabled system of the device 10 may process the queries or commands by answering the queries and / or executing / completing the commands by one or more downstream applications.
[0015] The user device 10 may represent any computing device associated with a user 104 and capable of receiving audio data. Some examples of the user device 10 include, but are not limited to, a mobile device (e.g., a mobile phone, a tablet, a laptop, etc.), a computer, a wearable device (e.g., a smart watch), a smart appliance, an Internet of Things (IoT) device, a vehicle infotainment system, a smart display, a smart speaker, etc. The user device 10 includes a data processing hardware 12 and a memory hardware 14 in communication with the data processing hardware 12, which stores instructions that, when executed by the data processing hardware 12, cause the data processing hardware 12 to perform one or more operations. The user device 10 further includes an audio system 16 having audio capture devices (e.g., microphones) 16, 16a for capturing and converting speech 106 in the audio environment 100 into electrical signals, and audio output devices (e.g., speakers) 16, 16b for communicating audible audio signals (e.g., as output audio data from the device 10). Although the user device 10 implements a single audio capture device 16a in the illustrated example, the user device 10 may implement an array of audio capture devices 16a without departing from the scope of this disclosure, and one or more capture devices 16a in the array may communicate with the audio system 16 without being physically present on the user device 10.
[0016] In the voice environment 100, an automatic speech recognition (ASR) system 109 implementing an ASR model 200 (also referred to as model 200) resides on a user device 10 of a user 104 and / or on a remote computing device 60 (e.g., one or more remote servers of a distributed system running in a cloud computing environment) that communicates with the user device 10 via a network 40. The user device 10 and / or the remote computing device 60 also include an audio subsystem 108 configured to receive utterances 106 by the user 104 captured by the audio capture device 16a and convert the utterances 106 into a corresponding digital format associated with input acoustic frames 110 that can be processed by the ASR system 109. In the example shown in FIG. 1A, the user 104 utters a respective utterance 106, and the audio subsystem 108 converts the utterances 106 into corresponding audio data (e.g., acoustic frames) 110 that are input to the ASR system 109. The model 200 then receives as input the audio data 110 corresponding to the utterance 106 and generates / predicts as output a corresponding transcription 120 (also referred to as a recognition result / hypothesis 120) of the utterance 106. As described in more detail below (e.g., FIG. 3), the model 200 may be trained in a single training stage to simplify the process of training the model 200 to operate in streaming and non-streaming modes. The model 200 also includes a decoder 204 (also referred to as a shared decoder 204) that is shared between the encoders of the model, which allows the model 200 to be a single model that can operate in streaming and non-streaming modes (e.g., as opposed to two separate models, each dedicated to either streaming or non-streaming modes). For example, as shown in FIG. 1A, a digital assistant application 50 running on a user device 10 may need to stream speech recognition such that words, word pieces, and / or individual characters are displayed on a screen as they are spoken.Also, the user 104 of the user device 10 may have a low tolerance for latency when issuing queries to be executed by the digital assistant application 50. In these scenarios where the application requires minimal latency, the model 200 may operate in a streaming mode, where the model 200 provides streaming transcription functionality when the user 104 is uttering an utterance 106. On the other hand, when the user 104 has a higher tolerance for speech recognition latency and / or the utterance 106 to be recognized relates to long-form speech (i.e., speech consisting of a complete paragraph or multiple sentences), the same model 200 may operate in a non-streaming mode, utilizing a predictive network to provide accurate transcription 120, but with increased latency. Thus, the ASR system 109 may implement a single ASR model 200 for multiple, respectively distinct speech recognition tasks to provide both streaming and non-streaming transcription functionality without the need to utilize a separately trained ASR model for each task.
[0017] In some implementations, the model 200 first performs streaming speech recognition on the audio data 110 and then performs non-streaming speech recognition on the output of the streaming encoder. For example, in the illustrated example, the model 200 performs streaming speech recognition on the audio data 110 using a first encoder (i.e., a low-latency encoder (FIG. 2B)) to generate partial speech recognition results 120, 120a (e.g., a second probability distribution of the speech recognition results 120a), and performs non-streaming speech recognition on the encoded audio data 110 using a second encoder (i.e., a high-latency encoder (FIG. 2C)) to generate final speech recognition results 120, 120b (e.g., a first probability distribution of the speech recognition results 120b). In particular, the model 200 outputs the partial speech recognition result 120a as the audio data 110 is received, and then outputs the final speech recognition result 120b once all the audio data 110 is received after the user 104 finishes uttering the utterance 106. Therefore, the output of the final speech recognition results 120b for the input utterance 106 may be delayed relative to the partial speech recognition results 120a.
[0018] The user device 10 and / or the remote computing device 60 also execute a user interface generator 107 configured to present a representation of the transcription 120 of the utterance 106 to the user 104 of the user device 10. As described in more detail below, the user interface generator 107 may display partial speech recognition results 120a in a streaming manner for time 1 and then display final speech recognition results 120b for time 2. In some configurations, the transcription 120 output from the ASR system 109 is processed by, for example, a natural language understanding (NLU) module executing on the user device 10 or the remote computing device 60 to execute the user command / query specified by the utterance 106. Additionally or alternatively, a text-to-speech system (not shown) (e.g., executing on any combination of the user device 10 or the remote computing device 60) may convert the transcription 120 into synthetic speech for audible output by the user device 10 and / or another device.
[0019] In the example of FIG. 1A, a user in a speech environment 100a interacts with a program or application 50 (e.g., a digital assistant application 50a) of a user device 10 that uses an ASR system 109. For example, FIG. 1A shows a user 104 communicating with the digital assistant application 50, which displays a digital assistant interface 18 on the screen of the user device 10, illustrating a conversation between the user 10 and the digital assistant of the digital assistant application 50a. In this example, the user 104 asks the digital assistant application 50a, "What song is playing right now?" This question from the user 104 is an utterance 106 that is captured by the voice capture device 16a and processed by the audio system 16 of the user device 10. In this example, the audio system 16 receives the utterance 106 and converts it into acoustic frames 110 that are input to the ASR system 109.
[0020] Continuing with the example, while the model 200 receives an acoustic frame 110 corresponding to an utterance 106 as the user 104 speaks, it encodes the acoustic frame 110 using a first encoder 210 (i.e., FIG. 2A) and then decodes the encoded representation of the acoustic frame 110 into a partial speech recognition result 120a using a decoder 204 (FIG. 2A). During time 1, the user interface generator 107 presents a representation of the partial speech recognition result 120a of the utterance 106 to the user 104 of the user device 10 in a streaming manner via the digital assistant interface 18, whereby words, word pieces, and / or individual characters are displayed on the screen as they are spoken.
[0021] After all (or a quantity of) the acoustic frames 110 corresponding to the utterance 106 are received and the first encoder 210 has encoded these acoustic frames 110, the second encoder 220 (i.e., FIG. 2A) encodes the encoding output from the first encoder 210 to generate an encoding output for the set of acoustic frames 110 corresponding to the utterance 106 already encoded by the first encoder 210. The decoder 204 then decodes the acoustic frames 110 encoded by the second encoder 220 into a final speech recognition result 120b. For example, once the first encoder 210 has encoded all (as the acoustic frames 110 were received) of the acoustic frames 110 corresponding to the utterance 106, the second encoder 220 encodes all of the acoustic frames 110 encoded by the first encoder 210. In this regard, the second encoder 220 can achieve greater context awareness by encoding across multiple encoded acoustic frames 110 (e.g., by receiving a representation of all of the acoustic frames 110 for the utterance 106) in a non-streaming manner, which may possibly adjust or correct aspects of the utterance 106 that are lost or misinterpreted due to the streaming nature of the first encoder 210. In some examples, an indication such as an endpoint indicating that the user has finished the utterance 106 triggers the encoder 220 of the model 200 to encode all of the acoustic frames 110. During time 2, the user interface generator 107 presents a representation of the final speech recognition result 120b of the utterance 106 to the user 104 of the user device 10 via the digital assistant interface 18. In some implementations, the user interface generator 107 replaces (or modifies) the representation of the partial speech recognition result 120a with the representation of the final speech recognition result 120b.For example, the final speech recognition result 120b is assumed to be more accurate than the partial speech recognition result 120a generated without utilizing the look-ahead audio context, and the final speech recognition result 120b is finally displayed as a transcription 120 to correct words that may have been misrecognized in the partial speech recognition result 120a. In this example, the streaming partial speech recognition result 120a output by the model 200 and displayed on the screen of the user device 10 at time 1 has a low latency associated therewith and provides a response to the user 104 that the user's 104 query is being processed. Thus, the partial speech recognition result 120a may erroneously predict that the user's utterance 106 is "What song is play right now?". With increased latency, the final speech recognition result 120b output by the model 200 and displayed on the screen at time 2 improves the speech recognition quality in terms of accuracy by clearly indicating that the user 104 spoke "playing". However, because the user interface generator 107 displays the partial speech recognition results as the user speaks 106, the higher latency involved in generating and ultimately displaying the final recognition results 120b is unlikely to be noticeable to the user 104.
[0022] In the example shown in FIG. 1A, the digital assistant application 50a may use natural language processing to respond to a question posed by the user 104. Natural language processing generally refers to the process of interpreting written language (e.g., partial speech recognition results 120a and / or final speech recognition results 120b) and determining whether the written language prompts some action. In this example, the digital assistant application 50a uses natural language processing to recognize that the question from the user 104 is a question about the user's environment, and more specifically, a question about a song playing near the user. By recognizing such details through natural language processing, the automated assistant returns a response 19 to the user's query, in this case, the response 19 is presented as "Tweezer is playing right now." In some configurations, the natural language processing is performed on a remote computing device 60 that communicates with the data processing hardware 12 of the user device 10.
[0023] FIG. 1B is another example of speech recognition by the ASR system 109 in a voice environment 100b. As shown in the example, a user 104 interacts with a voicemail application 50, 50b that displays a voicemail application interface 18, 18b on the screen of the user device 10 to transcribe a voicemail left for the user 104 by Jane Doe. In this example, latency is not important. The model 200 of the ASR model 109 can take advantage of the entire context of the audio by waiting until all of the acoustic frames 110 corresponding to the voicemail are generated without worrying about latency. This voicemail scenario also shows how the model 200 can handle long utterances due to the fact that voicemails are often multiple sentences, or even several paragraphs. The ability to handle long speech is particularly advantageous over other ASR models, such as two-pass models with LAS decoders, which often perform poorly when recognizing long speech (e.g., higher word deletion rates for long speech). For example, by using an RNN-T decoder as the decoder 204 in combination with a cascaded encoder 202 (e.g., a first encoder 210 and a second encoder 220), the model 200 can consume the entire context of the input audio when performing speech recognition on long speech sentences without incurring performance degradation, unlike two-pass ASR models.
[0024] Continuing to refer to FIG. 1B, while the model 200 receives the acoustic frame 110, it uses the first encoder 210 to encode the acoustic frame 110 as described with respect to FIG. 1A. After the model 200 receives and encodes all of the acoustic frame 110 using the first encoder 210, it provides the first encoder output as input to the second encoder 220. The second encoder 220 encodes the first encoder output before the decoder 204 generates the final speech recognition result 120b. The user interface generator 107 then presents a representation of the final speech recognition result 120b via the digital assistant interface 18b without first displaying the partial speech recognition result 120a. For example, the final speech recognition result 120b is a transcript of a long voicemail from Jane Doe that presents, "Give me a call back when you get this. Just trying to figure out plans for the New Year."
[0025] 2A-2C include exemplary models 200a-c operating in various combinations of streaming and non-streaming modes. Specifically, each of the models 200a-c includes a cascaded encoder 202 and a decoder 204. The cascaded encoder 202 refers to a model structure in which the encoding path includes two encoders 210, 220, which are cascaded such that the output of one encoder 210 feeds the input of the other encoder 220 before decoding. Here, the encoders 210, 220 can be cascaded regardless of the underlying architecture for each encoder. In some examples, the encoders 210, 220 include a stack of 512-dimensional conformer layers. Causal convolutions and left context attention layers may be used in each conformer layer to strictly restrict the model from using future inputs. A multi-head (e.g., eight heads) attention mechanism may be used in the self-attention layer. The cascaded encoders 210, 220 may include 17 conformer layers, where the first encoder 210 may include 15 conformer layers, while the second encoder 220 may include two conformer layers that incorporate additional right context (e.g., 5.04 seconds). In some cases, other types of layers incorporating self-attention mechanisms, such as transformer layers, may be used instead of conformer layers. The first encoder 210 may be referred to as a causal encoder, and the second encoder may be referred to as a non-causal encoder.
[0026] In other implementations, one encoder is configured with an LSTM structure, and the other encoder is configured using a bidirectional LSTM layer or a conformer layer (e.g., a conformer-transducer). In other words, the encoders 210, 220 may have different architectures or similar architectures. For example, the cascade encoder 202 may be roughly similar to an acoustic model (AM) in a conventional ASR system and may include a recurrent network of stacked long short-term memory (LSTM) layers. Here, the first encoder 210 is a streaming encoder that includes a unidirectional long short-term memory (LSTM) layer, while the second encoder 220 is a non-streaming encoder that includes a bidirectional LSTM layer or a conformer layer. In the cascade encoder 202, both encoders 210, 220 include LSTM layers, and the second encoder 220, which receives the output of the first encoder 210, may utilize the LSTM layer of the first encoder, such that the second encoder 220 includes fewer LSTM layers than the first encoder 210 (and fewer LSTM layers than a fully non-streaming model). By having fewer LSTM layers, the cascade encoder 202 may reduce the number of bidirectional layers, which are more computationally expensive, making the model 200 more streamlined than simply combining a traditional streaming model with a traditional non-streaming model.
[0027] Referring to FIG. 2A, a first encoder generates a sequence of d-dimensional feature vectors (e.g., the acoustic frame 110 shown in FIGS. 1A and 1B) x = (x1, x2, ..., x T ), where:
[0028]
number
[0029] The first encoder generates a first high-level feature representation 203 at each time step. This first high-level feature representation is e sSimilarly, the second encoder 220 is cascaded to the first encoder 210 and outputs the first high-level feature representation e s The trained feature set receives as input e and outputs a second higher-level feature representation 205. This second higher-level feature representation is a Both the first encoder 210 and the second encoder 220 are directly connected to and shared by the decoder 204. Thus, the decoder 204 receives the first high-level feature representation e s and the second high-level feature representation e a It receives both as input.
[0030] The decoder 204 may include a recurrent neural network-transducer (RNN-T) architecture having a joint layer 230 and a prediction network 240. The decoder 204 uses the joint layer 230 to generate the first and second high-level feature representations e output by the cascade encoder 202. s , e a , as well as the previous prediction y r-1 When the model 200 operates in streaming mode, the joint layer 230 combines the output of the prediction network 240 with the first high-level feature representation e output from the first encoder 210 to generate the decoder output. s The decoder output is the unit before the N previous non-blank symbols {y i-1 ,...,y i-N} and an input x, the current subword unit y i The probability distribution P(y i |y i-1 ,...,y0,x). Although not shown, the model 200 may include a softmax layer that receives the output of the decoder 204. In some implementations, the softmax layer is separate from the decoder 204 and receives the output y rThe output of the softmax layer is then used in a beam search process to select the orthographic elements. In some implementations, the softmax layer is integrated with the decoder 204, whereby the output y r represents the output of the softmax layer.
[0031] The decoder 204 is configured to generate a probability distribution over possible speech recognition hypotheses at each output step. In other words, the joint network 230 generates a probability distribution over possible speech recognition hypotheses at each output step (e.g., time step). Here, a "probable speech recognition hypothesis" corresponds to a set of output labels / symbols (also called "phonetic units"), each representing a grapheme (e.g., a symbol / character) or word piece in a specified natural language. For example, when the natural language is English, the set of output labels may include 27 symbols, e.g., one label for each of the 26 characters in the English alphabet and one label designating a space. Thus, the joint network 230 may output a set of values indicating the likelihood of occurrence of each of a given set of output labels. This set of values may be a vector (e.g., a one-hot vector) and may indicate a probability distribution over the set of output labels. In some cases, the output labels are graphemes (e.g., individual characters, and possibly punctuation and other symbols), although the set of output labels is not so limited. For example, the set of output labels may include whole word pieces and / or words in addition to or instead of graphemes. The output labels may also be other types of speech units, such as phonemes or sub-phonemes. The output distribution of the joint network 230 may include a posterior probability value for each of the different output labels. Thus, if there are 100 different output labels, each representing a different grapheme or other symbol, the output of the joint network 230 may include 100 different probability values, one for each output label. The probability distribution may then be used in a beam search process (e.g., by a softmax layer) to select and assign scores to candidate orthogonal elements (e.g., graphemes, word pieces, and / or words) to determine the transcription 120. In some examples, the first encoder 210 of the cascaded encoder model 200 is composed of eight 2,048-dimensional LSTM layers, with each 2,048-dimensional LSTM layer followed by a 640-dimensional projection layer.In these examples, the second encoder 220 of the model 200 may consist of a two-layer bidirectional LSTM with approximately 10 million parameters.
[0032] Within the decoder 204, the prediction network 240 may have two 2,048-dimensional LSTM layers, each followed by a 640-dimensional projection layer, such that the LSTM-based prediction network may have approximately 23.4 million parameters. In other configurations, the prediction network 240 may instead include a conformer layer or a transformer layer instead of an LSTM layer. In yet other configurations, the prediction network 240 includes a V2 embedding lookup table that includes an embedding prediction network. At each time step, the V2 embedding lookup table receives as input the two previous predictions (e.g., one-hot vectors) output by the joint network 230, calculates respective embeddings d1, d2 for each of the two previous predictions, and provides a concatenated output [d1, d2] to the joint layer 230. In comparison, the V2 embedding lookup table may have only approximately 2 million parameters, while the LSTM-based prediction network may include approximately 23.4 million parameters. Finally, the joint network 230 may be a one-layer neural network with 640 hidden units. The softmax layer may consist of a unified wordpiece or grapheme set that is generated using all unique wordpieces or graphemes in the multiple training datasets 132, 132a-132n (FIG. 3). In some implementations, to limit the amount of future context the cascaded encoder model 200 sees, the second encoder 220 uses several conformer layers (e.g., two layers) with a certain amount of right context (e.g., 5 seconds of right context), while the first encoder 210 continues to use an LSTM layer. In these implementations, each conformer layer in the second encoder 220 may have 640 units to match the LSTM layer, adding approximately 10 million additional parameters.
[0033] 2A, in some implementations, the model 200a operates in both streaming and non-streaming modes in parallel. When the model 200a operates in both streaming and non-streaming modes at the same time, it first performs streaming speech recognition on the audio data 110 using the first encoder 210 to generate a first high-level representation e for both the second encoder 220 and the decoder 204. s The decoder 204 then generates the first higher-level representation e s The model 200b also performs non-streaming speech recognition on the encoded audio data 110, and the second encoder 200 generates partial speech recognition results 120, 120a based on the first high-level representation e received from the first encoder 210. s Using the second higher-order representation e a The decoder 204 then generates the second higher-level representation e a , and generates the final speech recognition result 120, 120b based on the input utterance 106. As indicated by time, the decoder 204 outputs the partial speech recognition result 120a in a streaming manner using the output from the first encoder 210, and then waits until the utterance is complete before operating in a non-streaming mode using the output from the second encoder 220 to generate the final speech recognition result 120b. Thus, the final speech recognition result 120b for the input utterance 106 may be delayed relative to the partial speech recognition result 120a.
[0034] 2B, in some implementations, the model 200b operates only in streaming mode. This may occur, for example, when the user 104 uses applications such as voice search or on-device dictation, where the latency required is as low as possible. Here, the model 200b performs streaming speech recognition on the audio data 110 using only the first encoder 210 to generate a first high-level representation 203 e for the decoder 204. sThe decoder 204 then produces the partial speech recognition results 120, 120a. The streaming mode of the model 200b produces the partial speech recognition results 120, 120a. Because the streaming mode of the model 200b produces the partial speech recognition results 120, 120a quickly, the inaccuracies in the word "play" are generally acceptable to the user.
[0035] Referring to FIG. 2C, in some implementations, the model 200c operates only in a non-streaming mode. The non-streaming mode may occur in non-latency intensive applications, such as when the user 104 views a transcription of a voicemail left on the phone (FIG. 1B). As explained above, in this type of application, it is advantageous to use future context to improve performance at the expense of increasing processing time. Here, the model 200c first uses the first encoder 210 to generate a first high-order representation 203 e at each time step for the input to the second encoder 220. s whereas the decoder 204 generates the first high-level representation e s The model 200c then performs non-streaming speech recognition on all of the audio data 110, and the second encoder 220 decodes the first high-level representation e received from the first encoder 210. s The second higher-order representation 205 e a The decoder 204 then generates the final speech recognition results 120, 120b. Since generating streaming speech recognition in real-time provides little value to the user and latency is not important, the model 200c may simply operate in a non-streaming mode to generate the final speech recognition results 120, 120b.
[0036] FIG. 3 illustrates an example of a training process 300 for training the model 200 to be operable for both streaming and / or non-streaming modes. In some configurations, the training process 300 is executed on the remote computing device 60 of FIGS. 1A and 1B. The training process 300 retrieves a plurality of training utterances 132, 132a-132n stored in a sample database 130 and trains the model 200 on the training utterances 132. The sample database 130 may reside on the memory hardware of the remote computing device 60. As described above with respect to FIG. 2A, the first encoder 210 and the second encoder 220 can share the same decoder 204 and train in a single stage, simplifying the training process 300. This is because the output of the direct streaming encoder 210 (e.g., the first high-level representation e) is used instead of the input acoustic features (e.g., the input acoustic frames 110). s ), which means that we may train the non-streaming encoder 220 on
[0037] As shown in Figure 3, there are two processing paths for model 200, one for streaming mode of model 200b (shown in Figure 2B) and one for non-streaming mode of model 200c (shown in Figure 2C). Since there are two input processing paths in the training process 300, the loss of the model includes two loss functions. Specifically, the loss for the streaming mode of model 200b is generally defined as the sum of the negative logarithms of the probabilities corresponding to the probability distribution over the possible speech recognition hypotheses given the training utterance 132 input. That is, the model loss from the connection of the first encoder 210 with the decoder 204 is:
[0038]
number
[0039] The model loss for the non-streaming mode is also generally defined as the sum of the negative logarithms of the probabilities corresponding to the probability distributions over the possible speech recognition hypotheses given the training utterances 132 as input. Thus, the model loss from the connection of the second encoder 220 with the decoder 204 is
[0040]
number
[0041] Based on these expressions, the total loss between two input paths is defined as the weighted sum of the input path losses L = λL. s + (1 - λ)L a where λ is a weighting term. In the training process 300, training the cascaded encoders 210, 220 together involves minimizing a weighted sum of the losses between both input processing paths.
[0042] At each time step during the training process 300, training can be done either streaming or non-streaming for each training utterance 132. In other words, the input processing path is probabilistically selected to either train model 200b or train model 200c. By sampling the training utterances 132, the training process only needs to calculate the loss once for each training utterance 132 at each training step, significantly speeding up the training process 300. In some implementations, longer training times are tolerated and an alternative training process is used to train each input processing path with each training utterance to calculate the loss for both model 200b and model 200c for each training utterance 132 at each training step.
[0043] In the illustrated example, the training utterances 132b, 132c are selected as training utterances for training the first processing path represented by the cascade encoder model 200b. The cascade encoder model 200b receives the training utterances 132b, 132c, and the first encoder 210 converts the training utterances 132b, 132c into a first high-level feature representation (e.g., audio embedding) as output. The decoder 204 then receives the first high-level feature representation of the training utterances 132b, 132c as input and generates an output that is tested for accuracy. Similarly, the training utterances 132a, 132d are selected as training utterances for training the second processing path represented by the cascade encoder model 200c. The cascade encoder model 200c receives the training utterances 132a, 132d, and the first encoder converts the training utterances 132a, 132d into a first high-level feature representation (e.g., audio embedding) as output. The second encoder 220 receives the first high-level feature representation of the training utterances 132a, 132d as input and generates a second high-level feature representation of the training utterances 132a, 132d as output. The decoder 204 then receives the second high-level feature representation of the training utterances 132a, 132d as input and generates an output that is tested for accuracy. This ensures that the model 200 learns to operate in either streaming or non-streaming mode during inference.
[0044] 4 includes a flowchart of an example configuration of operations for a method 400 of performing streaming and non-streaming speech recognition using the cascade encoder model 200. The method 400 includes, at operation 402, receiving a sequence of acoustic frames 110 as input to the cascade encoder model 200. The method 400 further includes, at operation 404, performing streaming and non-streaming speech recognition on the sequence of acoustic frames 110 using the cascade encoder model.
[0045] The method 400 includes generating, by the first encoder 210, a first high-order feature representation for a corresponding acoustic frame 110 in the sequence of acoustic frames 110 in each of the plurality of output steps, in operation 406. The method 400 further includes receiving, as an input to the second encoder 220, the first high-order feature representation generated by the first encoder 210 in each of the plurality of output steps, in operation 408. The method 400 also includes generating, by the second encoder 220, a second high-order feature representation for the corresponding first high-order feature frame in each of the plurality of output steps, in operation 410. The method 400 also includes receiving, as an input to the decoder 204, the second high-order feature representation generated by the second encoder in each of the plurality of output steps, in operation 412. The method 400 further includes generating a first probability distribution over possible speech recognition hypotheses in each of the plurality of time steps, in operation 414.
[0046] 5 is a schematic diagram of an exemplary computing device 500 that may be used to implement the systems (e.g., audio subsystem 108, ASR system 109, user interface generator 107, and / or model 200) and methods (e.g., method 400) described herein. Computing device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown, their connections and relationships, and their functions are intended to be exemplary only and are not intended to limit the implementation of the invention described and / or claimed herein.
[0047] Computing device 500 includes a processor 510 (e.g., data processing hardware), a memory 520 (e.g., memory hardware), a storage device 530, a high-speed interface / controller 540 that connects to memory 520 and a high-speed expansion port 550, and a low-speed interface / controller 560 that connects to a low-speed bus 570 and storage device 530. Each of components 510, 520, 530, 540, 550, and 560 are interconnected using various buses and may be mounted on a common motherboard or otherwise mounted as needed. Processor 510 can process instructions executed within computing device 500, including instructions stored in memory 520 or on storage device 530 to display graphical information for a graphical user interface (GUI) on an external input / output device, such as a display 580 coupled to high-speed interface 540. In other implementations, multiple processors and / or multiple buses may be used along with multiple memories and multiple types of memories, as needed. Also, multiple computing devices 500 may be connected such that each device performs a portion of the required operations (eg, a bank of servers, a group of blade servers, or a multi-processor system).
[0048] The memory 520 stores information non-temporarily within the computing device 500. The memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. The non-transient memory 520 may be a physical device used to temporarily or persistently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by the computing device 500. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., commonly used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), as well as disks or tapes.
[0049] The storage device 530 can provide mass storage for the computing device 500. In some implementations, the storage device 530 is a computer-readable medium. In various different implementations, the storage device 530 may be a floppy disk device, a hard disk device, an optical disk device, or an array of devices including a tape device, a flash memory or other similar solid-state memory device, or a device in a storage area network or other configuration. In additional implementations, the computer program product is tangibly embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods as described above. The information carrier is a computer or machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.
[0050] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, while the low-speed controller 560 manages lower bandwidth-intensive operations. Such allocation of duties is merely exemplary. In some implementations, the high-speed controller 540 is coupled to the memory 520, the display 580 (e.g., via a graphics processor or accelerator), and the high-speed expansion port 550. The high-speed expansion port 550 may accept various expansion cards (not shown). In some implementations, the low-speed controller 560 is coupled to the storage device 530 and the low-speed expansion port 590. The low-speed expansion port 590 may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) and may be coupled to one or more input / output devices, such as, for example, a keyboard, a pointing device, a scanner, or a networking device such as a switch or router via a network adapter.
[0051] Computing device 500 may be implemented in a number of different ways as shown: For example, computing device 500 may be implemented as a standard server 500a or multiple times within a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.
[0052] Various implementations of the systems and techniques described herein may be realized in digital electrical and / or optical circuitry, integrated circuits, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementation in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor. The programmable processor may be dedicated or general purpose and may be coupled to receive and transmit data and instructions from a storage system, at least one input device, and at least one output device.
[0053] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform tasks. In some examples, a software application may be referred to as an "application," an "app," or a "program." Exemplary applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.
[0054] These computer programs (also known as programs, software, software applications or codes) contain machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus and / or device (e.g., magnetic disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0055] The processes and logic flows described herein can be executed by one or more programmable processors, also referred to as data processing hardware, which execute one or more computer programs to perform functions by operating on input data to generate output. The processes and logic flows can also be executed by special purpose logic circuitry, for example, FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits). Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, and any one or more processors of any type of digital computer. In general, a processor receives instructions and data from a read-only memory or a random access memory, or both. The basic elements of a computer are a processor for executing instructions, and one or more memory devices for storing instructions and data. In general, a computer also includes one or more mass storage devices, for example, magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to one or more mass storage devices, or both. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, examples of which include semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices, magnetic disks, such as internal hard disks or removable disks, magneto-optical disks, and CD ROM and DVD ROM disks. The processor and memory may be supplemented by or incorporated in special purpose logic circuitry.
[0056] To enable interaction with a user, one or more aspects of the present disclosure can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or touch screen, for displaying information to the user, and possibly a keyboard and pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices can also be used to enable interaction with the user. For example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form, including acoustic input, speech input, or tactile input. The computer can also interact with the user by sending documents to and receiving documents from a device being used by the user, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0057] Although several implementations have been described, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the following claims. [Explanation of symbols]
[0058] 1-2 hours 10. User Devices 12 Data Processing Hardware 14 Memory Hardware 16 Audio System 16a Audio capture device 16b Audio Output Device 18, 18b Voice Mail Application Interface 50, 50b Voicemail applications, digital assistant applications 50a Digital Assistant Applications 60 Remote Computing Devices 100, 100a, 100b Audio environment 104 users 106 utterances 107 User Interface Generator 108 Audio Subsystem 109 Automatic Speech Recognition (ASR) Systems 110 Acoustic frames, audio data 120 Transcription 120a Partial speech recognition result 120b Final voice recognition result 130 Sample Database 132, 132a-132n Training utterances 200 ASR Models, Models 200a, 200b, 200c models 202 Cascade Encoder, Cascade Encoder Model 203 The first high-level feature representation 204 decoder, shared decoder 205 Second Higher-Level Feature Representation 210 First Encoder, Streaming Encoder, Cascade Encoder 220 Secondary Encoder, Non-Streaming Encoder, Cascaded Encoder 230 Joint layer, joint network 240 Prediction Network 300 Training Process 500 computing devices 500a Server 500b Laptop Computer 500c Rack Server System 510 Processor 520 Memory 530 Storage Devices 540 High Speed Interface / Controller 550 High Speed Expansion Port 560 Low Speed Interface / Controller 570 Slow Bus 580 Display 590 Low Speed Expansion Port
Claims
1. An automatic speech recognition (ASR) model (200) operable in streaming and non-streaming modes, comprising: A first encoder (210), receiving as input a sequence of acoustic frames (110); In each of a plurality of output steps, generating a first high-level feature representation (203) for a corresponding acoustic frame (110) in the sequence of acoustic frames (110). A first encoder (210) configured as follows: A second encoder (220), receiving as input the first high-level feature representation (203) generated by the first encoder (210) in each of the plurality of output steps; In each of the plurality of output steps, a second high-level feature representation (205) is generated for the corresponding first high-level feature frame. A second encoder (220) configured as follows: A decoder (204), When the ASR model is operating in the non-streaming mode, receiving as input the second high-level feature representation (205) generated by the second encoder (220) in each of the plurality of output steps; generating a first probability distribution over possible speech recognition hypotheses at each of the plurality of output steps; When the ASR model is operating in the streaming mode, receiving as input the first high-level feature representation (203) generated by the first encoder (210) in each of the plurality of output steps; generating a second probability distribution over the possible speech recognition hypotheses at each of the plurality of output steps; and a decoder (204) configured to:
2. 2. The ASR model of claim 1, wherein the second encoder generates the second high-level feature representation without receiving any of the acoustic frames as input.
3. 2. The ASR model of claim 1, wherein the decoder is further configured to generate a partial speech recognition result based on the second probability distribution over possible speech recognition hypotheses.
4. The decoder (204) A prediction network (240), It receives as input the sequence of non-blank symbols output by the final softmax layer, generating a dense representation in each of the plurality of output steps; A prediction network (240) configured as follows: A joint network (230), the dense representation generated by the predictive network (240) at each of the plurality of output steps; and the first high-level feature representation (203) generated by the first encoder (210) in each of the plurality of output steps when the ASR model (200) is operating in the streaming mode; or the second high-level feature representation (205) generated by the second encoder (220) in each of the plurality of output steps when the ASR model (200) is operating in the non-streaming mode. as input, In each of the plurality of output steps, the second probability distribution over possible speech recognition hypotheses when the ASR model (200) is operating in the streaming mode; or the first probability distribution over possible speech recognition hypotheses when the ASR model (200) is operating in the non-streaming mode. Generate one of and a joint network configured to:
5. 5. The ASR model of claim 4, wherein the prediction network comprises a long short-term memory (LSTM)-based prediction network.
6. 5. The ASR model of claim 4, wherein the prediction network comprises a V2 embedded lookup table.
7. The first encoder (210) includes: Multiple one-way long short-term memory (LSTM) layers, Multiple conformer layers, or Multiple Transformer Layers 7. The ASR model (200) of claim 1, further comprising a causal encoder comprising one of:
8. The second encoder (220) One or more bidirectional long short-term memory (LSTM) layers, Multiple conformer layers, or Multiple Transformer Layers The ASR model (200) of any one of claims 1 to 7, comprising a non-causal encoder comprising one of:
9. receiving a set of training utterances (132); and jointly training the first encoder (210) and the second encoder (220) using the set of training utterances (132), wherein the joint training comprises: generating a first loss for the first encoder (210); generating a second loss for the second encoder (220); Minimizing a weighted sum of the first loss and the second loss. The ASR model (200) of any one of claims 1 to 8,
10. A computer-implemented method (400) that, when executed on data processing hardware (12), causes the data processing hardware (12) to perform operations, the operations including: receiving a sequence of acoustic frames (110) as input to an automatic speech recognition (ASR) model (200) operable in streaming and non-streaming modes; and performing streaming and non-streaming speech recognition on the sequence of acoustic frames (110) using the ASR model (200), said performing comprising: generating, by a first encoder (210), at each of a plurality of output steps, a first high-level feature representation (203) for a corresponding acoustic frame (110) in the sequence of acoustic frames (110); receiving the first high-level feature representation (203) generated by the first encoder (210) in each of the plurality of output steps as an input to a second encoder (220); generating, by the second encoder (220), a second high-level feature representation (205) for a corresponding first high-level feature frame in each of the plurality of output steps; When the ASR model is operating in the non-streaming mode, receiving the second high-level feature representation (205) generated by the second encoder (220) in each of the plurality of output steps as an input to a decoder (204); generating, by the decoder (204), a first probability distribution over possible speech recognition hypotheses at each of the plurality of output steps; When the ASR model is operating in the streaming mode, receiving the first high-level feature representation (203) generated by the first encoder (210) in each of the plurality of output steps as an input to the decoder (204); generating a second probability distribution over possible speech recognition hypotheses at each of the plurality of output steps by the decoder; The computer-implemented method (400) is performed by:
11. 11. The method (400) of claim 10, wherein the second encoder (220) generates the second high-level feature representation (205) without receiving any acoustic frames (110) as input.
12. 11. The method (400) of claim 10, wherein the operations further comprise generating a partial speech recognition result (120) based on the second probability distribution over possible speech recognition hypotheses.
13. The operation, when the ASR model (200) is operating in the streaming mode, comprises: receiving the sequence of non-blank symbols output by the final softmax layer as input to a prediction network (240); generating a dense representation at each of the plurality of output steps by the prediction network (240); receiving as inputs to a joint network (230) the dense representation produced by the prediction network (240) at each of the plurality of output steps and the first high-level feature representation (203) produced by the first encoder (210) at each of the plurality of output steps; generating, by the joint network (230), the second probability distribution over possible speech recognition hypotheses at each of the plurality of output steps; 13. The method (400) of claim 10 or 12, further comprising:
14. The operation, when the ASR model (200) is operating in the non-streaming mode, comprises: receiving as an input to the prediction network (240) the sequence of non-blank symbols output by the final softmax layer; generating a dense representation at each of the plurality of output steps by the prediction network (240); receiving as inputs to the joint network (230) the dense representation produced by the prediction network (240) at each of the plurality of output steps and the second higher-level feature representation (205) produced by the second encoder (220) at each of the plurality of output steps; generating, by the joint network (230), the first probability distribution over possible speech recognition hypotheses at each of the plurality of output steps; 14. The method (400) of claim 13, further comprising:
15. 15. The method (400) of any one of claims 10 to 14, wherein the decoder (204) comprises a long short-term memory (LSTM) based prediction network (240).
16. 15. The method (400) of any one of claims 10 to 14, wherein the decoder (204) comprises a V2 embedded lookup table based prediction network (240).
17. The first encoder (210) includes: Multiple one-way long short-term memory (LSTM) layers, Multiple conformer layers, or Multiple Transformer Layers The method (400) of any one of claims 10 to 16, further comprising a causal encoder comprising one of:
18. The second encoder (220) One or more bidirectional long short-term memory (LSTM) layers, Multiple conformer layers, or Multiple Transformer Layers The method (400) of any one of claims 10 to 17, comprising a non-causal encoder comprising:
19. The operation includes: receiving a set of training utterances (132); and jointly training the first encoder (210) and the second encoder (220) using the set of training utterances (132), wherein the joint training comprises: generating a first loss for the first encoder (210); generating a second loss for the second encoder (220); Minimizing a weighted sum of the first loss and the second loss. The method (400) according to any one of claims 10 to 18, wherein the method is performed by
Citation Information
Patent Citations
Method and device for speech recognition
US20200234713A1
