Calibrating confidence scores of a machine learning model trained as a natural language interface
Abstract
Techniques are disclosed herein for calibrating confidence scores of a machine learning model trained to translate natural language to a meaning representation language. The techniques include obtaining one or more raw beam scores generated from one or more beam levels of a decoder of a machine learning model trained to translate natural language to a logical form, where each of the one or more raw beam scores is a conditional probability of a sub-tree determined by a heuristic search algorithm of the decoder at one of the one or more beam levels, classifying, by a calibration model, a logical form output by the machine learning model as correct or incorrect based on the one or more raw beam scores, and providing the logical form with a confidence score that is determined based on the classifying of the logical form.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 0.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: obtaining one or more raw beam scores generated from one or more beam levels of a decoder of a machine learning model trained to translate natural language to a logical form, wherein each of the one or more raw beam scores is a conditional probability of a sub-tree determined by a heuristic search algorithm of the decoder at one of the one or more beam levels; classifying a logical form output by the machine learning model as correct or incorrect based on the one or more raw beam scores, wherein the classifying comprises: inputting the one or more raw beam scores into a calibration model; predicting, by the calibration model, a correct or incorrect class for the logical form based on the one or more raw beam scores, wherein the correct or incorrect class represents a determination by the calibration model as to whether a sub-tree with a highest raw beam score at a last beam level of the decoder represents a correct or incorrect translation of a
- Claim 2Depends on #1
The computer-implemented method of claim 1, further comprising translating, by the machine learning model, the natural language utterance into the logical form, wherein the translating comprises a bottom-up generative process implemented by the heuristic search algorithm, and wherein the bottom-up generative process comprises: for a first beam level, generating a number F of possible sub-trees for the natural language utterance based on a vocabulary or grammar associated with the logical form, and selecting a top-K sub-trees for retention using a raw beam score associated with each sub-tree; for each beam level after the first beam level, generating the number F of possible sub-trees for the natural language utterance based on the vocabulary or grammar associated with the logical form and the top-K sub-trees retained from the prior beam level, and selecting another top-K sub-trees for retention using a raw beam score associated with each sub-tree; and for the last beam level, determini
- Claim 3Depends on #2
The computer-implemented method of claim 2, wherein the one or more beam levels comprise the first beam level, the last beam level, one or more beam levels between the first beam level and the last beam level, or any combination thereof.
- Claim 4Depends on #3
The computer-implemented method of claim 3, wherein the one or more raw beam scores are obtained from the first beam level, the last beam level, the one or more beam levels between the first beam level and the last beam level, or any combination thereof.
- Claim 5Depends on #3
The computer-implemented method of claim 3, wherein the one or more raw beam scores are the raw beam scores for the top-K sub-trees retained from the first beam level, the last beam level, and one or more beam levels between the first beam level and the last beam level.
- Claim 6Depends on #1
The computer-implemented method of claim 1, wherein the conditional probability score is modeled using a sigmoid function, and the conditional probability score is used as the confidence score for the logical form.
- Claim 7Independent Claim
A system comprising: one or more processors; and one or more non-transitory computer-readable media storing instructions which, when executed by the one or more processors, cause the one or more processors to perform operations comprising: obtaining one or more raw beam scores generated from one or more beam levels of a decoder of a machine learning model trained to translate natural language to a logical form, wherein each of the one or more raw beam scores is a conditional probability of a sub-tree determined by a heuristic search algorithm of the decoder at one of the one or more beam levels; classifying a logical form output by the machine learning model as correct or incorrect based on the one or more raw beam scores, wherein the classifying comprises: inputting the one or more raw beam scores into a calibration model; predicting, by the calibration model, a correct or incorrect class for the logical form based on the one or more raw beam scores, wherein the correct or incorrect c
- Claim 8Depends on #7
The system of claim 7, wherein the operations further comprise translating, by the machine learning model, the natural language utterance into the logical form, wherein the translating comprises a bottom-up generative process implemented by the heuristic search algorithm, and wherein the bottom-up generative process comprises: for a first beam level, generating a number F of possible sub-trees for the natural language utterance based on a vocabulary or grammar associated with the logical form, and selecting a top-K sub-trees for retention using a raw beam score associated with each sub-tree; for each beam level after the first beam level, generating the number F of possible sub-trees for the natural language utterance based on the vocabulary or grammar associated with the logical form and the top-K sub-trees retained from the prior beam level, and selecting another top-K sub-trees for retention using a raw beam score associated with each sub-tree; and for the last beam level, determini
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION The present application is a non-provisional application of and claims the benefit and priority under 35 U.S.C. 119(e) of U.S. Provisional Application No. 63/400,037, filed Aug. 22, 2022, the entire contents of which is incorporated herein by reference for all purposes. FIELD The present disclosure relates generally to transforming natural language to a meaning representation language, and more particularly, to machine-learning techniques for calibrating confidence scores of a machine learning model trained to translate natural language to a meaning representation language such as Oracle Meaning Representation Language (OMRL). BACKGROUND Many users around the world are on instant messaging or chat platforms in order to get instant reaction. Organizations often use these instant messaging or chat platforms to engage with customers (or end users) in live conversations. However, it can be very costly for organizations to employ service people to engage in live communication with customers or end users. Chatbots or bots have begun to be developed to simulate conversations with end users, especially over the Internet. End users can communicate with bots through messaging apps that the end users have already installed and used. An intelligent bot, generally powered by artificial intelligence (AI), can communicate more intelligently and contextually in live conversations, and thus may allow for a more natural conversation between the bot and the end users for improved conversational experience. Instead of the end user learning a fixed set of keywords or commands that the bot knows how to respond to, an intelligent bot may be able to understand the end user's intention based upon user utterances in natural language and respond accordingly. A chatbot may have both analog (human) and digital (machine) interfaces for interacting with a human and connecting to a backend system. It is advantageous to be able to extract and analyze the meani
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 (27)
| Patent | Title | Year | Citations |
|---|---|---|---|
| CN 1,582,997 A | Chinese medicine for liver, intestinal and stomach cancers | — | 0 |
Non-Patent Literature (10)
- “
- Answering Business Questions with Amazonquicksight Q
- ”
- , retrieved from https://docs.aws.amazon.com/quicksight/latest/user/working-with-quicksight-q.html, Aug. 18, 2023 and and printed on Aug. 18, 2023, 2 pages.
- “
- Querying Your Data with Simply Ask (NLQ)
- ”
- , retrieved from https://docs.sisense.com/main/SisenseLinux/simply-ask-query-in-natural-language.htm#:
- ˜
- :text=Simply%20Ask%20is%20Sisense's%20Natural,provide%20you%20with%20the%20answers., Nov. 10, 2022 and printed on Aug. 18, 2023, 18 pages.