# US 2026/0088020 A1 · Customized keyword spotting using contextualized modeling

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

- Number: US 2026/0088020 A1
- Document ID: US20260088020A1
- Status: Published application
- Kind: A1
- Application number: 19/340,766
- Filed: 2025-09-25
- Published: 2026-03-26
- Earliest claimed: 2024-09-26
- Assignees: Meta Platforms Technologies, LLC
- Applicants: Meta Platforms Technologies, LLC
- Inventors: Tyler Vuong; Ming Sun; Zhaojun Yang
- Web page: https://patentgrep.com/patent/US20260088020A1

## CPC

- G10L 15/08: Speech classification or search
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G10L 15/063: {Training}
- G10L 15/16: using artificial neural networks
- 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
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method to train a contextualized custom keyword spotting model by adapting a contextualized automatic speech framework with modified training labels. The target training labels may include the words in the ground-truth transcript that also appear in the input bias text and are then used to train the model with loss determination. This approach enables the building of customized keyword spotting models without additional alignment or word-segmented data.

## Claims

### Claim 1

A method for training a customized keyword spotting model, comprising:
receiving an input audio signal;
receiving a transcript that corresponds with the input audio signal;
receiving an input bias text;
modifying the transcript to include words that overlap with the input bias text to generate a modified transcript;
generating audio embeddings based on processing the input audio signal through an audio encoder;
generating text embeddings based on processing the input bias text through a text encoder;
combining the audio embeddings and text embeddings using a text biasing layer to generate combined embeddings;
providing predicted probabilities for respective tokens based on the combined embeddings;
determining a loss between the predicted probabilities and the modified transcript using Connectionist Temporal Classification (CTC) loss; and
updating parameters of the model based on the loss.

### Claim 2 (depends on 1)

The method of claim 1, wherein the input bias text is randomly selected from the transcript.

### Claim 3 (depends on 1)

The method of claim 1, wherein the text encoder comprises a learnable embedding layer.

### Claim 4 (depends on 1)

The method of claim 1, wherein the text biasing layer comprises a transformer block with a multihead cross-attention layer.

### Claim 5 (depends on 1)

The method of claim 1, wherein combining the audio embeddings and text embeddings using the text biasing layer to generate the combined embeddings includes combining the audio embeddings and the text embeddings using a first text biasing layer and a second text biasing layer distinct from the first text biasing layer to generate the combined embeddings.

### Claim 6 (depends on 1)

The method of claim 1, wherein modifying the transcript comprises replacing the transcript with a blank token if no words overlap with the input bias text.

### Claim 7 (depends on 1)

The method of claim 1, further comprising training the model using a dataset without word-level segmentation or alignment information.

### Claim 8 (depends on 1)

The method of claim 1, wherein the audio encoder comprises a stack of linearized convolution network (LiCoNet) layers.

### Claim 9 (depends on 1)

The method of claim 1, further comprising adding a no bias token to the input bias text.

### Claim 10

A method for keyword spotting comprising:
receiving an input audio signal;
receiving a target keyword as input bias text;
generating audio embeddings based on processing the input audio signal through an audio encoder;
generating text embeddings based on processing the target keyword through a text encoder;
combining the audio embeddings and text embeddings using a text biasing layer to generate combined embeddings;
providing predicted probabilities for each token of one or more tokens based on the combined embeddings;
determining whether the target keyword is present in the input audio signal based on the predicted probabilities; and
transmitting an alert based on the determining that the target keyword is present.

### Claim 11 (depends on 10)

The method of claim 10, wherein providing the predicted probabilities comprises using a sliding window, and the method further comprising smoothing the predicted probabilities within the sliding window.

### Claim 12 (depends on 10)

The method of claim 10, wherein providing the predicted probabilities comprises computing a maximum log probability in a sequence of predicted probabilities for the one or more tokens.

### Claim 13 (depends on 10)

The method of claim 10, wherein determining whether the target keyword is present is based on comparing the predicted probabilities to a predetermined threshold.

### Claim 14 (depends on 10)

The method of claim 10, wherein the text encoder comprises a learnable embedding layer.

### Claim 15 (depends on 10)

The method of claim 10, wherein the text biasing layer comprises a transformer block with a multihead cross-attention layer.

### Claim 16 (depends on 10)

The method of claim 10, wherein the audio embeddings and the text embeddings are combined using the text biasing layer without external alignment information.

### Claim 17 (depends on 10)

The method of claim 10, wherein the audio encoder comprises a stack of linearized convolution network (LiCoNet) layers.

### Claim 18

A device comprising:
a processor; and
a memory storing instructions that, when executed by the processor, cause the device to:
receive an input audio signal;
determine the use of a target keyword in the input audio signal based on a customized keyword spotting model associated with spotting one or more keywords in the input audio signal, wherein the customized keyword spotting model comprises:
receiving the input audio signal;
receiving the target keyword as input bias text;
generating audio embeddings based on processing the input audio signal through an audio encoder;
generating text embeddings based on processing the target keyword through a text encoder;
combining the audio embeddings and text embeddings using a text biasing layer to generate combined embeddings;
providing predicted probabilities for each token of one or more tokens based on the combined embeddings;
determining whether the target keyword is present in the input audio signal based on the predicted probabilities; and
transmitting a message based on the determining that the target keyword is present; and
send instructions to execute an action based on the use of the target keyword.

### Claim 19 (depends on 18)

The device of claim 18, wherein the action comprises executing an operation associated with an application, wherein the action comprises opening the application, transmitting data to the application, playing audio, playing video, display text, or closing the application.

### Claim 20 (depends on 18)

The device of claim 18, wherein the device comprises a mobile phone, a laptop, a smart speaker, a head mounted display, or a wearable device.
