Disfluency detection models for natural conversational speech systems
The integration of a disfluency detection model with a two-stage training process enhances ASR systems' ability to recognize disfluencies and end-of-speech events, improving the accuracy and responsiveness of natural conversational speech recognition.
Patent Information
- Application Number
- JP2024520857
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-06
- Filing Date
- 2022-08-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional automatic speech recognition (ASR) systems struggle to accurately recognize disfluencies and end-of-speech events in natural conversational speech, leading to premature termination of utterances and misinterpretation of queries.
A disfluency detection model integrated into ASR systems, utilizing a two-stage training process to enhance the ability to detect pauses and end-of-speech events, comprising an encoder network, prediction network, and joint networks to generate probability distributions for disfluencies and end-of-speech events.
The model improves the accuracy of ASR systems in natural conversational interactions by correctly identifying disfluencies and end-of-speech events, ensuring complete utterance recognition and reducing user dissatisfaction.
Smart Images

Figure 2024538020000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to disfluency detection models for natural conversational voice systems. [Background technology]
[0002] Modern automatic speech recognition (ASR) systems focus on providing not only high quality (e.g., low word error rate) but also low latency (e.g., short delay between the user speaking and the displayed transcription). Summary of the Invention [Problem to be solved by the invention]
[0003] For example, when using devices implementing automatic speech recognition (ASR) systems today, it is often expected that the automatic speech recognition (ASR) systems will decode speech in real-time or in a streaming manner that supports faster than real-time. [Means for solving the problem]
[0004] One aspect of the disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations comprising receiving a sequence of acoustic frames characterizing one or more utterances, and at each of a plurality of output time steps, the operations further comprise generating, by an encoder network of the speech recognition model, a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames, generating, by a predictive network of the speech recognition model, a hidden representation of a corresponding sequence of non-whitespace symbols output by a final softmax layer of the speech recognition model, and generating, by a first joint network of the speech recognition model that receives the high-order feature representation generated by the encoder network and the hidden representation generated by the predictive network, a probability distribution where the corresponding time step corresponds to a pause and an end of speech.
[0005] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the operations further include determining that a probability that the corresponding time step corresponds to an end of speech satisfies an end of speech threshold, and triggering a microphone end event in response to determining that the probability that the corresponding time step corresponds to an end of speech satisfies the threshold.
[0006] In some implementations, the operations include determining that a probability that the corresponding time step corresponds to a pause satisfies a pause threshold, and issuing a pause token at the corresponding time step based on determining that the probability that the corresponding time step corresponds to a pause satisfies the pause threshold.
[0007] In some examples, the operations include generating a probability distribution for possible speech recognition hypotheses by a second joint network (second joint network) of the speech recognition model at each of the plurality of output steps. In some implementations, the speech recognition model is trained by a two-stage training process. The two-stage training process may include a first stage of training the encoder network, the predictive network, and the second joint network on a speech recognition task, and a second stage of initializing and fine-tuning the first joint network to learn how to predict pause and end-of-speech locations in an utterance. In some examples, parameters of the encoder network, the predictive network, and the second joint network are fixed during the second stage of the two-stage training process. In some implementations, the two-stage training process trains the speech recognition model on a plurality of transcribed training utterances having labels indicating pause and end-of-speech locations.
[0008] In some implementations, the encoder network comprises a stack of self-attention blocks, which may include a stack of conformer blocks or a stack of transformer blocks.
[0009] In some examples, generating a hidden representation for the corresponding sequence of non-blank symbols comprises: for each non-blank symbol in the sequence of non-blank symbols received as input at the corresponding time step, generating, by the prediction network, an embedding of the corresponding non-blank symbol using a shared embedding matrix, assigning, by the prediction network, a respective position vector to the corresponding non-blank symbol, and weighting, by the prediction network, the embedding in proportion to a similarity between the embedding and each position vector. Generating the hidden representation further comprises generating a single embedding vector at the corresponding time step as output from the prediction network, the single embedding vector being based on a weighted average of the weighted embeddings, the single embedding vector comprising the hidden representation.
[0010] In some implementations, the prediction network includes a multi-head attention mechanism that shares a shared embedding matrix across each head of the multi-head attention mechanism.
[0011] Another aspect of the disclosure provides a system comprising data processing hardware and memory hardware in communication with the data processing hardware. The memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include receiving a sequence of acoustic frames characterizing one or more utterances. The operations further include, at each of a plurality of output time steps, generating, by an encoder network of the speech recognition model, a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames, generating, by a predictive network of the speech recognition model, a hidden representation of a corresponding sequence of non-whitespace symbols output by a final softmax layer of the speech recognition model, and generating, by a first joint network of the speech recognition model that receives the high-order feature representation generated by the encoder network and the hidden representation generated by the predictive network, a probability distribution where the corresponding time step corresponds to a pause and an end of speech.
[0012] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the operations further include determining that a probability that the corresponding time step corresponds to an end of speech satisfies an end of speech threshold, and triggering a microphone end event in response to determining that the probability that the corresponding time step corresponds to an end of speech satisfies the threshold.
[0013] In some implementations, the operations include determining that a probability that the corresponding time step corresponds to a pause satisfies a pause threshold, and issuing a pause token at the corresponding time step based on determining that the probability that the corresponding time step corresponds to a pause satisfies the pause threshold.
[0014] In some examples, the operations include generating a probability distribution for possible speech recognition hypotheses by a second joint network of the speech recognition model at each of the plurality of output steps. In some implementations, the speech recognition model is trained by a two-stage training process. The two-stage training process may include a first stage of training the encoder network, the predictive network, and the second joint network on a speech recognition task, and a second stage of initializing and fine-tuning the first joint network to learn how to predict pause and end-of-speech locations in an utterance. In some examples, parameters of the encoder network, the predictive network, and the second joint network are fixed during the second stage of the two-stage training process. In some implementations, the two-stage training process trains the speech recognition model on a plurality of transcribed training utterances having labels indicating pause and end-of-speech locations.
[0015] In some implementations, the encoder network comprises a stack of self-attention blocks, which may include a stack of conformer blocks or a stack of transformer blocks.
[0016] In some examples, generating a hidden representation for the corresponding sequence of non-blank symbols comprises: for each non-blank symbol in the sequence of non-blank symbols received as input at the corresponding time step, generating, by the prediction network, an embedding of the corresponding non-blank symbol using the shared embedding matrix, assigning, by the prediction network, a respective position vector to the corresponding non-blank symbol, and weighting, by the prediction network, the embedding in proportion to a similarity between the embedding and each position vector. Generating the hidden representation further comprises generating a single embedding vector at the corresponding time step as output from the prediction network, the single embedding vector being based on a weighted average of the weighted embeddings, the single embedding vector comprising the hidden representation.
[0017] In some implementations, the prediction network includes a multi-head attention mechanism that shares a shared embedding matrix across each head of the multi-head attention mechanism.
[0018] Yet another aspect of the present disclosure provides an automatic speech recognition (ASR) model for natural conversation, comprising an encoder, a prediction network, and a first joint network: the encoder configured to receive as input a sequence of acoustic frames characterizing one or more utterances to generate, at each of a plurality of time steps, a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames; the prediction network configured to receive as input a sequence of non-blank symbols output by a final softmax layer to generate, at each of the plurality of time steps, a hidden representation; and the first joint network configured to receive as inputs the hidden representation generated by the prediction network at each of the plurality of time steps and the high-order feature representation generated by the encoder at each of the plurality of time steps to generate, at each of the plurality of time steps, a probability distribution of whether the corresponding time step corresponds to a pause and an end of speech.
[0019] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the automatic speech recognition ASR model triggers a microphone end event based on the probability that a corresponding time step corresponding to an end of speech meets a threshold.
[0020] In some examples, the automatic speech recognition ASR model also includes a second joint network configured to generate a probability distribution over likely speech recognition hypotheses at each of the plurality of time steps by receiving the hidden representations generated by the predictive network at each of the plurality of time steps and the high-level feature representations generated by the encoder at each of the plurality of time steps.
[0021] In some implementations, the encoder network, the predictor network, and the second joint network are trained on a speech recognition task during a first training phase, and after the first training phase, the encoder network, the predictor network, and the second joint network are fixed while the first joint network is initialized and fine-tuned to learn how to predict pauses and end-of-speech locations during speech.
[0022] Yet another aspect of the present disclosure provides an automatic speech recognition (ASR) system for natural conversation, the system including an automatic speech recognition (ASR) model including an encoder, a prediction network, and a first joint network, and a turn-taking detector model. An encoder configured to receive as input a sequence of acoustic frames characterizing one or more utterances to generate, at each of a plurality of time steps, a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames. A prediction network configured to receive as input a sequence of non-blank symbols output by a final softmax layer to generate, at each of the plurality of time steps, a hidden representation. A joint network configured to receive as input the hidden representations generated by the prediction network at each of the plurality of time steps and the high-order feature representations generated by the encoder at each of the plurality of time steps to generate, at each of the plurality of time steps, a probability distribution of whether a corresponding time step corresponds to a pause and an end of speech. An alternation detector model configured to receive as input the high-order feature representations generated by the encoder at each of a plurality of time steps, and to generate, for each high-order feature representation, a corresponding probability distribution of whether the high-order feature representation corresponds to a speech, a pause, and an end of a speech.
[0023] Yet another aspect of the present disclosure provides an automatic speech recognition (ASR) system for natural conversation, comprising an automatic speech recognition ASR model comprising an encoder, a prediction network, and a joint network, and an alternation detector model. The automatic speech recognition ASR model comprises an encoder configured to receive as an input a sequence of acoustic frames characterizing one or more utterances to generate, at each of a plurality of time steps, a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames. The prediction network configured to receive as an input a sequence of non-blank symbols output by a final softmax layer to generate a hidden representation at each of a plurality of time steps. The joint network configured to receive as an input the hidden representation generated by the prediction network at each of the plurality of time steps and the high-order feature representation generated by the encoder at each of the plurality of time steps to generate a probability distribution for possible speech recognition hypotheses at each of a plurality of time steps. The alternation detector model configured to receive as an input the hidden representation generated by the prediction network at each of the plurality of time steps to generate corresponding probability distributions for whether a next subword unit corresponds to a pause and an end of speech.
[0024] The details of one or more embodiments 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]
[0025] [Figure 1] FIG. 1 is a schematic diagram of an example speech environment using an automatic speech recognition (ASR) system with a joint disfluency detection model for transcribing speech utterances. [Figure 2A] FIG. 1 is a schematic diagram of an exemplary automatic speech recognition ASR system integrating a disfluency detection model. [Figure 2B]FIG. 1 is a schematic diagram of an exemplary automatic speech recognition ASR system integrating a disfluency detection model. [Figure 2C] FIG. 1 is a schematic diagram of an exemplary automatic speech recognition ASR system integrating a disfluency detection model. [Diagram 3] FIG. 2C is a schematic diagram of an example combination and reduced prediction network of the automatic speech recognition ASR system of FIGS. 2A-2C. [Figure 4A] 1 shows exemplary long-form transcribed training utterances. [Figure 4B] 4B shows an example annotated transcribed training utterance for the long-form transcribed training utterance of FIG. 4A. [Diagram 5] 1 is a flowchart of an exemplary configuration of operations of a computer-implemented method for implementing a joint disfluency detection model within an automatic speech recognition ASR system. [Figure 6] 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
[0026] Like reference symbols in the various drawings indicate like elements. Many voice interaction applications, such as voice-activated digital assistants and dialog systems, use streaming automatic speech recognition (ASR) systems. However, to provide a natural, human-like conversational experience, an automatic speech recognition ASR system must accurately recognize speech and interaction patterns that resemble human conversational talk, exchanges, turn-taking, and the like. Problems with recognizing natural conversational speech include, but are not limited to, recognizing pauses and determining when a person has finished speaking. Even though many natural conversational speeches have disfluencies, most conventional automatic speech recognition ASR systems assume that disfluencies do not exist. For example, most conventional automatic speech recognition ASR systems assume fluent, one-off speech in which a person knows in advance what they want to say and therefore speaks without disfluencies. Exemplary disfluencies include, but are not limited to, pauses, thinking pauses, random pauses, hesitations, word lengthening (e.g., "onnn..."), filler pauses or words (e.g., "uh," "um"), repeated phrases, and behavioral changes. Because disfluencies may result in short or long pauses in speech that may create ambiguity during ASR, an ASR system may interrupt a person before they finish speaking by prematurely ending the utterance. For example, a person may begin an utterance by saying "Where can I get it" followed by a pause. In natural conversational speech, a pause may indicate that a person has not finished speaking. However, conventional ASR systems often respond with "Sorry, I didn't hear you," before the person has a chance to say the rest of what they intended to say, such as continuing by saying "I'm going to order Thai food." For natural conversational interaction, it is preferable for the ASR system to either respond with a confirming phrase such as "mmh" during the pause to indicate that it is waiting for the person to finish, or to simply allow the person to continue speaking and then wait for them to finish.Therefore, for natural conversational interaction, it is important that an automatic speech recognition (ASR) system accurately recognizes and processes disfluencies and end-of-speech events, and allows the system to respond as quickly as possible after the person has finished speaking by "holding the floor" by using disfluencies until the person has finished speaking.
[0027] Embodiments herein are directed to integrating an automatic speech recognition ASR system with a disfluency detection model configured and trained to detect disfluency and end-of-speech events that occur naturally in speech utterances of natural conversational interactions. An exemplary disfluency detection model is built on or integrated into an end-to-end (E2E) automatic speech recognition ASR model, such as a recurrent neural network-transformer (RNN-T) model. In an exemplary method, an automatic speech recognition ASR system receives a sequence of acoustic frames that characterize one or more utterances. For each of the multiple output steps, the encoder network of the automatic speech recognition ASR model generates a high-order feature representation of a corresponding acoustic frame in the sequence of acoustic frames, the predictive network of the automatic speech recognition ASR model generates a hidden representation of the corresponding sequence of non-whitespace symbols output by the final softmax layer of the automatic speech recognition ASR model, the first joint network of the automatic speech recognition ASR model (i.e., the disfluency detection joint network) receives the high-order feature representation and the hidden representation to generate a probability distribution for the corresponding time step corresponding to disfluency (e.g., pause) and end-of-speech events, and the second joint network of the automatic speech recognition ASR model (e.g., the word fragment joint network) receives the high-order feature representation and the hidden representation at the corresponding time step to generate a probability distribution for the speech recognition hypotheses that have a possibility at the corresponding time step.
[0028] 1 is a schematic diagram of an exemplary audio environment 100. In the audio environment 100, the way 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 voice data) from one or more users 104 in the audio environment 100. Here, streaming voice data may refer to voice utterances 106 by the user 104 that function as audible queries, commands to the device 10, or audible communications captured by the device 10. A voice-enabled system of the device 10 may process the queries or commands by answering the queries and / or causing the commands to be executed / accomplished by one or more downstream applications.
[0029] The user device 10 is associated with a user 104 and may correspond to any computing device capable of receiving voice 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, vehicle infotainment systems, Internet of Things (IoT) devices, vehicle infotainment systems, smart displays, smart speakers, etc. The user device 10 includes data processing hardware 12 and memory hardware 14 in communication with the data processing hardware 12. The memory hardware 14 stores instructions that, when executed on 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 comprising audio capture devices (e.g., microphones) 16, 16a for capturing and converting audio utterances 106 within the audio environment 100 into electrical signals, and audio output devices (e.g., speakers) 16, 16b for communicating audible audio signals (e.g., as audio data output 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, whereby one or more capture devices 16a in the array may be in communication with the audio system 16 rather than being physically resident on the user device 10.
[0030] In the voice environment 100, an automatic speech recognition (ASR) system 118 implementing a recurrent neural network-transducer (RNN-T) model 200 and a disfluency detection model 205 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 executing in a cloud computing environment) that communicates to the user device 10 via a network 40. The user device 10 and / or the remote computing device 60 also include a speech subsystem 108 configured to receive utterances 106 spoken by the user 104 and captured by the voice capture device 16a, thereby converting the utterances 106 into a corresponding digital format associated with input acoustic frames 110 that can be processed by the automatic speech recognition ASR system 118. In the illustrated example, the user is speaking each utterance 106, and the speech subsystem 108 converts the utterances 106 into corresponding audio data (e.g., acoustic frames) 110 for input to the automatic speech recognition ASR system 118. The RNN-T model 200 then receives as input, acoustic frames 110 corresponding to the utterance 106, and generates / predicts as output, a corresponding transcription 120 of the utterance 106. In the illustrated example, the RNN-T model 200 may perform streaming speech recognition to generate partial transcripts (e.g., streaming recognition results) 120a, 120b as a user speaks.
[0031] 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, 120a-120n of the utterance 106 to the user 104 of the user device 10, as well as one or more responses 121, 121a-121n to the queries and / or commands of the utterance 106. As described in more detail below, the user interface generator 107 may display the speech recognition results 120, 120a-n and the responses 121, 121a-n during or at different times. As shown, the user interface generator 107 may present the speech recognition results 120, 120a-n (e.g., transcripts) and the responses 121, 121a-n to represent an interaction / conversation between the user 104 and an interactive program or application (e.g., digital assistant application 50).
[0032] In some configurations, the transcript 120 output from the automatic speech recognition ASR system 118 is processed by a natural language processing / understanding (NLP / NLU) module, for example, executing on the user device 10 or the remote computing device 60, to execute the user command / query specified by the utterance 106. The digital assistant application 50 may provide an appropriate response 121 following execution of the user command / query specified by the utterance 106. Additionally or alternatively, a speech conversion system (not shown) (e.g., executing on any combination of the user device 10 or the remote computing device 60) may convert the transcript 120 and / or the response 121 into synthetic speech for audible output by the user device 10 and / or another device.
[0033] In the illustrated example, a user 104 interacts with a program or application (e.g., a digital assistant application 50) of a user device 10 that uses an automatic speech recognition ASR system 118. For example, FIG. 1 shows a digital assistant application 50 displaying an interactive digital assistant interface 18 on a screen 19 of the user device 10 to illustrate a natural conversational exchange of a user 104 communicating with the digital assistant application 50 and between the user 104 and the digital assistant application 50. In this example, the user 104 speaks a first portion 106a of an utterance 106 ("Where can I do it") during time 1, and then pauses during a second portion 106b of the utterance (represented by an ellipsis "...").
[0034] Continuing with the example, the RNN-T model 200 receives acoustic frames 110 corresponding to the utterance 106 as the user 104 speaks, and performs speech recognition on the acoustic frames 110 to generate a first speech recognition result 120a (i.e., "Where can I" (Where can I)) corresponding to the first portion 106a of the utterance 106. In the illustrated example, the disfluency detection model 205 detects that the acoustic frames 110 corresponding to the second portion 106b of the utterance 106 indicate a pause in the user's speech, rather than an end-of-speech event that would prematurely end the utterance. During time 2, the user interface generator 107 presents a representation of the first speech recognition result 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 letters are displayed on the screen 19 of the user device 10 as soon as they are spoken. Based on disfluency detection model 205 detecting the presence of a pause in second portion 106b, at time 3, digital assistant 50 responds with acknowledgment 121a ("Mhm") to indicate to user 104 that automatic speech recognition ASR system 118 and digital assistant 50 are waiting for user 104 to continue speaking.
[0035] Continuing with this example, when the user 104 begins speaking the third (remainder) portion 106c of the utterance 106 ("order Thai food") after the pause, the RNN-T model 200 generates the second speech recognition result 120b (i.e., "order Thai food") by performing speech recognition on the audio frames 110 corresponding to the remainder portion 106c of the utterance 106. When the user 104 finishes speaking the remainder portion 106c of the utterance 106, the disfluency detection model 205 detects an end-of-speech event, indicating that the utterance 106 is complete. During time 4, the user interface generator 107 is presenting a representation of the second speech recognition result 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 are displayed on the screen 19 of the user device 10 as soon as they are spoken. In particular, the automatic speech recognition ASR system 118 has triggered a microphone closing event and, by processing the transcript 120 (e.g., by an NLP / NLU module), executes the user command / query specified by the utterance 106 (e.g., perform a search for Thai restaurants) in response to the disfluency detection model 205 detecting the end-of-speech event. At time 5, the user interface generator 107 presents a response 121b to the query (i.e., "These Thai restaurants are nearby...") via the digital assistant interface 18.
[0036] FIG. 2A is a schematic diagram of an exemplary RNN-T model 200, 200a integrating a disfluency detection model 205 as a first joint network (i.e., disfluency detection joint network) 210 for detecting disfluencies in speech utterances that exhibit speech and interaction patterns similar to the speech, interaction, and / or turn-taking of a human conversation with a digital assistant. Problems with recognizing natural conversational speech include, but are not limited to, recognizing pauses and determining when a person has finished speaking. Exemplary disfluencies include, but are not limited to, pauses, thinking pauses, random pauses, hesitations, word lengthening (e.g., “um…”), filler pauses or words (e.g., “umm,” “hmm”), repeated phrases, and behavioral changes. These disfluencies, characterized by the absence of voice activity detected for a threshold period, can cause conventional automatic speech recognition ASR systems to prematurely terminate an utterance before a user has completed speaking the utterance. Such premature termination may result in the query being misinterpreted as something the digital assistant cannot process, thereby leading to user frustration, when the digital assistant interrupts to prompt the user to repeat the query.
[0037] As shown, the RNN-T model 200a includes an encoder network 220, a predictor / decoder network 300, a second joint network 240 (i.e., a word fragment joint network 240), and a final softmax output layer 250. The encoder network 220 (e.g., a speech encoder), which is roughly similar to an acoustic model (AM) in a conventional automatic speech recognition (ASR) system, generates a sequence of feature vectors.
[0038]
number
[0039] is received, and in the above formula,
[0040]
number
[0041] (e.g., acoustic frame 110 in FIG. 1), and at each time step
[0042]
number
[0043] The first step is to generate a high-level feature representation 224 (also commonly referred to as an acoustic representation), denoted as In the example shown, the prediction / decoder network 300, like the language model (LM), calculates the sequence of non-blank symbols output so far by the softmax layer 250.
[0044]
number
[0045] is a hidden representation of the probability distribution over whether the current time step corresponds to a pause or the end of a speech.
[0046]
number
[0047] (commonly known as dense representation or linguistic representation), where:
[0048]
number
[0049] represents the start symbol of a special sequence. FIG. 3 shows a sequence of non-empty symbols y , limited to the N previous non-empty symbols 252 a - 252 n output by a final softmax layer 250. u-n,…,y u-1 1 illustrates a prediction network 300 for an RNN-T model 200 that receives N. In some examples, N is equal to 2. In other examples, N is equal to 5, but this disclosure is non-limiting and N may be equal to any integer. The sequence of non-blank symbols 252a-n may represent a partial speech recognition result 120a, 120b (FIG. 1). 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, the multi-head attention mechanism 302 may use any number of heads. Notably, the multi-head attention mechanism 302 significantly improves performance while minimizing model size expansion. As described in more detail below, each head 302A-H has its own row of position vectors 308, and the outputs 318A-H are averaged by a head averaging module 322 instead of incurring an increase in model size by concatenating the outputs 318A-H from all heads.
[0050] Referring to the first head 302A of the multi-head attention mechanism 302, the head 302A uses a shared embedding matrix 304 to embed a sequence of non-empty symbols y received as input at corresponding time steps from the multiple time steps. ui-n ,…,y ui-1 For each non-whitespace symbol 301 in
[0051]
number
[0052] In particular, the shared embedding matrix 304 is shared across all heads of the multi-head attention mechanism 302, so that the other heads 302B-H all generate the same corresponding embedding 306 for each non-whitespace symbol. Head 302A also generates the sequence of non-whitespace symbols y u-n,…,y u-1 For each corresponding non-blank symbol in Aa~An 308, 308Aa~An (e.g.
[0053]
number
[0054] Each position vector PV 308 assigned to each non-blank symbol indicates a position in the history of the sequence of non-blank symbols (e.g., the N previous non-blank symbols output by the final softmax layer 250). For example, the first position vector PV Aa is assigned to the most recent position in the history, while the last position vector PV An is assigned to the last position in the history of the N previous non-empty symbols output by the final softmax layer 250. In particular, each of the embeddings 306 may include the same dimensionality (i.e., dimension size) as each of the position vectors PV 308.
[0055] A sequence of non-blank symbols 252a to 252n, y u-n ,…,y u-1 For each non-blank symbol 301 in , the corresponding embedding generated by the shared embedding matrix 304 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 308 Aa~An The second head 302B defines the position of the row of the position vector PV Ba~Bn 308 Ba~Bn , …, , the H-th head 302H has a position vector PV Ha~Hn 308 Ha~Hn Define another different line of
[0056] For each non-blank signal in the received sequence of non-blank symbols 252a-n, the first head 302A also weights the corresponding embedding 306, via the weighting layer 310, in proportion to the similarity between the corresponding embedding and the respective position vector PV 308 assigned thereto. In some examples, the similarity may include cosine similarity (e.g., cosine distance). In the example shown, the weighting layer 310 outputs a sequence of weighted embeddings 312, 312Aa-An, each associated with a corresponding embedding 306 weighted in proportion to the respective position vector PV 308 assigned thereto. Stated differently, the weighted embedding 312 output by the weighting layer 310 for each embedding 306 may correspond to a dot product between the embedding 306 and the respective position vector PV 308. The weighted embedding 312 may be interpreted as giving attention to an embedding in proportion to how similar the embedding is in position associated with its respective position vector PV 308. To accelerate computation speed, the prediction network 300 includes a non-recurrent layer, so that the sequence of weighted embeddings 312Aa-An are not concatenated but instead averaged by a weighted average module 316 to generate, as the output of the first head 302A, a weighted average 318A of the weighted embeddings 312Aa-An, represented as follows:
[0057]
number
[0058] In equation (1), h represents the index of the head 302, n represents the position in the context, and e represents the embedding dimension. Furthermore, in equation (1), H, N, and d e , with 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 to provide recurrent connections at each layer of the prediction network 300.
[0059] 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 sets of position vectors PV 308 defined by each head 302, the weighting layer 310 outputs a sequence of weighted embeddings 312Ba-Bn, 312Ha-Hn in each of the other heads 302B-H that is different from the sequence of weighted embeddings 312Aa-Aa in the first head 302A. The weighted average module 316 then generates a weighted average 318B-318H of each of the corresponding weighted embeddings 312 of the sequence of non-blank symbols as output from each of the other corresponding heads 302B-H.
[0060] 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 including SWISH may receive as an input an output 324 from the head averaging module 322 that corresponds to the average of the weighted averages 318A-H to generate as an output a projected output 328. A final layer normalization 330 normalizes the projected output 328 to produce a single embedding vector at a corresponding time step from multiple time steps.
[0061]
number
[0062] (i.e., a hidden representation). The prediction network 300 may provide a single embedding vector,
[0063]
number
[0064] Generates only In some configurations, the prediction network 300 does not implement a multi-head attention mechanism 302, but 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 the projection layer 326 and layer normalization 330 to produce a single embedding vector
[0065]
number
[0066] to provide. Returning to FIG. 2A, the word fragment joint network 240 extracts a single embedding vector from the prediction network 300.
[0067]
number
[0068] and receives the high-level feature representation
[0069]
number
[0070] The word fragment joint network 240 receives a probability distribution for the speech recognition hypotheses that are likely at the corresponding time step.
[0071]
number
[0072] For example, when the natural language is English, the set of output labels may include twenty-seven (27) symbols, e.g., one label for each of the 26 letters of the English alphabet, and one label specifying a space. Thus, the word fragment joint network 240 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, which may indicate a probability distribution over the set of output labels. In some cases, the output labels are graphemes (e.g., individual characters, and potentially punctuation and other symbols), but the set of output labels is not so limited. For example, the set of output labels may comprise word fragments and / or entire words in addition to or instead of graphemes. The word fragment joint network 240 may comprise a posterior probability value for each of the different output labels. Thus, when there are 100 distinct output labels representing different graphemes or other symbols, the output of the word fragment joint network 240 may be
[0073]
number
[0074] can have 100 distinct probability values, one for each output label. A probability distribution for possible speech recognition hypotheses
[0075]
number
[0076] denotes the probability of the speech recognition result 120 (FIG. 1). That is, the joint network 230 determines the probability distribution of the speech recognition result 120 by using a single embedding vector 350 based on the sequence of non-blank symbols 252. In other words, the word fragment joint network 240 generates a probability distribution 242 for the possible speech recognition hypotheses at each output step (e.g., time step). The probability distribution
[0077]
number
[0078] can then be used to select and assign scores to candidate orthographic elements (e.g., graphemes, word fragments, and / or words) in a beam search process (e.g., by a softmax layer 240) to determine the transcription 120.
[0079] The softmax layer 250 calculates the next output symbol predicted by the RNN-T model 200 at the corresponding output step.
[0080]
number
[0081] As a distribution
[0082]
number
[0083] Any technique may be used to select the output label / symbol that has the highest probability in the set of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 109, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
[0084] The first joint network (i.e., the disfluency detection joint network) 210 extracts the high-level feature representation output by the encoder network 220.
[0085]
number
[0086] and the single embedding vector output by the prediction network 300
[0087]
number
[0088] Based on the above, the first joint network generates a probability distribution for the corresponding time step corresponding to a disfluency (e.g., pause) or end of speech event. In other words, the first joint network generates a probability distribution for the pause <pause>(Pause) and the end of the story event <eos>(end of speech), and a set of values indicating the likelihood of occurrence of each of a set of predetermined output labels comprising:
[0089]
number
[0090] In the above formula,
[0091]
number
[0092] is the highest probability
[0093]
number
[0094] The joint disfluency detection network 210 detects a token 212 (e.g., <pause>Tokens and <eos>token). For example,
[0095]
number
[0096] When meets (e.g., exceeds) the end-of-story threshold, <eos>212 tokens have been issued,
[0097]
number
[0098] When meets (e.g., exceeds) the pause threshold, <pause>A token 212 is issued. The end-of-speech threshold and the pause threshold need not have the same value. In some examples, when an end-of-speech event is detected (e.g., the probability that the corresponding time step corresponds to the end of speech meets the end-of-speech threshold), a microphone end event is triggered by the user device 10, for example, by issuing an end-of-speech token 212 that causes the triggering of a microphone end event.
[0099] 1 and 2A, to ensure that the RNN-T 200a has the same speech recognition quality as the conventional RNN-T, the training system 130 (FIG. 1) trains the RNN-T 200 by using a two-stage training process. During the first stage, the training system 130 performs speech recognition by training the encoder network 220, the prediction network 300, and the word fragment joint network 240 on the speech recognition task. During the second stage, the training system 130 fixes and keeps the parameters of the encoder network 220, the prediction network 300, and the word fragment joint network 240 fixed while learning how to detect the presence of pauses and end-of-speech events by initializing and fine-tuning (e.g., training) the disfluency detection joint network 210. That is, the training system 130 trains the disfluency detection joint network 210 to learn how to predict pause and end-of-speech positions during speech. The training system 130 may generate labels (e.g., <pause>and <eos>) for a pause. <pause>A token is inserted and at the end of the utterance <eos>A token can be inserted.
[0100] For short utterances comprising a single voice query, the training data generator 140 <eos>Tokens are added to the end of each utterance for silent segments determined, for example, by using forced alignment. <pause>Although short utterances can be used to model speech-ending events and regular short pauses, they may not cover the broader range of possible disfluencies. <eos>Since only tokens are added to each end of speech, the joint disfluency detection network 210 does not add additional tokens after determining the first end of speech event in the utterance. <eos>It may learn to stop emitting tokens, which may cause problems with disfluency detection for longer utterances or utterances with multiple disfluencies.
[0101] Returning to FIG. 2A, the feature vectors input to the encoder network 220 are
[0102]
number
[0103] may include 80-dimensional log-Mel filter bank features formed by stacking three 25 millisecond (ms) acoustic frames with a 10 ms shift and downsampling to a 30 ms frame rate. In some examples, the encoder network 220 includes twelve 512-dimensional conformer layers. The conformer layers include a stack of causal convolutions with kernel size 15 and a left context attention layer with 8-head self-attention. Although the described encoder network 220 includes a stack of multi-head attention layers / blocks with self-attention including conformer layers / blocks (e.g., 12 conformer blocks), the disclosure is not limited in this manner. For example, the encoder network 220 may include a stack of transformer layers and / or any other type of multi-head attention layers / blocks. The encoder network 220 may include a series of multi-head self-attention layers, depthwise convolutional layers, and feedforward layers. Alternatively, the encoder network 220 may include multiple long-term memory (LSTM) layers in place of the multi-head attention layers / blocks.
[0104] The prediction network 300 may include a LTSM-based network having an embedding dimension of 320.
[0105]
number
[0106] Dimension
[0107]
number
[0108] may be set to 640. In some examples, the word fragment joint network 240 includes hidden units. Additionally or alternatively, the word fragment joint network 240 does not include a fully connected (FC) layer. Instead, the prediction network 300 may include a stack of transformer blocks or conformer blocks (or other types of multi-head attention blocks). The prediction network 300 may also be an embedding lookup table (e.g., a V2 embedding lookup table) to improve latency by outputting a looked-up sparse embedding instead of generating a hidden representation. In some implementations, the prediction network 300 is a stateless prediction network.
[0109] The word fragment joint network 240 and the prediction network 300 may collectively form an RNN-T decoder of the RNN-T model 200. In some implementations, a parameter coupling between the prediction network 300 and the word fragment joint network 240 is applied to further reduce the size of the RNN-T decoder, i.e., the prediction network 300 and the word fragment joint network 240. Specifically, the vocabulary size |V| and the embedding dimension d e Then the shared embedding matrix 304 in the prediction network is
[0110]
number
[0111] Meanwhile, the last hidden layer has a dimension size of d h The feedforward projection weights from the hidden layer to the output logits are
[0112]
number
[0113] Therefore, the feedforward layer corresponding to the last layer of the word fragment joint network 240 has a weight matrix [d h , |V|]. The prediction network 300 has an embedding dimension d e The size of the word fragment joint network 240 is the dimensionality of the last hidden layer d h By combining them, the feedforward projection weights of the word fragment joint network 240 and the shared embedding matrix 304 of the prediction network 300 can share the weights of all non-blank symbols via a simple transpose transformation. Since the two matrices share all their values, the RNN-T decoder only needs to store the values once in memory instead of storing two separate matrices. The embedding dimension d e The size of the hidden layer is d h By setting the embedding dimension d equal to the size of e We reduce the number of parameters, which is equal to the product of |V| and the vocabulary size |V|. This weight combination corresponds to a regularization technique.
[0114] FIG. 2B is a schematic diagram of an exemplary RNN-T model 200, 200b that integrates a disfluency detection model 205 as an acoustic-based alternation decoder 410 to calculate, at each corresponding time step (i.e., for each acoustic frame 222x(t), a probability distribution that the corresponding time step corresponds to a disfluency (e.g., pause) and an end-of-speech event. As shown, the RNN-T model 200b comprises the encoder network 220, the predictor / decoder network 300, the word fragment joint network 240, and the final softmax output layer 250 of the RNN-T model 200a of FIG. 2A, but replaces the disfluency detection joint network 210 with the acoustic-based alternation detection network 205. Details of the encoder network 220, the predictor / decoder network 300, the word fragment joint network 240, and the final softmax output layer 250 are described above with respect to FIG. 2A and FIG. 3.
[0115] The acoustic-based alternation detection network 410 calculates for each input feature vector at time step t
[0116]
number
[0117] For the input feature vector
[0118]
number
[0119] The high-level feature representation generated by the encoder network 220 for
[0120]
number
[0121] Based on the above, the acoustic-based alternation detection network 410 generates a probability distribution for which the corresponding time steps correspond to pauses and end-of-speech events. <pause>And the end of the story event <eos>and a set of values indicating the likelihood of occurrence of each of a set of predetermined output labels comprising: , and . The set of values may be a vector and may indicate a probability distribution over the set of output labels. The probability distribution providing the conditional probability of a pause and the conditional likelihood of an end-of-story event may be determined using the following formula:
[0122]
number
[0123] The permutation detection network 410 detects a token 412 (e.g., <pause>Tokens and <eos>token). For example,
[0124]
number
[0125] When meets (e.g., exceeds) the end-of-story threshold, <eos>Token 412 has been issued,
[0126]
number
[0127] When meets (e.g., exceeds) the pause threshold, <pause>A token 412 is issued. The end-of-speech threshold and the pause threshold need not have the same value. In some examples, when an end-of-speech event is detected (e.g., the probability that the corresponding time step corresponds to the end of speech meets the end-of-speech threshold), a microphone end event is triggered by the user device 10, for example, by issuing an end-of-speech token 412 that causes the triggering of a microphone end event.
[0128] By sharing the encoder network 220, the RNN-T 200a synchronizes speech recognition by the RNN-T decoder, i.e., the prediction network 300 and the word fragment joint network 240, with alternation detection by the acoustic-based alternation detection network 410, which helps ensure correct exchange of natural conversation input. Furthermore, since the alternation detection network 410 reuses the encoder network 220, it is not necessary to configure or have another separate encoder, which reduces computational complexity. Since delayed or slow disfluency detection may result in slow responses to queries and commands, some examples apply an emission normalization method (e.g., FastEmit) to the alternation detection network 410 to reduce the delay of disfluency detection. To ensure that the RNN-T 200b has the same speech recognition quality as a conventional RNN-T, the training system 130 (FIG. 1) trains the RNN-T 200b in two stages in a manner similar to that described above for the RNN-T 200a of FIG. 2A.
[0129] 2C is a schematic diagram of an exemplary RNN-T model 200, 200c that integrates the disfluency detection model 205 as a semantic-based alternation detection network 420 to calculate, at each corresponding time step, a probability distribution that the corresponding time step corresponds to a disfluency (e.g., pause) and an end-of-speech event. As shown, the RNN-T model 200b comprises the encoder network 220, the predictor / decoder network 300, the word fragment joint network 240, and the final softmax output layer 250 of the RNN-T model 200a of FIG. 2A, but replaces the disfluency detection joint network 210 with the acoustic-based alternation detection network 205. The details of the encoder network 220, the predictor / decoder network 300, the word fragment joint network 240, and the final softmax output layer 250 are described above with reference to FIG. 2A and FIG. 3.
[0130] The semantic-based reordering detection network 420 calculates, for each time step, the past sequence of output symbols output by the softmax layer 250.
[0131]
number
[0132] Based on the above, the semantics-based turn detection network 420 generates a probability distribution whose corresponding time steps correspond to disfluencies (e.g., pauses) and end-of-speech events. In other words, the semantics-based turn detection network 420 detects the pauses <pause>And the end of the story event <eos>and a set of values indicating the likelihood of occurrence of each of a set of predetermined output labels comprising: , and . The set of values may be a vector and may indicate a probability distribution over the set of output labels. The probability distribution providing the conditional probability of a pause and the conditional likelihood of an end-of-story event may be determined using the following formula:
[0133]
number
[0134] In some examples, the semantics-based alternation detection network 420 detects whether the next output symbol (e.g., subword unit) is <pause>and <eos>The semantics-based alternation detection network 420 includes a language model (LM) that determines the probability that a token 422 (e.g., <pause>Tokens and <eos>For example,
[0135]
number
[0136] When meets (e.g., exceeds) the end-of-story threshold, <eos>Token 422 has been issued,
[0137]
number
[0138] When meets (e.g., exceeds) the pause threshold, <pause>A token 422 is issued. The end-of-speech threshold and the pause threshold need not have the same value. In some examples, when an end-of-speech event is detected (e.g., the probability that the corresponding time step corresponds to the end of speech meets the end-of-speech threshold), a microphone-down event is triggered by the user device 10, for example, by issuing an end-of-speech token 422 that causes the triggering of a microphone-down event. To ensure that the RNN-T 200c has the same speech recognition quality as a conventional RNN-T, the training system 130 (FIG. 1) trains the RNN-T 200c in two stages in a similar manner as described above for the RNN-T 200a of FIG. 2A.
[0139] FIG. 4A illustrates an exemplary transcribed long-form training utterance 400. FIG. 4B illustrates an exemplary annotated transcribed training utterance 450 generated by the training data generator 140 for the transcribed long-form training utterance 500 of FIG. 4A. For long-form utterances (e.g., having multiple audio segments that are tens of seconds long and / or have more natural conversational audio input and exchange), the training data generator 140 determines silence segments 402, 402a-n, for example, by using forced alignment, and determines sentence boundaries based on the duration of silence. For example, the training data generator 140 may add a punctuation mark (e.g., punctuation marks 402a and 402b) to each of the short silent pauses. <pause>4. Label each of the tokens with a token (e.g., tokens 452a and 452b) and include at least a long silent pause at the beginning (e.g., silent pauses 402c and 402d). <eos>While labeling with tokens, the final silent pause (e.g., silent pause 402e) <eos>In some examples, silent pauses are determined to be short or long by comparing the duration of the silent pause to a predetermined threshold. For example, training data generator 140 may classify silent pauses that are below the predetermined threshold as "short" and silent pause durations that are longer than the predetermined threshold as "long." However, by labeling long silent pauses in this manner, training data generator 140 may classify some long silent pauses (e.g., silent pauses 402c and 402d) as "long." <eos>Therefore, the training data generator 140 may include silent pauses of any length (e.g., silent pause 402c) following hesitation words 412 (fillers, repeated phrases, etc.). <pause>In addition, the training data generator 140 may relabel the word with a token (e.g., token 452c) after the word lengthening 414. <pause>In some examples, the training data generator 140 determines a word lengthening if the final phoneme of a word or word fragment has a duration that meets a criterion (e.g., more than 10 standard deviations pre-computed for the phoneme).
[0140] 5 is a flowchart of an example arrangement of operations for a computer-implemented method 500 for detecting disfluencies and performing speech recognition. At operation 502, the method 500 generates acoustic frames (e.g., feature vectors) that characterize one or more utterances (e.g., utterance 106).
[0141]
number
[0142] ). At each of the multiple time steps, the method 500 performs operations 504, 506, 508, and 510. At operation 504, the method 500 generates, by the encoder network 220 of the speech recognition model (e.g., RNN-T200), a high-dimensional feature representation of a corresponding acoustic frame in the sequence of acoustic frames.
[0143]
number
[0144] The method includes a step of generating At operation 506, the method 500 continues by the predictive network 300 of the speech recognition model calculating the corresponding non-blank symbol output by the final softmax layer 250 of the speech recognition model.
[0145]
number
[0146] For a sequence of
[0147]
number
[0148] ). At operation 508, the method 500 includes generating probability distributions whose corresponding time steps correspond to pauses and ends of speech by a first joint network (e.g., a disfluency detection joint network) 210 of the speech recognition model receiving the high-level feature representation generated by the encoder network and the dense representation generated by the predictive network.
[0149] At operation 510, the method 500 continues by generating a probability distribution for the likely speech recognition hypotheses by a second joint network (e.g., a word fragment joint network) 240 of the speech recognition model.
[0150]
number
[0151] The method includes a step of generating 6 is a schematic diagram of an exemplary computing device 600 that can be used to implement the systems and methods described herein. The computing device 600 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computing devices. The components shown, their connections and relationships, and their functionality are for illustrative purposes only and are not intended to limit the implementation of the invention described and / or claimed herein.
[0152] Computing device 600 includes a processor 610 (i.e., data processing hardware) that can be used to implement data processing hardware 12 and / or 62, a memory 620 (i.e., memory hardware) that can be used to implement memory hardware 14 and / or 64, a storage device 630 (i.e., memory hardware) that can be used to implement memory hardware 14 and / or 64, a high-speed interface / controller 640 that connects to memory 620 and a high-speed expansion port 650, and a low-speed interface / controller 670 that connects to a low-speed bus 660 and storage device 630. Each of components 610, 620, 630, 640, 650, and 660 are interconnected using various buses and may be mounted on a common motherboard or in other manners as desired. The processor 610 can process instructions for execution within the computing device 600, comprising instructions stored in memory 620 or on storage device 630, to display graphical information for a graphical user interface (GUI) on an external input / output device, such as a display 680 coupled to a high speed interface 640. In other implementations, multiple processors and / or multiple buses may be used, along with multiple memories and types of memory, as appropriate. Also, multiple computing devices 600 may be connected, with each device providing a portion of the required operations (e.g., as a bank of servers, a group of blade servers, or a multi-processor system).
[0153] The memory 620 stores information non-transiently within the computing device 600. The memory 620 may be a computer-readable medium, a volatile memory unit(s), or a non-volatile memory unit(s). The non-transient memory 620 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by the computing device 600. 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., 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), and disk or tape.
[0154] The storage device 630 can provide mass storage for the computing device 600. In some implementations, the storage device 630 is a computer-readable medium. In various different implementations, the storage device 630 can be an array of devices comprising a floppy disk device, a hard disk device, an optical disk device, 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 comprises instructions that, when executed, perform one or more of the methods described above. The information carrier is a computer-readable or machine-readable medium, such as the memory 620, the storage device 630, or a memory on the processor 610.
[0155] The high-speed controller 640 manages the bandwidth-intensive operations of the computing device 600, while the low-speed controller 670 manages the less bandwidth-intensive operations. Such allocation of duties is merely exemplary. In some implementations, the high-speed controller 640 is coupled to the memory 620, to the display 680 (e.g., via a graphics processor or accelerator), and to a high-speed expansion port 650 that may accept various expansion cards (not shown). In some implementations, the low-speed controller 670 is coupled to the storage device 630 and to a low-speed expansion port 690. The low-speed expansion port 690, 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, pointing device, scanner, or a networking device, such as a switch or router, for example, via a network adapter.
[0156] The computing device 600 may be implemented in a number of different forms, as shown in the figure: For example, the computing device 600 may be implemented as a standard server 600a, or multiple times within a group of such servers 600a, as a laptop computer 600b, or as part of a rack server system 600c.
[0157] Various implementations of the systems and techniques described herein may 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 may be included in one or more computer programs executable and / or interpretable on a programmable system having 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.
[0158] 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.
[0159] These computer programs (also known as programs, software, software applications, or code) comprise 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 circuit (PLD)) used to provide machine instructions and / or data to a programmable processor comprising 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.
[0160] The process and logic flows described herein can be performed 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 process and logic flows can also be performed by special purpose logic circuits, such as 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 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 memory devices for storing instructions and data. In general, a computer also includes one or more mass storage devices for storing data, such as, for example, magnetic disks, magneto-optical disks, or optical disks, 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 types of non-volatile memory, media, and memory devices, including, by way of example, 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 the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0161] To provide for user interaction, one or more aspects of the present disclosure can be implemented on a computer having a display device for displaying information to a user, such as, for example, a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or touch screen, and optionally a keyboard and pointing device, such as, for example, a mouse or trackball, through which the user can provide input to the computer. Other types of devices can also be used to provide for user interaction. For example, feedback provided to the user can be any form of sensory feedback, such as, for example, visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form comprising acoustic input, speech input, or tactile input. Additionally, the computer can interact with the user by sending documents to a device used by the user, such as, for example, 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, and receiving documents from a device used by the user.
[0162] Although several implementations have been described, it is 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.< / pause> < / pause> < / eos> < / eos> < / eos> < / pause> < / pause> < / eos> < / eos> < / pause> < / eos> < / pause> < / eos> < / pause> < / pause> < / eos> < / eos> < / pause> < / eos> < / pause> < / eos> < / eos> < / pause> < / eos> < / eos> < / pause> < / eos> < / pause> < / pause> < / eos> < / eos> < / pause> < / eos> < / pause>
Claims
1. A computer-implemented method (500), when executed on data processing hardware (610), causing the data processing hardware (610) to: receiving a sequence of acoustic frames (110) characterizing one or more utterances (106); At each of a plurality of time steps, generating, by an encoder network (220) of a speech recognition model (200), a high-level feature representation (224) of a corresponding acoustic frame in the sequence of acoustic frames (110); generating, by a prediction network (300) of said speech recognition model (200), a hidden representation (350) of a corresponding sequence of non-blank symbols (252) output by a final softmax layer (250) of said speech recognition model (200); generating, by a first joint network (210) of the speech recognition model (200) receiving the high-level feature representation (224) generated by the encoder network (220) and the hidden representation (350) generated by the prediction network (300), a probability distribution for the corresponding time steps corresponding to pauses and ends of speech; A computer-implemented method (500) for performing operations comprising:
2. The operation includes: determining that the probability that the corresponding time step corresponds to an end of the story satisfies an end of story threshold; triggering a microphone end event in response to determining that the probability that the corresponding time step corresponds to an end of speech satisfies the end of speech threshold; Further comprising: The computer-implemented method (500) of claim 1.
3. The operation includes: determining that a probability that the corresponding time step corresponds to a pause satisfies a pause threshold; issuing a pause token (212) at the corresponding time step based on determining that the probability that the corresponding time step corresponds to the pause satisfies the pause threshold; Further comprising:
3. A computer-implemented method (500) according to claim 1 or 2.
4. The operations further include, at each of a plurality of output steps, generating, by a second joint network (240) of the speech recognition model (200), a probability distribution (242) over likely speech recognition hypotheses. A computer implemented method (500) according to any one of claims 1 to 3.
5. The speech recognition model (200) is trained by a two-stage training process, the two-stage training process comprising: a first stage of training the encoder network (220), the predictor network (300), and the second joint network (240) for a speech recognition task; a second stage of initializing and fine-tuning the first joint network (210) to learn how to predict pauses and end-of-speech locations in an utterance (106); Equipped with The computer-implemented method (500) of claim 4.
6. parameters of the encoder network (220), the prediction network (300), and the second joint network (240) are fixed during the second stage of the two-stage training process; The computer-implemented method (500) of claim 5.
7. The two-stage training process trains the speech recognition model (200) on a plurality of transcribed training utterances having labels indicating the pause locations and the end locations of speech.
7. A computer implemented method (500) according to claim 5 or 6.
8. The encoder network (220) comprises a stack of self-attention blocks. A computer implemented method (500) according to any one of the preceding claims.
9. The stack of self-attention blocks comprises a stack of conformer blocks or a stack of transformer blocks.
9. The computer-implemented method (500) of claim 8.
10. Generating the hidden representation (350) of the corresponding sequence of non-blank symbols (252) comprises: For each non-blank symbol in the sequence of non-blank symbols (252) received as input at the corresponding time step, generating, by the prediction network (300), embeddings (306) of the corresponding non-blank symbols using a shared embedding matrix (304); assigning, by said prediction network (300), each position vector (308) to a corresponding said non-blank symbol; weighting, by the predictive network (300), the embeddings (306) in proportion to the similarity between the embeddings (306) and each of the position vectors (308); generating a single embedding vector (305) for the corresponding time step as output from the prediction network (300), the single embedding vector (305) being based on a weighted average of the weighted embeddings, the single embedding vector (305) comprising the hidden representation (350); Equipped with A computer implemented method (500) according to any one of the preceding claims.
11. The prediction network (300) comprises a multi-head attention mechanism (302), the multi-head attention mechanism (302) sharing the shared embedding matrix (304) across each head (302A-H) of the multi-head attention mechanism (302).
11. The computer-implemented method (500) of claim 10.
12. A system (100), comprising: Data processing hardware (610); a memory hardware (620) in communication with the data processing hardware (610), the memory hardware (620) being operable when executed on the data processing hardware (610) to cause the data processing hardware (610) to: receiving a sequence of acoustic frames (110) characterizing one or more utterances (106); In each of the plurality of output steps, generating, by an encoder network (220) of a speech recognition model (200), a high-level feature representation (224) of a corresponding acoustic frame in the sequence of acoustic frames (110); generating, by a prediction network (300) of said speech recognition model (200), a hidden representation (350) of a corresponding sequence of non-blank symbols (252) output by a final softmax layer (250) of said speech recognition model (200); generating, by a first joint network (210) of the speech recognition model (200) receiving the high-level feature representation (224) generated by the encoder network (220) and the hidden representation (350) generated by the prediction network (300), a probability distribution whose corresponding time steps correspond to pauses and ends of speech; the memory hardware (620) performing operations comprising: The system (100) comprises:
13. The operation includes: determining that the probability that the corresponding time step corresponds to an end of the story satisfies an end of story threshold; triggering a microphone end event in response to determining that the probability that the corresponding time step corresponds to an end of speech satisfies the end of speech threshold; Further comprising: The system (100) of claim 12.
14. The operation includes: determining that a probability that the corresponding time step corresponds to a pause satisfies a pause threshold; issuing a pause token (212) at the corresponding time step based on determining that the probability that the corresponding time step corresponds to the pause satisfies the pause threshold; Further comprising: A system (100) according to claim 12 or 13.
15. The operations further include, at each of the plurality of output steps, generating a probability distribution (242) for likely speech recognition hypotheses by a second joint network (240) of the speech recognition model (200). A system (100) according to any one of claims 12 to 14.
16. The speech recognition model (200) is trained by a two-stage training process, the two-stage training process comprising: a first stage of training the encoder network (220), the predictor network (300), and the second joint network (240) for a speech recognition task; a second stage of initializing and fine-tuning the first joint network (210) to learn how to predict pauses and end-of-speech locations in an utterance (106); Equipped with The system (100) of claim 15.
17. parameters of the encoder network (220), the prediction network (300), and the second joint network (240) are fixed during the second stage of the two-stage training process; 17. The system (100) of claim 16.
18. The two-stage training process trains the speech recognition model (200) on a plurality of transcribed training utterances having labels indicating the pause locations and the end locations of speech.
18. A system (100) according to claim 16 or 17.
19. The encoder network (220) comprises a stack of self-attention blocks. A system (100) according to any one of claims 12 to 18.
20. The stack of self-attention blocks comprises a stack of conformer blocks or a stack of transformer blocks. A system (100) according to any one of claims 12 to 19.
21. Generating the hidden representation (350) of the corresponding sequence of non-blank symbols (252) comprises: For each non-blank symbol in the sequence of non-blank symbols (252) received as input at the corresponding time step, generating, by the prediction network (300), embeddings (306) of the corresponding non-blank symbols using a shared embedding matrix (304); assigning, by said prediction network (300), each position vector (308) to a corresponding said non-blank symbol; weighting, by the predictive network (300), the embeddings (306) in proportion to the similarity between the embeddings (306) and each of the position vectors (308); generating a single embedding vector (305) for the corresponding time step as output from the prediction network (300), the single embedding vector (305) being based on a weighted average of the weighted embeddings, the single embedding vector (305) comprising the hidden representation (350); Equipped with A system (100) according to any one of claims 12 to 20.
22. The prediction network (300) comprises a multi-head attention mechanism (302), the multi-head attention mechanism (302) sharing the shared embedding matrix (304) across each head (302A-H) of the multi-head attention mechanism (302).
22. The system (100) of claim 21.
23. An automatic speech recognition (ASR) model (200) of natural conversation, the automatic speech recognition ASR model (200) comprising: An encoder network (220), receiving as input a sequence of acoustic frames (110) characterizing one or more utterances (106); At each of a plurality of time steps, generate a high-level feature representation (224) of a corresponding acoustic frame in the sequence of acoustic frames (110). The encoder network (220) configured as follows: A prediction network (300), By receiving as input the sequence of non-blank symbols (252) output by the final softmax layer (250), At each of a plurality of said time steps, generate a hidden representation (350). The prediction network (300) configured as follows: A first joint network (210), receiving as input the hidden representation (350) generated by the prediction network (300) at each of a plurality of said time steps and the high-level feature representation (224) generated by the encoder network (220) at each of a plurality of said time steps; At each of a plurality of said time steps, a probability distribution is generated where the corresponding said time step corresponds to a pause and an end of speech. The first joint network (210) configured as follows: An automatic speech recognition (ASR) model (200).
24. The automatic speech recognition (ASR) model (200) triggers a microphone end event based on a probability that the corresponding time step corresponds to an end of speech that satisfies a threshold.
24. The automatic speech recognition ASR model (200) of claim 23.
25. receiving as input the hidden representation (350) generated by the prediction network (300) at each of a plurality of said time steps and the high-level feature representation (224) generated by the encoder network (220) at each of a plurality of said time steps; generating a probability distribution for possible speech recognition hypotheses at each of a plurality of said time steps; a second joint network (240) configured to:
25. An automatic speech recognition ASR model (200) according to claim 23 or 24.
26. the encoder network (220), the predictor network (300), and the second joint network (240) are trained on a speech recognition task during a first training phase; After the first training phase, the first joint network (210) is initialized and fine-tuned while the encoder network (220), the prediction network (300), and the second joint network (240) are fixed to learn how to predict pauses and end-of-speech positions in an utterance (106).
26. The automatic speech recognition ASR model (200) of claim 25.
Citation Information
Patent Citations
Joint Endpointing And Automatic Speech Recognition
US20200335091A1
Cited By
Method for detecting verbal disfluency based on multimodal and window attention mechanisms
JP7886588B1
