hottub.patents
US 12,632,471 B2#3240319 Most CitedActiveUnited States (USPTO)Utility

Query clarification based on confidence in a classification performed by a generative language machine learning model

0Forward Citations (#3240319 Global)
0.0/yrCitation Velocity (#3240319 Global)
0.00Citation PageRank (#3240319 Global)
15Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A large language model (LLM) may be used to classify an input into one of a plurality of categories. However, given the machine-learning operation of the LLM, the output of the LLM does not represent a definitive statement, but is based on probability computations of the machine learning model. Therefore, the classification performed by the LLM might not be correct. Classification into the wrong category by the LLM results in downstream technical problems. In some implementations, when an LLM generates a response that classifies an input, one or more probability values associated with a token that forms the basis of the response may be used to determine a confidence value. The confidence value is indicative of confidence in the classification performed by the LLM. An action may be taken based on the confidence value.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A computer-implemented method comprising: providing a prompt to a generative language model, the prompt including a query and the prompt instructing the generative language model to generate a response that classifies the query into one of a plurality of categories, wherein the plurality of categories includes a category corresponding to the query being unambiguous; receiving the response from the generative language model, the response classifying the query into the category corresponding to the query being unambiguous, and the response being based on one or more tokens selected by the generative language model; for a token that forms a basis of language indicating the query is unambiguous: receiving, from the generative language model, a probability value associated with the token that forms the basis of language indicating the query is unambiguous; determining a confidence value using at least the probability value associated with the token that forms the basis of language indicatin

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, wherein the reply to the query is based on output from the generative language model.

  3. Claim 3Depends on #2

    The computer-implemented method of claim 2, wherein the prompt is a first prompt, and wherein providing the reply comprises: providing a second prompt to the generative language model; and providing the reply to the query based on output from the generative language model responsive to the second prompt.

  4. Claim 4Depends on #3

    The computer-implemented method of claim 3, wherein the second prompt indicates, to the generative language model, that the query is classified into another category different from the category into which the query was classified by the response.

  5. Claim 5Depends on #3

    The computer-implemented method of claim 3, wherein the second prompt includes information retrieved based on the query, and the second prompt instructs the generative language model to use the information to generate the reply that requests clarification.

  6. Claim 6Depends on #2

    The computer-implemented method of claim 2, wherein: responsive to the confidence value not satisfying the threshold, modifying the response to classify the query into another category different from the category into which the query was originally classified by the response; continuing generation of output from the generative language model with the response modified; and providing the reply based on the output from the generative language model with the response modified.

  7. Claim 7Depends on #1

    The computer-implemented method of claim 1, wherein the token that forms the basis of language indicating the query is unambiguous is a selected token, wherein the method further comprises receiving, from the generative language model, a probability value associated with an alternative token that was not selected by the generative language model to form the basis of language indicating the query is unambiguous, and wherein the confidence value is determined using the probability value associated with the selected token and the probability value associated with the alternative token.

  8. Claim 8Depends on #7

    The computer-implemented method of claim 7, wherein the alternative token that was not selected corresponds to another category of the plurality of categories.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims the benefit under 35 U.S.C § 119(e) of U.S. Provisional Patent Application Ser. No. 63/650,608, which was filed on May 22, 2024, and which is incorporated herein by reference. FIELD The present application relates to generative language machine learning models, such as large language models (LLMs). BACKGROUND A generative language model is a machine learning model that generates language, typically in the form of text in response to an input prompt. A generative language model may utilize a large neural network to determine probabilities for a next token of a sequence of text conditional on previous or historical tokens in the sequence of text. A large language model (LLM) is an example of a generative language model. Whenever “ LLM ” is used herein, it is an example and may be generalized to “ generative language model ” . SUMMARY A generative language model, e.g. an LLM, may be used to classify an input into one of a plurality of categories. For example, the prompt provided to an LLM may include a query that asks a question, and the prompt may instruct the LLM to generate output including a response classifying the question as either clear or unclear. As another example, the prompt may include a user comment that is to be posted on a webpage, and the prompt may instruct the LLM to generate output including a response classifying the user comment as one of irrelevant, offensive, or appropriate. The following technical problem exists when using an LLM to perform classification. The LLM is a generative model executed by a computational device that utilizes machine learning to generate a sequence of tokens. Each token in the sequence is selected and output by the LLM based on its probability of being a next token in the sequence, given the preceding tokens. One or more of the tokens form the basis of the response that classifies the input. For example, the LLM may generate a first token correspondi

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.

Non-Patent Literature (6)

  • Gautam Chutani,
  • “
  • Unlocking LLM Confidence Through Logprobs
  • ”
  • , Medium, https://gautam75.medium.com/unlocking-llm-confidence-through-logprobs-54b26ed1b48a, Feb. 18, 2024, pp. 1 to 18.
  • Kuhn, Lorenz et al., CLAM: Selective Clarification for Ambiguous Questions with Generative Language Models, arXiv.org, Feb. 20, 2023 (Feb. 20, 2023), Retrieved from the Internet: URL: https://arxiv.org/pdf/2212.07769 [retrieved on Feb. 26, 2025].