System and method for simultaneously identifying intent and slots in voice assistant commands
Abstract
In an embodiment of the present disclosure, a method of simultaneously identifying intent and slots in a voice assistant command includes tokenizing, into a plurality of tokens, a current utterance of a user of a device comprising the voice assistant command, prepending the plurality of tokens with a previous utterance and a separation token, obtaining, using a transformer-based machine learning model, one or more predictions for the voice assistant command from the prepended plurality of tokens, aligning, according to one or more constraints, the at least one of the flag prediction, the goal prediction, and the sub-goal prediction, providing, to the device, the identified intent and the identified slots based on the intent prediction and the aligned at least one of the flag prediction, the goal prediction, and the sub-goal prediction, causing the device to perform the voice assistant command according to the identified intent and the identified slots.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.
Claims (18 — 3 Independent, 15 Dependent)
- Claim 1Independent Claim
A method of simultaneously identifying intent and slots in a voice assistant command, comprising: tokenizing, into a plurality of tokens, a current utterance of a user of a device comprising the voice assistant command; prepending the plurality of tokens with a classification token, a previous utterance of the user, and a first separation token, and appending the plurality of tokens with a second separation token; obtaining one or more types of context information comprising a previous intent of the previous utterance of the user; creating one or more embedding spaces corresponding to each type of the one or more types of context information, each embedding space of the one or more embedding spaces having a same dimension as the plurality of tokens; obtaining, using a transformer-based machine learning model, one or more predictions for the voice assistant command from the prepended plurality of tokens and the one or more embedding spaces, the one or more predictions comprising an intent prediction and at least one of a flag prediction, a goal prediction, and a sub-goal prediction; aligning, according to one or more constraints, the at least one of the flag prediction, the goal prediction, and the sub-goal prediction; and providing, to the device, the identified intent and the identified slots based on the intent prediction and the aligned at least one of the flag prediction, the goal prediction, and the sub-goal prediction, causing the device to perform the voice assistant command according to the identified intent and the identified slots.
- Claim 2Depends on #1
The method of claim 1, wherein the obtaining of the one or more predictions for the voice assistant command comprises: obtaining, according to an intent loss function, one or more intent predictions from an intent classifier of the transformer-based machine learning model; obtaining, according to a flag loss function, one or more flag predictions from a flag classifier of the transformer-based machine learning model; obtaining, according to a goal loss function, one or more goal predictions from a goal classifier of the transformer-based machine learning model; obtaining, according to a sub-goal loss function, one or more sub-goal predictions from a sub-goal classifier transformer-based machine learning model; optimizing an overall loss function of the transformer-based machine learning model, according to the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function, the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function being simultaneously considered when optimizing the overall loss function; and determining the one or more predictions that optimize the overall loss function.
- Claim 3Depends on #2
The method of claim 2, wherein the optimizing of the overall loss function comprises optimizing the overall loss function at a sentence level.
- Claim 4Depends on #2
The method of claim 2, wherein the optimizing of the overall loss function comprises optimizing the overall loss function at a token level.
- Claim 5Depends on #1
The method of claim 1, wherein the sub-goal prediction comprises a plurality of sub-goal predictions, and the aligning of the sub-goal prediction comprises, for each sub-goal prediction of the plurality of sub-goal predictions: aligning a left boundary of that sub-goal prediction with a left boundary of a corresponding slot; and aligning a right boundary of that sub-goal prediction with a right boundary of the corresponding slot.
- Claim 6Depends on #1
The method of claim 1, wherein the one or more constraints comprise an intent compatibility constraint, and the aligning of the at least one of the flag prediction, the goal prediction, and the sub-goal prediction comprises determining, according to the intent compatibility constraint, whether the intent prediction is compatible with the at least one of the flag prediction, the goal prediction, and the sub-goal prediction.
- Claim 7Depends on #1
The method of claim 1, wherein the one or more constraints comprise a goal order constraint, and the aligning of the at least one of the flag prediction, the goal prediction, and the sub-goal prediction comprises reordering, according to the goal order constraint, the at least one of the flag prediction, the goal prediction, and the sub-goal prediction.
- Claim 8Depends on #1
The method of claim 1, wherein the one or more types of context information comprise at least one of a capsule-specific vocabulary, segment information, position information, regular expression-based information, part-of-speech (POS) information, user-specific knowledge information, and knowledge graph information.
- Claim 9Depends on #8
The method of claim 8, further comprising: categorizing, using an N-gram construction, a user utterance into a plurality of word sequences; searching each word sequence of the plurality of word sequences in a dictionary to obtain a word-level hit map; expanding, using a tokenizer, the word-level hit map into a token-level hit map; and applying the token-level hit map to a feature matrix to obtain the capsule-specific vocabulary.
- Claim 10Depends on #1
The method of claim 1, wherein the voice assistant command is in a natural language of the user.
- Claim 11Depends on #1
The method of claim 1, further comprising: reducing, using a distillation process, a size of the transformer-based machine learning model, the size of the transformer-based machine learning model corresponding to a number of layers of the transformer-based machine learning model.
- Claim 12Independent Claim
An apparatus for simultaneously identifying intent and slots in a voice assistant command, comprising: a memory storage storing computer-executable instructions; and a processor communicatively coupled to the memory storage, wherein the processor is configured to execute the computer-executable instructions and cause the apparatus to: tokenize, into a plurality of tokens, a current utterance of a user of a device comprising the voice assistant command; prepend the plurality of tokens with a classification token, a previous utterance of the user, and a first separation token, and append the plurality of tokens with a second separation token; obtain one or more types of context information comprising a previous intent of the previous utterance of the user; create one or more embedding spaces corresponding to each type of the one or more types of context information, each embedding space of the one or more embedding spaces having a same dimension as the plurality of tokens; obtain, using a transformer-based machine learning model, one or more predictions for the voice assistant command from the prepended plurality of tokens and the one or more embedding spaces, the one or more predictions comprising an intent prediction and at least one of a flag prediction, a goal prediction, and a sub-goal prediction; align, according to one or more constraints, the at least one of the flag prediction, the goal prediction, and the sub-goal prediction; and provide, to the device, the identified intent and the identified slots based on the intent prediction and the aligned at least one of the flag prediction, the goal prediction, and the sub-goal prediction, causing the device to perform the voice assistant command according to the identified intent and the identified slots.
- Claim 13Depends on #12
The apparatus of claim 12, wherein the computer-executable instructions to obtain the one or more predictions for the voice assistant command further cause the apparatus to: obtain, according to an intent loss function, one or more intent predictions from an intent classifier of the transformer-based machine learning model; obtain, according to a flag loss function, one or more flag predictions from a flag classifier of the transformer-based machine learning model; obtain, according to a goal loss function, one or more goal predictions from a goal classifier of the transformer-based machine learning model; obtain, according to a sub-goal loss function, one or more sub-goal predictions from a sub-goal classifier transformer-based machine learning model; optimize an overall loss function of the transformer-based machine learning model, according to the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function, the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function being simultaneously considered when optimizing the overall loss function; and determine the one or more predictions that optimize the overall loss function.
- Claim 14Depends on #12
The apparatus of claim 12, wherein the sub-goal prediction comprises a plurality of sub-goal predictions, and the computer-executable instructions to align the sub-goal prediction further cause the apparatus, for each sub-goal prediction of the plurality of sub-goal predictions, to: align a left boundary of that sub-goal prediction with a left boundary of a corresponding slot; and align a right boundary of that sub-goal prediction with a right boundary of the corresponding slot.
- Claim 15Depends on #12
The apparatus of claim 12, wherein the one or more types of context information comprise at least one of a capsule-specific vocabulary, segment information, position information, regular expression-based information, part-of-speech (POS) information, user-specific knowledge information, and knowledge graph information, and wherein the computer-executable instructions further cause the apparatus to: categorize, using an N-gram construction, a user utterance into a plurality of word sequences; search each word sequence of the plurality of word sequences in a dictionary to obtain a word-level hit map; expand, using a tokenizer, the word-level hit map into a token-level hit map; and apply the token-level hit map to a feature matrix to obtain the capsule-specific vocabulary.
- Claim 16Depends on #12
The apparatus of claim 12, wherein the computer-executable instructions further cause the apparatus to: reducing, using a distillation process, a size of the transformer-based machine learning model, the size of the transformer-based machine learning model corresponding to a number of layers of the transformer-based machine learning model.
- Claim 17Independent Claim
A non-transitory computer-readable storage medium storing computer-executable instructions for simultaneously identifying intent and slots in a voice assistant command by an electronic device, the computer-executable instructions being configured, when executed by one or more processors of the electronic device, to cause the electronic device to: tokenize, into a plurality of tokens, a current utterance of a user of a device comprising the voice assistant command; prepend the plurality of tokens with a classification token, a previous utterance of the user, and a first separation token, and append the plurality of tokens with a second separation token; obtain one or more types of context information comprising a previous intent of the previous utterance of the user; create one or more embedding spaces corresponding to each type of the one or more types of context information, each embedding space of the one or more embedding spaces having a same dimension as the plurality of tokens; obtain, using a transformer-based machine learning model, one or more predictions for the voice assistant command from the prepended plurality of tokens and the one or more embedding spaces, the one or more predictions comprising an intent prediction and at least one of a flag prediction, a goal prediction, and a sub-goal prediction; align, according to one or more constraints, the at least one of the flag prediction, the goal prediction, and the sub-goal prediction; and provide, to the device, the identified intent and the identified slots based on the intent prediction and the aligned at least one of the flag prediction, the goal prediction, and the sub-goal prediction, causing the device to perform the voice assistant command according to the identified intent and the identified slots.
- Claim 18Depends on #17
The non-transitory computer-readable storage medium of claim 17, wherein the computer-executable instructions to obtain the one or more predictions for the voice assistant command further cause the electronic device to: obtain, according to an intent loss function, one or more intent predictions from an intent classifier of the transformer-based machine learning model; obtain, according to a flag loss function, one or more flag predictions from a flag classifier of the transformer-based machine learning model; obtain, according to a goal loss function, one or more goal predictions from a goal classifier of the transformer-based machine learning model; obtain, according to a sub-goal loss function, one or more sub-goal predictions from a sub-goal classifier transformer-based machine learning model; optimize an overall loss function of the transformer-based machine learning model, according to the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function, the intent loss function, the flag loss function, the goal loss function, and the sub-goal loss function being simultaneously considered when optimizing the overall loss function; and determine the one or more predictions that optimize the overall loss function.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is based on and claims priority under 35 U.S.C. § 119 to U.S. Provisional Patent Application No. 63/300,511, filed on Jan. 18, 2022, and to U.S. Provisional Patent Application No. 63/316,337, filed on Mar. 3, 2022, in the U.S. Patent and Trademark Office, the disclosures of which are incorporated by reference herein in their entireties. BACKGROUND 1. Field The present disclosure relates generally to natural language speech processing, and more particularly to methods and apparatuses for simultaneously identifying intent and slots in a voice assistant command. 2. Description of Related Art In related speech processing apparatuses, tasks may typically be communicated to voice assistants via a task-oriented language. The task-oriented language may include a notion of “ intent ” and/or “ slots ” when describing the task to be performed by the voice assistants. The intent may refer to a specific sub-category of tasks, and the slots may refer to specific attributes that may be needed for performing and/or completing the intent (e.g., a particular task). In such speech processing apparatuses, intent and slot identification may be performed by a voice assistant. While related voice assistants may focus on improving identification accuracy of popular and/or common queries, accurate intent and slot identification of tail queries (e.g., less popular queries) may improve a user experience for the users of the related voice assistants. However, compared to the popular and/or common queries, the related voice assistants may perform identification of tail queries with a lower accuracy due to a variety of reasons, such as, but not limited to, a lack of data. The lower identification accuracy may lead to user dissatisfaction and/or loss of users. Therefore, improving tail query recognition may be important for user retention. Thus, there exists a need for further improvements in tail query recognition in voice assistants. Impr
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (16)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Communication issued Sep. 17, 2024 by the European Patent Office in European Patent Application No. 22922365.6.
- Weld, Henry et al.,
- “
- A survey of joint intent detection and slot-filling models in natural language understanding
- ”
- , arXiv:2101.08091v1 [cs.CL], Jan. 20, 2021. (33 pages total).
- Gupta, Arshit et al.,
- “
- Simple, Fast, Accurate Intent Classification and Slot Labeling for Goal-Oriented Dialogue Systems
- ”