A consideration of transducer-based streaming for cascaded encoders.

The transducer-based cascaded encoder model addresses the latency issue in ASR by using transducer decoders to generate improved speech recognition hypotheses in real-time, balancing latency and accuracy in streaming applications.

JP2024538680AActive Publication Date: 2024-10-23GOOGLE LLC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024520609
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-04
Filing Date
2022-09-19
Publication Date
2024-10-23
Estimated Expiration
2042-09-19

AI Technical Summary

Technical Problem

End-to-end automatic speech recognition (ASR) models struggle to balance streaming performance with improved recognition accuracy, particularly in applications requiring low latency and utilization of future context, as traditional deliberative models increase latency due to attention decoders.

Method used

A transducer-based deliberative ASR model for cascaded encoders that includes a first encoder generating higher-order feature representations, followed by a first pass transducer decoder, a text encoder, and a second encoder and pass transducer decoder, allowing for streaming operation without requiring complete first-pass speech recognition hypotheses.

Benefits of technology

The model achieves improved speech recognition performance with reduced latency by using transducer decoders that generate second-pass hypotheses in a streaming manner, enhancing accuracy while maintaining low latency suitable for real-time applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024538680000001_ABST
    Figure 2024538680000001_ABST
Patent Text Reader

Abstract

The method (400) includes receiving a sequence of acoustic frames (110) and generating, by a first encoder (210), a first high-level feature representation (212) for a corresponding acoustic frame in the sequence of acoustic frames. The method also includes generating, by a first pass transducer decoder (201), a first pass speech recognition hypothesis (120a) for the corresponding first high-level feature representation, and generating, by a text encoder (240), a text encoding (242) for the corresponding first pass speech recognition hypothesis. The method also includes generating, by a second encoder (220), a second high-level feature representation (222) for the corresponding first high-level feature representation. The method also includes generating, by a second pass transducer decoder (202), a second pass speech recognition hypothesis (120b) using the corresponding second high-level feature representation and the corresponding text encoding.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This disclosure relates to transducer-based streaming deliberation for cascaded encoders. [Background technology]

[0002] Automatic speech recognition (ASR) systems have evolved from multiple models, each with a dedicated purpose, to unified models where a single neural network is used to directly map audio waveforms (i.e., input sequence) to output sentences (i.e., output sequence). This unification has resulted in a sequence-to-sequence approach that generates a sequence of words (or graphemes) given a sequence of audio features. With the unified structure, all components of the model can be trained jointly as a single end-to-end (E2E) neural network. Here, E2E models refer to models whose entire architecture is composed of neural networks. That is, the complete neural network works without external components and / or manually designed components (e.g., finite state transducers, lexicons, or text normalization modules). In addition, when training E2E models, these models generally do not require bootstrapping from decision trees or time alignment from separate systems. These E2E ASR systems have made tremendous progress and outperformed traditional ASR systems in several common benchmarks, including word error rate (WER). For example, some applications that involve 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 be streamed and can take advantage of future context to improve performance. Often, it is beneficial for the model to perform recognition in a streaming manner while also having improved performance similar to non-streaming models that take advantage of future context. Summary of the Invention [Means for solving the problem]

[0003] One aspect of the disclosure provides a transducer-based deliberation model for a cascaded encoder that includes a first encoder configured to receive as an input a sequence of acoustic frames and generate, in each of a plurality of output steps, a first high-order feature representation for a corresponding acoustic frame in the sequence of acoustic frames. The transducer-based deliberation model also includes a first pass transducer decoder configured to receive as an input the first high-order feature representation generated by the first encoder in each of the plurality of output steps and generate, in each of the plurality of output steps, a first pass speech recognition hypothesis for the corresponding first high-order feature representation. The transducer-based deliberation model also includes a text encoder configured to receive as an input the first pass speech recognition hypothesis generated in each of the plurality of output steps and generate, in each of the plurality of output steps, a text encoding for the corresponding first pass speech recognition hypothesis. The transducer-based deliberation model also includes a second encoder configured to receive as input the first high-order feature representation generated by the first encoder in each of the multiple output steps and to generate a second high-order feature representation for the corresponding first high-order feature representation in each of the multiple output steps. The transducer-based deliberation model also includes a second pass transducer decoder configured to receive as input the second high-order feature representation generated by the second encoder in each of the multiple output steps and a text encoding generated by the text encoder in each of the multiple output steps and to generate a second pass speech recognition hypothesis in each of the multiple output steps.

[0004] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the transducer-based deliberation model further includes a prediction network shared by the first pass transducer decoder and the second pass transducer decoder, where the prediction network is configured to receive as input the sequence of non-blank symbols output by the final softmax layer and generate a dense representation at each of the multiple output steps. In these implementations, the second pass transducer decoder further includes a combination network configured to receive as input the dense representation generated by the prediction network at each of the multiple output steps, the second high-order feature representation generated by the second encoder at each of the multiple output steps, and the text encoding generated by the text encoder at each of the multiple output steps and generate a second pass speech recognition hypothesis at each of the multiple output steps.

[0005] In some examples, the second encoder generates the second high-level feature representation without receiving any of the acoustic frames as input. The first encoder may include a causal encoder including a stack of multi-head attention layers. The stack of multi-head attention layers may include a stack of conformer layers. In some implementations, the second encoder includes a non-causal encoder including a stack of multi-head attention layers. In these implementations, the stack of multi-head attention layers may include a stack of conformer layers. The second pass transducer decoder may be trained without using text-only data.

[0006] In some examples, receiving the text encodings generated by the text encoder at each of the multiple output steps includes receiving a partial sequence of the text encodings in a streaming manner. In these examples, the second pass transducer decoder may further include a combination network configured to determine an attention context vector between the partial sequence of the text encodings and a corresponding portion of the second high-level feature representation. The first and second pass speech recognition hypotheses may each correspond to a partial speech recognition result.

[0007] 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 for transducer-based streaming deliberation for a cascaded encoder. The operations include receiving a sequence of acoustic frames and generating, by a first encoder, 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 operations also include generating, by a first pass transducer decoder, a first pass speech recognition hypothesis for the corresponding first high-order feature representation at each of the plurality of output steps. The operations also include generating, by a text encoder, a text encoding for the corresponding first pass speech recognition hypothesis at each of the plurality of output steps, and generating, by a second encoder, a second high-order feature representation for the corresponding first high-order feature representation at each of the plurality of output steps. The operations also include generating, by a second pass transducer decoder, a second pass speech recognition hypothesis using the corresponding second high-order feature representation and the corresponding text encoding at each of the plurality of output steps.

[0008] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the operations further include generating, by a prediction network, a dense representation at each of the multiple output steps based on the sequence of non-blank symbols output by the final softmax layer, where the first pass transducer decoder and the second transducer decoder share a prediction network. In some examples, the operations further include generating, by a combination network, a second pass speech recognition hypothesis at each of the multiple output steps based on the dense representation generated by the prediction network at each of the multiple output steps, the second high-level feature representation generated by the second encoder at each of the multiple output steps, and the text encoding generated by the text encoder at each of the multiple output steps. The second encoder may generate the second high-level feature representation without receiving any of the acoustic frames as input.

[0009] In some implementations, the first encoder includes a causal encoder including a stack of multi-head attention layers. In these implementations, the stack of multi-head attention layers includes a stack of conformer layers. In some examples, the second encoder includes a non-causal encoder including a stack of multi-head attention layers. In these examples, the stack of multi-head attention layers includes a stack of conformer layers. The second pass transducer decoder may be trained without using text-only data. In some implementations, receiving the text encoding includes receiving a partial sequence of the text encoding in a streaming manner. In these implementations, the operations may further include determining, by the combination network, an attention context vector between the partial sequence of the text encoding and a corresponding portion of the second high-level feature representation. The first and second pass speech recognition hypotheses may each correspond to a partial speech recognition result.

[0010] 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]

[0011] [Figure 1] 1 is a schematic diagram of an exemplary speech recognition system. [Diagram 2] 1 is a schematic diagram of an exemplary speech recognition model using transducer-based streaming deliberation; [Diagram 3] FIG. 3 is a schematic diagram of an exemplary prediction network of the speech recognition model of FIG. 2. [Figure 4] 1 is a flowchart of an exemplary arrangement of operations for a computer-implemented method of transducer-based streaming deliberation for a cascade encoder. [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

[0012] Like reference numbers in the various drawings indicate like elements.

[0013] End-to-end (E2E) automatic speech recognition (ASR) models are traditionally structured 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. Here, performing recognition in a streaming manner refers to the ASR model outputting each word of the utterance as it is spoken with the lowest possible latency. Other applications, such as offline video captioning, do not require the model to be streamed and can take advantage of future context to improve performance. For example, deliberative models show significant improvements in rare word and out-of-vocabulary (OOV) word recognition when compared to long short-term memory (LSTM) models or transformative scoring models. In particular, deliberative models excel at revising initial speech recognition results by using attention mechanisms and exploring the full audio context. However, these deliberative models use attention decoders that increase the latency of the ASR model and make deliberative models less suitable for streaming applications.

[0014] The implementations herein are directed to a transducer-based deliberative ASR model for a cascaded encoder. In particular, the ASR model includes a first encoder that generates a first high-level feature representation for a corresponding acoustic frame, and a first pass transducer decoder that generates a first pass speech recognition hypothesis for the corresponding first high-level feature representation. The ASR model also includes a text encoder that generates a text encoding for the corresponding first pass speech recognition hypothesis. Furthermore, a second encoder generates a second high-level feature representation for the corresponding first high-level feature representation, and a second pass transducer decoder generates a second pass speech recognition hypothesis. In particular, the transducer-based deliberative ASR model is a deliberative model that operates in a streaming manner, since the transducer decoder only needs a partial first pass speech recognition hypothesis to generate the second pass speech recognition hypothesis. In contrast, current deliberative models use an attention decoder during the second pass, which requires a complete first pass speech recognition hypothesis before generating the second pass speech recognition hypothesis. Furthermore, transducer-based deliberative ASR models do not require a text-only training day during training.

[0015] 1 is an example of an audio environment 100. In the audio environment 100, the manner in which a user 104 interacts with a computing device, such as a user device 10, may be through voice input. The user device 10 (also commonly referred to as device 10) is configured to capture sounds (e.g., streaming audio data) from one or more users 104 in the audio environment 100. Here, the streaming audio data may refer to verbal utterances 106 by the user 104 that function as audible queries, commands to the user device 10, or audible communications captured by the device 10. The voice-enabled system of the user device 10 may address the queries or commands by responding to the queries and / or causing the commands to be executed / fulfilled by one or more downstream applications.

[0016] The user device 10 may correspond to any computing device that is associated with a user 104 and can receive audio data. Some examples of the user device 10 include, but are not limited to, mobile devices (e.g., mobile phones, tablets, laptops, etc.), computers, wearable devices (e.g., smart watches), smart appliances, Internet of Things (IoT) devices, in-vehicle infotainment systems, smart displays, smart speakers, etc. The user device 10 includes data processing hardware 12 and memory hardware 14 that communicates with the data processing hardware 12 and 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 oral speech 106 in the audio environment 100 into electrical signals, and audio output devices (e.g., speakers) 16, 16b for conveying audible audio signals (e.g., as output audio data from the user 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, whereby one or more capture devices 16a in the array may not be physically present on the user device 10 but are in communication with the audio system 16.

[0017] In the speech environment 100, an automatic speech recognition (ASR) system 118 implements an ASR model 200 and resides on the user device 10 of the user 104 and / or on a remote computing device 60 (e.g., one or more remote servers of a distributed system executing within a cloud computing environment) that communicates with the user device 10 via the network 40. In some examples, the ASR model 200 may be a recurrent neural network transducer (RNN-T) model. The user device 10 and / or the remote computing device 60 also include an audio subsystem 108 configured to receive utterances 106 spoken by the user 104 and captured by the audio capture device 16a and convert the utterances 106 into a corresponding digital format related to input acoustic frames 110 that can be processed by the ASR system 118. In the illustrated example, the user speaks each utterance 106, and the audio subsystem 108 converts the utterances 106 into corresponding audio data (e.g., a sequence of acoustic frames) 110 for input to the ASR system 118. The ASR model 200 then receives as input a sequence of acoustic frames 110 corresponding to the utterance 106, and at each output step, generates / predicts a corresponding transcription 120 (e.g., a speech recognition result / hypothesis) of the utterance 106 as the ASR model receives (e.g., processes) each acoustic frame 110 in the sequence of acoustic frames 110.

[0018] In the illustrated example, the ASR model 200 may perform streaming speech recognition to generate a first pass speech recognition hypothesis (e.g., an initial speech recognition result) 120, 120a and generate a second pass speech recognition hypothesis (e.g., a final speech recognition result) 120, 120b by improving the first pass speech recognition hypothesis 120a. The first and second pass speech recognition hypotheses 120a, 120b may correspond to either a partial speech recognition result or a complete speech recognition result. In other words, the first and second pass speech recognition hypotheses 120a, 120b may correspond to either a portion of the utterance 106 or the entire utterance 106. For example, a partial speech recognition result may correspond to a portion of a spoken utterance or even a portion of a spoken term. However, as will become apparent, the ASR model 200 performs additional processing on the second pass speech recognition hypothesis 120b, which may cause the second pass speech recognition hypothesis 120b to be delayed from the first pass speech recognition hypothesis 120a.

[0019] 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 transcript 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 the first pass speech recognition hypothesis 120a in a streaming manner during time 1, and then display the second pass speech recognition hypothesis 120b in a streaming manner during time 2. In particular, the ASR model 200 outputs the second pass speech recognition hypothesis 120b in a streaming manner, even if the second pass speech recognition hypothesis 120b improves the first pass speech recognition hypothesis 120a. In some configurations, the transcript 120 output from the ASR system 118 is processed by, for example, a natural language understanding (NLU) module executing on the user device 10 or the remote computing device 60, for example, to execute a user command / query specified by the utterance 106. Additionally or alternatively, a text-to-speech system (not shown) (e.g., running on any combination of the user device 10 or the remote computing device 60) may convert the transcript 120 into synthesized speech for audible output by the user device 10 and / or another device.

[0020] In the illustrated example, a user 104 interacts with a program or application 50 (e.g., a digital assistant application 50) of the user device 10 that uses an ASR system 118. For example, FIG. 1 shows a user 104 communicating with the digital assistant application 50 and the digital assistant application 50 displaying a digital assistant interface 18 on the screen of the user device 10 to show a conversation between the user 104 and the digital assistant application 50. In this example, the user 104 asks the digital assistant application 50, "What time is the concert tonight?" This question from the user 104 is an oral utterance 106 that is captured by the audio capture device 16a and processed by the audio system 16 of the user device 10. In this example, the audio system 16 receives the oral utterance 106 and converts it into a sequence of acoustic frames 110 for input to the ASR system 118.

[0021] Continuing with the example, while receiving a sequence of acoustic frames 110 corresponding to an utterance 106 as the user 104 speaks, the ASR model 200 encodes the sequence of acoustic frames 110 and then decodes the encoded sequence of acoustic frames 110 into first pass speech recognition hypotheses 120a. During time 1, the user interface generator 107 presents a representation of the first pass speech recognition hypotheses 120a of the utterance 106 to the user 104 of the user device 10 via the digital assistant interface 18 in a streaming manner such that words, word fragments, and / or individual characters appear on the screen as soon as they are spoken. In some examples, the first look ahead audio context is equal to zero.

[0022] During time 2, the user interface generator 107 presents a representation of the second pass speech recognition hypothesis 120b of the utterance 106 to the user 104 of the user device 10 via the digital assistant interface 18 in a streaming manner such that words, word fragments, and / or individual characters appear on the screen as soon as they are generated by the ASR model 200. In some implementations, the user interface generator 107 replaces the representation of the first pass speech recognition hypothesis 120a presented at time 1 with the representation of the second pass speech recognition hypothesis 120b presented at time 2, where time 1 and time 2 may include timestamps corresponding to when the user interface generator 107 presented the respective speech recognition results 120. In this example, the timestamp for time 1 indicates that the user interface generator 107 presented the first pass speech recognition hypothesis 120a earlier than the second pass speech recognition hypothesis 120b. For example, because the second pass speech recognition hypothesis 120b is estimated to be more accurate than the first pass speech recognition hypothesis 120a, the second pass speech recognition hypothesis 120b ultimately displayed as the transcript 120 may correct any terms that may have been misrecognized in the first pass speech recognition hypothesis 120a. In this example, the streaming first pass speech recognition hypothesis 120a output by the ASR model 200 and displayed on the screen of the user device 10 at time 1 is associated with low latency and provides responsiveness to the user 104 that their query is being processed, whereas the second pass speech recognition hypothesis 120b output by the ASR model 200 and displayed on the screen at time 2 leverages additional speech recognition and / or language models to improve the speech recognition quality in terms of accuracy, but with increased latency. However, because the first pass speech recognition hypotheses 120a are displayed as the user speaks the utterance 106, the longer latency associated with generating and ultimately displaying the second pass speech recognition hypotheses 120b is not noticeable to the user 104.

[0023] In the example shown in FIG. 1, the digital assistant application 50 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., first pass speech recognition hypotheses 120a and / or second pass speech recognition hypotheses 120b) and determining whether the written language prompts some action. In this example, the digital assistant application 50 uses natural language processing to recognize that the question from the user 104 is about the user's schedule, more specifically, a concert on the user's schedule. By recognizing these details using natural language processing, the automated assistant returns a response 19 to the user's query, which states, "Venue doors open at 6:30 PM and concert starts at 8pm." In some configurations, the natural language processing is performed on a remote server 60 that communicates with the data processing hardware 12 of the user device 10.

[0024] Referring now to FIG. 2, in some examples, an ASR model (e.g., transducer-based deliberation model) 200 is configured for transducer-based streaming deliberation for a cascade encoder. As shown in FIG. 2, the ASR model 200 includes a second pass transducer decoder (i.e., second pass) 202 that improves the first pass speech recognition hypothesis 120a (i.e., initial output) from a first pass transducer decoder (i.e., first pass) 201. In the illustrated example, both the first pass transducer decoder 201 and the second pass transducer decoder 202 operate in a streaming manner to generate output at each output step as input is received. In other words, the first pass transducer decoder 201 and the second pass transducer decoder 202 do not need to receive or process the entire input sequence to generate an output, thereby operating at a frame level. Additionally, the ASR model 200 includes a cascade encoder 204 and a text encoder 240, both of which may operate in a similar streaming manner.

[0025] In particular, the ASR model 200 includes a cascade encoder 204, a first pass transducer decoder 201, a text encoder 240, and a second pass transducer decoder 202. Advantageously, using a second pass transducer decoder (e.g., instead of an attention decoder) for the second pass transducer decoder 202 provides a streaming deliberation process for improving the first pass speech recognition hypotheses 120a output from the first pass transducer decoder 201 by generating second pass speech recognition hypotheses 120b. Here, the first and second pass speech recognition hypotheses 120a, 120b may represent partial speech recognition results including parts of words, word fragments, graphemes, or phonemes from the oral utterance 106 (FIG. 1).

[0026] The cascaded encoder 204 refers to a model structure in which the encoding path includes two encoders 210, 220 that are cascaded such that the output of the first encoder 210 feeds the input of the second encoder 220 before decoding. Here, the first encoder 210 and the second encoder 220 may be cascaded regardless of the underlying architecture of each encoder. The encoders 210, 220 may each include a stack of multi-head attention layers. In some examples, the stack of multi-head attention layers of the encoders 210, 220 includes a stack of 512-dimensional conformer layers. In other examples, the multi-head attention layers include transformer layers. Optionally, transformer layers may be used instead of conformer layers.

[0027] The first encoder 210 may be a causal encoder including 17 conformer layers, each having a multi-head (e.g., 8-head) attention mechanism used as a self-attention layer. Additionally, each conformer layer of the first encoder 210 may use a causal convolutional layer and a left context attention layer to restrict the first encoder 210 from using any future inputs. Meanwhile, the second encoder 220 may be a non-causal encoder including four conformer layers, each having a multi-head (e.g., 8-head) attention layer used as a self-attention layer. Each conformer layer of the second encoder 220 may use a non-causal convolutional layer and a right context attention layer, thereby allowing the second encoder 220 to use future inputs. That is, the second encoder 220 may receive an additional right context (e.g., 2.88 seconds).

[0028] Continuing with reference to FIG. 2, the first encoder 210 receives a sequence of d-dimensional feature vectors (e.g., a sequence of acoustic frames 110) x=(x1, x2, ..., xT), where:

number

[0029] In some implementations, the first pass transducer decoder 201 includes a transducer decoder 230. In some configurations, the first encoder 210 of the cascade encoder 204 is external to the first pass transducer decoder 201. In other configurations, the first encoder 210 of the cascade encoder 204 is also present in the first pass transducer decoder 201 (not shown). The transducer decoder 230 of the first pass transducer decoder 201 is configured to receive as input the first high-level feature representation 212 generated by the first encoder 210 and generate a first pass speech recognition hypothesis 120a(y) for the corresponding first high-level feature representation 212 at each output step.

[0030] In some implementations, the first pass speech recognition hypothesis 120a includes a first probability distribution over the possible speech recognition hypotheses. In other words, the transducer decoder 230 generates a first probability distribution over the possible speech recognition hypotheses at each output step (e.g., time step). Here, a "possible speech recognition hypothesis" corresponds to a set of output labels / symbols (also called "phonetic units"), each of which represents a grapheme (e.g., a symbol / character) or a word fragment in a specified natural language. For example, if the natural language is English, the set of output labels may include 27 symbols, e.g., one label for each of the 26 letters in the English alphabet, and one label specifying a space. Thus, the transducer decoder 230 may output a set of values ​​indicating the likelihood of occurrence of each of a given set of output labels. The set of values ​​may be a vector (e.g., a one-hot vector) and may indicate the first probability distribution over the set of output labels. In some scenarios, the output labels are graphemes (e.g., individual characters, and potentially punctuation and other symbols), although the set of output labels is not limited thereto. For example, the set of output labels may include word chunks and / or entire words in addition to or instead of graphemes. The output labels may also be other types of speech units, such as phonemes or subphonemes. The first probability distribution of the transducer decoder 230 may include posterior probability values ​​for each of the different output labels. Thus, if there are 100 different output labels representing different graphemes or other symbols, the output of the transducer decoder may include 100 different probability values, one for each output label. The first probability distribution may then be used to select and assign scores to candidate orthographic elements (e.g., graphemes, word chunks, and / or words) in a beam search process (e.g., by a softmax layer) to determine the first pass speech recognition hypotheses 120a. For example, the transducer decoder 230 may select the N best possible speech recognition hypotheses having the highest probabilities as output for the first pass speech recognition hypotheses 120a.

[0031] The text encoder 240 receives as input the first pass speech recognition hypotheses 120a generated in each of the multiple output steps, and performs a text encoding 242(e y ). The text encoder 240 may be a conformer encoder including multiple right context conformer layers. In particular, the text encoder may include an entire right context of R tokens (i.e., frames). The entire right context of the text encoder 240 may be equal to the latency of the second encoder 220. For example, the second encoder 220 may include a latency of 2.88 seconds when processing the first high-level feature representation 212. In this example, the entire right context may be set to 2.88 seconds to match the latency of the second encoder 220. In some cases, the text encoder 240 only encodes non-blank tokens from the first pass speech recognition hypothesis 120a, whereby the conformer layers provide context modeling from the future. Thus, the rightmost time frames that the text encoder 240 needs to encode are

number

[0032] In formula 1,

number

number

[0033] In formula 2, e y (t) represents the text encoding at each output step (e.g., time step), and e y,k e y represents the k-th encoded token in kwhere k is the latest output step (e.g., time step) required to encode the k-th token, L represents the total number of tokens in the first pass speech recognition hypotheses 120a(y), A represents the number of look-ahead output steps (e.g., time steps), and t represents the output step of the cascade encoder 204. More specifically, the text encoder 240 looks ahead a number A of look-ahead output steps from the current output step of the first pass speech recognition hypotheses 120a. Thus, increasing A increases the latency of the text encoder 240 by requiring the text encoder 240 to receive enough output steps of the first pass speech recognition hypotheses 120a to fill A look-ahead output steps. On the other hand, decreasing A decreases the latency of the text encoder 240, and the latency bottleneck is in the cascade encoder 204. Therefore, A may be equal to the right context of the cascade encoder 204 so that the text encoder 240 minimizes the time held while also maximizing the output steps used from the first pass speech recognition hypotheses during deliberation.

[0034] The second pass transducer decoder 202 may include a combination network 250 and a prediction network 300. The combination network 250 is configured to receive as inputs the dense representation 350 generated by the prediction network 300, the second high-level feature representation 222 generated by the second encoder 220, and the text encoding 242 generated by the text encoder 240. The combination network 250 of the second pass transducer decoder is also configured to generate second pass speech recognition hypotheses 120b at each output step using the dense representation 350, the second high-level feature representation 222, and the text encoding 242.

[0035] In some implementations, the second pass speech recognition hypotheses 120b include a second probability distribution over the possible speech recognition hypotheses. In other words, the combination network 250 generates a second probability distribution over the possible speech recognition hypotheses at each output step (e.g., time step). Here, a "possible speech recognition hypothesis" corresponds to a set of output labels / symbols (also called "phonetic units"), each of which represents a grapheme (symbol / character) or word piece in a specified natural language. For example, if the natural language is English, the set of output labels may include 27 symbols, e.g., one label for each of the 26 letters in the English alphabet, and one label specifying a space. Thus, the combination network 250 may output a set of values ​​indicating the likelihood of occurrence of each of a given set of output labels. The set of values ​​may be a vector (e.g., a one-hot vector) and may indicate a second probability distribution over the set of output labels. In some scenarios, the output labels are graphemes (e.g., individual characters, and potentially punctuation and other symbols), but the set of output labels is not limited thereto. For example, the set of output labels may include word chunks and / or whole words in addition to or instead of graphemes. The output labels may also be other types of speech units, such as phonemes or subphonemes. The second probability distribution of the combination network 250 may include a posterior probability value for each of the different output labels. Thus, if there are 100 different output labels representing different graphemes or other symbols, the output of the combination network 250 may include 100 different probability values, one for each output label. The second probability distribution may then be used to select and assign scores to candidate orthographic elements (e.g., graphemes, word chunks, and / or words) in a beam search process (e.g., by a final softmax layer (not shown) of the combination network 250) for determining the second pass speech recognition hypotheses 120b. For example, the combination network 250 may select the N best possible speech recognition hypotheses with the highest probabilities as outputs for the second pass speech recognition hypotheses 120b.

[0036] In some implementations, the prediction network 300 receives as input the sequence of non-blank symbols output by the final softmax layer of the combination network 250 and, at each output step, generates a dense representation 350. The combination network 250 receives the dense representation 350 for a previous second pass speech recognition hypothesis 120b and uses the dense representation 350 to generate a subsequent second pass speech recognition hypothesis 120b.

[0037] FIG. 3 illustrates a prediction network 300 of the ASR model 200 that receives as input a sequence of non-blank symbols limited to the N previous non-blank symbols output by the final softmax layer of the combination network 250. That is, the sequence of non-blank symbols 120b, 120ba-bn output by the final softmax layer of the combination network 250 may correspond to the non-blank symbols of the second pass speech recognition hypothesis 120b. Thus, the sequence of non-blank symbols 120b and the second pass speech recognition hypothesis 120b may be used interchangeably herein. The first pass transducer decoder 201 and the second pass transducer decoder 202 may share the prediction network 300. In some examples, N is equal to 2. In other examples, N is equal to 5, although this disclosure is non-limiting and N may be equal to any integer. In some implementations, the prediction network 300 includes a multi-head attention mechanism 302 that shares a shared embedding matrix 304 across each head 302A-H of the multi-head attention mechanism. In one example, the multi-head attention mechanism 302 includes four heads. However, any number of heads may be used by the multi-head attention mechanism 302. In particular, the multi-head attention mechanism significantly improves performance while minimizing the increase in model size. As described in more detail below, each head 302A-H includes its own row of the position vector 308, and rather than incurring an increase in model size by concatenating the outputs 318A-H from all heads, the outputs 318A-H are instead averaged by a head averaging module 322.

[0038] Referring to a first head 302A of the multi-head attention mechanism 302, the head 302A uses a shared embedding matrix 304 to derive a corresponding embedding 306, 306a-n (e.g.,

number

number

[0039] The corresponding embedding generated by the shared embedding matrix 304 for each non-whitespace symbol 120b in the sequence of non-whitespace symbols 120b is the same for all of the heads 302A-H of the multi-head attention mechanism 302, but each head 302A-H defines a different set / row of position vectors 308. For example, the first head 302A defines a position vector PV Aa-An 308Aa-An, and the second head 302B defines a position vector PV Ba-Bn 308Ba-Bn, ..., the Hth head 302H defines the position vector PV Ha-Hn Define another distinct line for 308Ha-Hn.

[0040] For each non-blank symbol in the sequence of received non-blank symbols 120b, the first head 302A also weights the corresponding embedding 306, via the weight layer 310, in proportion to the similarity between the corresponding embedding and its associated respective position vector PV 308. In some examples, the similarity may include a cosine similarity (e.g., cosine distance). In the illustrated example, the weight layer 310 outputs a sequence of weighted embeddings 312, 312Aa-An, each of the weighted embeddings 312, 312Aa-An associated with a corresponding embedding 306 weighted in proportion to the respective position vector PV 308 assigned to it. In other words, the weighted embedding 312 output by the weight layer 310 for each embedding 306 may correspond to a dot product between the embedding 306 and its respective position vector PV 308. The weighted embeddings 312 may be interpreted as associated with the embeddings in proportion to how similar they are to the positions associated with their respective position vectors PV 308. To increase computational speed, the prediction network 300 includes a non-recurrent layer, so that the sequence of weighted embeddings 312Aa-An is not concatenated, but instead is output as

number

[0041] In Equation 3, h represents the index of the head 302, n represents the position in the context, and e represents the embedding dimension. econtains the size of the corresponding dimension. The position vector PV 308 does not need to be trainable and may contain random values. In particular, even if the weighted embedding 312 is averaged, the position vector PV 308 can potentially preserve position history information, alleviating the need for recurrent connections at each layer of the prediction network 300.

[0042] The operations described above with respect to the first head 302A are similarly performed by each of the other heads 302B-H of the multi-head attention mechanism 302. Due to the different set of position vectors PV 308 defined by each head 302, the weight layer 310 outputs a sequence of weighted embeddings 312Ba-Bn, 312Ha-Hn in each of the other heads 302B-H that differs from the sequence of weighted embeddings 312Aa-Aa in the first head 302A. The weighted average module 316 then generates a respective weighted average 318B-H of the corresponding weighted embeddings 312 of the sequence of non-blank symbols as output from each of the other corresponding heads 302B-H.

[0043] In the illustrated example, the prediction network 300 includes a head averaging module 322 that averages the weighted averages 318A-H output from corresponding heads 302A-H. A projection layer 326 with SWISH may receive as an input an output 324 from the head averaging module 322 corresponding to the average of the weighted averages 318A-H and generate as an output a projection output 328. A final layer normalization 330 may normalize the projection output 328 to provide a single embedding vector 350 at a corresponding time step from the multiple time steps. The prediction network 300 generates only a single embedding vector 350 at each of the multiple time steps following the initial time step.

[0044] In some configurations, the prediction network 300 does not implement a multi-head attention mechanism 302, and only performs the operations described above with respect to the first head 302A. In these configurations, the weighted average 318A of the weighted embeddings 312Aa-An is simply passed through a projection layer 326 and layer normalization 330 to provide a single embedding vector 350.

[0045] Referring back to FIG. 2, at every output step, the combination network 250 performs an attention context vector a between the text encoding 242 (e.g., representing a partial first pass speech recognition hypothesis) and the corresponding frame of the second high-level feature representation 222. t In particular, the combination network 250 determines the attention context vector a by using the text encoding 242 as keys and values ​​and the second high-level feature representation 222 as a query. t Therefore, the attention context vector a t summarizes the first pass speech recognition hypotheses 120a by querying them using the current time frame. The combination network 250 then

number

[0046] In formula 4, e x (t) represents the second high-level feature representation 222, t represents the attention context vector, and c t represents the output value from the merge operation. The combination network 250 then

number

[0047] In Equation 5, h t,u represents the second pass speech recognition hypothesis 120b, and l u represents the dense representation 350. Optionally, a final softmax layer of the combination network may be used to combine the second pass speech recognition hypotheses 120b (h t,u ) and performs a beam search process to select orthographic elements as second pass speech recognition hypotheses 120b to be output from the second pass transducer decoder 202. The final softmax layer may be integrated with the second pass transducer decoder 202 or may be separate from the second pass transducer decoder 202.

[0048] In particular, the combination network 250 generates a second pass speech recognition hypothesis 120b at each output step, and thus the second pass speech recognition hypothesis 120b may correspond to a partial or complete speech recognition result. For example, a sequence of acoustic frames 110 may correspond to the utterance 106 of "What is the weather in New York City" (FIG. 1), and the combination network 250 generates a partial second pass speech recognition hypothesis 120b of "What is the weather" because the combination network 250 processed only an input corresponding to a portion of the sequence of acoustic frames 110 at its output step. Advantageously, the ASR model 200 may pay attention to the future context of the sequence of acoustic frames 110 (e.g., thereby improving WER performance) while operating in a streaming manner (e.g., thereby reducing latency performance) by using the second pass transducer decoder 202 for deliberation. Thus, the ASR model 200 can use deliberation to improve recognition performance while also having low latency suitable for applications requiring speech recognition in a streaming manner.

[0049] 4 is a flow chart of an exemplary arrangement of operations of a method 400 of transducer-based streaming deliberation for a cascaded encoder. The method 400 may be executed on data processing hardware 510 (FIG. 5) using instructions stored on memory hardware 520 (FIG. 5). The data processing hardware 510 and memory hardware 520 may be present on the user device 10 and / or remote computing device 60 of FIG. 1, which corresponds to the computing device 500 (FIG. 5).

[0050] In operation 402, the method 400 includes receiving a sequence of acoustic frames 110 corresponding to the utterance 106. In operation 404, the method 400 includes generating, by a first encoder 210, a first high-level feature representation 212 for a corresponding acoustic frame 110 in the sequence of acoustic frames 110, where the first encoder 210 is cascaded to a second encoder 220. The first and second encoders 210, 220 are collectively referred to as a cascade encoder 204. In operation 406, the method 400 includes generating, by a first pass transducer decoder 201, a first pass speech recognition hypothesis 120a for the corresponding first high-level feature representation 212. In operation 408, the method 400 includes generating, by a text encoder 240, a text encoding for the corresponding first pass speech recognition hypothesis 120a. At operation 410, the method 400 includes generating, by the second encoder 220, a second high-level feature representation 222 for the corresponding first high-level feature representation 212. At operation 412, the method 400 includes generating, by the second pass transducer decoder 220, a second pass speech recognition hypothesis 120b using the corresponding second high-level feature representation 222 and the corresponding text encoding 242. In particular, the second pass transducer decoder 202 generates the second pass speech recognition hypotheses 120b in a streaming manner such that the ASR model 200 outputs each portion of the second pass speech recognition hypotheses 120b as soon as the ASR model 200 generates each portion. Here, the second pass speech recognition hypotheses 120b may include portions of words, word fragments, graphemes, or phonemes from the spoken utterance 106.

[0051] 5 is a schematic diagram of an exemplary computing device 500 that may be used to implement the systems and methods described in this document. The 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(s) described and / or claimed in this document.

[0052] Computing device 500 includes a processor 510, a memory 520, 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 desired. Processor 510 can process instructions for execution within computing device 500, including instructions stored in memory 520 or on storage device 530 for displaying 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 as desired, along with multiple memories and types of memories. Also, multiple computing devices 500 may be connected, with each device providing some of the required operations (eg, as a bank of servers, a group of blade servers, or a multi-processor system).

[0053] The memory 520 stores information non-transiently 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 permanently store programs (e.g., sequences of instructions) or data (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) / electrically erasable programmable read-only memory (EEPROM) (e.g., typically 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.

[0054] 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 can be a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid-state memory device, or an array of devices including devices 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, such as the methods described above. The information carrier is a computer-readable medium or a machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.

[0055] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, while the low-speed controller 560 manages less bandwidth-intensive operations. Such role assignments are 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, which 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, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device, such as, for example, a switch or a router via a network adapter.

[0056] Computing device 500 may be implemented in a number of different forms, as shown in the figure. For example, computing device 500 may be implemented as a standard server 500a, or multiple times within a group of servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.

[0057] Various implementations of the systems and techniques described herein can be realized in digital electronic and / or optical circuitry, integrated circuits, specially designed ASICs (application-specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be special purpose or general purpose, coupled to receive data and instructions from a storage system, at least one input device, and at least one output device, and to transmit data and instructions to the storage system, at least one input device, and at least one output device.

[0058] 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 the 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.

[0059] 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 and generating output. The processes and logic flows can also be executed by special purpose logic circuits, 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, as well as any one or more processors of any kind of digital computer. In general, a processor receives instructions and data from a read-only memory, or a random access memory, or both. The essential elements of a computer are a processor for executing instructions, and one or more memories 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 transmit data to, 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, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0060] To provide for user interaction, 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 optionally 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 be used to provide for user interaction as well, e.g., 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. In addition, the computer can interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to the web browser in response to a request received from the web browser on the user's client device.

[0061] 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 present disclosure. Accordingly, other implementations are within the scope of the following claims. [Explanation of symbols]

[0062] 10 User Devices, Devices 12 Data Processing Hardware 14 Memory Hardware 16 Audio System 16, 16a Audio Capture Device, Capture Device 16, 16b Audio output device 18 Digital Assistant Interface 19 responses 40 Network 50 Digital assistant applications, programs or applications 60 Remote Computing Devices 100 Audio Environment 104 users 106 Oral utterances, speech 107 User Interface Generator 108 Audio Subsystem 110 Input audio frame, audio data, audio frame 118 Automatic Speech Recognition (ASR) System, ASR System 120 Transcription and speech recognition results 120, 120a First pass speech recognition hypotheses 120, 120b Second pass speech recognition hypotheses 120b, 120ba~bn non-blank symbols 200 ASR Models 201 1st path transducer decoder 202 Second Path Transducer Decoder 204 Cascade Encoder 210 first encoder, encoder 212 The first high-level feature representation 220 Second Encoder, Encoder 222 Second Higher-Level Feature Representation 230 Transducer Decoder 240 Text Encoder 242 Text Encoding 250 Connected Network 300 Prediction Network 302 Multi-head Attention Mechanism 302A~302H Head 304 Shared Embedding Matrix 306, 306a~n Embedded 308, 308Aa~An Position vector, position vector PV 310 Weight Layer 312, 312Aa~An Weighted embedding 316 Weighted Average Module 318A~H output 322 Head Average Module 324 Output 326 Projection layer 328 Projection Output 330 Final layer normalization 350 embedding vectors, dense representation 500 computing devices 500a Server 500b Laptop Computer 500c Rack Server System 510 Processors, data processing hardware, components 520 Memory, Memory Hardware, Components 530 Storage devices, components 540 High Speed ​​Interface / Controller, Components, High Speed ​​Controller 550 High Speed ​​Expansion Port, Components 560 Low Speed ​​Interface / Controller, Components, Low Speed ​​Controller 570 Slow Bus 580 Display 590 Low Speed ​​Expansion Port

Claims

1. A transducer-based deliberation model (200) for a cascade encoder (204), comprising: A first encoder (210), receiving as input a sequence of acoustic frames (110); At each of a plurality of output steps, generating a first high-level feature representation (212) for a corresponding acoustic frame (110) in the sequence of acoustic frames (110). A first encoder (210) configured as follows: A first path transducer decoder (201), receiving as input the first high-level feature representation (212) generated by the first encoder (210) in each of the plurality of output steps; In each of the plurality of output steps, a first pass speech recognition hypothesis (120a) is generated for the corresponding first high-level feature representation (212). A first path transducer decoder (201) configured as follows: A text encoder (240), receiving as input the first pass speech recognition hypotheses (120a) generated in each of the plurality of output steps; generating a text encoding (242) for a corresponding first pass speech recognition hypothesis (120a) in each of the plurality of output steps; a text encoder (240) configured to A second encoder (220), receiving as input the first high-level feature representation (212) 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 (222) is generated for the corresponding first high-level feature representation (212). A second encoder (220) configured as follows: a second path transducer decoder (202), receiving as input the second high-level feature representation (222) generated by the second encoder (220) in each of the plurality of output steps and the text encoding (242) generated by the text encoder (240) in each of the plurality of output steps; generating second pass speech recognition hypotheses (120b) at each of the plurality of output steps; A second path transducer decoder (202) configured as follows: A transducer-based deliberation model (200) for a cascade encoder (204), comprising:

2. The decoder further comprises a prediction network (300) shared by the first path transducer decoder (201) and the second path transducer decoder (202), the prediction network (300) comprising: receiving as input the sequence of non-blank symbols (120b) output by the final softmax layer; In each of the plurality of output steps, generating a dense representation (350). It was configured as follows:

2. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1.

3. The second path transducer decoder (202) A coupling network (250), receiving as input the dense representation (350) generated by the predictive network (300) in each of the plurality of output steps, the second high-level feature representation (222) generated by the second encoder (220) in each of the plurality of output steps, and the text encoding (242) generated by the text encoder (240) in each of the plurality of output steps; generating said second pass speech recognition hypotheses (120b) at each of said plurality of output steps; a coupling network (250) configured to The transducer-based deliberation model (200) for a cascade encoder (204) of claim 2.

4. 4. A transducer-based deliberation model (200) for a cascade encoder (204) as claimed in any one of claims 1 to 3, wherein the second encoder (220) generates the second high-level feature representation (222) without receiving any of the acoustic frames as input.

5. 5. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1, wherein the first encoder (210) comprises a causal encoder including a stack of multi-head attention layers.

6. 6. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 5, wherein the stack of multi-head attention layers includes a stack of conformer layers.

7. 7. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1, wherein the second encoder (220) comprises a non-causal encoder including a stack of multi-head attention layers.

8. 8. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 7, wherein the stack of multi-head attention layers includes a stack of conformer layers.

9. 9. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1, wherein the second pass transducer decoder (202) trains without using text-only data.

10. 10. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1, wherein receiving the text encoding (242) generated by the text encoder (240) in each of the plurality of output steps comprises receiving a partial sequence of the text encoding (242) in a streaming manner.

11. 11. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 10, wherein the second pass transducer decoder (202) further comprises a combination network (250) configured to determine an attention context vector between the subsequence of the text encoding (242) and a corresponding portion of the second high-level feature representation (222).

12. 12. The transducer-based deliberation model (200) for a cascade encoder (204) of claim 1, wherein the first and second pass speech recognition hypotheses (120a, 120b) each correspond to a partial speech recognition result.

13. A computer-implemented method (400), comprising: When executed on the data processing hardware (510), the data processing hardware (510) receiving a sequence of acoustic frames (110); generating, by a first encoder (210), a first high-level feature representation (212) for a corresponding acoustic frame (110) in the sequence of acoustic frames (110) at each of a plurality of output steps; generating, by a first pass transducer decoder (201), a first pass speech recognition hypothesis (120a) for a corresponding first high-level feature representation (212) in each of the plurality of output steps; generating, by a text encoder (240), a text encoding (242) for a corresponding first pass speech recognition hypothesis (120a) in each of the plurality of output steps; generating, by a second encoder (220), a second high-level feature representation (222) for a corresponding first high-level feature representation (212) in each of the plurality of output steps; generating, by a second pass transducer decoder (202), a second pass speech recognition hypothesis (120b) using a corresponding second high-level feature representation (222) and a corresponding text encoding (242) in each of the plurality of output steps; A computer-implemented method (400) for performing operations including:

14. The operation further comprises: generating, by a prediction network (300), a dense representation (350) at each of the plurality of output steps based on the sequence of non-blank symbols (120b) output by a final softmax layer; the first path transducer decoder (201) and the second path transducer decoder (202) share the prediction network (300); 14. The computer-implemented method (400) of claim 13.

15. 15. The computer-implemented method of claim 14, wherein the operations further comprise generating, by a combination network, at each of the plurality of output steps, the second pass speech recognition hypothesis based on the dense representation generated by the prediction network at each of the plurality of output steps, the second high-level feature representation generated by the second encoder at each of the plurality of output steps, and the text encoding generated by the text encoder at each of the plurality of output steps.

16. 16. The computer-implemented method (400) of any one of claims 13 to 15, wherein the second encoder (220) generates the second high-level feature representation (222) without receiving any of the acoustic frames (110) as input.

17. 17. The computer-implemented method (400) of any one of claims 13 to 16, wherein the first encoder (210) comprises a causal encoder including a stack of multi-head attention layers.

18. 20. The computer-implemented method (400) of claim 17, wherein the stack of multi-head attention layers comprises a stack of conformer layers.

19. 19. The computer-implemented method (400) of any one of claims 13 to 18, wherein the second encoder (220) comprises a non-causal encoder including a stack of multi-head attention layers.

20. 20. The computer-implemented method (400) of claim 19, wherein the stack of multi-head attention layers comprises a stack of conformer layers.

21. 21. The computer-implemented method (400) of any one of claims 13 to 20, wherein the second pass transducer decoder (202) trains without using text-only data.

22. 22. The computer-implemented method (400) of any one of claims 13 to 21, wherein receiving the text encoding (242) comprises receiving a sub-sequence of the text encoding (242) in a streaming manner.

23. 23. The computer-implemented method of claim 22, wherein the operations further comprise determining, by a combination network (250), an attention context vector between the subsequence of the text encoding (242) and a corresponding portion of the second higher-level feature representation (222).

24. 24. The computer-implemented method of claim 13, wherein the first and second pass speech recognition hypotheses (120a, 120b) each correspond to a partial speech recognition result.

Citation Information

Patent Citations

  • Neural Machine Translation System

    JP2019537096A

  • Speech recognition device, speech recognition method and speech recognition program

    JP2021039216A

  • Minimum word error rate training for attention-based sequence-to-sequence models

    US20200043483A1

  • Method and device for speech recognition

    US20200234713A1

  • Attention-Based Joint Acoustic and Text On-Device End-to-End Model

    US20210225362A1