Joint Unsupervised and Supervised Training (JUST) for Multilingual Automatic Speech Recognition
The joint unsupervised and supervised training framework addresses overfitting and language imbalance issues in ASR models by integrating unsupervised and supervised losses, enhancing generalization and performance across languages without pre-training checkpoints.
Patent Information
- Application Number
- JP2024520856
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-06
- Filing Date
- 2022-09-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-06
AI Technical Summary
Deep learning-based automatic speech recognition (ASR) models tend to overfit training data, leading to insufficient generalization to unseen data, especially when training datasets are limited, and the selection of pre-trained checkpoints is challenging, particularly for multilingual models with language imbalances.
A joint unsupervised and supervised training (JUST) framework that combines unsupervised and supervised losses to train ASR models, using a feature encoder, quantizer, contrastive net, and masked language modeling to generate latent speech representations and predict speech recognition hypotheses, eliminating the need for pre-training checkpoints and addressing overfitting.
The JUST framework enhances the generalization of ASR models by utilizing unlabeled and labeled data effectively, reducing the risk of forgetting previously learned representations and improving performance across multiple languages without the need for pre-training selection.
Smart Images

Figure 2024538019000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to joint unsupervised and supervised training of multilingual automatic speech recognition (ASR). [Background technology]
[0002] Automatic speech recognition (ASR), the process of taking audio input and transcribing it into text, is an important technology used in mobile and other devices. In general, ASR attempts to take audio input (e.g., a spoken utterance) and transcribe the audio input into text to provide an accurate transcription of what a person said. Based on the continuous development of deep neural networks, modern ASR models are continuously improving their performance in both accuracy (e.g., low word error rate (WER)) and latency (e.g., delay between user utterance and transcription). Summary of the Invention [Problem to be solved by the invention]
[0003] However, one of the challenges in developing a deep learning-based automatic speech recognition ASR model is that the parameters of the automatic speech recognition ASR model tend to overfit to the training data, which makes it difficult for the automatic speech recognition ASR model to generalize to unseen data if the training data is not extensive enough. As a result, training the automatic speech recognition ASR model with a larger training data set improves the accuracy of the automatic speech recognition ASR model. The amount of training data used to train the automatic speech recognition ASR model can be increased by incorporating unlabeled and labeled training data. [Means for solving the problem]
[0004] One aspect of the present disclosure provides a joint unsupervised and supervised training (JUST) framework for training a multilingual automatic speech recognition (ASR) model. The joint unsupervised and supervised training JUST framework includes a feature encoder configured to receive as input audio features corresponding to speech utterances and generate a latent speech representation at each of a plurality of time steps. The joint unsupervised and supervised training JUST framework also includes a quantizer configured to receive as input the latent speech representation generated by the feature encoder at each of the plurality of time steps and generate a target quantized vector token and a target token index for the corresponding latent speech representation generated by the feature encoder at each of the plurality of time steps. Here, the target token index maps the corresponding latent speech representation to a target quantized vector token stored in a codebook. The unsupervised and supervised joint training JUST framework also includes a contrastive net configured to receive as input a latent speech representation generated by a feature encoder at each of a plurality of time steps after masking a subset of the latent speech representations, thereby generating a contrastive context vector for a corresponding unmasked or masked latent speech representation at each of the plurality of time steps, and deriving a contrastive self-supervised loss based on the corresponding contrast context vector and a corresponding target quantization vector token generated by a quantizer for the corresponding latent speech representation at each of the plurality of time steps.The unsupervised and supervised joint training JUST framework also includes a masked language modeling (MLM) module configured to receive as input a contrast context vector generated by a contrast net at each of a plurality of time steps to generate a high-level context vector at each of a plurality of time steps, and to learn to predict, for each high-level context vector, a target token index at a corresponding time step by using a cross-entropy loss based on a target token index generated by a quantizer at the corresponding time step. The unsupervised and supervised joint training JUST framework also includes a decoder configured to receive as input the high-level context vector generated by the masked language modeling MLM module at each of a plurality of time steps to predict a speech recognition hypothesis for the utterance. Here, the unsupervised and supervised joint training JUST framework trains a multilingual automatic speech recognition (ASR) model with an unsupervised loss based on a self-supervised loss contrasted with a cross-entropy loss, and a supervised loss based on a predicted speech recognition hypothesis and a ground truth transcription of the utterance.
[0005] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, the feature encoder comprises two convolutional neural network (CNN) blocks. In some examples, masking the subset of latent speech representations comprises randomly replacing each latent speech representation in the subset of latent speech representations with a corresponding random vector. The contrastive self-supervised loss derived by the contrastive net may be further based on K negative samples / distractors uniformly sampled from target quantized vector tokens stored in a codebook that correspond to the masked latent speech representations from the masked subset of latent representations (latent speech representations).
[0006] In some embodiments, the supervised loss is further based on an entropy-based diversity loss associated with the codebook. The multilingual automatic speech recognition ASR model is trained by training utterances spoken in a plurality of different languages. In some examples, training the multilingual automatic speech recognition ASR model comprises training the multilingual automatic speech recognition ASR model without prior pre-training. In other examples, training the multilingual automatic speech recognition ASR model comprises fine-tuning the multilingual automatic speech recognition ASR model from a pre-trained checkpoint. In some embodiments, training the multilingual automatic speech recognition ASR model comprises jointly training the multilingual automatic speech recognition ASR model with unsupervised and supervised losses. The supervised loss may include a recurrent neural network transducer (RNN-T) loss.
[0007] Another aspect of the present disclosure provides a system comprising data processing hardware and memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations comprise receiving audio features corresponding to a speech utterance and generating a latent speech representation based on the audio features at each of a plurality of time steps. The operations also comprise generating a target quantization vector token and a target token index for the corresponding latent speech representation at each of the plurality of time steps. The target token index maps the corresponding latent speech representation to a target quantization vector token stored in a codebook. The operations also comprise generating a contrast context vector for the corresponding unmasked or masked latent speech representation at each of the plurality of time steps. The operations also comprise deriving a contrastive self-supervised loss based on the corresponding contrast vector and the corresponding target quantization vector token at each of the plurality of time steps. The operations also include generating a high-level context vector based on the contrast context vector at each of a plurality of time steps, and for each high-level context vector, learning to predict a target token index at a corresponding time step by using a cross-entropy loss based on the target token index. The operations also include predicting a speech recognition hypothesis for the utterance based on the high-level context vector, and training a multilingual automatic speech recognition (ASR) model using an unsupervised loss based on the contrastive self-supervised loss and the cross-entropy loss, and a supervised loss based on the predicted speech recognition hypothesis and a ground truth transcription of the utterance.
[0008] Implementations of the present disclosure may include one or more of the following optional features. In some implementations, generating a latent speech representation comprises generating a latent speech representation at each of a plurality of time steps by a feature encoder. The feature encoder comprises two convolutional neural network (CNN) blocks. The operations further comprise masking the subset of latent speech representations by randomly replacing each latent speech representation in the subset of latent speech representations with a corresponding random vector. In some examples, the symmetric self-supervised loss is further based on K negative samples / distractors uniformly sampled from a target quantized vector token stored in a codebook that correspond to a masked latent speech representation from the masked subset of latent speech representations.
[0009] In some embodiments, the unsupervised loss is further based on an entropy-based diversity loss associated with the codebook. The multilingual automatic speech recognition ASR model may be trained by training utterances spoken in a plurality of different languages. In some examples, training the multilingual automatic speech recognition ASR model comprises training the multilingual automatic speech recognition ASR model without prior pre-training. Training the multilingual automatic speech recognition ASR model may include fine-tuning the multilingual automatic speech recognition ASR model from a pre-trained checkpoint. In some embodiments, training the multilingual automatic speech recognition ASR model comprises jointly training the multilingual automatic speech recognition ASR model with unsupervised loss and supervised loss. In some examples, the supervised loss comprises a recurrent neural network transducer (RNN-T) loss.
[0010] 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]
[0011] [Figure 1] FIG. 1 is a schematic diagram of an example of a voice recognition system. [Diagram 2] FIG. 1 is a schematic diagram of a recurrent neural network transducer (RNN-T) model architecture. [Figure 3A] FIG. 2 is a schematic diagram of an example of a training process for training a speech recognition model. [Figure 3B] FIG. 2 is a schematic diagram of an example of a training process for training a speech recognition model. [Figure 4] 4 is a flowchart illustrating an example sequence of operations for a method of jointly training an automatic speech recognition model using unsupervised and supervised training. [Diagram 5] FIG. 1 is a schematic diagram of an example of a computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Like reference symbols in the various drawings indicate like elements. The use of pre-trained automatic speech recognition (ASR) models has been demonstrated to be an effective method for learning general latent representations from large-scale unlabeled training data. Pre-training an ASR model significantly reduces the training complexity of downstream fine-tuning. Here, fine-tuning refers to performing supervised training on a pre-trained ASR model using a small labeled training dataset since the ASR model has already been pre-trained using unlabeled training data. Thus, after the ASR model is pre-trained, the pre-trained ASR model can be trained using only a smaller and / or less diverse labeled training dataset (i.e., fine-tuning training). In particular, fine-tuning a pre-trained ASR model using a smaller labeled training dataset can achieve comparable (or better) performance than an ASR model trained using a larger and / or more diverse labeled training dataset without pre-training.
[0013] Pre-training of automatic speech recognition (ASR) models typically involves a two-stage approach. In the first stage, the automatic speech recognition (ASR) model learns general latent speech representations by training using a self-supervised loss derived from unlabeled training data. Then, in the second stage, the automatic speech recognition (ASR) model fine-tunes the training based on the supervised loss. Here, since the automatic speech recognition (ASR) model has already been pre-trained using unlabeled training data, the second stage of training only requires a small set of labeled training data (i.e., audio data with corresponding labeled transcriptions). Although this two-stage training approach has proven successful for sequence modeling, there are some issues with this approach. For example, the pre-trained model is susceptible to catastrophic forgetting. That is, the pre-trained model may forget the latent speech representations that were previously learned during the first stage of training using unlabeled training data. In other words, training an automatic speech recognition ASR model using supervised losses in the second stage overwrites the latent speech representations learned in the first stage training, which may reduce any benefits gained by pre-training an automatic speech recognition ASR model in the first stage. Forgetting previously learned latent speech representations is especially common when the labeled training dataset is large.
[0014] Another problem with the two-stage training approach is the selection of the pre-trained checkpoint. The pre-trained checkpoint is the point where the pre-training (i.e., first stage) of the automatic speech recognition ASR model ends and the fine-tuning training (i.e., second stage) begins. Thus, the pre-trained checkpoint varies based on the amount of pre-training the automatic speech recognition ASR model undergoes. In particular, the problem is determining when to stop the pre-training and start the fine-tuning training. In particular, too much pre-training may actually degrade the performance of the automatic speech recognition ASR model. On the other hand, too little pre-training may also degrade the performance of the automatic speech recognition ASR model. Moreover, for multilingual automatic speech recognition ASR models, the problem of selecting the pre-trained checkpoint is even more critical because the multilingual training dataset is often unbalanced between different languages.
[0015] Therefore, embodiments herein are directed to training an automatic speech recognition (ASR) model by using a joint unsupervised and supervised training (JUST) process. The joint unsupervised and supervised training JUST process may train an automatic speech recognition ASR model from scratch (i.e., an automatic speech recognition ASR model without any pre-training) or a pre-trained automatic speech recognition ASR model from a pre-trained checkpoint. Furthermore, the joint unsupervised and supervised training JUST process may train a monolingual or multilingual automatic speech recognition ASR model. As will be apparent, the joint unsupervised and supervised training JUST process trains an automatic speech recognition ASR model by using unsupervised losses derived from cross-entropy loss and self-supervised loss, and supervised losses derived from predicted speech recognition hypotheses and ground truth transcriptions.
[0016] 1 illustrates an automatic speech recognition (ASR) system 100 that implements an automatic speech recognition ASR model 200 that resides on a user device 102 of a user 104 and / or on a remote computing device 201 (e.g., one or more servers of a distributed system running in a cloud computing environment) that communicates to the user device 102. Although the user device 102 is illustrated as a mobile computing device (e.g., a smartphone), the user device 102 may correspond to any type of computing device, such as, but not limited to, a tablet device, a laptop / desktop computer, a wearable device, a digital assistant device, a smart speaker / display, a smart appliance, an in-vehicle infotainment system, or an Internet of Things (IoT) device, and includes data processing hardware 111 and memory hardware 113.
[0017] The user device 102 includes an audio subsystem 108 configured to receive utterances 106 spoken by a user 104 (e.g., the user device 102 may include one or more microphones for recording the utterances 106) and convert the utterances 106 into a corresponding digital format associated with input acoustic frames (i.e., audio features) 110 that can be processed by the automatic speech recognition ASR system 100. In the illustrated example, the user speaks each utterance 106 in the natural language of English for the phrase "What is the weather in New York City?", so that the audio subsystem 108 converts the utterances 106 into corresponding acoustic frames 110 for input to the automatic speech recognition ASR system 100. The automatic speech recognition ASR model 200 then receives the acoustic frames 110 corresponding to the utterances 106 as input to generate / predict a corresponding transcription 120 (e.g., recognition result / hypothesis) of the utterance 106 as output. In the illustrated example, the user device 102 and / or the remote computing device 201 also execute a user interface generator 107 configured to present a representation of a transcription 120 of the utterance 106 to the user 104 of the user device 102. In some configurations, the output transcription 120 from the automatic speech recognition ASR system 100 is processed by, for example, a natural language understanding (NLU) module executing on the user device 102 or the remote computing device 201 to execute a user command. Additionally or alternatively, a text-to-speech system (e.g., executing on any combination of the user device 102 or the remote computing device 201) may convert the transcription into synthetic speech to be output audibly on another device. For example, the original utterance 106 may correspond to a message the user 104 is sending to a friend, in which the transcription 120 is converted into synthetic speech to be output audibly for the friend to hear the message conveyed in the original utterance 106.
[0018] Referring to FIG. 2, an exemplary automatic speech recognition ASR model 200 may be a frame alignment-based transducer model 200 comprising a recurrent neural network transducer (RNN-T) model architecture compliant with delay constraints associated with interactive applications. The use of the RNN-T model architecture is exemplary, and the frame alignment-based transducer model 200 may include other architectures, such as transformer transducer, conformer transducer, and conformer encoder model architectures, among others. Because the RNN-T model 200 has a small computational footprint and utilizes less memory requirements than conventional automatic speech recognition ASR architectures, the RNN-T model architecture is suitable for performing speech recognition entirely on the user device 102 (e.g., no communication with a remote server is required). The RNN-T model 200 comprises an encoder network 210, a prediction network 220, and a collaboration network 230. The encoder network 210, roughly similar to an acoustic model (AM) in a conventional automatic speech recognition (ASR) system, comprises a recurrent network of stacked self-attention layers (e.g., conformer or transformer layers) or stacked long short-term memory (LSTM) layers. For example, the encoder network 210 may be configured to recognize a sequence of d-dimensional feature vectors (e.g., the acoustic frame 110 (FIG. 1)) x=(x1, x2, ..., x T ), in the formula x t ∈R d (R is a white letter) to generate a high-level feature representation at each output step. This high-level feature representation is
[0019]
number
[0020] It is written as follows. Similarly, the prediction network 220 is also an LSTM network, and like the language model (LM), it is calculated based on the sequence of non-blank symbols y0, ..., y ui-1 , as a dense representation
[0021]
number
[0022] Finally, in the RNN-T model architecture, the representations already generated by the encoder network 210 and the prediction / decoder network 220 are combined by the joint network 230. The prediction network 220 may be replaced by an embedding lookup table to improve latency by outputting a looked-up sparse embedding instead of processing a dense representation. The joint network 230 then calculates the distribution over the next output symbol,
[0023]
number
[0024] In other words, the collaborative network 230 generates a probability distribution of possible speech recognition hypotheses at each output step (e.g., time step), where a "possible speech recognition hypothesis" corresponds to a set of output labels, each representing a symbol / character of a specified natural language. For example, if the natural language is English, the set of output labels may include 27 symbols, one label for each of the 26 letters of the English alphabet, one label for space, etc. The collaborative network 230 may therefore output a set of values indicating the probability of occurrence of each of a given set of output labels. This set of values may be a vector, indicating a probability distribution over the set of output labels. In some cases, the output labels are graphemes (e.g., individual characters, as well as potentially punctuation and other symbols), although the set of output labels is not so limited. For example, the set of output labels may comprise word pieces and / or entire words in addition to or instead of graphemes. The output distribution of the collaborative network 230 may comprise 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 y i may comprise 100 different probability values, one for each output label. The probability distributions may then be used to determine the transcription 120 by selecting and assigning scores to candidate orthographic elements (e.g., graphemes, wordpieces, and / or words) in a beam search process (e.g., by a softmax layer 240).
[0025] The softmax layer 240 may employ any technique to select the output label / symbol with the highest probability in the distribution as the next output symbol predicted by the RNN-T model 200 at the corresponding output step. In this way, the RNN-T model 200 does not make any conditional independence assumptions, and the prediction of each symbol is conditioned not only on the acoustics but also on the sequence of previously output labels. The RNN-T model 200 assumes that the output symbols are independent of future acoustic frames 110, which allows the RNN-T model to be employed in a streaming manner.
[0026] In some examples, the encoder network 210 of the RNN-T model 200 includes a stack of self-attention layers / blocks, such as conformer blocks, where each conformer block includes a series of multi-head self-attention, depthwise convolution, and feedforward layers. The encoder network 210 may include LSTM layers instead of self-attention layers / blocks.
[0027] The prediction network 220 has two 2048-dimensional LSTM layers, each followed by a 640-dimensional projection layer. Alternatively, the prediction network 220 may include a stack of transformer or conformer blocks, or an embedded lookup table, instead of an LSTM layer. Finally, there may be 640 hidden units in the joint network 230. The softmax layer 240 may consist of a unified word chunk or grapheme set that is generated by using all unique word chunks or graphemes in multiple training datasets.
[0028] 3A and 3B show an example of a training process 300 of the joint unsupervised and supervised training JUST for training the automatic speech recognition ASR model 200 (FIG. 2). The automatic speech recognition ASR model 200 may be a multilingual automatic speech recognition ASR model or a monolingual automatic speech recognition ASR model. In some embodiments, the training process 300 of the example joint unsupervised and supervised training JUST (also referred to simply as "training process 300") trains an untrained automatic speech recognition ASR model 200. That is, the training process 300 trains an automatic speech recognition ASR model 200 that has not yet been pre-trained. In another example, the training process 300 trains a pre-trained automatic speech recognition ASR model 200 from a pre-trained checkpoint. Here, since the automatic speech recognition ASR model 200 has already been pre-trained, the training process 300 fine-tunes the pre-trained automatic speech recognition ASR model from the pre-trained checkpoint.
[0029] The training process 300 may train the automatic speech recognition ASR model 200 by using available training data comprising a set of untranscribed speech utterances (i.e., unlabeled training data) 302 and a set of transcribed speech utterances (i.e., labeled training data) 304. Each untranscribed speech utterance 302 includes audio-only data (i.e., unpaired data), so that the untranscribed speech utterance 302 is not paired with any corresponding transcription. Meanwhile, each transcribed speech utterance 304 includes a corresponding ground truth transcription 306 (i.e., paired data) that is paired with a corresponding phonetic representation of the transcribed speech utterance 304. Furthermore, the set of untranscribed speech utterances 302 and the set of transcribed speech utterances 304 may each include either a non-synthetic phonetic representation, a synthetic phonetic representation that has been generated by a text-to-speech (TTS) system using a text utterance (not shown), or a combination thereof. In some examples, the set of untranscribed speech utterances 302 and the set of transcribed speech utterances 304 each include utterances spoken in multiple different languages for training a multilingual automatic speech recognition ASR model.
[0030] For clarity, the training process 300 includes an unsupervised loss portion 300a (FIG. 3A) and a supervised loss portion 300b (FIG. 3B). The training process 300 trains the automatic speech recognition ASR model 200 based on the unsupervised loss 355 (FIG. 3A) from the unsupervised loss portion 300a and the supervised loss 365 (FIG. 3B) from the supervised loss portion 300b. In some examples, the training process 300 trains the automatic speech recognition ASR model 200 by jointly using the unsupervised loss 355 and the supervised loss 365.
[0031] 3A and 3B, both the unsupervised loss portion 300a and the supervised loss portion 300b include a feature encoder 311, a masking module 215, a contrast net 320, and a masked language modeling (MLM) module 330. Here, the training process 300 (i.e., the unsupervised loss portion 300a and the supervised loss portion 300b) can use training data comprising a set of untranscribed speech utterances 302, a set of transcribed speech utterances 304, and / or a combination thereof (not shown). In another example, the unsupervised loss portion 300a trains the automatic speech recognition ASR model 200 using the untranscribed speech utterances 302, and the supervised loss portion 300b trains the automatic speech recognition ASR model 200 using the transcribed speech utterances 304.
[0032] The feature encoder 311 receives as input an input audio feature / vector corresponding to one of the untranscribed speech utterances 302 or one of the transcribed speech utterances 304.
[0033]
number
[0034] , (e.g., Mel-frequency spectrograms such as acoustic frame 110 in FIG. 1 ), where L represents the original length of the training speech utterance. The sequence of input audio features / vectors is associated with one of the untranscribed speech utterances 302 or one of the transcribed speech utterances 304. After receiving the sequence of input audio features / vectors, the feature encoder 311 generates as output a latent speech representation
[0035]
number
[0036] 212, where each of the latent speech representations 212 corresponds to one of the untranscribed speech utterances 302 or one of the transcribed speech utterances 304. In some implementations, the feature encoder 311 includes two convolutional neural network (CNN) blocks (e.g., two convolutional layers), each having a filter size of 3×3 and a stride of (2, 2). In these implementations, a first of the two CNN blocks includes 128 channels and a second of the two CNN blocks includes 32 channels. In other implementations, the feature encoder 311 includes a subsampling block that reduces the feature dimensions and sequence length by a factor of four.
[0037] The latent speech representations 212 output from the feature encoder 311 are sent to a masking module 215, which randomly selects a portion of the latent speech representations 212 and replaces it with a trained feature vector shared among all masked time steps to provide the corresponding masked latent speech representations 212, 212m. Alternatively, the corresponding masked latent speech representations 212m can be generated by replacing the randomly selected latent speech representations 212 with a random feature vector. In some examples, the masking module 215 masks the randomly selected latent speech representations 212 by randomly sampling a percentage p of all time steps T starting from an index without replacement, and then masking the following M consecutive time steps from all sample indexes. This may result in some spans overlapping. Thus, the masking module 215 masks only a subset of the entire set of latent speech representations 212, resulting in a subset of masked latent speech representations 212m and a subset of unmasked latent speech representations 212, 212u.
[0038] The contrastive net 320 is configured to receive as input the latent speech representations 212 generated by the feature encoder 311 at each of the multiple time steps after masking the subset of latent speech representations 212m. In other words, the contrastive net 320 receives both the subset of masked latent speech representations 212m and the subset of unmasked latent speech representations 212u. The contrastive net 320 then generates a contrast context vector of the corresponding unmasked latent speech representation 212u or the corresponding masked latent speech representation 212m at each of the multiple time steps.
[0039]
number
[0040] 322. The control net 320 may include a stack of conformer blocks, each with multi-head self-attention, depthwise convolution, and feedforward layers. For example, the control net 320 includes eight conformer blocks, each with a hidden dimension of 1024, eight attention heads, and a convolution kernel of size 5.
[0041] 3A , in some implementations, the unsupervised loss portion 300a includes a quantizer 310 that also receives the latent speech representation 212. In particular, the quantizer 310 is configured to receive as input the latent speech representation 212 generated by the feature encoder 311 at each of a plurality of time steps, and to generate as output, at each of the plurality of time steps, a target quantized vector token 312 and a target token index 314 for the corresponding latent speech representation 212 generated by the feature encoder 311. In this manner, the quantizer 310 uses the masking-free latent speech representation 212 to quantize the target quantized vector token (q i ) 312 and the target token index (y i) 314, where quantizer 310 produces
[0042]
number
[0043] The quantizer 310 generates target quantized vector tokens 312 according to the above. The quantizer 310 summarizes all latent speech representations 212 into a representative target quantized vector token (i.e., a discriminative speech token) 312. The representative target quantized vector tokens 312 generated by the quantizer 310 represent a finite set of representative target quantized vector tokens called a codebook 315. The codebook 315 is stored in the quantizer 310, and V represents the size of the codebook 315. The target token index 314 maps the corresponding latent speech representation 212 to each one of the target quantized vector tokens 312 stored in the codebook 315. Furthermore, all the representative target quantized vector tokens 312 in the codebook 315 are enabled to be learned during the training process 300.
[0044] The unsupervised loss portion 300a relies on a codebook 315 to represent both positive and negative training examples. Thus, the training process 300 calculates an entropy-based diversity loss L associated with the codebook 315. d In other words, the training process 300 promotes uniform use of the V entries of each codebook (G) 315, thereby increasing the use of representative target quantized vector tokens 312 in the codebook 315 across the entire batch of training utterances, which is represented by
[0045]
number
[0046] , which maximizes the entropy of the softmax distribution averaged over the codebook entries of
[0047]
number
[0048] In some examples, the training process 300 uses a single codebook 315 rather than multiple codebooks 315. The masked language modeling MLM module 330 receives as input the contrast context vector 322 generated by the contrast net 320 at each of the multiple time steps, and calculates a high-level context vector at each of the multiple time steps.
[0049]
number
[0050] That is, the masked language modeling MLM module 330 generates high-level context vectors 334 by extracting high-level contextualized speech representations from the contrast context vectors 322. Each high-level context vector 334 represents a target token index prediction generated by a linear layer. The masked language modeling MLM module 330 may include a stack of 16 conformer blocks, each with 1024 hidden dimensions, 8 attention heads, and a convolution kernel of size 5.
[0051] In some embodiments, the unsupervised loss portion 300a includes an unsupervised loss module 350 that derives an unsupervised loss 355. The unsupervised loss module 350 may be on the contrast net 320 (not shown), on the masked language modeling MLM module 330, or may be a separate module (e.g., not present in either the contrast net 320 or the masked language modeling MLM module 330). The unsupervised loss module 350 receives the contrast context vector 322 and the target quantization vector token 312. For each latent speech representation 212, the unsupervised loss module 350 derives a contrastive self-supervised loss (355, 355a) based on the corresponding contrast context vector 322 from the contrast net 320 and the corresponding target quantization vector token 312 generated by the quantizer 310. The unsupervised loss module 350 derives a contrastive self-supervised loss 355a (L c ) can be derived as follows:
[0052]
number
[0053] In formula (2), L c represents the contrastive self-supervised loss355a, and q i represents the target quantized vector token 312 as a positive sample,
[0054]
number
[0055] is the target quantized vector token (q j), and sim(a,b) represents the cosine similarity index between a and b. Thus, the symmetric self-supervised loss 355a derived by the unsupervised loss module 350 is further based on K negative samples / distractors uniformly sampled from the target quantized vector tokens 312 stored in the codebook 315, which correspond to the masked latent speech representations 212m from the masked subset of the latent speech representations 212m.
[0056] The unsupervised loss module 350 also receives the target token index 324 and the high-level context vector 334. Here, for each latent speech representation 212, the unsupervised loss module 350 calculates a cross-entropy loss (L m ) (355, 355b). Thus, for each high-level context vector 334, the masked language modeling MLM module 330 learns to predict the target token index 314 at the corresponding time step by using the cross-entropy loss 355b based on the target token index 314 already generated by the quantizer 310 at the corresponding time step.
[0057] The unsupervised loss module 350 provides the unsupervised loss 355, which comprises a contrastive self-supervised loss 355a and a cross-entropy loss 355b, as feedback to the automatic speech recognition ASR model 200. The unsupervised loss 355 (L u ) is the symmetric self-supervised loss 355a (L c ) and cross-entropy loss 355b (L m ) based on
[0058]
number
[0059] In formula (3), L u represents the unsupervised loss 355, and α represents a weighting parameter. The unsupervised loss portion 300a of the training process 300 may update parameters of the automatic speech recognition ASR model 200 based on the unsupervised loss 355.
[0060] 3B, in some implementations, the supervised loss portion 300b further comprises a decoder 340 and a supervised loss module 360. The masked language modeling MLM module 330 receives as input the contrast context vector 322 generated by the contrast net 320 at each of the multiple time steps, to generate a high-level context vector
[0061]
number
[0062] That is, the masked language modeling MLM module 330 generates high-level context vectors 334 by extracting high-level contextualized speech representations from the contrast context vectors 322. Each high-level context vector 334 represents a target token index prediction generated by a linear layer.
[0063] The decoder 340 is configured to predict speech recognition hypotheses 342 for the utterance by receiving as input the high-level context vectors 334 generated by the masked language modeling MLM module 330 at each of a number of time steps. The decoder 340 may include a 2-layer 768-dimensional long short-term memory (LSTM)-based recurrent neural network transducer (RNN-T) with 3072 hidden units. Here, the decoder 340 may generate a probability distribution over the possible speech recognition hypotheses 342 for the corresponding high-level context vector 334. The supervised loss module 360 calculates a supervised loss (L s ) 365. That is, the supervised loss module 360 compares a probability distribution of possible speech recognition hypotheses 342 for each transcribed speech utterance 304 with a ground truth transcription corresponding to each transcribed speech utterance 304. In some examples, the supervised loss 365 includes an RNN-T loss. The supervised loss portion 300b of the training process 300 can provide the supervised loss 365 as feedback to the automatic speech recognition ASR model 200. Thus, the supervised loss portion 300b of the training process 300 can update parameters of the automatic speech recognition ASR model 200 based on the supervised loss 365.
[0064] 3A and 3B, in some implementations, the training process 300 may include an unsupervised loss 355 (L u ) and supervised loss 365(L s ) to determine the total loss.
[0065]
number
[0066] In equation (4), L represents the total loss, and β represents the trade-off weight. Thus, since the training process 300 trains the automatic speech recognition ASR model 200 by using the total loss L, the training process 300 may jointly train the automatic speech recognition ASR model 200 by using the unsupervised loss 355 and the supervised loss 365. In particular, by jointly training the automatic speech recognition ASR model 200 by using the total loss L, the training process 300 jointly (i.e., concurrently) trains the automatic speech recognition ASR model 200 by using both the unsupervised loss 355 and the supervised loss 365. Thus, it eliminates the risk that the automatic speech recognition ASR model 200 forgets the previously learned latent speech representations during pre-training. Furthermore, since the training process 300 is a joint training approach, it eliminates the selection of a pre-trained checkpoint. That is, the training process 300 jointly trains the automatic speech recognition ASR model 200 using the unsupervised loss 355 and the supervised loss 365 in a one-stage approach, thereby eliminating the problem of pre-training the automatic speech recognition ASR model 200 using a two-stage approach.
[0067] 4 is a flow chart illustrating an example sequence of operations for a method 400 of jointly training an automatic speech recognition ASR model 200 using unsupervised and supervised training. The method 400 can be executed on data processing hardware 510 (FIG. 5) using instructions stored in memory hardware 520 (FIG. 5). The data processing hardware 510 and memory hardware 520 may reside on a remote computer / server 201 of FIG. 1 that corresponds to the computing device 500 (FIG. 5).
[0068] In operation 402, the method 400 comprises receiving audio features 110 corresponding to one of the untranscribed speech utterances 302 or one of the transcribed speech utterances 304. In operation 404, the method 400 comprises generating a latent speech representation 212 based on the audio features 110 at each of a plurality of time steps. In operation 406, the method 400 comprises generating a target quantization vector token 312 and a target token index 314 of the corresponding latent speech representation 212 at each of the plurality of time steps, where the target token index 314 maps the corresponding latent speech representation 212 to the target quantization vector token 312 stored in the codebook 315. In operation 408, the method 400 comprises generating a contrastive context vector 322 of the corresponding unmasked or masked latent speech representation 212u, 212m at each of the plurality of time steps. At operation 410, the method 400 includes deriving a contrastive self-supervised loss 355a based on the corresponding contrast context vector 322 and the corresponding target quantization vector token 312 at each of a plurality of time steps.
[0069] At operation 412, the method 400 comprises generating a high-level context vector 334 based on the contrast context vector 322 at each of a plurality of time steps. At operation 414, for each high-level context vector 334, the method 400 comprises learning to predict the target token index 314 at a corresponding time step by using a cross-entropy loss 355b based on the target token index 314. At operation 416, the method 400 comprises predicting a speech recognition hypothesis 342 for the utterance based on the high-level context vector 334. At operation 416, the method 400 comprises training the multilingual automatic speech recognition ASR model 200 by using an unsupervised loss 355 based on the contrastive self-supervised loss 355a and the cross-entropy loss 355b, and a supervised loss 365 based on the predicted speech recognition hypothesis 342 and the ground truth transcription 306 of the utterance 302, 304.
[0070] 5 is a schematic diagram of an example of a computing device 500 that may be used to implement the systems and methods described herein. Computing device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown, their connections and relationships, and their functions are merely exemplary and are not intended to limit the practice of the invention as described and / or claimed herein.
[0071] The computing device 500 comprises a processor 510, a memory 520, a storage device 530, a high-speed interface / controller 540 that connects to the 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 the storage device 530. Each of the components 510, 520, 530, 540, 550, and 560 are interconnected using various buses and may be implemented on a common motherboard or in other manners as appropriate. The processor 510 can process instructions for execution within the computing device 500, including instructions stored in the memory 520 or the storage device 530, to display graphical information for a graphical user interface (GUI) on an external input / output device such as a display 580 coupled to the high-speed interface 540. In other implementations, multiple processors and / or multiple buses may be used as needed, along with multiple memories and memory types. Also, multiple computing devices 500 may be connected with each device providing a portion of the required operations (e.g., as a server bank, a group of blade servers, or a multiprocessor system).
[0072] 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(s), or a non-volatile memory unit(s). The non-transient memory 520 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 500. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., 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.
[0073] 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 an array of devices including 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 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 methods, such as those described above. The information carrier is a computer-readable or machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.
[0074] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, and the low-speed controller 560 manages less bandwidth-intensive operations. Such an allocation of functions is merely exemplary. In some implementations, the high-speed controller 540 is coupled to the memory 520, the display 580 (e.g., via a graphics processor or accelerator), and the high-speed expansion port 550, 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 comprise 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 to a network device, such as a switch or router, for example, via a network adapter.
[0075] The computing device 500 can be implemented in a number of different forms, as shown in the figure: for example, it may be implemented as a standard server 500a, or multiple times within a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.
[0076] Various implementations of the systems and techniques described herein may be realized in digital electrical and / or optical circuitry, integrated circuits, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations 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 a storage system, at least one input device, and at least one output device to transmit and receive data and instructions.
[0077] These computer programs (also known as programs, software, software applications or codes) comprise machine instructions for a programmable processor and may be implemented in high level procedural and / or object-oriented programming languages and / or in 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), etc.) 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.
[0078] The processes 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 processes and logic flows can also be performed by special purpose logic circuitry, for example, FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits). Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, 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 memory devices for storing instructions and data. In general, a computer also includes one or more mass storage devices, for example, magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or 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.
[0079] 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 that includes acoustic, speech, or tactile input. In addition, the computer can interact with the user by sending documents to a device used by the user and receiving documents from the device, 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.
[0080] Although several embodiments have been described, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other embodiments are within the scope of the following claims.
Claims
1. A joint unsupervised and supervised training (JUST) framework (300) for training a multilingual automatic speech recognition (ASR) model (200), comprising: A feature encoder (311), receiving as input audio features (110) corresponding to a speech utterance (302, 304); generating a latent speech representation (212) at each of a plurality of time steps; The feature encoder (311), A quantizer (310), receiving as input the latent speech representation (212) generated by the feature encoder (311) at each of a plurality of said time steps; and generating a target quantized vector token (312) and a target token index (314) for a corresponding latent speech representation (212) generated by the feature encoder (311) at each of a plurality of said time steps, such that the target token index (314) maps the corresponding latent speech representation (212) to the target quantized vector token (312) stored in a codebook (315); The quantizer (310), A control net (320), receiving as input the latent speech representations (212) generated by the feature encoder (311) at each of a plurality of said time steps after masking a subset of the latent speech representations (212); generating, at each of a plurality of said time steps, a contrast context vector (322) for a corresponding unmasked or masked latent speech representation (212u, 212m); and deriving a contrastive self-supervised loss (355a) based on the corresponding contrast context vector (322) and the corresponding target quantization vector token (312) generated by the quantizer (310) for the corresponding latent speech representation (212) at each of a plurality of said time steps; The control net (320), A Masked Language Modeling (MLM) module (330), comprising: receiving as input, at each of a plurality of said time steps, said contrast context vector (322) generated by said contrast net (320); generating a high-level context vector (334) at each of a plurality of said time steps; and for each of the high-level context vectors (334), learning to predict the target token index (314) at the corresponding time step by using a cross-entropy loss (355b) based on the target token index (314) generated by the quantizer (310) at the corresponding time step; A masked language modeling (MLM) module (330) configured as: A decoder (340), receiving as input, at each of a plurality of said time steps, said high-level context vector (334) generated by said masked language modeling MLM module (330); and predicting a speech recognition hypothesis (342) for the utterance (302, 304); and the decoder (340) configured as: The multilingual automatic speech recognition ASR model (200) includes: an unsupervised loss (355) based on the symmetric self-supervised loss (355a) and the cross-entropy loss (355b); a supervised loss (365) based on the predicted speech recognition hypotheses (342) and a ground truth transcription (306) of the utterance (302, 304); The JUST framework (300) is trained based on
2. The feature encoder (311) comprises two convolutional neural network (CNN) blocks. The JUST framework (300) of claim 1.
3. masking the subset of latent speech representations (211) comprises randomly replacing each latent speech representation (212) in the subset of latent speech representations (212) with a corresponding random vector. The JUST framework (300) according to claim 1 or 2.
4. the contrastive self-supervised loss (355a) derived by the contrast net (320) is further based on K negative samples / distractors uniformly sampled from the target quantized vector tokens (312) stored in the codebook (315) corresponding to the masked latent speech representations (212m) from a masked subset of the latent speech representations (212m); The JUST framework (300) according to any one of claims 1 to 3.
5. the unsupervised loss (355) is further based on an entropy-based diversity loss associated with the codebook (315). The JUST framework (300) according to any one of claims 1 to 4.
6. The multilingual automatic speech recognition (ASR) model (200) is trained by training the utterances (302, 304) spoken in a plurality of different languages. The JUST framework (300) according to any one of claims 1 to 5.
7. Training the multilingual automatic speech recognition ASR model (200) comprises training the multilingual automatic speech recognition ASR model (200) without prior pre-training. The JUST framework (300) according to any one of claims 1 to 6.
8. Training the multilingual automatic speech recognition ASR model (200) comprises fine-tuning the multilingual automatic speech recognition ASR model (200) from a pre-trained checkpoint. The JUST framework (300) according to any one of claims 1 to 6.
9. Training the multilingual automatic speech recognition ASR model (200) comprises jointly training the multilingual automatic speech recognition ASR model (200) with the unsupervised loss (355) and the supervised loss (365). The JUST framework (300) according to any one of claims 1 to 8.
10. The supervised loss (365) comprises a recurrent neural network transducer (RNN-T) loss. The JUST framework (300) according to any one of claims 1 to 9.
11. A computer-implemented method (400), when executed by data processing hardware (510), causing the data processing hardware (510) to: receiving audio features (110) corresponding to a speech utterance (302, 304); generating a latent speech representation (212) based on the audio features (110) at each of a plurality of time steps; generating a target quantized vector token (312) and a target token index (314) for a corresponding latent speech representation (212) at each of a plurality of said time steps, the target token index (314) mapping the corresponding latent speech representation (212) to the target quantized vector token (312) stored in a codebook (315); generating, at each of a plurality of said time steps, a contrast context vector (322) for a corresponding unmasked or masked latent speech representation (212u, 212m); At each of a plurality of said time steps, deriving a contrastive self-supervised loss (355a) based on the corresponding said contrast context vector (322) and the corresponding said target quantization vector token (312); generating a high-level context vector (334) based on the contrast context vector (322) at each of a plurality of said time steps; for each of the high-level context vectors (334), learning to predict the target token index (314) at the corresponding time step by using a cross-entropy loss (355b) based on the target token index (314); predicting a speech recognition hypothesis (342) for the utterance (302, 304) based on the high-level context vector (334); training a multilingual automatic speech recognition (ASR) model (200) using an unsupervised loss (355) based on the contrastive self-supervised loss (355a) and the cross-entropy loss (355b), and a supervised loss (365) based on the predicted speech recognition hypotheses (342) and a ground truth transcription (306) of the utterance (302, 304); A computer-implemented method (400).
12. generating the latent speech representation (212) comprises generating the latent speech representation (212) at each of a plurality of said time steps by a feature encoder (311), the feature encoder (311) comprising two convolutional neural network (CNN) blocks; 12. The computer-implemented method (400) of claim 11.
13. The operations further comprise masking the subset of latent speech representations (212) by randomly replacing each of the latent speech representations (212) in the subset of latent speech representations (212) with a corresponding random vector.
13. A computer implemented method (400) according to claim 11 or 12.
14. the symmetric self-supervised loss (355a) is further based on K negative samples / distractors uniformly sampled from the target quantized vector tokens (312) stored in the codebook (315) corresponding to the masked latent speech representations (211m) from a masked subset of the latent speech representations (211m); A computer implemented method (400) according to any one of claims 11 to 13.
15. the unsupervised loss (355) is further based on an entropy-based diversity loss associated with the codebook (315). A computer implemented method (400) according to any one of claims 11 to 14.
16. The multilingual automatic speech recognition (ASR) model (200) is trained by training the utterances (302, 304) spoken in a plurality of different languages. A computer implemented method (400) according to any one of claims 11 to 15.
17. Training the multilingual automatic speech recognition ASR model (200) comprises training the multilingual automatic speech recognition ASR model (200) without prior pre-training. A computer implemented method (400) according to any one of claims 11 to 16.
18. Training the multilingual automatic speech recognition ASR model (200) comprises fine-tuning the multilingual automatic speech recognition ASR model (200) from a pre-trained checkpoint. A computer implemented method (400) according to any one of claims 11 to 16.
19. Training the multilingual automatic speech recognition ASR model (200) comprises jointly training the multilingual automatic speech recognition ASR model (200) with the unsupervised loss (355) and the supervised loss (365). A computer implemented method (400) according to any one of claims 11 to 18.
20. The supervised loss (365) comprises a recurrent neural network transducer (RNN-T) loss. A computer implemented method (400) according to any one of claims 11 to 19.
Citation Information
Patent Citations
Multi-dialect and multilingual speech recognition
US20200160836A1
Large-Scale Multilingual Speech Recognition With A Streaming End-To-End Model
US20200380215A1
