IP Library Granted Patent US 12,562,151
Granted Patent B1
US 12,562,151 · App. 18/191,644 · Granted Feb 24, 2026

Augmenting automated speech recognition neural networks with scalable vocabularies

Inventors: Devang Kulshreshtha (Montreal, CA); Saket Dingliwal (Kirkland, WA); Sravan Babu Bodapati (Fremont, CA); Veera Raghavendra Elluru (Hyderabad, IN); Anubhav Mishra (San Carlos, CA); Katrin Kirchhoff (Seattle, WA)
Assignee: Amazon Technologies, Inc.
G10L15/063G06N3/08G10L15/02G10L15/16G10L2015/025G10L2015/0631
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,562,151
App. No.
18/191,644
Granted
Feb 24, 2026
Kind
B1
Abstract

Techniques for augmenting automated speech recognition neural networks with scalable vocabularies are described. A cluster is selected from a plurality of clusters of similar sounding words based on a score, the score representing a similarity between an embedding of the cluster and an audio embedding of an utterance generated with an automated speech recognition encoder neural network. A bias factor is calculated based on a similarity between an embedding of a word in the selected cluster and the audio embedding. The audio embedding of the utterance is biased by the bias factor.

Claims (45)

1 . A computer-implemented method comprising:

clustering words in a vocabulary into a plurality of clusters of similar sounding words using k-means clustering, wherein a number of clusters of the plurality of clusters is based on a maximum cluster size;

calculating, with a first attention neural network, a similarity score for each cluster based on a dot product of an embedding of each cluster with an audio embedding of an utterance generated with an automated speech recognition encoder neural network;

selecting a cluster from the plurality of clusters having the highest similarity score;

calculating, by an embedding encoder neural network, an embedding of a word in the selected cluster based at least in part on at least one of an audio sample of a pronunciation of the word or a phonetic representation of the word;

calculating, with a second attention neural network, a bias factor based on a similarity between the embedding of the word and the audio embedding of the utterance;

biasing the audio embedding of the utterance by the bias factor to generate a biased audio embedding of the utterance; and

generating, by a machine learning service based at least in part on the biased audio embedding of the utterance, a text prediction of the utterance.

2 . The computer-implemented method of claim 1 , wherein generating the text prediction of the utterance comprises processing the biased audio embedding of the utterance using a linear layer or a fully-connected layer, and a softmax operation, followed by a beam search decoder to collapse the biased audio embedding of the utterance into the text prediction of the utterance.

3 . The computer-implemented method of claim 1 , wherein all words in the plurality of clusters of similar sounding words are part of a vocabulary identified in a request received by the machine learning service.

4 . A computer-implemented method comprising:

calculating, with a first attention neural network, a score for a cluster based on a dot product of an embedding of the cluster and an audio embedding of an utterance generated with an automated speech recognition encoder neural network;

selecting the cluster from a plurality of clusters of similar sounding words based on the score, wherein the score represents a similarity between the embedding of the cluster and the audio embedding of the utterance;

calculating, with a second attention neural network, a similarity between an embedding of a word in the cluster and the audio embedding of the utterance based on a dot product of the embedding of the word and the audio embedding of the utterance, wherein the first attention neural network and the second attention neural network have the same weight parameters;

calculating a bias factor based on the similarity between the embedding of the word in the cluster and the audio embedding of the utterance;

biasing the audio embedding of the utterance by the bias factor to generate a biased audio embedding of the utterance; and

generating, by a machine learning service based at least in part on the biased audio embedding of the utterance, a text prediction of the utterance.

5 . The computer-implemented method of claim 4 , wherein the automated speech recognition encoder neural network was trained with training data, and wherein the first attention neural network was trained using a subset of the training data, the subset of the training data based on samples in the training data including words having a frequency in the training data below a threshold.

6 . The computer-implemented method of claim 4 , further comprising calculating, with an embedding encoder neural network, the embedding of the word in the selected cluster that positions the embedding of the word in a multi-dimensional embedding space near other similar sounding words.

7 . The computer-implemented method of claim 6 , wherein the selected cluster includes a plurality of clustered words and further comprising:

calculating, with the embedding encoder neural network, an embedding of each word in the plurality of clustered words,

wherein the embedding of the cluster is based on an average of each embedding of each word in the plurality of clustered words.

8 . The computer-implemented method of claim 4 , wherein generating the text prediction of the utterance comprises processing the biased audio embedding of the utterance using a linear layer or a fully-connected layer, and a softmax operation, followed by a beam search decoder to collapse the biased audio embedding of the utterance into the text prediction of the utterance.

9 . The computer-implemented method of claim 4 , wherein all words in the plurality of clusters of similar sounding words are part of a vocabulary identified in a request received by the machine learning service.

10 . The computer-implemented method of claim 9 , further comprising clustering the words in the vocabulary into the plurality of clusters of similar sounding words using k-means clustering, wherein a maximum number of words in each cluster is limited by a maximum cluster size.

11 . The computer-implemented method of claim 4 , wherein biasing the audio embedding of the utterance by the bias factor comprises at least one of adding the bias factor to the audio embedding or scaling the audio embedding by the bias factor.

12 . A system comprising:

a first one or more electronic devices to implement a storage service in a multi-tenant provider network to store word cluster data including a plurality of clusters of similar sounding words and, for each cluster, an embedding of the cluster; and

a second one or more electronic devices to implement a model hosting service in the multi-tenant provider network, the model hosting service including instructions that upon execution cause the model hosting service to:

retrieve the word cluster data from the storage service;

calculate, with a first attention neural network, a score for a cluster based on a dot product of an embedding of the cluster and an audio embedding of an utterance generated with an automated speech recognition encoder neural network;

select the cluster from the plurality of clusters of similar sounding words based on the score, wherein the score represents a similarity between the embedding of the cluster and the audio embedding of the utterance;

calculate, with a second attention neural network, a similarity between an embedding of a word in the cluster and the audio embedding of the utterance based on a dot product of the embedding of the word and the audio embedding of the utterance, wherein the first attention neural network and the second attention neural network have the same weight parameters;

calculate a bias factor based on the similarity between the embedding of the word in the cluster and the audio embedding of the utterance;

bias the audio embedding of the utterance by the bias factor to generate a biased audio embedding of the utterance; and

generate, based at least in part on the biased audio embedding of the utterance, a text prediction of the utterance.

13 . The system of claim 12 , wherein the model hosting service includes further instructions that upon execution cause the model hosting service to calculate, with an embedding encoder neural network, the embedding of the word in the selected cluster that positions the embedding of the word in a multi-dimensional embedding space near other similar sounding words.

14 . The system of claim 13 , wherein the selected cluster includes a plurality of clustered words; and

wherein the model hosting service includes further instructions that upon execution cause the model hosting service to calculate, with the embedding encoder neural network, an embedding of each word in the plurality of clustered words,

wherein the embedding of the cluster is based on an average of each embedding of each word in the plurality of clustered words.

15 . The system of claim 12 , wherein the automated speech recognition encoder neural network was trained with training data, and wherein the first attention neural network was trained using a subset of the training data, the subset of the training data based on samples in the training data including words having a frequency in the training data below a threshold.

16 . The system of claim 12 , wherein generating the text prediction of the utterance comprises processing the biased audio embedding of the utterance using a linear layer or a fully-connected layer, and a softmax operation, followed by a beam search decoder to collapse the biased audio embedding of the utterance into the text prediction of the utterance.

17 . The system of claim 12 , wherein all words in the plurality of clusters of similar sounding words are part of a vocabulary identified in a request received by the machine learning service.

18 . The system of claim 17 , wherein the model hosting service includes further instructions that upon execution cause the model hosting service to cluster the words in the vocabulary into the plurality of clusters of similar sounding words using k-means clustering, wherein a maximum number of words in each cluster is limited by a maximum cluster size.

19 . The system of claim 12 , wherein biasing the audio embedding of the utterance by the bias factor comprises at least one of adding the bias factor to the audio embedding or scaling the audio embedding by the bias factor.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 29, 2023
From: KULSHRESHTHA, DEVANG; DINGLIWAL, SAKET; BODAPATI, SRAVAN BABU; ELLURU, VEERA RAGHAVENDRA; MISHRA, ANUBHAV; KIRCHHOFF, KATRIN
To: AMAZON TECHNOLOGIES, INC.
Reel/Frame 063140/0591 →
References Cited (42)
US 11580959B2 · Freed · 2023 [cited by examiner]
US 20150199960A1 · Huo · 2015 [cited by examiner]
Sari et al. “Unsupervised Speaker Adaptation Using Attention-Based Speaker Memory for End-to-End ASR”, ICASSP, 2020 (Year: 2020). [cited by examiner]
Ganganath et al. “Data Clustering with Cluster Size Constraints Using a Modified k-means Algorithm”, 2014 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery, 2014 (Year: 2014). [cited by examiner]
Alex Graves, “Sequence Transduction with Recurrent Neural Networks”, Department of Computer Science, Nov. 14, 2012, 9 pages. [cited by applicant]
Bai, Y., et al., “Listen Attentively, and Spell Once: Whole Sentence Generation via a Non-Autoregressive Architecture for Low-Latency Speech Recognition”, rXiv:2005.04862v4, Aug. 6, 2020, 5 pages. [cited by applicant]
Bruguier, A., et al., “Learning Personalized Pronunciations for Contact Name Recognition”, Interspeech, Sep. 8-12, 2016, pp. 3096-3100. [cited by applicant]
Bruguier, A., et al., “Phoebe: Pronunciation-aware Contextualization for End-to-end Speech Recognition”, ICASSP 2019—2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2019, pp. 6171… [cited by applicant]
Chan, W., et al., “Listen, Attend and Spell”, arXiv:1508.01211v2, Aug. 20, 2015, pp. 1-16. [cited by applicant]
Das, N., et al., “Listen, Know and Spell: Knowledge-Infused Subword Modeling for Improving ASR Performance of OOV Named Entities”, ICASSP 2022—2022 IEEE International Conference on Acoustics, Speech and Signal Processin… [cited by applicant]
Dingliwal, S., et al., “Domain Prompts: Towards Memory and Compute Efficient Domain Adaptation of ASR Systems”, arXiv:2112.08718v1, Dec. 16, 2021, 5 pages. [cited by applicant]
Dingliwal, S., et al., “Towards Personalization of CTC Speech Recognition Models with Contextual Adapters and Adaptive Boosting”, arXiv:2210.09510v3, Nov. 13, 2022, 8 pages. [cited by applicant]
Gourav, A., et al., “Personalization Strategies for end-to-end Speech Recognition Systems”, arXiv:2102.07739v1, Feb. 15, 2021, 5 pages. [cited by applicant]
Graves, A., et al., “Speech Recognition with Deep Recurrent Neural Networks”, arXiv:1303.5778v1, Mar. 22, 2013, 5 pages. [cited by applicant]
Gulati, A., et al., “Conformer: Convolution-augmented Transformer for Speech Recognition”, Xiv:2005.08100v1, May 16, 2020, 5 pages. [cited by applicant]
Guo, P., et al., “Recent Developments on Espnet Toolkit Boosted by Conformer”, arXiv:2010.13956v2, Oct. 29, 2020, 5 pages. [cited by applicant]
Gysel, C. V., et al., “Space-Efficient Representation of Entity-centric Query Language Models”, arXiv:2206.14885v1, Jun. 29, 2022, 5 pages. [cited by applicant]
He, Y., et al., “Streaming end-to-end Speech Recognition for Mobile Devices”, arXiv:1811.06621v1, Nov. 15, 2018, 5 pages. [cited by applicant]
Jain, M., et al., “Contextual RNN-T for open Domain ASR”, arXiv:2006.03411v2, Aug. 12, 2020, 5 pages. [cited by applicant]
Jinyu Li, “Recent Advances in End-to-End Automatic Speech Recognition”, arXiv:2111.01690v2, Feb. 2, 2022, pp. 1-27. [cited by applicant]
Kannan, A., et al., “An Analysis of Incorporating an External Language Model Into a Sequence-to-Sequence Model”, arXiv:1712.01996v1, Dec. 6, 2017, 5 pages. [cited by applicant]
Kim, C., et al., “A Review of on-Device Fully Neural End-to-End Automatic Speech Recognition Algorithms”, arXiv:2012.07974v3, Aug. 27, 2021, 7 pages. [cited by applicant]
Kim, S., et al., “Joint CTC-Attention Based End-to-End Speech Recognition Using Multi-Task Learning”, arXiv:1609.06773v2, Jan. 31, 2017, 5 pages. [cited by applicant]
Le, D., et al., “G2G: TTS-Driven Pronunciation Learning for Graphemic Hybrid ASR”, arXiv:1910.12612v2, Feb. 13, 2020, 5 pages. [cited by applicant]
Le. D., et al., “Deep Shallow Fusion for Rnn-T Personalization”, arXiv:2011.07754v1, Nov. 16, 2020, 7 pages. [cited by applicant]
Li, J., et al., “Developing RNN-T Models Surpassing High-Performance Hybrid Models with Customization Capability”, arXiv:2007.15188v1, Jul. 30, 2020, 5 pages. [cited by applicant]
Li, J., et al., “On the Comparison of Popular End-to-End Models for Large Scale Speech Recognition”, arXiv:2005.14327v2, Jul. 30, 2020, 5 pages. [cited by applicant]
Liptchinsky, V., et al., “Letter-Based Speech Recognition With Gated Convnets”, arXiv:1712.09444v2, Feb. 16, 2019, pp. 1-10. [cited by applicant]
Lu, L., et al., “Exploring Transformers for Large-Scale Speech Recognition”, arXiv:2005.09684v2, Aug. 11, 2020, 5 pages. [cited by applicant]
McGraw, I., et al., “Personalized Speech Recognition on Mobile Devices”, arXiv:1603.03185v2, Mar. 11, 2016, 5 pages. [cited by applicant]
Pundak, G., et al., “Deep Context: End-to-End Contextual Speech Recognition”, arXiv:1808.02480v1, Aug. 7, 2018, 8 pages. [cited by applicant]
Sainath, T. N., et al., “No Need for a Lexicon? Evaluating the Value of the Pronunciation Lexica in End-to-End Models”, arXiv:1712.01864v1, Dec. 5, 2017, 5 pages. [cited by applicant]
Salazar, J., et al., “Self-Attention Networks for Connectionist Temporal Classification in Speech Recognition”, arXiv:1901.10055v2, Feb. 19, 2019, 6 pages. [cited by applicant]
Sathyendra, K. M., et al., “Contextual Adapters for Personalized Speech Recognition in Neural Transducers”, arXiv:2205.13660v1, May 26, 2022, 5 pages. [cited by applicant]
Shenoy, A., et al., “Adapting Long Context NLM for ASR Rescoring in Conversational Agents”, Interspeech, 2021, 5 pages. [cited by applicant]
Sravan Bodapati, “Teaching speech recognizers new words—without retraining—Amazon Science”, Conversational AI/ Natural—Language Processing, Jan. 13, 2023, pp. 1-7. [cited by applicant]
Vaswani, A., et al., “Attention Is All You Need”, 31st Conference on Neural Information Processing Systems (NIPS 2017), 2017, pp. 1-11. [cited by applicant]
Wang, C., et al., “VoxPopuli: a Large-Scale Multilingual Speech Corpus for Representation Learning, Semi-Supervised Learning and Interpretation”, arXiv:2101.00390v2, Jul. 27, 2021, 11 pages. [cited by applicant]
Watanabe, S., et al., “ESPnet: End-to-End Speech Processing Toolkit”, Interspeech, 2018, pp. 2207-2211. [cited by applicant]
Watanabe, S., et al., “Hybrid CTC/Attention Architecture for End-to-End Speech Recognition”, Journal of Selected Topics in Signal Processing, vol. 11, No. 8, Dec. 2017, pp. 1240-1253. [cited by applicant]
Yao, Z., et al., “WeNet: Production Oriented Streaming and Non-streaming End-to-End Speech Recognition Toolkit”, arXiv:2102.01547v5, Dec. 29, 2021, 5 pages. [cited by applicant]
Zhao, R., et al., “On Addressing Practical Challenges for RNN-Transducer”, arXiv:2105.00858v3, Jul. 18, 2021, 8 pages. [cited by applicant]