Lookup Table Recurrent Language Models
A lookup table recurrent language model with separate embedding tables for current and previous tokens addresses the inefficiencies in ASR systems, enhancing recognition of rare words by utilizing context without increasing computational load.
Patent Information
- Application Number
- JP2023558607
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-24
- Filing Date
- 2022-02-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-02-10
AI Technical Summary
Existing automatic speech recognition (ASR) systems struggle to accurately recognize infrequently spoken words due to their exclusion from acoustic training data, leading to inefficiencies from large memory and computational requirements when using language models trained on text-only data.
Implementing a lookup table recurrent language model that uses a first embedding table for current tokens and a second embedding table for previous n-gram tokens, allowing for increased vocabulary size without increasing computational load by storing these tables sparsely on memory hardware, thus improving recognition of rare words.
Enhances the accuracy of ASR systems in recognizing rare words by leveraging context information from previous tokens, reducing computational and memory burdens while maintaining efficiency.
Smart Images

Figure 0007544989000004 
Figure 0007544989000005 
Figure 0007544989000006
Abstract
Description
[Technical field]
[0001] The present disclosure relates to lookup table recurrent language models. [Background technology]
[0002] Automatic speech recognition (ASR) systems have become increasingly popular in recent years due to assistant-enabled devices. Improving recognition of infrequently spoken words is an ongoing problem for ASR systems. Infrequently spoken words are rarely included in acoustic training data and are therefore difficult for ASR systems to accurately recognize in speech. In some cases, ASR systems include language models that train on text-only data to improve recognition of infrequently spoken words. However, these language models often include large memory and computational requirements that lead to reduced efficiency of the ASR system. Summary of the Invention [Means for solving the problem]
[0003] One aspect of the disclosure provides a computer-implemented method that, when executed on the data processing hardware, causes the data processing hardware to perform operations for performing speech recognition using a look-up table recurrent language model. The operations include receiving audio data corresponding to an utterance spoken by a user and captured by a user device. The operations also include processing the audio data to determine, using a speech recognizer, a candidate transcription comprising a sequence of tokens of the spoken utterance. For each token of the sequence of tokens, the operations include determining a token embedding of the corresponding token using a first embedding table, determining an n-gram token embedding of a previous sequence of n-gram tokens using a second embedding table, and concatenating the token embedding and the n-gram token embedding to generate a concatenated output for the corresponding token. The operations also include rescoring the candidate transcription of the spoken utterance by processing the concatenated output generated for each corresponding token of the sequence of tokens using an external language model.
[0004] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, the external language model includes a recurrent neural network language model. The external language model may be integrated with the speech recognizer by decomposing the speech recognizer into a Hybrid Autoregressive Transducer (HAT). In some examples, the speech recognizer includes a conformer audio encoder and a recurrent neural network-transducer decoder. In other examples, the speech recognizer includes a transformer audio encoder and a recurrent neural network-transducer decoder. Optionally, each token in the sequence of tokens of the candidate transcription may represent a word in the candidate transcription. Each token in the sequence of tokens of the candidate transcription may represent a wordpiece in the candidate transcription.
[0005] In some implementations, each token in the sequence of tokens of the candidate transcription represents an n-gram, a phoneme, or a grapheme in the candidate transcription. In some examples, the first embedding table and the second embedding table are sparsely stored on memory hardware in communication with the data processing hardware. Determining the token embedding of the corresponding token may include retrieving the token embedding from the first embedding table by lookup without requiring access to any graphics processing unit and / or tensor processing unit. Optionally, the data processing hardware may be present on a user device.
[0006] Another aspect of the disclosure provides a system including 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 include receiving audio data corresponding to an utterance spoken by a user and captured by a user device. The operations also include processing the audio data using a speech recognizer to determine a candidate transcription including a sequence of tokens of the spoken utterance. For each token of the sequence of tokens, the operations include determining a token embedding of the corresponding token using a first embedding table, determining an n-gram token embedding of a previous sequence of n-gram tokens using a second embedding table, and concatenating the token embedding and the n-gram token embedding to generate a concatenated output for the corresponding token. The operations also include rescoring the candidate transcription of the spoken utterance by processing the concatenated output generated for each corresponding token of the sequence of tokens using an external language model.
[0007] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, the external language model includes a recurrent neural network language model. The external language model may be integrated with the speech recognizer by hybrid autoregressive transducer (HAT) decomposition of the speech recognizer. In some examples, the speech recognizer includes a conformer audio encoder and a recurrent neural network-transducer decoder. In other examples, the speech recognizer includes a transformer audio encoder and a recurrent neural network-transducer decoder. Optionally, each token of the sequence of tokens of the candidate transcription may represent a word in the candidate transcription. Each token of the sequence of tokens of the candidate transcription may represent a word piece in the candidate transcription.
[0008] In some implementations, each token in the sequence of tokens of the candidate transcription represents an n-gram, a phoneme, or a grapheme in the candidate transcription. In some examples, the first embedding table and the second embedding table are sparsely stored on memory hardware in communication with the data processing hardware. Determining the token embedding of the corresponding token may include retrieving the token embedding from the first embedding table by lookup without requiring access to any graphics processing unit and / or tensor processing unit. Optionally, the data processing hardware may be present on a user device.
[0009] The details of one or more implementations of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram of an example system for integrating a speech recognition model with a language model having an n-gram embedding lookup table. [Diagram 2] FIG. 2 is a diagram of an exemplary speech recognition model. [Diagram 3] FIG. 2 is a schematic diagram of the example language model of FIG. [Figure 4] 1 is a diagram of an example sequence of operations for a method of performing speech recognition using a look-up table recurrent language model. [Diagram 5] FIG. 1 is a schematic diagram of an example computing device that may be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Like reference numbers in the various drawings indicate like elements.
[0012] Improving the recognition of rare words or sequences is an ongoing problem in speech recognition systems that misrecognize many input text utterances that occur with zero or low frequency in the acoustic data. In particular, proper nouns such as street names, cities, etc. are rarely spoken (i.e., long tail content) and are often not included in the acoustic training data, making it difficult for speech recognition systems to recognize the long tail content. In some implementations, speech recognition systems integrate language models that are trained with text-only data that contains the rarely spoken long tail content. That is, the language model may be trained with a corpus of text-only data that contains long tail content that is not in the acoustic data, which can bias the speech recognition system to correctly decode the long tail content.
[0013] To accurately model the vast amount of long-tail content, language models need to increase the size of their embedding vocabulary. The embedding vocabulary represents embedded identification information associated with each token in the language model's token vocabulary (i.e., words, word pieces, n-grams, etc.). In most cases, increasing the embedding vocabulary involves increasing the token vocabulary, which requires a large amount of memory and computational resources, which puts a strain on the speech recognition system. In addition, downstream tasks of the speech recognition system are also affected by the increased token vocabulary.
[0014] Implementations herein are directed to recurrent language models that increase the embedding vocabulary while keeping the size of the token vocabulary constant. That is, the embedding vocabulary increases independently of the token vocabulary, allowing for more accurate modeling without taxing the computational resources of the speech recognition system. In particular, the recurrent language model includes a first embedding table that generates a token embedding of a current token (e.g., word, word piece, n-gram, etc.) of the token sequence, and a second embedding table that generates a sequence embedding of a previous token of the token sequence (e.g., n-gram sequence). Here, the token embedding provides the speech recognition system with the likelihood of transcribing a particular word, and the sequence embedding provides the likelihood of transcribing a particular word based on a particular sequence of previously transcribed words. Thus, the second embedding table increases the embedding vocabulary of the language model while the token vocabulary remains constant.
[0015] Scaling up the embedding vocabulary of the language model using the second embedding table does not require additional operations (e.g., computational resources) of the speech recognition system because the size of the embedding vocabulary does not affect the number of embedding searches or operations at each output step. Thus, the only practical constraint on the size of the embedding vocabulary is memory capacity. In some examples, the embedding table may be sparsely accessed and not stored in the graphics processing unit (GPU) and / or tensor processing unit (TPU). Rather, the embedding table may be stored in the memory, disk, or other storage of a computer processing unit (CPU), including capacities much larger than the memory of the GPU and / or TPU.
[0016] 1, in some implementations, an exemplary speech recognition system 100 includes a user device 102 associated with a respective user 10. The user device 102 may communicate with a remote system 110 via a network 104. The user device 102 may correspond to a computing device such as a mobile phone, a computer, a wearable device, a smart appliance, an audio infotainment system, a smart speaker, etc., and includes data processing hardware 103 and memory hardware 105. The remote system 110 may be a single computer, multiple computers, or a distributed system (e.g., a cloud environment) with scalable / elastic computing resources 112 (e.g., data processing hardware) and / or storage resources 114 (e.g., memory hardware).
[0017] The user device 102 may receive streaming audio 118 captured by one or more microphones 106 of the user device 102 corresponding to an utterance 119 spoken by the user 10 and extract acoustic features from the streaming audio 118 to generate audio data 120 corresponding to the utterance 119. The acoustic features may include Mel-Frequency Cepstral Coefficients (MFCCs) or filter bank energies calculated over a window of the audio data 120 corresponding to the utterance 119. The user device 102 communicates the audio data 120 corresponding to the utterance 119 to a speech recognizer 200 (also referred to herein as an automatic speech recognizer (ASR) model 200). The ASR model 200 may reside and execute on the user device 102. In other implementations, the ASR model 200 resides and executes on the remote system 110.
[0018] Referring to FIG. 2, the ASR model 200 may provide end-to-end (E2E) speech recognition by integrating acoustic, pronunciation, and language models into a single neural network, and does not require a lexicon or separate text normalization components. Various structures and optimization mechanisms can provide improved accuracy and reduced model training time. The ASR model 200 may include a conformer-transducer model architecture that adheres to latency constraints associated with interactive applications. The ASR model 200 provides a small computational footprint and utilizes lower memory requirements than typical ASR architectures, making the ASR model architecture suitable for performing speech recognition entirely on the user device 102 (e.g., no communication with a remote system 110 is required). The ASR model 200 includes an audio encoder 201, a label encoder 220, and a joint network 230. The audio encoder 201, which is generally similar to an acoustic model (AM) in a conventional ASR system, includes a neural network with multiple conformer layers. For example, the audio encoder 201 may compute a sequence of d-dimensional feature vectors (e.g., acoustic frames of streaming audio 118 (FIG. 1)) x = (x1, x2, . . . , x T ), but x t ∈
[0019]
number
[0020] and the audio encoder 201 generates a high-level feature representation at each time step. TOptionally, the audio encoder 201 may include a transformer layer instead of a conformer layer. Similarly, the label encoder 220 may include a neural network or look-up table embedding model of the transformer layer, which, like a language model (LM), represents the sequence of non-blank symbols y0, ..., y ui-1 to create a dense representation Ih u to.
[0021] Finally, the representations generated by the audio encoder 201 and the label encoder 220 are then scaled to a dense layer J u,t The joint network 230 then combines the output symbols P(Z u,t | x, t, y1, ..., y u-1) in the natural language. In other words, the joint 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 (also called "speech units") each representing a grapheme (e.g., a symbol / character) or a wordpiece or word in a specified natural language. For example, when the natural language is English, the set of output labels may include 27 symbols, e.g., one label for each of the 26 letters of the English alphabet, and one label specifying a space. Thus, the joint network 230 may output a set of values indicating the likelihood of occurrence of each of a given set of output labels. This set of values may be a vector and may indicate a probability distribution of 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 include word pieces and / or entire words in addition to or instead of graphemes. The output distribution of the joint network 230 may include a posterior probability value for each of the different output labels. Thus, if there are 100 different output labels representing different graphemes or other symbols, the output z u,t may contain 100 different probability values, one for each output label. The probability distributions may then be used to select and assign scores to candidate orthographic elements (e.g., graphemes, wordpieces, and / or words) in a beam search process (e.g., by softmax layer 240) to determine the transcription.
[0022] 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 ASR model 200 in the corresponding output step. In this way, the ASR model 200 does not make any conditional independence assumptions; rather, the prediction of each symbol is conditioned not only on the acoustics but also on the sequence of labels output so far.
[0023] Referring again to FIG. 1 , the ASR model 200 is configured to process the audio data 120 to determine candidate transcriptions 132 of the spoken utterance 119, where the candidate transcriptions include a sequence of tokens 133, 133a-n, where each token 133 represents a portion of the candidate transcription 132 of the utterance 119. That is, each token 133 in the sequence of tokens 133 may represent a potential word, word piece, n-gram, phoneme, and / or grapheme in the candidate transcription 132. For example, the ASR model 200 generates the candidate transcription 132 "driving directions to bourbon" for the spoken utterance 119 "driving directions to Beaubien." In this example, each token 133 in the sequence of tokens 133 of the candidate transcription 132 may represent one word. Thus, the sequence of tokens 133 includes four tokens 133, each of which represents a single word in the candidate transcription 132 (e.g., "driving directions to bourbon"). In particular, the fourth token 133, which represents the word "bourbon," is misrecognized by the ASR model 200 with respect to the correct word "Beaubien."
[0024] Further, the ASR model 200 may generate, for each token 133 in the sequence of tokens 133, a corresponding probability distribution of possible candidate tokens. For example, for a fourth token 133 in the sequence of tokens 133, the ASR model 200 may generate the tokens "bourbon" and "Beaubien" as corresponding possible tokens, each with a corresponding probability or likelihood indicating the confidence that the ASR model 200 recognized a possible token for each fourth token 133. Here, although the first and second candidate tokens are phonetically similar, the ASR model may prioritize the first candidate token associated with the word "bourbon" over the second candidate token associated with the word "Beaubien" because "Beaubien" is a proper noun (e.g., a rare word or long-tail content) that is likely not included in the acoustic training data of the ASR model 200. That is, the ASR model 200 may not correctly recognize this particular word in the utterance 119 because "Beaubien" was not included in the acoustic training data or was included in only some instances of the acoustic training data. In other words, the ASR model 200 may be configured to output a higher probability / likelihood score for the first candidate token (e.g., bourbon) than the second candidate token (e.g., Beaubien). Thus, the ASR model outputs the fourth token 133 in the sequence of tokens 133 as "bourbon" due to the higher probability / likelihood score. Although the example describes only two candidate tokens in the probability distribution of possible candidate tokens for simplicity, the number of possible candidate tokens in the probability distribution can be any number greater than or equal to three. In some examples, each token 133 in the sequence of tokens 133 is represented by an n-best list of possible candidate tokens 133 associated with a ranked list of the n possible candidate tokens 133 with the highest probability / likelihood score. Each candidate token 133 may be referred to as a speech recognition hypothesis.In a further example, each token 133 in the sequence of tokens 133 is represented by the possible candidate token 133 having the highest probability / likelihood score in a probability distribution of possible candidate tokens 133 .
[0025] The ASR model 200 communicates the candidate transcription 132, which includes the sequence of tokens 133, to a language model (i.e., a recurrent language model) 300. The language model 300 may reside in the memory hardware 105 of the user device 102, or optionally in the storage resources 114 of the remote system 110, or some combination thereof. The language model 300 is configured to determine the likelihood of outputting each token 133 of the sequence of candidate tokens 133. That is, the language model 300 rescores the candidate transcription 132 output by the ASR model 200 by determining which of the possible candidate tokens 133 of each token 133 of the sequence of tokens 133 is most likely to correctly represent the corresponding token 133 in the candidate transcription 132 of the spoken utterance 119. The language model 300 may help bias the speech recognition hypotheses output by the ASR model 200 toward rare words, such as proper nouns or long-tail content, that are rarely or never included in the training audio data used to train the ASR model 200. In the above example, the language model 300 may bias the speech recognition by boosting the probability / likelihood score of the candidate token 133 associated with the word "Beaubien" in the probability distribution of possible candidate tokens 133 for the fourth token 133 in the sequence of tokens 133. Here, the boosted probability / likelihood score of the candidate token 133 associated with the word "Beaubien" may now be higher than the probability / likelihood score of the candidate token "bourbon", thereby resulting in a re-scored transcription 345 for now correctly recognizing the word "Beaubien" from the spoken utterance 119.
[0026] The language model 300 may include a recurrent neural network (RNN) language model. More specifically, the language model 300 may include a lookup table language model configured to scale up the size of the RNN language model by increasing the number of rows in the embedding table, but with only a minimal increase in floating-point operations. That is, the lookup table allows the embeddings to be stored sparsely on memory hardware (e.g., CPU memory or disk) and retrieved from the table by lookup such that the size of the table does not add additional operations to each forward pass, reducing storage needs on limited / constrained GPU / TPU memory.
[0027] The language model 300 includes a first embedding table 310, a second embedding table 320, a concatenator 330, and a recurrent neural network (RNN) 340. In some examples, the language model 300 is trained with text-only data containing rarely spoken words (i.e., long-tail content) to bias the candidate tokens of the ASR model 200 towards correctly transcribing the long-tail content.
[0028] The first embedding table 310 includes a current token 133, t i where t i denotes the current token 133 in the sequence of tokens 133. The first embedding table 310 determines the respective token embedding 312 for each token 133 independently of the rest of the tokens 133 in the sequence of tokens 133. Meanwhile, the second embedding table 320 determines the respective token embedding 312 for the previous n-gram token sequence 133, t0, ..., t n-1 , and generates respective n-gram token embeddings 322. n-1) provides context information about the previously generated tokens 133 at each time step. n-1 grows exponentially with n at each time step. Thus, n-gram token embedding 322 at each output step helps with short-term dependencies, such as spelling out rare words, thereby improving modeling of long tail tokens (e.g., words) in the subword model.
[0029] At each time step, the concatenator 330 concatenates the token embeddings 312 and the n-gram token embeddings 322 into a concatenated output 335. The RNN 340 receives the concatenated output 335 and finally uses the concatenated output 335 to rescore the candidate transcriptions 132 output by the ASR model 200 to generate a rescored transcription (e.g., a final transcription) 345. Further, the language model 300 may provide the rescored transcription 345 to the user device 102 via the network 104. The user device 102 may visually display the rescored transcription 345 on a display of the user device 102 or audibly present the rescored transcription 345 via one or more speakers of the user device 102. In other examples, the rescored transcription 345 may be a query that instructs the user device 102 to perform an action.
[0030] In the single output step of the illustrated example, the second embedding table 320 may generate an n-gram token embedding 322 representing the entire sequence of three previous n-gram tokens (e.g., “driving directions to”) from the current token 133 (e.g., “bourbon”) represented by the respective token embedding 312 retrieved by the first embedding table 310. The concatenator 330 may then concatenate the n-gram token embedding 322 with the respective token embedding 312 to generate a concatenated output 335 (e.g., “driving directions to bourbon”). The RNN 340 rescores the candidate transcriptions 132 by processing the concatenated output 335. For example, the RNN 340 may rescore the candidate transcriptions 132 (e.g., driving directions to bourbon) to boost the likelihood / probability score of “Beaubien” such that it now has a higher likelihood / probability score for the fourth token 133 than “bourbon.” The RNN 340 uses current context information (e.g., the previous n-gram token sequence t0, ..., t n-1 ) increases the likelihood / probability score of "Beaubien" based in part on the determination that "bourbon" is not likely to be the correct token 133. Thus, the RNN 340 generates a rescored transcription 345 (e.g., driving directions to Beaubien). In particular, the fourth token 133 is now correctly recognized in the rescored transcription 345, even though it was misrecognized in the candidate transcription 132.
[0031] 3 shows a schematic diagram of the recurrent language model 300 of FIG. 1. A first embedding table 310 includes multiple token embeddings 312, 312a-n, and a second embedding table 320 includes multiple n-gram token embeddings 322, 322a-n. The first embedding table 310 is represented by a U×E matrix, where E represents the embedding dimension (i.e., embedding length) and U represents the number of token embeddings 322 in the first embedding table 310. In general, the number of embeddings is equal to the number V of unique tokens (e.g., number of words, word pieces, n-grams, etc.). That is, the first embedding table 310 stores a respective token embedding 312 for each possible token 133 (e.g., word, word piece, etc.). For example, when token 133 includes word pieces, recurrent language model 300 may include a 4,096 word piece model with two LSTM layers of width 512, and the dimension E of token embedding 312 may be equal to 96. n-gram token embeddings 322 may include a dimension of 2,048 when n is set to 4. A second embedding table (e.g., n-gram embedding table) 320 may include a dimension of each previous n-gram token sequence (e.g., t0, ..., t n-1 ) may be assigned an embedded n-gram token embedding (e.g., embedding identifier) 322 by modular hashing, as follows:
[0032]
number
[0033] In particular, modular hashing involves collisions as any different n-gram embeddings hash to the same n-gram token embedding 322. However, by increasing the number of unique tokens V, collisions are reduced and performance is improved.
[0034] In the illustrated example, the first embedding table 310 and the second embedding table 320 receive a sequence of tokens 133 of the candidate transcription 132 corresponding to the spoken utterance 119 "Hello Pam." In particular, the candidate transcription 132 misrecognizes the correct word "Pam" as the word "pan." Here, the first embedding table 310 receives a current token 133 (e.g., t2) in the candidate transcription 132 that corresponds to a third token 133c in the sequence of tokens 133. The first embedding table 310 determines a token embedding 312 from the multiple token embeddings 312 for the third token 133c, independently from the rest of the sequence of tokens 133. In this example, "pan" may have a likelihood / probability score of 0.8, while "Pam" has a likelihood / probability score of 0.2, so the first embedding table 310 determines "pan" as the third token 133c (indicated by a black box).
[0035] The second embedding table 320 receives the previous n-gram token sequence 133 of the candidate transcription 132. Here, the previous n-gram token sequence 133 is <s>Hello" (for example, t0, t1), <s>indicates the beginning token 133 of the sequence. The second embedding table 320 is based on the previous n-gram token sequence 133 and <s>Determine the n-gram token embeddings 322 of "Hello" (indicated by the black boxes).
[0036] The concatenator 330 combines the token embedding 312 output from the first embedding table 310 for the current token “pan” with <s>Hello” and the n-gram token embedding 322 of “Hello” are concatenated into the concatenated output 335 (e.g., “ <s>The concatenated output 335 provides the concatenated output 335 to the RNN cells of the RNN 340. In particular, the concatenated output 335 causes the RNN 340 to increase the dense parameters to process the concatenated output 335, but the scaling is linear rather than quadratic since the dimensions of the RNN output remain fixed. The contextual information from the n-gram token embeddings 322 is not only useful as an input to the RNN 340, but is also useful in intermediate layers, as intermediate layers / cells receive contextual information via hidden states specific to that layer. Thus, the RNN 340 may inject the concatenated output 335 into the input activations of every layer in the RNN, drawing each from an embedding table specific to that layer.
[0037] Continuing with the above example, the RNN 340 rescores the candidate transcriptions 132 by processing the concatenated output 335. That is, the RNN 340 may increase the probability of the word "Pam" based on the contextual information (e.g., the previous n-gram token sequence 133) contained in the concatenated output 335. Thus, the RNN 340 may adjust the likelihood / probability score of "pan" to 0.4 and the likelihood / probability score of "Pam" to 0.6. Thus, the RNN generates a transcription that is rescored to include "Pam" as the third token 133c, correctly recognizing the spoken utterance 119.
[0038] The n-gram embedding table 320 may effectively scale up to nearly 1 billion parameters. The recurrent language model 300 may be trained on a 3 billion text-only sentence corpus. The language model 300 may be further preprocessed with removal of misspellings against a whitelist of 1 million commonly used words, and log(n) scaling of sentence frequencies to ensure tail representation.
[0039] The recurrent language model 300 may be integrated with the end-to-end ASR model 200 by first obtaining the effective likelihood by separating the log-posterior from the internal language model scores of the ASR model 200 by a hybrid autoregressive transducer (HAT) decomposition, as follows: log p(y|x)≒log p(y|x) - λ2log p ILM (y) (2) Then the log-posterior probability scores of the language models are added as follows:
[0040]
number
[0041] The RNN-T decoder (e.g., the prediction network 220 and the joint network 230 (FIG. 2)) may be HAT decomposed during training.
[0042] 4 is a flow diagram of an example sequence of operations of a method 400 for performing speech recognition using a look-up table recurrent language model. At operation 402, the method 400 includes receiving audio data 120 corresponding to an utterance 119 spoken by a user 10 and captured by a user device 102. At operation 404, the method 400 includes processing the audio data 120 to determine candidate transcriptions 132 of the utterance 119 using a speech recognizer 200, where the candidate transcriptions 132 include a sequence of tokens 133, 133a-n. For each token 133 in the sequence of tokens 133, the method 400 performs operations 406-410. At operation 406, the method 400 includes determining a token embedding 312 of the corresponding token 133 using a first embedding table 310. At operation 408, the method 400 uses the second embedding table 320 to embed the previous n-gram token sequence 133, t0, ..., t n-1 At operation 410, the method 400 includes concatenating the token embeddings 312 and the n-gram token embeddings 322 to generate a concatenated output 335 for the corresponding tokens 133. At operation 412, the method 400 includes rescoring the candidate transcriptions 132 of the spoken utterance 119 by processing the generated concatenated output 335 for each corresponding token 133 in the sequence of tokens 133 using an external language model (e.g., an RNN) 340.
[0043] 5 is a schematic diagram of an exemplary computing device 500 that may be used to implement the systems and methods described herein. The computing device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown herein, their connections and relationships, and their functionality are intended to be merely exemplary and are not intended to limit the implementation of the invention described and / or claimed herein.
[0044] Computing device 500 includes a processor 510, a memory 520, a storage device 530, a high-speed interface / controller 540 that connects to memory 520 and a high-speed expansion port 550, and a low-speed interface / controller 560 that connects to a low-speed bus 570 and storage device 530. Each of components 510, 520, 530, 540, 550, and 560 are interconnected using various buses and may be mounted on a common motherboard or otherwise as appropriate. Processor 510 can process instructions for execution within computing device 500, including instructions stored in memory 520 or on storage device 530, to display graphical information for a graphical user interface (GUI) on an external input / output device, such as a display 580 coupled to high-speed interface 540. In other implementations, multiple processors and / or multiple buses may be used along with multiple memories and multiple types of memories as appropriate. Also, multiple computing devices 500 may be connected together (eg, as a server bank, a collection of blade servers, or a multi-processor system) with each device providing a portion of the required operations.
[0045] The memory 520 stores information non-transiently within the computing device 500. The memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. The non-transient memory 520 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (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), and disk or tape.
[0046] The storage device 530 can provide mass storage for the computing device 500. In some implementations, the storage device 530 is a computer-readable medium. In various different implementations, the storage device 530 can be a floppy disk device, a hard disk device, an optical disk device, or an array of devices including a tape device, a flash memory or other similar solid-state memory device, or a device in a storage area network or other configuration. In additional implementations, a computer program product is tangibly embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods, such as the methods described above. The information carrier is a computer-readable or machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.
[0047] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, while the low-speed controller 560 manages less bandwidth-intensive operations. Such assignment of roles is merely exemplary. In some implementations, the high-speed controller 540 is coupled to the memory 520, to the display 580 (e.g., through a graphics processor or accelerator), and to a high-speed expansion port 550 that may accept various expansion cards (not shown). In some implementations, the low-speed controller 560 is coupled to the storage device 530 and to a low-speed expansion port 590. The low-speed expansion port 590, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled to one or more input / output devices, such as a keyboard, pointing device, scanner, or may be coupled to a network device, such as a switch or router, for example, via a network adapter.
[0048] The computing device 500 may be implemented in many different forms, as shown in the figure: For example, the computing device 500 may be implemented as a standard server 500a, or multiple times within a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.
[0049] Various implementations of the systems and techniques described herein may be realized in digital electronic and / or optical circuitry, integrated circuits, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementation in one or more computer programs executable and / or interpretable on a programmable system that includes at least one programmable processor, which may be special purpose or general purpose, coupled to receive data and instructions from and transmit data and instructions to a storage system, at least one input device, and at least one output device.
[0050] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform tasks. In some examples, a software application may be referred to as an "application," "app," or "program." Exemplary applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.
[0051] These computer programs (also known as programs, software, software applications, or codes) contain machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus, and / or device (e.g., magnetic disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0052] The processes and logic flows described herein may be executed by one or more programmable processors, also referred to as data processing hardware, executing one or more computer programs to perform functions by performing operations on input data and generating output. The processes and logic flows may also be executed by dedicated logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits). Processors suitable for executing computer programs include, by way of example, both general-purpose and dedicated microprocessors, and any one or more processors of any type of digital computer. Generally, 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. Generally, a computer also includes one or more mass storage devices, such as magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to the mass storage devices, or both. However, a computer may 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 memory may be supplemented by, or incorporated in, dedicated logic circuitry.
[0053] To provide interaction with a user, one or more aspects of the present disclosure may 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 may also be used to provide interaction with the user, e.g., feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user may be received in any form, including acoustic, speech, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to a web browser of the user's client device in response to a request received from the web browser.
[0054] Several implementations have been described. However, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the following claims. [Explanation of symbols]
[0055] 10 users 100 Voice Recognition System 102 User Devices 104 Network 103 Data Processing Hardware 105 Memory Hardware 106 Microphone 110 Remote System 112 Computing Resources 114 Storage Resources 118 Streaming Audio 119 utterances 120 Audio Data 132 candidate transcripts 133 tokens, token sequences 133a~n Token 200 Speech Recognizer, Automatic Speech Recognizer (ASR) Models 201 Audio Encoder 220 Label Encoder, Prediction Network 230 Joint Network 240 Softmax Layer 300 Language Models 310 First embedded table 312, 312a~n Token embedding 320 Second Embedding Table 322, 322a~n n-gram token embedding 330 Coupler 335 Concatenated Output 340 RNN, External Language Model 345 Re-scored Transcriptions 400 ways 500 computing devices 500a Standard Server 500b Laptop Computer 500c Rack Server System 510 Processor 520 Memory 530 Storage Devices 540 High Speed Interface / Controller 550 High Speed Expansion Port 560 Low Speed Interface / Controller 570 Slow Bus 580 Display 590 Low Speed Expansion Port< / s> < / s> < / s> < / s> < / s>
Claims
1. A computer-implemented method (400) that, when executed on data processing hardware (103), causes the data processing hardware (103) to perform operations, the operations comprising: receiving audio data (120) corresponding to speech (119) spoken by a user (10) and captured by a user device (102); processing the audio data (120) using a speech recognizer (200) to determine candidate transcriptions (132) of the spoken utterance (119), the candidate transcriptions (132) including a sequence of tokens (133); For each token (133) of said sequence of tokens (133), determining a token embedding (312) for a corresponding token (133) using a first embedding table (310); determining an n-gram token embedding (322) for the sequence of previous n-gram tokens in the current output step using a second embedding table (320); concatenating the token embeddings (312) and the n-gram token embeddings (322) to generate a concatenated output (335) of the corresponding tokens (133); and rescoring the candidate transcriptions (132) of the spoken utterance (119) by processing the concatenated output (335) generated for each corresponding token (133) of the sequence of tokens (133) using an external language model (300).
2. 2. The method of claim 1, wherein the external language model comprises a recurrent neural network language model.
3. 3. The method (400) of claim 1 or 2, wherein the external language model (300) is integrated with the speech recognizer (200) by a hybrid autoregressive transducer (HAT) decomposition of the speech recognizer (200).
4. The method (400) of any one of claims 1 to 3, wherein the speech recognizer (200) comprises a conformer audio encoder (201) and a recurrent neural network-transducer decoder (220).
5. The method (400) of any one of claims 1 to 3, wherein the speech recognizer (200) comprises a transformer audio encoder (201) and a recurrent neural network-transducer decoder (220).
6. 6. The method (400) of any one of claims 1 to 5, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents a word in the candidate transcription (132).
7. 7. The method (400) of any one of claims 1 to 6, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents a wordpiece within the candidate transcription (132).
8. 8. The method (400) of any one of claims 1 to 7, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents an n-gram, a phoneme, or a grapheme in the candidate transcription (132).
9. 9. The method (400) of any one of claims 1 to 8, wherein the first embedding table (310) and the second embedding table (320) are stored on memory hardware (105) in communication with the data processing hardware (103).
10. 10. The method (400) of any one of claims 1 to 9, wherein determining the token embedding (312) of the corresponding token (133) comprises retrieving the token embedding (312) from the first embedding table (310) by lookup, without requiring access to any graphics processing unit and / or tensor processing unit.
11. The method (400) of any one of claims 1 to 10, wherein the data processing hardware (103) is present on the user device (102).
12. Data processing hardware (103); memory hardware (105) in communication with the data processing hardware (103), the memory hardware (105) being configured to, when executed by the data processing hardware (103), receiving audio data (120) corresponding to speech (119) spoken by a user (10) and captured by a user device (102); processing the audio data (120) using a speech recognizer (200) to determine candidate transcriptions (132) of the spoken utterance (119), the candidate transcriptions (132) including a sequence of tokens (133); For each token (133) of said sequence of tokens (133), determining a token embedding (312) for the corresponding token (133) using a first embedding table (310); determining an n-gram token embedding (322) for the sequence of previous n-gram tokens in the current output step using a second embedding table (320); and concatenating the token embeddings (312) and the n-gram token embeddings (322) to generate a concatenated output (335) of the corresponding tokens (133); and and memory hardware (105) storing instructions that cause the system (100) to perform operations including re-scoring the candidate transcriptions (132) of the spoken utterance (119) by processing the concatenated output (335) generated for each corresponding token (133) in the sequence of tokens (133) using an external language model (300).
13. 13. The system of claim 12, wherein the external language model comprises a recurrent neural network language model.
14. 14. The system (100) of claim 12 or 13, wherein the external language model (300) is integrated with the speech recognizer (200) by a hybrid autoregressive transducer (HAT) decomposition of the speech recognizer (200).
15. The system (100) of any one of claims 12 to 14, wherein the speech recognizer (200) comprises a conformer audio encoder (201) and a recurrent neural network-transducer decoder (220).
16. The system (100) of any one of claims 12 to 14, wherein the speech recognizer (200) comprises a transformer audio encoder (201) and a recurrent neural network-transducer decoder (220).
17. 17. The system (100) of any one of claims 12 to 16, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents a word in the candidate transcription (132).
18. 18. The system (100) of claim 12, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents a word piece within the candidate transcription (132).
19. 19. The system (100) of any one of claims 12 to 18, wherein each token (133) of the sequence of tokens (133) of the candidate transcription (132) represents an n-gram, a phoneme, or a grapheme in the candidate transcription (132).
20. 20. The system (100) of any one of claims 12 to 19, wherein the first embedding table (310) and the second embedding table (320) are stored on memory hardware (105) in communication with the data processing hardware (103).
21. 21. The system (100) of claim 12, wherein determining the token embedding (312) of the corresponding token (133) comprises retrieving the token embedding (312) from the first embedding table (310) by lookup, without requiring access to any graphics processing unit and / or tensor processing unit.
22. 22. The system (100) of any one of claims 12 to 21, wherein the data processing hardware (103) is present on the user device (102).
Citation Information
Patent Citations
Voice recognition error correction device and program of the same
JP2014149490A
Determination device, learning device, determination method, and determination program
WO2021024491A1
