# US 2023/0274731 A1 · Mixing Heterogeneous Loss Types to Improve Accuracy of Keyword Spotting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0274731 A1
- Document ID: US20230274731A1
- Status: Published application
- Kind: A1
- Application number: 17/652,801
- Filed: 2022-02-28
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Hyun Jin Park; Alex Seungryong Park; Ignacio Lopez Moreno
- Web page: https://patentgrep.com/patent/US20230274731A1

## CPC

- G10L 15/16: using artificial neural networks
- G06N 3/08: Learning methods
- G10L 15/02: Feature extraction for speech recognition; Selection of recognition unit
- G10L 15/063: {Training}
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G10L 2015/025: {Phonemes, fenemes or fenones being the recognition units}
- G10L 2015/088: {Word spotting}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for training a neural network includes receiving a training input audio sequence including a sequence of input frames defining a hotword that initiates a wake-up process on a user device. The method further includes obtaining a first label and a second label for the training input audio sequence. The method includes generating, using a memorized neural network and the training input audio sequence, an output indicating a likelihood the training input audio sequence includes the hotword. The method further includes determining a first loss based on the first label and the output. The method includes determining a second loss based on the second label and the output. The method further includes optimizing the memorized neural network based on the first loss and the second loss associated with the training input audio sequence.

## Claims

### Claim 1

A computer-implemented method when executed by data processing hardware causes the data processing hardware to perform operations comprising:
receiving a training input audio sequence comprising a sequence of input frames, the sequence of input frames defining a hotword that initiates a wake-up process on a user device;
obtaining a first label for the training input audio sequence;
obtaining a second label for the training input audio sequence, the second label different than the first label;
generating, using a memorized neural network and the training input audio sequence, an output indicating a likelihood the training input audio sequence includes the hotword;
determining a first loss based on the first label and the output;
determining a second loss based on the second label and the output; and
optimizing the memorized neural network based on the first loss and the second loss associated with the training input audio sequence.

### Claim 2 (depends on 1)

The method of claim 1, wherein the memorized neural network comprises an encoder and a decoder, each of the encoder and the decoder of the memorized neural network comprising sequentially stacked single value decomposition filter (SVDF) layers.

### Claim 3 (depends on 1)

The method of claim 1, wherein the output is based on a probability distribution of a logit based on the training input audio sequence.

### Claim 4 (depends on 3)

The method of claim 3, wherein the operations further comprise smoothing the logit prior to determining the first loss.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the first loss comprises:
generating a plurality of encoder windows, each encoder window of the plurality of encoder windows associated with one or more phonemes of the hotword; and
determining the first loss for each encoder window of the plurality of encoder windows.

### Claim 6 (depends on 5)

The method of claim 5, wherein a collective size of the plurality of encoder windows corresponds to an average acoustic length of the hotword.

### Claim 7 (depends on 1)

The method of claim 1, wherein optimizing the memorized neural network comprises generating a weighted average of the first loss and the second loss.

### Claim 8 (depends on 1)

The method of claim 1, wherein the second label is derived from one or more phoneme sequences of the hotword.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first label is based on a position of a last phoneme of the hotword.

### Claim 10 (depends on 1)

The method of claim 1, wherein the sequence of input frames each comprise one or more respective audio features characterizing phonetic components of the hotword.

### Claim 11 (depends on 1)

The method of claim 1, wherein:
the first label comprises a max pooling loss label;
the second label comprises a cross entropy label;
the first loss comprises a max pooling loss; and
the second loss comprises a cross entropy loss.

### Claim 12

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:
receiving a training input audio sequence comprising a sequence of input frames, the sequence of input frames defining a hotword that initiates a wake-up process on a user device;
obtaining a first label for the training input audio sequence;
obtaining a second label for the training input audio sequence, the second label different than the first label;
generating, using a memorized neural network and the training input audio sequence, an output indicating a likelihood the training input audio sequence includes the hotword;
determining a first loss based on the first label and the output;
determining a second loss based on the second label and the output; and
optimizing the memorized neural network based on the first loss and the second loss associated with the training input audio sequence.

### Claim 13 (depends on 12)

The system of claim 12, wherein the memorized neural network comprises an encoder and a decoder, each of the encoder and the decoder of the memorized neural network comprising sequentially stacked single value decomposition filter (SVDF) layers.

### Claim 14 (depends on 12)

The system of claim 12, wherein the output is based on a probability distribution of a logit based on the training input audio sequence.

### Claim 15 (depends on 14)

The system of claim 14, wherein the operations further comprise smoothing the logit prior to determining the first loss.

### Claim 16 (depends on 12)

The system of claim 12, wherein determining the first loss comprises:
generating a plurality of encoder windows, each encoder window of the plurality of encoder windows associated with one or more phonemes of the hotword; and
determining the first loss for each encoder window of the plurality of encoder windows.

### Claim 17 (depends on 16)

The system of claim 16, wherein a collective size of the plurality of encoder windows corresponds to an average acoustic length of the hotword.

### Claim 18 (depends on 12)

The system of claim 12, wherein optimizing the memorized neural network comprises generating a weighted average of the first loss and the second loss.

### Claim 19 (depends on 12)

The system of claim 12, wherein the second label is derived from one or more phoneme sequences of the hotword.

### Claim 20 (depends on 12)

The system of claim 12, wherein the first label is based on a position of a last phoneme of the hotword.

### Claim 21 (depends on 12)

The system of claim 12, wherein the sequence of input frames each comprise one or more respective audio features characterizing phonetic components of the hotword.

### Claim 22 (depends on 12)

The system of claim 12, wherein:
the first label comprises a max pooling loss label;
the second label comprises a cross entropy label;
the first loss comprises a max pooling loss; and
the second loss comprises a cross entropy loss.
