Injecting vision data into frozen speech model(s) for audiovisual automatic speech recognition
By integrating visual data into ASR models through a multimodal approach that combines audio and visual embeddings, the system enhances recognition accuracy and robustness, addressing the limitations of audio-only models and improving performance across diverse environments.
Patent Information
- Application Number
- PCT/US2023/023995
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2023-05-31
- Publication Date
- 2024-10-03
AI Technical Summary
Current automatic speech recognition (ASR) systems face challenges in accurately recognizing spoken utterances due to the limitations of relying solely on audio data, often leading to errors in understanding context and misinterpretation of words, especially in noisy or unconstrained environments where visual cues are not readily available.
The integration of visual data into the ASR model using a multimodal approach, where audiovisual data is processed to generate a predicted text representation by combining audio and visual embeddings in a shared space, leveraging pre-trained models and adaptive layers to enhance recognition accuracy without the need for extensive retraining.
This approach significantly improves the accuracy of predicted text representations by incorporating contextual visual information, reducing errors and enhancing robustness across various domains, while minimizing computational resources and domain shift, thus providing better generalization and performance on both audio-only and audiovisual benchmarks.
Smart Images

Figure US2023023995_03102024_PF_FP_ABST
Abstract
Description
Attorney Docket No. ZS202-23385 INJECTING VISION DATA INTO FROZEN SPEECH MODEL(S) FOR AUDIOVISUAL AUTOMATIC SPEECH RECOGNITION Background
[0001] Voice-based user interfaces are increasingly being used in the control of computers and other electronic devices. Voice-based user interfaces have continued to evolve from early rudimentary interfaces that could only understand simple and direct commands to more sophisticated interfaces that respond to natural language requests and that can understand context and manage back-and-forth dialogs or conversations with users. Many voice-based user interfaces perform speech recognition (e.g., using an automatic speech recognition model) on a spoken utterance to generate corresponding text, perform a semantic analysis of the text in an attempt to determine the meaning of the spoken utterance, and / or undertake one or more actions based on the determined meaning. Summary
[0002] Implementations describe herein are directed towards generating a predicted text representation of a spoken utterance based on processing an instance of audiovisual data using an audiovisual automatic speech recognition (AV-ASR) model. The instance of audiovisual data can include an audio data portion capturing the spoken utterance. Additionally or alternatively, the instance of audiovisual data can include a visual data portion captured while the spoken utterance is spoken. In some implementations, the AV-ASR can use one or more features captured in the visual data portion as cues for the predicted text representation of the spoken utterance.
[0003] For example, an instance of audiovisual data can include an audio data portion capturing the spoken utterance “I am using a garlic loaf to make the sandwich” and a visual data portion of someone making a sandwich using a loaf of bread. The instance of audiovisual data can be processed using an AV-ASR model to generate a predicted text representation of the spoken utterance of “I am using a garlic loaf to make the sandwich”. In contrast, processing the audio data portion of the instance of audiovisual data using an audio only ASR model can generate the incorrect predicted text representation of the spoken utterance of “I am using a garlic clove to make the sandwich”. In other words, the audio only ASR model incorrectly predicts the word loaf as clove in the spoken utterance, while the multimodal AV- ASR model can use visual data capturing the loaf of bread to generate the correct textAttorney Docket No. ZS202-23385 representation of the word loaf in the spoken utterance.
[0004] In some implementations, the AV-ASR model can include an ASR encoder with one or more adapter layers, a video encoder with one or more projection layers, and an ASR decoder. In some implementations, the system can augment a pre-trained audio-only ASR model (e.g., the ASR encoder model and / or ASR decoder portions of the AV-ASR model) and / or a pre-trained video encoder model in training the AV-ASR model. Additionally or alternatively, the system freezes the ASR encoder, the ASR decoder, and / or the video encoder while training other portion(s) of the AV-ASR model (e.g., while training the one or more adapter layers and / or the one or more projection layers). In other words, the system updates one or more portions of the one or more adapter layers and / or one or more portions of the one or more projection layers while training the AV-ASR model.
[0005] Adapting audio-only ASR model(s) and visual encoding model(s) to generate a multimodal AV-ASR model can require multiple types of adaptation. In some implementations, the visual encoder is adapted to new video domains. Additionally or alternatively, the audio- only ASR model is adapted to multimodal input. Adapting both the visual encoder and the audio only ASR model simultaneously can lead to catastrophic forgetting by the pre-trained models.
[0006] In some implementations, the AV-ASR model can be trained using a curriculum learning strategy. In some of those implementations, the curriculum learning strategy can decouple domain adaptation and visual feature integration by training the AV-ASR model in a sequential manner. For example, the AV-ASR can be trained in two phases. In the first phase of training, one or more parameters corresponding to the one or more adapter layers are trained. In some implementations, no video data (e.g., the video data portion of a multimodal AV-ASR training instance) is processed by the AV-ASR model in the first phase. In some implementations, the ASR encoder and / or the ASR decoder can be frozen during the first phase of training. In other words, only the one or more adapter layers are trained during the first phase of training the AV-ASR model.
[0007] For example, in the first phase of training, the system can process the audio data portion of a training instance using the ASR encoder and the one or more adapter layers to generate encoded output. The encoded output can be processed by the ASR decoder toAttorney Docket No. ZS202-23385 generate a predicted text representation of a spoken utterance captured in the audio data portion of the training instance. One or more portions of the one or more adapter layers can be updated based on comparing the predicted text representation of the spoken utterance and a ground truth representation of the spoken utterance portion of the training instance. Visual data is not processed during the first training phase, and any visual inputs of the AV-ASR model can be fed a null value (e.g., a zero value, a null value, an empty set, etc.). Subsequent to training the one or more adapter layers in the first phase of training, the system can then train the one or more projection layers of the AV-ASR model.
[0008] In the second phase of training the AV-ASR model, the one or more projection layers of the AV-ASR model can be trained. In some implementations, the one or more adapter layers trained in the first phase are frozen during the second phase of training. Additionally or alternatively, the ASR encoder, the ASR decoder, and / or the visual encoder can be frozen during the second phrase of training. In other words, only the one or more projection layers are trained during the second phase of training the AV-ASR model.
[0009] For example, in the second phase of training, the system can process the audio data portion and the video data portion of a training instance, where the audio data portion captures a spoken utterance and the video data portion captures the environment while the spoken utterance is spoken. In some implementations, the video data portion can be processed using the visual encoder to generate one or more visual features. Additionally or alternatively, the one or more features can be processed using the one or more projection layers to generate a visual embedding space representation of the visual feature(s). Similarly, the audio data portion can be processed to generate an audio embedding space representation of the spoken utterance captured in the audio data. In some implementations, the visual embedding space and the audio embedding space can be a shared embedding space. In other words, the visual embedding of the visual feature(s) and the audio embedding of the spoken utterance are both projected into the same (shared) embedding space.
[0010] In some implementations, the visual embedding and the audio embedding can be processed using the ASR encoder and one or more adapter layers of the AV-ASR model to generate a visually contextualized audio embedding. The visually contextualized audio embedding can be processed using the AV-ASR decoder to generate a predicted textAttorney Docket No. ZS202-23385 representation of the spoken utterance. One or more portions of the one or more projection layers can be updated based on comparing the predicted text representation of the spoken utterance and a ground truth representation (or pseudo-ground truth representation) of the spoken utterance portion of the instance of training data.
[0011] Accordingly, AV-ASR models in accordance with various implementations described herein can be used to generate highly accurate predicted text representations of spoken utterances by processing audio features and visual features (e.g., audio features represented in an audio embedding and visual features represented in a visual embedding, where the audio embedding and the visual embedding are in a shared embedding space). In some implementations, the visual features can add contextual information to the audio data (e.g., a visually contextualized audio embedding) which increases the accuracy of predicted text of a spoken utterance captured in the audio data. For instance, a given instance of audiovisual data (including audio data capturing a spoken utterance and video data captured while the spoken utterance was spoken) can be processed using an AV-ASR model to generate a predicted text representation of a spoken utterance captured in the given instance of audiovisual data, where the processing includes generating a visually contextualized audio embedding representation of the given instance and processing the visually contextualized audio embedding using an ASR decoder to generate the predicted text representation. In various implementations, the resulting predicted text representation can be more accurate compared with an audio only predicted text representation generated based on processing the audio data portion of the given instance of audiovisual data using an audio only ASR model.
[0012] In some implementations, the AV-ASR model reuses a pre-trained audio only ASR model and / or a pre-trained visual encoder to leverage the knowledge captured in these models. When portions of models are reused, the system only needs to train a smaller portion of the AV-ASR model (e.g., the one or more adapter layers and / or the one or more projection layers). In some implementations, the reuse of a pre-trained audio only ASR model and / or a pre-trained visual encoder can drastically reduce the computing resources (e.g., processor cycles, memory, power, battery, etc.) required to train the AV-ASR model. Full end-to-end training of an AV-ASR model from scratch requires a large number of training instances in addition to a large amount of computing resources. In contrast, the number of trainingAttorney Docket No. ZS202-23385 instances and the computing resources necessary to train the one or more adapter layers and / or the one or more projection layers is greatly reduced. In other words, it is more computationally expensive and requires more training data to train an AV-ASR model without reusing portion(s) of pre-trained existing models.
[0013] The above description is provided as an overview of only some implementations disclosed herein. These and other implementations are described in more detail herein, including in the detailed description and the claims.
[0014] It should be appreciated that all combinations of the foregoing concepts and additional concepts described in greater detail herein are contemplated as being part of the subject matter disclosed herein. For example, all combinations of claimed subject matter appearing at the end of this disclosure are contemplated as being part of the subject matter disclosed herein. Brief Description of the Drawings
[0015] FIG.1A illustrates an example of processing an instance of audiovisual data using an AV-ASR model to generate a text representation of a spoken utterance captured in the audiovisual data.
[0016] FIG.1B illustrates an example of processing an instance of audio data using an ASR model to generate a text representation of a spoken utterance captured in the audiovisual data.
[0017] FIG.2 illustrates an example of training one or more adapter layers of an AV-ASR model in accordance with various implementations disclosed herein.
[0018] FIG.3 illustrates an example of training one or more projection layers of an AV-AR model in accordance with various implementations disclosed herein.
[0019] FIG.4 illustrates an example of processing an instance of audiovisual data using an AV-ASR model to generate predicted text output of a spoken utterance captured in the instance of audiovisual data in accordance with various implementations disclosed herein.
[0020] FIG.5 is a flowchart illustrating an example process of training an AV-ASR model in accordance with various implementations disclosed herein.
[0021] FIG.6 is a flowchart illustrating an example process of generating audiovisual training data in accordance with various implementations disclosed herein.Attorney Docket No. ZS202-23385
[0022] FIG.7 is a flowchart illustrating an example process of training one or more adapter layers of an AV-ASR model in accordance with various implementations disclosed herein.
[0023] FIG.8 is a flowchart illustrating an example process of training one or more projection layers of an AV-ASR model in accordance with various implementations disclosed herein.
[0024] FIG.9 is a flowchart illustrating an example process of generating a text representation of a spoken utterance captured in audiovisual data using an AV-ASR model in accordance with various implementations disclosed herein.
[0025] FIG.10 schematically depicts an example architecture of a computer system. Detailed Description
[0026] Audiovisual automatic speech recognition (AV-ASR) aims to improve the robustness of a speech recognition system by incorporating visual information. Training multi-modal models for this task from scratch, however can be limited by the need for large labelled audiovisual datasets. Implementations disclosed herein are directed towards a method for augmenting audio-only models with visual information for zero-shot AV-ASR. In some implementations, visual embeddings can be combined into a frozen ASR model using lightweight trainable adaptors. Additionally or alternatively, the lightweight trainable adaptors can be trained on a small amount of weakly labelled video data with minimum additional training time and parameters. In some implementations, the system can use a (simple) curriculum scheme during training. In some of those implementations, the curriculum training scheme can be necessary for the AV-ASR model to jointly process audio and visual information effectively.
[0027] Robustness and / or adaptation to new, unconstrained domains can be a challenge for automatic speech recognition (ASR) systems. In multimodal video (for example TV, online edited videos, etc.), the visual stream can provide strong cues for improving the robustness of ASR systems, particularly in cases where the audio is noisy. Audiovisual ASR (AV-ASR) can use both the audio stream and the video stream of multimodal data in automatic speech recognition. Existing AV-ASR techniques generally focus on lip motion of the speaker while an utterance is spoken.
[0028] In contrast, implementations described herein use the contribution of entire visual frames. Using entire visual frames in AV-ASR can be particularly useful for videos ‘in the wild’,Attorney Docket No. ZS202-23385 where the mouth is not necessarily visible (e.g. egocentric viewpoints, face coverings, and low resolution video etc.). However, obtaining audiovisual datasets for training AV-ASR models may be challenging. Many audiovisual datasets have been created from instructional videos online; however, they are generally small in size. Not only are datasets for this task small, but models are typically large and consist of both visual and audio encoders. For example, existing AV-ASR models generally require the end-to-end training of visual and audio components in tan- dem, and consequently a large amount of computational resources. Existing AV-ASR models are generally only trained and tested on instructional videos, which generalize poorly to new domains in the zero-shot setting.
[0029] In contrast, there are number of existing large-scale audio-only models that are heavily optimized via self-supervised pretraining and large-scale supervised training on audio-only data (e.g., trained with audio data obtained from audio books). These existing ASR models contain billions of parameters, are readily available, and show strong generalization across domains.
[0030] Implementations described herein reuse the extensive expertise and training time that has been invested in existing large-scale ASR models, by using their weights. Similarly, existing techniques for processing multimodal data using large language models (LLMs) for vision-text tasks include adapting frozen foundation models for multi-modal tasks. Building on strong frozen LLMs allows the visual-text model to retain powerful language-only abilities such as few-shot language adaptation and / or external knowledge retrieval. In some implementations, frozen state-of-the- art audio-only ASR models. In some of those implementations, visual inputs can be added to these models in a lightweight manner for audiovisual speech recognition, while still reusing pre-trained audio-only models for zero-shot generalization.
[0031] AV-ASR model(s) described herein combin visual information into a frozen ASR model using one or more lightweight projection layers and one or more trainable adaptors. In some implementations, the projection layer(s) and / or the adaptor(s) can be trained using a small amount of weakly labelled video data (e.g., only using 5% of the data compared to the data needed for end-to-end training) with minimum additional training time and parameters, minimizing the domain shift and / or minimizing catastrophic forgetting that can accompany end-to-end finetuning. In some implementations, a curriculum scheme can be used during training of the AV-ASR model to provide further stability in training the model to process audio and visual information.Attorney Docket No. ZS202-23385
[0032] Various existing ASR models include transformer based audio encoders which can be used to embed input audio signals into a set of token features thereby extracting local information within a temporal window. ASR encoders can be trained end-to-end using losses such as connectionist temporal classification (CTC), recurrent neural network transformers (RNN-T) and / or listen attend spell (LAS). In some implementations, these ASR encoders can be pre-trained on large-scale unannotated datasets and then can be finetuned for downstream ASR. Consequently, such ASR models can incorporate a number of highly-engineered training tricks and / or techniques suitable for ASR. Rebuilding a multimodal AV-ASR model from scratch incorporating these learnings is expensive and the training must be repeated for each new model. As models get larger and larger, this requires a prohibitive amount of computation resources. AV-ASR models described herein can reuse the knowledge captured in audio only ASR models in a lightweight manner by injecting visual understanding capability into a readily available state-of-the-art ASR model.
[0033] Many existing AV-ASR techniques are focused on lip motion of the speaker speaking an utterance. Additionally or alternatively, existing AV-ASR techniques can use pre-extracted visual context features (due to the high dimensionality of full frame video) – either action features and / or place and object features. In some implementations, the AV-ASR model(s) described herein are full frame AV-ASR uses data beyond the speaker’s mouth movements (also known as ‘context- aware’ speech recognition). In contrast to existing techniques, techniques described herein can process visual features from classification models which are trained on image and text data pairs (e.g., CLIP), and have strong generalization and / or zero-shot capabilities. In some implementations, reuse of visual classification models trained on image and text data pairs can generate one or more features which are more suited to unconstrained videos ‘in the wild’. In other words, reuse of a visual classification model, such as CLIP, which is pre-trained on image and text data pairs, when combined with an AV-ASR model, can generate features which lead to a higher accuracy in a generated predicted text representation of a spoken utterance (compared to visual classification models which are trained on video only data).
[0034] In some implementations, the AV-ASR techniques described herein reuse strong frozen pretrained models, thereby requiring a fraction of the audiovisual training data (e.g., only 1%, 5%,Attorney Docket No. ZS202-23385 only 10%, etc.) used in training existing AV-ASR techniques. Similarly, the AV-ASR techniques described herein generalize much better across different domains in the zero-shot setting.
[0035] Some existing AV-ASR techniques test only instructional video data sets. In contrast, in some implementations, AV-ASR techniques described herein include zero-shot generalization across multiple AV domains, while still maintaining good performance on traditional audio-only benchmarks. In some implementations, when training the AV-ASR model, the system starts with an existing ASR model (e.g., a pre-trained audio only ASR model), and adapts the existing ASR model for unconstrained AV-ASR. In some implementations, visual features can be obtained from a strong pretrained visual encoder (e.g., a pretrained visual model which is trained using visual and text data pairs). In some implementations, one or more additional or alternative components can augment the pre-trained ASR model and / or the pre-trained visual encoder) such as one or more projection layers, one or more adapter layers, one or more additional or alternative components, and / or combinations thereof. In some implementations, the one or more projection layers can be trained to visually project visual features into the audio embedding space. In some implementations, the one or more adapter layers can be trained with a frozen ASR model to allow domain adaptation. During training, the system only trains the one or more projector layers and / or the one or more adapter layers, while the pre-trained audio only ASR model (i.e., the ASR encoder and the ASR decoder) and the pre-trained visual encoder are frozen during training.
[0036] Generally, two forms of adaption that are required to adapt an audio-only ASR model to a multimodal AV-ASR model - (i) adapting to new video domains and (ii) adapting to multimodal input (both forms of adaption ideally occurring without catastrophic forgetting). In various implementations, a curriculum learning strategy to stabilize the learning process of the two forms of adaptation. Without the curriculum learning strategy, the trained AV-ASR model may fail to utilize the visual features effectively.
[0037] As an illustrative example, the AV-ASR model architecture can include a frozen conformer encoder and a frozen conformer decoder; a visual encoder (such as CLIP) to extract one or more visual features from the video data; one or more projection layers to project the visual features into the embedding space of the audio data; one or more adaption layers; one or more additional or alternative components; and / or combinations thereof.Attorney Docket No. ZS202-23385
[0038] In some implementations, a frozen ASR model can be used. For example, the system can use the BEST-RQ that adopts a Conformer model with an RNN-Transducer (RNN-T) as the pre- trained ASR model. The ASR model can be is pretrained on a first dataset (e.g., the LibriLight dataset) in a self-supervised manner using a random projection quantization technique. Additionally or alternatively, the ASR model can be finetuned for ASR on an additional data set (e.g., the LibriSpeech dataset) using supervised training.
[0039] In some implementations the conformer consists of convolution-augmented transformer blocks (conformer blocks), which operate on audio token features that are extracted from a spectrogram via a stack of convolution and linear layers. For example, BEST-RQ can use ConformerXL as a backbone, which has approximately 0.6B parameters. Training such a large model end-to-end can be extremely computationally heavy, and can require a large pretraining dataset, made possible by self-supervised learning on LibriLight. This self-supervised training can also enable the ASR model to generalize well across numerous domains. After pretraining, an RNN-T decoder can be added to the Conformer to generate text output for ASR (e.g., the Conformer generates text output for ASR with 1,024 WordPiece tokens). In some implementations, the RNN-T decoder generates a sequence of tokens consisting of grapheme tokens or a special output token, where the special output token represents moving to the next input token.
[0040] Formally speaking, given the log-mel spectrogram ^^ ∈ ℝ^^ × ^^with ^^ mel spectrogram bins in a length of ^^ converted from the input audio waveform, the tokenizer outputs a set of audio tokens = ℎtok( ^^) where ^^ is the token embedding dimensionality and ^^ = ^^ / 4. The encoder then contextualizes the audio tokens through a series of conformer blocks, each of which is a stack of feed-forward, multi-head self-attention, convolution layers followed by another feed-forward layer. The output of each layer is added with a residual connection. This process produces ^^ contextualized tokens ^^̂^^∈= ℎenc({ ^^^^}1^^). The decoder finally generates the transcripts by predicting a sequence of ^^ graphemes from the contextualized audio tokens. Given a token ^^̂^^and previously generated grapheme ^^^^−1,the decoder generates the next grapheme ^^^^= ℎdec( ^^̂^^, ^^^^−1) where ^^^^∈ ^^ ∪ { ^^} with the vocabulary of the predefined graphemes ^^ and a special blank token ^^ that represents moving to the next token ^^̂^^+1in the generation process. The decoder ℎdecis implemented as a two layer LSTM moduleAttorney Docket No. ZS202-23385 with a grapheme classification head. Note that at a single audio token index ^^, multiple graphemes can be emitted until an ^^ is emitted.
[0041] In some implementations, in order to enable domain adaption in the model, an adapter layer can be interleaved within each conformer block of the encoder. Note that the BEST-RQ model has strong generalization capability. Hence the one or more adapters can be designed to be lightweight, to prevent drastic domain shift, and / or catastrophic forgetting. Given ^^ audio tokens ^^^^and ^^ projected visual tokens ^^^^^^(which will be described herein) at a certain layer ^^ ,the adapted token features ^^̃ ^^^^ and ^^̃ ^^ can be computed using an adapter layer by { ^^̃ ^^} ∪ { ^^̃ ^^^^ } =adapt({ ^^ ^^} ∪ { ^^ ^^^^ }; ^^) where adapt(∙) is an adapter layer parameterized by ^^. A variety of typesof lightweight adapters can be used in accordance with various implementations. For example, the system can use feed-forward adapters (FF), feed-forward adapters with self-attention (FF+SA), one or more additional or alternative adapter types, and / or combinations thereof.
[0042] In some implementations, the one or more adapter layers can be one or more feed- forward adapters (FF), where each token is independently projected. The system can use a two- layered MLP with a residual connection as each of the one or more adapters. To make the adapter layer(s) lightweight, the dimensionality of the hidden layer can be set to ^^, where ^^ ≪ ^^. In some implementations, this allows the adaptor to effectively act as a bottleneck, and reduces total additional parameters.
[0043] In some implementations, the one or more adapter layers can be feed-forward adapters with self-attention (FF+SA). While the FF adapters described above operate independently for each token, FF+SA can include additional contextualization across the input tokens via self- attention layer(s). To reduce additional parameters, the same bottleneck projection technique can be applied to FF+SA as described above with respect to FF, where each input token is transformed into a ^^ dimensional query, key and value for attention, after which the attended feature is projected back into the D dimensional feature space. For multi-head self-attention, each head projects features into ^^ / ^^ dimensional spaces instead where ^^ stands for the number of heads. This module can be used with a residual connection and a feed-forward module described above; the combination of these forms a transformer block with bottlenecks. While FF+SA allows additional contextualization across tokens, it introduces four times more parameters than FF adapters.Attorney Docket No. ZS202-23385
[0044] Additionally or alternatively, the AV-ASR model can be adapted using visual feature extraction and projection. Given a sequence of ^^ video frames ^^^^, a ^^ dimensional visual feature ^^^^= ^^( ^^^^) can be extracted per frame using a pre-trained visual encoder ^^. For example, the system can use the CLIP encoder with ViT-L / 14 as the visual backbone, which is known to have strong zero-shot generalization capability. Because the CLIP encoder is frozen, one or more linearlayers can be added to project the visual features into the audio token embedding space, i.e., ^^ ^^^^ =proj( ^^ ^^; ^^) ∈ ℝ ^^ and ^^ is a set of the parameters in the projection layer. The projectedvisual tokens can be fed to the Conformer encoder together with audio tokens ^^^^. In some implementations, these visual projection layers are essentially performing a type of prompt tuning since the rest of the ASR model is frozen.
[0045] AV-ASR generally is an audio-dominant task, thus some techniques devise training strategies that prevent the audio stream from dominating training, including jointly training both sets of additional parameters (adapters and visual projections). In some implementations, the visual information is not used (similar performance with and without the visual information), and training is dominated by the model only adapting to the finetuning audio domain. To alleviate the audio data dominating training of the AV-ASR, some implementations include a curriculum training strategy.
[0046] In some implementations, AV-ASR model(s) includes two sets of parameters to train ^^ corresponding to the visual projection layer(s) and ^^ corresponding to the adapter layer(s). In some implementations, these parameters are trained without manually labeled data. For example, unlabeled web videos online can be used as training data along with the outputs of an ASR model as pseudo ground truth. In some implementations, these automatically collected transcripts can aid in augmenting pretrained ASR model with visual understanding capability. Additionally or alternatively, the trained AV-ASR model can be tested in a zero-shot setting on manually annotated public AV-ASR benchmarks.
[0047] In some implementations, AV-ASR model can use the same loss function as used in training the pretrained ASR model. For example, when the pretrained ASR model used is the BEST-RQ model that adopts a Conformer model with an RNN-T decoder, the probability of a transcript ^^ = { ^^1, ^^2, … , ^^^^} can be obtained by marginalizing the probabilities of all valid generation paths ^^, i.e.,Attorney Docket No. ZS202-23385
[0048] ^^(^^|^^)=∑^^∈ ^^∏( ^^, ^^)∈ ^^^^( ^^^^| ^^^^̂, ^^0: ^^−1) (1)
[0049] Where ^^ is a set of all valid paths ^^ (paths on the grid from (0,0) to ( ^^ + 1, ^^)) which is a sequence of pairs of token and output grapheme indices ( ^^, ^^), and ^^( ^^^^| ^^^^̂, ^^0: ^^−1) can be estimated by the decoder ℎdec( ^^^^̂, ^^^^−1). In some implementations, the AV-ASR model can be trained by minimizing the negative log-likelihood of the peudo-ground truth transcripts ^^ of input videos:
[0050] ℒ( ^^, ^^) = − ∑^^log ^^( ^^^^| ^^^^; ^^, ^^) (2)
[0051] In some implementations, the system can use a curriculum learning for visual processing. With a naive first round of joint training, the AV-ASR model struggles to learn both the adapters and the visual projectors in one go (the issue becomes more severe as more visual tokens are added). To mitigate this issue, various implementations use a two-phase curriculum learning strategy that decouples these two factors (domain adaption and visual feature integration) and trains the network in a sequential manner. In the first phase, the adapter parameters ^^ can be optimized using argmax^^ℒ( ^^, ^^) as an objective. Note that at the first phase, the system does not feed visual tokens at all and thus ^^ is an empty set. Once ^^ is trained, the visual tokens can be added for training the visual projection layers ^^ using argmax^^ℒ( ^^, ^^). In some implementations, during this second phase of training, ^^ is kept frozen.
[0052] In some implementations, the first stage of training can focus on audio domain adaptation. By the second phase, the adapters are completely frozen and the visual projector must simply learn to generate visual prompts that project the visual tokens into the audio space. In this way, the curriculum learning strategy allows the model to incorporate visual inputs as well as adapt to new audio domains in AV-ASR benchmarks.
[0053] In some implementations, the system can adopt a content word masking scheme to encourage the models to further focus on visual understanding. The original zero-padded masking techniques can caus instabilities. Therefore the system can add Gaussian noise to the audio input corresponding to masked words, which can stabilize optimization.
[0054] As described above, the system can use the BEST-RQ model as the frozen ASR model. Since the BEST-RQ model includes 24 conformer blocks, in some implementations the system can add 24 adapters (one in each layer). In some implementations, the adapters and / or visual projec- tors are randomly initialized. Furthermore, in some implementations, the decoder can predictAttorney Docket No. ZS202-23385 Word-Piece tokenized graphemes with a vocabulary size of 1,024. In the adapters, the system can apply layer norm at every residual connection. Additionally or alternatively, for both phases of training, the system can use standard stochastic gradient descent (SGD) with momentum with a moving average coefficient of 0.9 and a cosine learning rate schedule; the initial learning rate is set to 0.4. In some implementations, the system can train the AV-ASR model for 40K iterations in phase one and 30K iterations in phase 2. In some of those implementations, the system can use a batch size of 256 on 32 TPU v4 chips. In some implementations, the system can process testing data multiple times (e.g., two times, five times, ten times, etc.) and the system can report the mean scores of the testing. When testing Audiovisual models on audio-only benchmarks, the system can feed dummy visual inputs (zero tensors).
[0055] In some implementations, they system can use word error rate (WER) in evaluating predicted text generated using the AV-ASR model, where a lower WER indicates a higher accuracy in generating the predicted text. The alignment between predicted words and ground truth can be computed using dynamic programming. Additionally or alternatively, the WER can then be computed by the number of errors (deletions, substitutions and insertions) across the whole test set divided by the number of ground truth words.
[0056] Turning now to the figures, FIG.1A illustrates an example 100 of processing an instance of audiovisual data 102 using an AV-ASR model 108 to generate a predicted text representation of a spoken utterance 110 captured in the audiovisual data. In some implementations, the audiovisual data 102 includes an audio data portion 104 and a video data portion 106. In the illustrated example, the instance of audiovisual data 102 captures a user speaking the utterance “I am using a garlic loaf to make a sandwich” along with video of someone making a sandwich with a loaf of garlic bread while the spoken utterance is spoken. In some implementations, the audio data portion 104 includes the spoken utterance “I am using a garlic loaf to make a sandwich”. Additionally or alternatively, the video data portion 106 can include the video of someone making a sandwich with a loaf of garlic bread. In the illustrated example, the instance of audiovisual data 102 does not capture the mouth of the speaker while the spoken utterance is being spoken.
[0057] In contrast, FIG.1B illustrates an example 112 of audio data capturing a spokenAttorney Docket No. ZS202-23385 utterance 104 being processed using an ASR model 114 to generate a predicted text representation of the spoken utterance 116. In the illustrated example, the instance of audio data 104 captures the spoken utterance of “I am using a garlic loaf to make a sandwich” is processed using the ASR model 114 to generate an incorrect text representation of “I am using a garlic clove to make a sandwich” 116 (i.e., the word “loaf” in the spoken utterance is incorrectly predicted as “clove” in the predicted text representation of the spoken utterance). While the same instance of audio data 104 is processed using the AV-ASR model 108 in FIG.1A and the ASR model 114 in FIG.1B, the ASR model 114 incorrectly predicts the text representation of the spoken utterance while the AV-ASR model 108 correctly predicts the spoken utterance. The additional visual data 106 can provide the AV-ASR model 108 with visually contextual information enabling the AV-ASR model 108 to generate a more accurate prediction of the spoken utterance 110 compared to the ASR model 114. In other words, the video data capturing a loaf of garlic bread can provide the AV-ASR model 108 with contextual details relating to the loaf of bread and / or the lack of a garlic clove to enable the AV-ASR model 108 to generate a predicted text representation 110 that is more accurate compared to the predicted text representation 116 generated using the ASR model 114 based only on audio data 104.
[0058] In some implementations, the AV-ASR model is trained using a curriculum learning strategy. In some of those implementations, the AV-ASR is trained using a two phase curriculum learning strategy, where one or more adapter layers are trained during the first phase and one or more projection layers are trained during the second phase. FIG.2 illustrates an example 200 of training one or more adapter layers of an AV-ASR model in accordance with various implementations. In the illustrated example 200, the system identifies one or more instances of audiovisual training data 202. In some implementations, a given instance of audiovisual training data can include (1) audio data capturing a spoken utterance, (2) video data captured while the spoken utterance was spoken, and (3) a text representation of the spoken utterance. In some implementations, the text representation of the spoken utterance can be a ground truth representation of the spoken utterance. In some implementations, the text representation of the spoken utterance can be a pseudo ground truth representation generated based on processing the audio data portion using an ASR model. In someAttorney Docket No. ZS202-23385 implementations, the instance of audiovisual training data 202 is generated in accordance with process 600 of FIG.6 described herein. In some implementations, the one or more adapter layers of the AV-ASR model are trained in accordance with process 700 of FIG.7 described herein.
[0059] The selected instance of the audiovisual training data 202 can be processed using an AV-ASR encoder with one or more adapter layers 204 to generate an audio embedding representation of the spoken utterance 212. In some implementations, the AV-ASR encoder with the one or more adapter layers 204 includes a pre-trained ASR encoder portion 206 and the one or more adapter layers 208. While the AV-ASR encoder 204 will eventually process multimodal data (e.g., audio data and visual data), the first phase of training the AV-ASR model only includes training the audio data portion. In some implementations, the AV-ASR encoder 204 can process one or more visual tokens 210 that are set to an empty value (e.g., an empty set, a null value, a zero value, etc.) in addition to the audio data portion of the audiovisual training data 202.
[0060] In some implementations, the audio embedding of the spoken utterance 212 can be processed using an ASR decoder 202 to generate predicted text output of the spoken utterance 222. In some of those implementations, the ASR decoder can optionally process previous predicted text output 212 in addition to the audio embedding representaiton of the spoken utterance 212 in generating the predicted text output 222.
[0061] In some implementations, the predicted text output of the spoken utterance 222 and the ground truth representation of the spoken utterance portion of the instance of audiovisual training data 202 can be processed using an adapter layer(s) training engine 224 to update one or more portions of the AV-ASR encoder 204. In some implementations, the ASR encoder portion 206 is frozen during the first phase of training. In other words, only one or more portions of the one or more adapter layers 208 are updated using the adapter layers training engine 224. In some implementations, the adapter layer(s) training engine can compare the predicted text output of the spoken utterance 202 with the ground truth representation of the spoken utterance of the instance of audiovisual training data 202. In some of those implementations, one or more portions of the adapter layer(s) 208 (e.g., one or more weights of the adapter layer(s)) can be updated by the adapter layer(s) training engineAttorney Docket No. ZS202-23385 224 based on the comparing of the predicted text output 222 and the ground truth representation of the instance of audio visual training data 202.
[0062] FIG.3 illustrates an example 300 of training one or more projection layers of an AV- ASR model in accordance with various implementations. In the illustrated example, the system identifies one or more instances of audiovisual training data 302. In some implementations, a given instance of audiovisual training data 302 can include (1) audio data capturing a spoken utterance 304, (2) video data captured while the spoken utterance was spoken 306, and (3) a text representation of the spoken utterance 308. In some implementations, the ground truth representation of the spoken utterance can be a pseudo ground truth representation generated based on processing the audio data portion using an ASR model. In some implementations, the instance of audiovisual training data 302 is generated in accordance with process 600 of FIG.6 described herein. In some implementations, the one or more projection layers of the AV-ASR model are trained in accordance with process 800 of FIG.8 described herein.
[0063] In some implementations, the audio data capturing the spoken utterance 304 can be processed using an ASR encoder 310 to generate an audio embedding 312. The video data captured while the spoken utterance was spoken 306 can be processed using a video encoder 314 to generate one or more features of the video data. In some implementations, the video encoder 314 can be a pretrained video encoder. Additionally or alternatively, the one or more features can be processed using one or more projection layers 316 to generate a visual embedding 318. In some implementations, the projection layer(s) 316 can linearly project the feature(s) into the same embedding space as the audio embedding (e.g., visual embedding 318 and the audio embedding 312 are in a shared embedding space).
[0064] The visual embedding 318 and the audio embedding 312 can be processed using the AV-ASR encoder with one or more adapter layers 320 to generate a visually contextualized embedding 322. In some implementations, the visually contextualized embedding 322 is a multimodal representation of the spoken utterance along with a representation of one or more visual features of the video data captured while the utterance was spoken. In some implementations, the AV-ASR encoder with one or more adapter layers 320 can be trained prior to training the one or more projection layers (e.g., the AV-ASR with the one or moreAttorney Docket No. ZS202-23385 adapter layers 320 can be trained in a first phase of training as illustrated in example 200 of FIG.2 and / or process 600 of FIG.6 described herein).
[0065] The visually contextualized embedding 322 can be processed using an ASR decoder 324 to generate predicted text output 326 of the spoken utterance. In some implementations, the predicted text output 326 and the text representation of the spoken utterance 308 portion of the audiovisual training instance 302 can be processed using projection layer(s) training engine 328. In some of those implementations, the projection layer(s) training engine 328 can generate projection output based on comparing the predicted text output 326 with the text representation of the spoken utterance 308. Additionally or alternatively, one or more portions (e.g., weights) of the one or more projection layers 316 can be updated based on the projection output generated using the projection layer(s) training engine 328.
[0066] FIG.4 illustrates an example 400 of generating a predicted text representation of a spoken utterance based on processing an instance of audiovisual data 402 using an AV-ASR model. In some implementations, the text representation of the spoken utterance can be generated in accordance with process 900 of FIG.9 described herein. In some implementations, the instance of audiovisual data 402 includes an audio data portion capturing the spoken utterance 404 and a video data portion captured while the spoken utterance is spoken 406. Additionally or alternatively, the AV-ASR model can be trained in accordance with process 500 of FIG.5, process 700 of FIG.7, and / or process 800 of FIG.8 described herein.
[0067] The video data captured while the spoken utterance is spoken 406 can be processed with the video encoder with one or more projection layers 408 to generate a visual embedding 410. In some implementations, an audio embedding can be generated based on the audio data capturing the spoken utterance 404. In some implementations, the visual embedding and the audio embedding can be in a shared embedding space. Additionally or alternatively, the visual embedding 410 and the audio embedding can be processed using the AV-ASR encoder with the one or more adapter layers 412 to generate a visually contextualized embedding 414. The visually contextualized embedding 414 can be processed using the AV-ASR decoder 416 to generate the predicted text output 418 of the spoken utterance.
[0068] FIG.5 is a flowchart illustrating an example process 500 of training an AV-ASR model in accordance with various implementations described herein. For convenience, theAttorney Docket No. ZS202-23385 operations of the process 500 are described with reference to a system that performs the operations. This system can include one or more components of a computer system, such as computer system 1010. Moreover, while operations of process 500 are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted or added.
[0069] At block 502 the system identifies one or more AV-ASR training instances. In some implementations, a given instance of AV-ASR training data includes (1) an audio data portion capturing a spoken utterance, (2) a visual data portion captured while the spoken utterance was spoken, and (3) a text representation of the spoken utterance. In some implementations, the text representation of the spoken utterance can be a pseudo ground truth generated by processing the audio data capturing the spoken utterance using a pretrained ASR model. In some implementations, the one or more AV-ASR training instances are generated in accordance of process 600 of FIG.6 described herein.
[0070] At block 504, the system trains one or more adapter layers of the AV-ASR based on one or more instances of the AV-ASR training data. In some implementations, the system trains the adapter layer(s) of the AV-ASR model in accordance with process 700 of FIG.7 described herein.
[0071] At block 506, the system determines whether to continue training the one or more adapter layers. If the system determines to continue training, the process proceeds back to block 504 and trains the adapter layer(s) based on an additional identified training instance. If not, the system proceeds to block 508. In some implementations, the system can determine to not continue training the one or more adapter layers when one or more conditions are satisfied, such as a threshold amount of time training the adapter layer(s) has elapsed, a threshold number of AV-ASR training instances have been processed in training the adapter layer(s), an AV-ASR training instances remain unprocessed, one or more additional or alternative conditions are satisfied and / or combinations thereof.
[0072] At block 508, the system trains one or more projection layers of the AV-ASR based on one or more of the instances of AV-ASR training data. In some implementations, the system trains the one or more projection layers in accordance with process 800 of FIG.8 described herein.Attorney Docket No. ZS202-23385
[0073] At block 510, the system determines the system determines whether to continue training the one or more projection layers. If the system determines to continue training, the process proceeds back to block 508 and trains the projection layer(s) based on an additional identified training instance. If not, the process ends. In some implementations, the system can determine to not continue training the one or more projection layers when one or more conditions are satisfied, such as a threshold amount of time training the projection layer(s) has elapsed, a threshold number of AV-ASR training instances have been processed in training the adapter layer(s), an AV-ASR training instances remain unprocessed, one or more additional or alternative conditions are satisfied and / or combinations thereof.
[0074] FIG.6 is a flowchart illustrating an example process 600 of generating an audiovisual training data in accordance with various implementations described herein. For convenience, the operations of the process 600 are described with reference to a system that performs the operations. This system can include one or more components of a computer system, such as computer system 1010. Moreover, while operations of process 600 are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted or added.
[0075] At block 602, the system selects an instance of audiovisual data which includes (1) and audio data portion capturing a spoken utterance and (2) a video data portion captured while the spoken utterance was spoken.
[0076] For example, the system instance of audiovisual data can include (1) audio data capturing the spoken utterance “same method pour the egg yolk into a bowl” and (2) video data captured while the utterance was spoken capturing several egg yolks being poured into a bowl.
[0077] At block 604, the system processes the audio data portion capturing the spoken utterance using an ASR model to generate a text representation of the spoken utterance. In some implementations, the ASR model can be the same ASR model reused in the AV-ASR model. In some other implementations, the ASR model is a distinct model from the ASR model reused in the AV-ASR model. For example, the system can process the audio data capturing the spoken utterance “same method pour the egg yolk into a bowl” using an ASR model to generate a ground truth representation of ““same method pour the egg yolk into a bowl”.Attorney Docket No. ZS202-23385
[0078] At block 606, the system stores an AV-ASR training instance by storing (1) the audio data portion of the selected audiovisual data selected at block 602, (2) the video data portion of the selected audiovisual data selected at block 602, and (3) the text representation of the spoken utterance generated at block 604. For example, the system can store (1) the audio data capturing the spoken utterance of ““same method pour the egg yolk into a bowl”, the video data captured while the utterance was spoken of several egg yolks being poured into a bowl, and (3) the ground truth representation of the spoken utterance of “same method pour the egg yolk into a bowl”.
[0079] At block 608, the system determines whether to generate any additional AV-ASR training instances. If so, the system proceeds back to block 602, selects an additional instance of audiovisual data, and proceeds to block 604 and 606 based on the selected additional instance of audiovisual data. If not, the process ends. In some implementations, the system can determine whether to generate additional AV-ASR training instances based on determining whether one or more conditions are satisfied, such as whether a threshold number of AV-ASR training instances have been generated, whether there are any remaining unprocessed instances of audiovisual data, whether one or more additional or alternative conditions are satisfied, and / or combinations thereof.
[0080] FIG.7 is a flowchart illustrating an example process 700 of training one or more adapter layers of an AV-ASR model in accordance with various implementations described herein. For convenience, the operations of the process 700 are described with reference to a system that performs the operations. This system can include one or more components of a computer system, such as computer system 1010. Moreover, while operations of process 700 are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted or added.
[0081] At block 702, the system selects an AV-ASR training instances. In some implementations, the AV-ASR training instances includes (1) an audio data portion capturing a spoken utterance, (2) a video data portion captured while the spoken utterance was spoken, and (3) a text representation of the spoken utterance. In some implementations, the AV-ASR training instance is generated in accordance with process 600 of FIG.6 described herein.
[0082] At block 704, the system processes, using an ASR encoder and one or more adapterAttorney Docket No. ZS202-23385 layers, the audio data portion of the AV-ASR training instance to generate an audio embedding of the spoken utterance.
[0083] At block 706, the system processes the audio embedding and optionally previously predicted text output using an ASR decoder to generate predicted text output of the spoken utterance. In some implementations, the previously predicted text output is generated in a previous iteration of process 700.
[0084] At block 708, the system generates adapter output based on comparing the predicted text output generated at block 706 with the text representation of the spoken utterance of the AV-ASR training instance selected at block 702. In some implementations, one or more portions (e.g., weights) of the one or more adapter layers are updated based on the generated adapter output.
[0085] At block 710, the system determines whether to continue training the one or more adapter layers of the AV-ASR model. If yes, the system proceeds back to block 702, selects an additional AV-ASR training instance, and proceeds to blocks 704, 706, and 708 based on the additional AV-ASR training instance. If not, the process ends. In some implementations, the system can determine to not continue training the one or more adapter layers based on whether one or more conditions are satisfied. For example, based on whether a threshold number of AV-ASR training instances have been used to train the one or more adapter layers, whether a threshold value of time has been spent training the one or more adapter layers, whether there are any remaining unselected AV-ASR training instances, whether one or more additional or alterative conditions are satisfied, and / or combinations thereof.
[0086] FIG.8 is a flowchart illustrating an example process 800 of training one or more projection layers an AV-ASR model in accordance with various implementations described herein. For convenience, the operations of the process 800 are described with reference to a system that performs the operations. This system can include one or more components of a computer system, such as computer system 1010. Moreover, while operations of process 800 are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted or added.
[0087] At block 802, the system selects an AV-ASR training instance that includes (1) an audio data portion capturing a spoken utterance, (2) a video data portion captured while theAttorney Docket No. ZS202-23385 spoken utterance was spoken, and (3) a text representation of the spoken utterance. In some implementations, the AV-ASR training instance is generated in accordance with process 600 of FIG.6 described herein.
[0088] At block 804, the system processes the audio data portion of the selected AV-ASR training instance using an ASR encoder to generate an audio embedding of the spoken utterance.
[0089] At block 806, the system processes the video data portion of the selected AV-ASR training instance using a visual encoder to generate one or more video features 806.
[0090] At block 808, the system processes the one or more video features using the one or more projection layers to generate a visual embedding of the video feature(s). In some implementations, the audio embedding generated at block 804 and the visual embedding are in a shared embedding space. In some implementations, the one or more projection layers linearly projects the visual feature(s) into the same embedding space as the audio embedding.
[0091] At block 810, the system processes, using the AV-ASR encoder with the one or more adapter layers, (1) the audio embedding and (2) the visual embedding to generate a visually contextualized embedding of the spoken utterance. In some implementations, the one or more adapter layers are trained in accordance with process 700 of FIG.7 described herein.
[0092] At block 812, the system processes the visually contextualized embedding representation of the spoken utterance using the ASR decoder portion of the AV-ASR model to generate predicted text output. In some implementations, the system optionally processes previous predicted text output and the visually contextualized embedding using the ASR decoder to generate the predicted text output. In some of those implementations, the previous predicted text output can be generated in a previous iteration of process 800.
[0093] At block 814, the system generates projection output based on comparing the predicted text output generated at block 812 with the text representation of the spoken utterance of the AV-ASR training instance selected at block 802. In some implementations, the system updates one or more portions (e.g., weights) of the one or more projection layers based on the projection output.
[0094] At block 816, the system determines whether to continue training the one or more projector layers of the AV-ASR model. If yes, the system proceeds back to block 802, selects anAttorney Docket No. ZS202-23385 additional AV-ASR training instance, and proceeds to blocks 804, 806, 808, 810, 812, and 814 based on the additional AV-ASR training instance. In no, the process ends. In some implementations, the system can determine to not continue training the one or more projection layers based on whether one or more conditions are satisfied. For example, based on whether a threshold number of AV-ASR training instances have been used to train the one or more projection layers, whether a threshold value of time has been spent training the one or more projection layers, whether there are any remaining unselected AV-ASR training instances, whether one or more additional or alterative conditions are satisfied, and / or combinations thereof.
[0095] FIG.9 is a flowchart illustrating an example process 900 of generating a text representation of a spoken utterance based on processing an instance of audiovisual data using an AV-ASR model in accordance with various implementations described herein. For convenience, the operations of the process 900 are described with reference to a system that performs the operations. This system can include one or more components of a computer system, such as computer system 1010. Moreover, while operations of process 900 are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted or added.
[0096] At block 902, the system identifies an instance of audiovisual data including an audio data portion capturing a spoken utterance and a visual data portion captured while the spoken utterance was spoken. For example, the system can identify an instance of audiovisual data with an audio data portion capturing the spoken utterance “look at the anatomy of a scooter” and a visual data portion of a person holding a scooter, where the visual data portion is captured while the spoken utterance “look at the anatomy of a scooter” is spoken.
[0097] At block 904, the system processes the video data using an AV-ASR video encoder with one or more projection layers to generate a visual embedding of one or more visual features captured in the video data. For example, the system can generate one or more features by processing the visual data of the person holding the scooter using the visual encoder. Additionally or alternatively, the system can generate the visual embedding by processing the one or more generated features using the one or more projection layers. In some implementations, the one or more projection layers can linearly project the visualAttorney Docket No. ZS202-23385 feature(s) into a shared embedding space of an audio embedding representation of the spoken utterance.
[0098] At block 906, the system processes an audio embedding representation of the spoken utterance and the visual embedding generated at block 904 using the AV-ASR encoder with one or more adapter layers to generate a visually contextualized embedding of the spoken utterance. In some implementations, the audio embedding is generated based on processing the audio data capturing the spoken utterance using an ASR model. In some implementations, the audio embedding and the visual embedding are in a shared embedding space. For example, the system can process an audio embedding representation of the spoken utterance “look at the anatomy of a scooter” and a visual embedding representation of feature(s) captured in the video data of the person holding the scooter to generate a visually contextualized embedding representing the spoken utterance of “look at the anatomy of a scooter” and the feature(s) captured in the video data of the person holding the scooter.
[0099] At block 908, the system processes the visually contextualized embedding of the spoken utterance generated at block 906 using an AV-ASR decoder to generate a predicted text representation of the spoken utterance. For example, the system can process the visually contextualized embedding representing the spoken utterance of “look at the anatomy of a scooter” and the feature(s) captured in the video data of the person holding the scooter using the AV-ASR decoder to generate a predicted text representation of the spoken utterance of “look at the anatomy of a scooter”. In contrast, processing only the audio data capturing the spoken utterance of “look at the anatomy of a scooter” using an ASR model can generate a predicted text representation of “look at the anatomy of a schooner” which is an inaccurate representation of the spoken utterance. In some implementations, the system is able to process visual cues from the corresponding video data using the AV-ASR model to increase the accuracy of the predicted text of the spoken utterance. In other words, the visual cues of a scooter from the video data portion of the instance audiovisual data can increase the likelihood the AV-ASR model can generate a more accurate predicted text representation of the spoken utterance compared to simply processing the audio data portion of the instance of audiovisual data alone.
[0100] FIG.10 is a block diagram of an example computing device 1010 that may optionallyAttorney Docket No. ZS202-23385 be utilized to perform one or more aspects of techniques described herein. Computing device 1010 typically includes at least one processor 1014 which communicates with a number of peripheral devices via bus subsystem 1012. These peripheral devices may include a storage subsystem 1024, including, for example, a memory subsystem 1025 and a file storage subsystem 1026, user interface output devices 1020, user interface input devices 1022, and a network interface subsystem 1016. The input and output devices allow user interaction with computing device 1010. Network interface subsystem 1016 provides an interface to outside networks and is coupled to corresponding interface devices in other computing devices.
[0101] User interface input devices 1022 may include a keyboard, pointing devices such as a mouse, trackball, touchpad, or graphics tablet, a scanner, a touchscreen incorporated into the display, audio input devices such as voice recognition systems, microphones, and / or other types of input devices. In general, use of the term "input device" is intended to include all possible types of devices and ways to input information into computing device 1010 or onto a communication network.
[0102] User interface output devices 1020 may include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem may include a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem may also provide non-visual display such as via audio output devices. In general, use of the term "output device" is intended to include all possible types of devices and ways to output information from computing device 1010 to the user or to another machine or computing device.
[0103] Storage subsystem 1024 stores programming and data constructs that provide the functionality of some or all of the modules described herein. For example, the storage subsystem 1024 may include the logic to perform selected aspects of process 500 of FIG.5, process 600 of FIG.6, process 700 of FIG.7, process 800 of FIG.8, and / or process 900 of FIG.9. These software modules are generally executed by processor 1014 alone or in combination with other processors. Memory 1025 used in the storage subsystem 1024 can include a number of memories including a main random access memory (RAM) 1030 for storage of instructions and data during program execution and a read only memory (ROM) 1032 in whichAttorney Docket No. ZS202-23385 fixed instructions are stored. A file storage subsystem 1026 can provide persistent storage for program and data files, and may include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges. The modules implementing the functionality of certain implementations may be stored by file storage subsystem 1026 in the storage subsystem 1024, or in other machines accessible by the processor(s) 1014.
[0104] Bus subsystem 1012 provides a mechanism for letting the various components and subsystems of computing device 1010 communicate with each other as intended. Although bus subsystem 1012 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.
[0105] Computing device 1010 can be of varying types including a workstation, server, computing cluster, blade server, server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, the description of computing device 1010 depicted in FIG.10 is intended only as a specific example for purposes of illustrating some implementations. Many other configurations of computing device 1010 are possible having more or fewer components than the computing device depicted in FIG.10.
[0106] In some implementations, a method implemented by one or more processors is provided, the method includes identifying an instance of audiovisual data including an audio data portion capturing a spoken utterance and a visual data portion captured while the spoken utterance is spoken. In some implementations, the method includes processing the instance of audiovisual data using an audiovisual automatic speech recognition (AV-ASR) model to generate a predicted text representation of the spoken utterance. In some implementations, the AV-ASR model includes an automatic speech recognition (ASR) encoder with one or more adapter layers, a video encoder with one or more projection layers, and an ASR decoder. In some implementations, processing the instance of audiovisual data using the AV-ASR includes processing the visual data, using the video encoder, to generate one or more visual features. In some implementations, the method includes processing the visual features, using the one or more projection layers, to generate a visual embedding. In some implementations, the method includes processing the visual embedding and an audio embedding, using the ASRAttorney Docket No. ZS202-23385 encoder and the adapter layers, to generate a visually contextualized audio embedding. In some implementations, the audio embedding is based on the audio data portion, the visual embedding is based on the visual data portion, and the audio embedding and the visual embedding are in a shared embedding space. In some implementations, the method includes processing the visually contextualized audio embedding, using the ASR decoder, to generate the predicted text representation of the spoken utterance.
[0107] These and other implementations of the technology disclosed herein can include one or more of the following features.
[0108] In some implementations, the video data portion of the instance of audiovisual data does not capture the speaker of the spoken utterance.
[0109] In some implementations, the video data portion of the instance of audiovisual data does not capture the mouth of the speaker of the spoken utterance.
[0110] In some implementations, the ASR encoder is conformer encoder and the ASR decoder is a RNN-T decoder. In some versions of those implementations, the one or more adapter layers are interleaved with one or more conformer blocks of the conformer encoder. In some versions of those implementations, the one or more adapter layers interleaved with the one or more conformer blocks are feed-forward neural network layers. In some versions of those implementations, the one or more adapter layers interleaved with the one or more conformer blocks are feed-forward neural network layers with self attention.
[0111] In some implementations, the video encoder is a pre-trained Contrastive Vision- Language Pre-training (CLIP) model, wherein the CLIP encoder is pre-trained using training instances that include audio data and text pairs.
[0112] In some implementations, a method implemented by one or more processors is provided, the method includes training an audiovisual automatic speech recognition (AV-ASR) model for use in generating a text representation of a spoken utterance. In some implementations, the AV-ASR model includes an automatic speech recognition (ASR) encoder with one or more adapter layers, a video encoder with one or more projection layers, and an ASR decoder. In some implementations, the video encoder is used to generate visual features based on processing visual data. In some implementations, the projection layers are used to generate a visual embedding based on processing the visual features. In someAttorney Docket No. ZS202-23385 implementations, the ASR encoder and the one or more adapter layers are used to generate a visually contextualized audio embedding based on processing the visual embedding and an audio embedding. In some implementations, the audio embedding is based on audio data that captures a spoken utterance and that is temporally aligned with the visual data, and the audio embedding and the visual embedding are in a shared embedding space. In some implementations, the ASR decoder is used to generate a predicted text representation based on the visually contextualized audio embedding. In some implementations, training the AV- ASR model, to generate the text representation of the spoken utterance includes identifying instances of AV-ASR training data, wherein each of the instances of AV-ASR training data includes a corresponding training audio data portion capturing a corresponding training spoken utterance, a corresponding visual data portion captured while the training spoken utterance is spoken, and a corresponding training text representation of the training spoken utterance. For one or more of the instances of the instances of the AV-ASR training data, and until one or more conditions are satisfied, the method includes processing the corresponding audio data portion of the instance of AV-ASR training data, using the ASR encoder and the adapter layers to generate a training audio embedding. The method includes processing the training audio embedding using the ASR decoder to generate adapter training output. The method includes updating one or more portions of the adapter layers based on comparing (1) the adapter training output and (2) the corresponding training text representation of the training spoken utterance of the instance of AV-ASR training data. Subsequent to training the one or more adapter layers of the AV-ASR model, for one or more of the instances of the AV-ASR training data, and until one or more additional conditions are satisfied, the method includes processing the corresponding visual data portion of the instance of AV-ASR training data using the video encoder to generate one or more training visual features. The method includes processing the one or more training visual features using the one or more projection layers to generate a training visual embedding. The method includes processing, using the ASR encoder and one or more adapter layers, (1) the training visual embedding and (2) a training audio embedding, to generate a training visually contextualized audio embedding, wherein the training audio embedding is based on the audio data portion of the instance of AV-ASR training data, and the training visual embedding and the training audio embedding are in the shared embeddingAttorney Docket No. ZS202-23385 space. The method includes processing the training visually contextualized audio embedding using the ASR decoder to generate projector training output. The method includes updating one or more portions of the projection layers based on comparing (1) the projector training output and (2) the corresponding training text representation of the training spoken utterance of the instance of AV-ASR training data.
[0113] These and other implementations of the technology disclosed herein can include one or more of the following features.
[0114] In some implementations, the corresponding text representation of the corresponding training spoken utterance is generated based on processing the corresponding training audio data using an audio only ASR model.
[0115] In some implementations, the ASR encoder is a pre-trained ASR encoder model and wherein the pre-trained ASR encoder is frozen while the one or more portions of the adapter layers are updated. In some versions of those implementations, the pre-trained ASR encoder model was trained using a given loss function, and wherein updating the one or more portions of the adapter layers based on comparing (1) the adapter training output and (2) the corresponding training text representation of the training spoken utterance of the instance of AV-ASR training data comprises updating one or more weights of the adapter layers based on the given loss function.
[0116] In some implementations, the ASR decoder is a pre-trained decoder model, and wherein the pre-trained decoder model is frozen while the one or more portions of the adapter layers and / or the one or more portions of the projector layers are updated.
[0117] In some implementations, the ASR encoder is a conformer encoder, and wherein the conformer encoder includes one or more conformer blocks and the one or more conformer blocks are interleaved with the one or more adapter layers.
[0118] In some implementations, the ASR decoder is a recurrent neural network transformer (RNN-T) decoder.
[0119] In some implementations, the visual encoder is a pre-trained Contrastive Vision- Language Pre-training (CLIP) model.Attorney Docket No. ZS202-23385
[0120] In some implementations, training the AV-ASR model, to generate the text representation of the spoken utterance includes a curriculum learning strategy. In some versions of those implementations, the curriculum learning strategy is a two phase curriculum learning strategy, wherein the first phase includes updating the one or more portions of the adapter layers, and wherein the second phase includes updating the one or more portions of the projection layers.
[0121] In some implementations, subsequent to training the AV-ASR model, the method further includes, identifying a given instance of audiovisual data including a given audio data portion capturing a given spoken utterance and a given visual data portion captured while the given spoken utterance was spoken. In some implementations, the method further includes processing the given instance of audiovisual data using the AV-ASR model to generate a given predicted text representation of the given spoken utterance.
[0122] Other implementations can include a non-transitory computer readable storage medium storing instructions executable by one or more processor(s) (e.g., a central processing unit(s) (CPU(s)), graphics processing unit(s) (GPU(s)), and / or tensor processing unit(s) (TPU(s))) to perform a method such as one or more of the methods described herein. Yet other implementations can include a system of one or more computers and / or one or more robots that include one or more processors operable to execute stored instructions to perform a method such as one or more of the methods described herein.
Claims
Attorney Docket No. ZS202-23385 CLAIMS What is claimed is:
1. A method implemented by one or more processors, the method comprising: identifying an instance of audiovisual data including an audio data portion capturing a spoken utterance and a visual data portion captured while the spoken utterance is spoken; processing the instance of audiovisual data using an audiovisual automatic speech recognition (AV-ASR) model to generate a predicted text representation of the spoken utterance, wherein the AV-ASR model includes an automatic speech recognition (ASR) encoder with one or more adapter layers, a video encoder with one or more projection layers, and an ASR decoder, and wherein processing the instance of audiovisual data using the AV-ASR comprises: processing the visual data, using the video encoder, to generate one or more visual features, processing the visual features, using the one or more projection layers, to generate a visual embedding, processing the visual embedding and an audio embedding, using the ASR encoder and the adapter layers, to generate a visually contextualized audio embedding, wherein the audio embedding is based on the audio data portion, the visual embedding is based on the visual data portion, and the audio embedding and the visual embedding are in a shared embedding space, processing the visually contextualized audio embedding, using the ASR decoder, to generate the predicted text representation of the spoken utterance.
2. The method of claim 1, wherein the video data portion of the instance of audiovisual data does not capture the speaker of the spoken utterance.Attorney Docket No. ZS202-23385 3. The method of any one of the preceding claims, wherein the video data portion of the instance of audiovisual data does not capture the mouth of the speaker of the spoken utterance.
4. The method of any one of the preceding claims, wherein the ASR encoder is conformer encoder and the ASR decoder is a RNN-T decoder.
5. The method of claim 4, wherein the one or more adapter layers are interleaved with one or more conformer blocks of the conformer encoder.
6. The method of claim 5, wherein the one or more adapter layers interleaved with the one or more conformer blocks are feed-forward neural network layers.
7. The method of claim 6, wherein the one or more adapter layers interleaved with the one or more conformer blocks are feed-forward neural network layers with self attention.
8. The method of one of the preceding claims, wherein the video encoder is a pre-trained Contrastive Vision-Language Pre-training (CLIP) model, wherein the CLIP encoder is pre-trained using training instances that include audio data and text pairs.
9. A method implemented by one or more processors, the method comprising: training an audiovisual automatic speech recognition (AV-ASR) model for use in generating a text representation of a spoken utterance, wherein the AV-ASR model includes an automatic speech recognition (ASR) encoder with one or more adapter layers, a video encoder with one or more projection layers, and an ASR decoder, wherein the video encoder is used to generate visual features based on processing visual data, wherein the projection layers are used to generate a visual embedding based on processing the visual features,Attorney Docket No. ZS202-23385 wherein the ASR encoder and the one or more adapter layers are used to generate a visually contextualized audio embedding based on processing the visual embedding and an audio embedding, wherein the audio embedding is based on audio data that captures a spoken utterance and that is temporally aligned with the visual data, and the audio embedding and the visual embedding are in a shared embedding space, wherein the ASR decoder is used to generate a predicted text representation based on the visually contextualized audio embedding, and wherein training the AV-ASR model, to generate the text representation of the spoken utterance comprises: identifying instances of AV-ASR training data, wherein each of the instances of AV-ASR training data includes a corresponding training audio data portion capturing a corresponding training spoken utterance, a corresponding visual data portion captured while the training spoken utterance is spoken, and a corresponding training text representation of the training spoken utterance; for one or more of the instances of the instances of the AV-ASR training data, and until one or more conditions are satisfied: processing the corresponding audio data portion of the instance of AV-ASR training data, using the ASR encoder and the adapter layers to generate a training audio embedding; processing the training audio embedding using the ASR decoder to generate adapter training output; updating one or more portions of the adapter layers based on comparing (1) the adapter training output and (2) the corresponding training text representation of the training spoken utterance of the instance of AV-ASR training data; subsequent to training the one or more adapter layers of the AV-ASR model, for one or more of the instances of the AV-ASR training data, and until one or more additional conditions are satisfied:Attorney Docket No. ZS202-23385 processing the corresponding visual data portion of the instance of AV-ASR training data using the video encoder to generate one or more training visual features; processing the one or more training visual features using the one or more projection layers to generate a training visual embedding; processing, using the ASR encoder and one or more adapter layers, (1) the training visual embedding and (2) a training audio embedding, to generate a training visually contextualized audio embedding, wherein the training audio embedding is based on the audio data portion of the instance of AV-ASR training data, and the training visual embedding and the training audio embedding are in the shared embedding space; processing the training visually contextualized audio embedding using the ASR decoder to generate projector training output; and updating one or more portions of the projection layers based on comparing (1) the projector training output and (2) the corresponding training text representation of the training spoken utterance of the instance of AV-ASR training data.
10. The method of claim 9, wherein the corresponding text representation of the corresponding training spoken utterance is generated based on processing the corresponding training audio data using an audio only ASR model.
11. The method of claim 9 or claim 10, wherein the ASR encoder is a pre-trained ASR encoder model and wherein the pre-trained ASR encoder is frozen while the one or more portions of the adapter layers are updated.
12. The method of claim 11, wherein the pre-trained ASR encoder model was trained using a given loss function, and wherein updating the one or more portions of the adapter layers based on comparing (1) the adapter training output and (2) the corresponding training textAttorney Docket No. ZS202-23385 representation of the training spoken utterance of the instance of AV-ASR training data comprises updating one or more weights of the adapter layers based on the given loss function.
13. The method of any one of claims 9 to 12, wherein the ASR decoder is a pre-trained decoder model, and wherein the pre-trained decoder model is frozen while the one or more portions of the adapter layers and / or the one or more portions of the projector layers are updated.
14. The method of any one of claims 9 to 13, wherein the ASR encoder is a conformer encoder, and wherein the conformer encoder includes one or more conformer blocks and the one or more conformer blocks are interleaved with the one or more adapter layers.
15. The method of any one of claims 9 to 14, wherein the ASR decoder is a recurrent neural network transformer (RNN-T) decoder.
16. The method of any one of claims 9 to 15, wherein the visual encoder is a pre-trained Contrastive Vision-Language Pre-training (CLIP) model.
17. The method of claim 9, wherein training the AV-ASR model, to generate the text representation of the spoken utterance comprises a curriculum learning strategy.
18. The method of claim 17, wherein the curriculum learning strategy is a two phase curriculum learning strategy, wherein the first phase includes updating the one or more portions of the adapter layers, and wherein the second phase includes updating the one or more portions of the projection layers.
19. The method of claim 9, further comprising:Attorney Docket No. ZS202-23385 subsequent to training the AV-ASR model, identifying a given instance of audiovisual data including a given audio data portion capturing a given spoken utterance and a given visual data portion captured while the given spoken utterance was spoken; and processing the given instance of audiovisual data using the AV-ASR model to generate a given predicted text representation of the given spoken utterance.
20. A computer program comprising instructions that when executed by one or more processors of a computing system, cause the computing system to perform the method of any preceding claim.
21. A computing system configured to perform the method of any one of claims 1 to 19.
22. A computer-readable storage medium storing instructions executable by one or more processors of a computing system to perform the method of any one of claims 1 to 19.
