IP Library › Granted Patent US 12,499,870
Granted Patent B2
US 12,499,870 · App. 17/820,871 · Granted Dec 16, 2025

Guided data selection for masked speech modeling based on an average score assigned to encoded representations of an utterance

Inventors: Andrew Rosenberg (Brooklyn, NY); Bhuvana Ramabhadran (Mt. Kisco, NY); Yu Zhang (Mountain View, CA); Murali Karthick Baskar (Mountain View, CA)
Assignee: Google LLC
G10L15/063G10L15/02G10L15/08G06N3/0455
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,499,870
App. No.
17/820,871
Granted
Dec 16, 2025
Kind
B2
Abstract

A method of guided data selection for masked speech modeling includes obtaining a sequence of encoded representations corresponding to an utterance. For each respective encoded representation, the method includes processing the respective encoded representation to generate a corresponding probability distribution over possible speech recognition hypotheses and assigning, to the respective encode representation, a confidence score as a highest probability from the corresponding probability distribution over possible speech recognition hypotheses. The method also includes selecting a set of unmasked encoded representations to mask based on the confidence scores assigned to the sequence of encoded representations. The method also includes generating a set of masked encoded representations by masking the selected set of unmasked encoded representations. Here, each masked encoded representation in the set of masked encoded representations corresponds to a respective one of the unmasked encoded representations in the selected set of unmasked encoded representations.

Claims (66)

1 . A computer-implemented method for guided data selection for masked speech modeling, the computer-implemented method when executed on data processing hardware causes the data processing hardware to perform operations comprising:

obtaining a sequence of encoded representations corresponding to an utterance;

for each respective encoded representation in the sequence of encoded representations:

processing, using a scorer model, the respective encoded representation to generate a corresponding probability distribution over possible speech recognition hypotheses for the respective encoded representation; and

assigning, to the respective encoded representation, a confidence score as a highest probability from the corresponding probability distribution over possible speech recognition hypotheses for the respective encoded representation;

based on the confidence scores assigned to the sequence of encoded representations, selecting, from the sequence of encoded representations, a set of unmasked encoded representations to mask;

generating a set of masked encoded representations by masking the selected set of unmasked encoded representations, wherein each masked encoded representation in the set of masked encoded representations corresponds to a respective one of the unmasked encoded representations in the selected set of unmasked encoded representations;

pre-training an audio encoder based on the set of masked encoded representations,

wherein a speech recognition model comprising the pre-trained audio encoder is configured to generate a speech recognition result for a spoken utterance; and

determining an utterance-level confidence score by averaging the confidence scores assigned to the set of masked encoded representations.

2 . The computer-implemented method of claim 1 , wherein the operations further comprise:

for each respective unmasked encoded representation in the selected set of unmasked encoded representations to mask, generating, using a quantizer, a corresponding target context vector for the respective unmasked encoded representation; and

for each respective masked encoded representation in the set of masked encoded representations:

generating a corresponding contrastive context vector for the respective masked encoded representation; and

generating a contrastive loss based on the corresponding contrastive context vector and the corresponding target context vector generated for the respective unmasked encoded representation that corresponds to the respective masked encoded representation,

wherein pre-training the audio encoder is further based on using the contrastive losses generated for the set of masked encoded representations.

3 . The computer-implemented method of claim 2 , wherein the operations further comprise:

for each respective unmasked encoded representation in the selected set of unmasked encoded representations to mask, generating, using a cluster module, a corresponding K-means cluster for the respective unmasked encoded representation; and

for each respective masked encoded representation in the set of masked encoded representations, generating a cross-entropy loss based on the corresponding contrastive context vector and the corresponding K-means cluster generated for the respective unmasked encoded representation that corresponds to the respective masked encoded representation, and

wherein pre-training the audio encoder is further based on using the cross-entropy losses generated for the set of masked encoded representations.

4 . The computer-implemented method of claim 3 , wherein the operations further comprise:

for each respective masked encoded representation in the set of masked encoded representations, determining a final training objective based on the contrastive loss and the cross-entropy loss,

wherein pre-training the audio encoder is further based on the final training objectives generated for the set of masked encoded representations.

5 . The computer-implemented method of claim 4 , wherein the operations further comprise:

determining an utterance-level confidence score by averaging the confidence scores in the set of masked encoded representations; and

weighting the final training objective based on the utterance-level confidence score,

wherein pre-training the audio encoder is further based on the weighted final training objective.

6 . The computer-implemented method of claim 3 , wherein the operations further comprise extracting bottleneck features from the contrastive context vectors.

7 . The computer-implemented method of claim 6 , wherein the operations further comprise refining each corresponding K-means cluster using the extracted bottleneck features.

8 . The computer-implemented method of claim 1 , wherein selecting the set of unmasked encoded representations to mask comprises selecting the top-K encoded representations from the sequence of encoded representations having the highest confidence scores.

9 . The computer-implemented method of claim 8 , wherein K is based on a predetermined ratio of encoded representations in the sequence of encoded representations to be masked.

10 . The computer-implemented method of claim 9 , wherein the predetermined ratio is equal to forty percent.

11 . A system comprising:

data processing hardware; and

memory hardware in communication with the data processing hardware, the memory hardware storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising:

obtaining a sequence of encoded representations corresponding to an utterance;

for each respective encoded representation in the sequence of encoded representations:

processing, using a scorer model, the respective encoded representation to generate a corresponding probability distribution over possible speech recognition hypotheses for the respective encoded representation; and

assigning, to the respective encoded representation, a confidence score as a highest probability from the corresponding probability distribution over possible speech recognition hypotheses for the respective encoded representation;

based on the confidence scores assigned to the sequence of encoded representations, selecting, from the sequence of encoded representations, a set of unmasked encoded representations to mask;

generating a set of masked encoded representations by masking the selected set of unmasked encoded representations, wherein each masked encoded representation in the set of masked encoded representations corresponds to a respective one of the unmasked encoded representations in the selected set of unmasked encoded representations;

pre-training an audio encoder based on the set of masked encoded representations,

wherein a speech recognition model comprising the pre-trained audio encoder is configured to generate a speech recognition result for a spoken utterance; and

determining an utterance-level confidence score by averaging the confidence scores assigned to the set of masked encoded representations.

12 . The system of claim 11 , wherein the operations further comprise:

for each respective unmasked encoded representation in the selected set of unmasked encoded representations to mask, generating, using a quantizer, a corresponding target context vector for the respective unmasked encoded representation; and

for each respective masked encoded representation in the set of masked encoded representations:

generating a corresponding contrastive context vector for the respective masked encoded representation; and

generating a contrastive loss based on the corresponding contrastive context vector and the corresponding target context vector generated for the respective unmasked encoded representation that corresponds to the respective masked encoded representation,

wherein pre-training the audio encoder is further based on using the contrastive losses generated for the set of masked encoded representations.

13 . The system of claim 12 , wherein the operations further comprise:

for each respective unmasked encoded representation in the selected set of unmasked encoded representations to mask, generating, using a cluster module, a corresponding K-means cluster for the respective unmasked encoded representation; and

for each respective masked encoded representation in the set of masked encoded representations, generating a cross-entropy loss based on the corresponding contrastive context vector and the corresponding K-means cluster generated for the respective unmasked encoded representation that corresponds to the respective masked encoded representation, and

wherein pre-training the audio encoder is further based on using the cross-entropy losses generated for the set of masked encoded representations.

14 . The system of claim 13 , wherein the operations further comprise:

for each respective masked encoded representation in the set of masked encoded representations, determining a final training objective based on the contrastive loss and the cross-entropy loss,

wherein pre-training the audio encoder is further based on the final training objectives generated for the set of masked encoded representations.

15 . The system of claim 14 , wherein the operations further comprise:

determining an utterance-level confidence score by averaging the confidence scores in the set of masked encoded representations; and

weighting the final training objective based on the utterance-level confidence score,

wherein pre-training the audio encoder is further based on the weighted final training objective.

16 . The system of claim 13 , wherein the operations further comprise extracting bottleneck features from the contrastive context vectors.

17 . The system of claim 16 , wherein the operations further comprise refining each corresponding K-means cluster using the extracted bottleneck features.

18 . The system of claim 11 , wherein selecting the set of unmasked encoded representations to mask comprises selecting the top-K encoded representations from the sequence of encoded representations having the highest confidence scores.

19 . The system of claim 18 , wherein K is based on a predetermined ratio of encoded representations in the sequence of encoded representations to be masked.

20 . The system of claim 19 , wherein the predetermined ratio is equal to forty percent.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2022
From: ROSENBERG, ANDREW; RAMABHADRAN, BHUVANA; ZHANG, YU; BASKAR, MURALI KARTHICK
To: GOOGLE LLC
Reel/Frame 060880/0573 →
Continuity (2)
Provisional Application 63262136 · Oct 5, 2021
Related Publication 20230103722A1 · Apr 6, 2023
References Cited (14)
US 10332508B1 · Hoffmeister · 2019 [cited by examiner]
US 11551668B1 · Baevski · 2023 [cited by examiner]
US 20190332919A1 · Weiss · 2019 [cited by examiner]
US 20210035563A1 · Cartwright · 2021 [cited by examiner]
US 20210104245A1 · Aguilar Alas · 2021 [cited by examiner]
US 20210174798A1 · Wu · 2021 [cited by examiner]
CN 113823265A · 2021 [cited by examiner]
Wang et al., “Semantic Mask for Transformer based End-to-End Speech Recognition” Mar. 16, 2020 (Year: 2020). [cited by examiner]
Baevski et al., “Effectiveness of Self-Supervised Pre-Training for ASR”, 2020 (Year: 2020). [cited by examiner]
International Search Report and Written Opinion relating to Applicaiton No. PCT/US2022/075182, dated Nov. 21, 2022. [cited by applicant]
Chengyi Wang et al: “Semantic Mask for Transformer based End-to-End Speech Recognition”, arxiv.org <http://arxiv.org>, Cornell University Library, 201 Olin Library Cornell University Ithaca, NY 14853, Dec. 6, 2019 (Dec.… [cited by applicant]
Kumar Kshitiz et al: “Word Characters and Phone Pronunciation Embedding for ASR Confidence Classifier”, ICASSP 2019—2019 IEEE International Conference on Acoustics, Speech, and Signal Processing : Proceedings : May 12-1… [cited by applicant]
Singh Sushant et al: “The NLP Cookbook: Modern Recipes for Transformer Based Deep Learning Architectures”, IEEE Access, IEEE, USA, vol. 9, May 4, 2021 (May 4, 2021), pp. 68675-68702, XP011854469, DOI: 10.1109/ACCESS.202… [cited by applicant]
Ma Edward:“Data Augmentation for Speech Recognition”, Towards Data Science, May 1, 2019 (May 1, 2019), XP055965178, Retrieved from the Internet: URL:<https://towardsdatascience.com/data-au>gmentation -for -speech -recog… [cited by applicant]