# US 2025/0148220 A1 · Interpreting large language models

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

- Number: US 2025/0148220 A1
- Document ID: US20250148220A1
- Status: Published application
- Kind: A1
- Application number: 18/592,468
- Filed: 2024-02-29
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Aditya Vithal NORI; Javier GONZÁLEZ HERNÁNDEZ
- Web page: https://patentgrep.com/patent/US20250148220A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Example solutions for processing LLM prompts include creating a first large language model (LLM) prompt based on an input LLM prompt. The first LLM prompt represents a first step toward generating a solution to the input LLM prompt. The first LLM prompt is submitted to an LLM as a first sub-query, thereby resulting in the generation of a first LLM output. A second LLM prompt is generated based on the input LLM prompt. The second LLM prompt represents a second step toward generating the solution. The second LLM prompt includes the first LLM output. The second LLM prompt is submitted to the LLM as a second sub-query, thereby resulting in the generation of a second LLM output. The second LLM output represents the solution to the input LLM prompt in response to the input LLM prompt.

## Claims

### Claim 1

A system comprising:
a processor; and
a computer-readable medium storing instructions that are operative upon execution by the processor to
create a first LLM prompt based on an input large language model (LLM) prompt, the first LLM prompt representing a first step toward generating a solution to the input LLM prompt;
submit the first LLM prompt to an LLM as a first sub-query, thereby resulting in the generation of a first LLM output;
create a second LLM prompt based on the input LLM prompt, the second LLM prompt representing a second step toward generating the solution to the input LLM prompt, the second LLM prompt including the first LLM output;
submit the second LLM prompt to the LLM as a second sub-query, thereby resulting in the generation of a second LLM output; and
cause the second LLM output to be displayed as the solution to the input LLM prompt in response to the input LLM prompt.

### Claim 2 (depends on 1)

The system of claim 1, wherein the input LLM prompt includes a first sentence and a second sentence, wherein creating the first LLM prompt comprises creating the first LLM prompt to include at least the first sentence, wherein creating the second LLM prompt comprises creating the first LLM prompt to include at least the second sentence.

### Claim 3 (depends on 1)

The system of claim 1, wherein the instructions are further operative to identify a pre-configured template that matches a form of the input LLM prompt, wherein creating the first LLM prompt comprises creating the first LLM prompt based on matching one or more portions of the input LLM prompt to one or more portions of the pre-configured template.

### Claim 4 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
create a deconstruction LLM prompt based on the input LLM prompt, the deconstruction LLM prompt being formed to query the LLM to identify multiple sub-steps from within input LLM prompt; and
submit the deconstruction LLM prompt to the LLM, thereby generating a deconstruction LLM output that includes at least a first step and a second step,
wherein creating the first LLM prompt based on the input LLM prompt further includes creating the first LLM prompt based on the first step,
wherein creating the second LLM prompt based on the input LLM prompt further includes creating the second LLM prompt based on the second step.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
create a verification LLM prompt based on the first LLM output;
submit the verification LLM prompt to the LLM, thereby generating a verification LLM output;
compare the verification LLM output to the solution based on a comparison metric; and
cause a result of the comparison to be displayed.

### Claim 6 (depends on 1)

The system of claim 1, wherein the instructions are further operative to:
generate a graph that includes a first state node, a second state node, and one or more edges, the first state node representing an initial state of one or more variables identified by the input LLM prompt, the second state node representing a second state of the one or more variables;
identify a first edge connecting the first state node and the second state node, the first edge representing a trusted application of the input LLM query to the one or more variables, thereby resulting in a trusted solution;
identify one or more other edges connecting the first state node and the second state node, the one or more other edges representing application of the input LLM query via the LLM, thereby resulting in the solution; and
determine whether or not the graph commutes based on whether the solution matches the trusted solution.

### Claim 7 (depends on 1)

The system of claim 1, further comprising an LLM computing device that is configured to:
receive the first LLM prompt from the processor;
generate the first LLM output based on applying the first LLM prompt as input to the LLM;
transmit the first LLM output to the processor;
receive the second LLM prompt from the processor;
generate the second LLM output based on applying the second LLM prompt as input to the LLM; and
transmit the second LLM output to the processor.

### Claim 8

A computer-implemented method comprising:
creating a first large language model (LLM) prompt based on an input LLM prompt, the first LLM prompt representing a first step toward generating a solution to the input LLM prompt;
submitting the first LLM prompt to an LLM as a first sub-query, thereby resulting in the generation of a first LLM output;
creating a second LLM prompt based on the input LLM prompt, the second LLM prompt representing a second step toward generating the solution to the input LLM prompt, the second LLM prompt including the first LLM output;
submitting the second LLM prompt to the LLM as a second sub-query, thereby resulting in the generation of a second LLM output; and
transmitting the second LLM output as the solution to the input LLM prompt.

### Claim 9 (depends on 8)

The method of claim 8, wherein the input LLM prompt includes a first sentence and a second sentence, wherein creating the first LLM prompt comprises creating the first LLM prompt to include at least the first sentence, wherein creating the second LLM prompt comprises creating the first LLM prompt to include at least the second sentence.

### Claim 10 (depends on 9)

The method of claim 9, further comprising parsing the input LLM prompt based on one or more of sequence adverbs and temporal adverbs, wherein creating the first LLM prompt further comprises removing at least one adverb from the first sentence.

### Claim 11 (depends on 8)

The method of claim 8, further comprising identifying a pre-configured template that matches a form of the input LLM prompt, wherein creating the first LLM prompt comprises creating the first LLM prompt based on matching one or more portions of the input LLM prompt to one or more portions of the pre-configured template.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
creating a deconstruction LLM prompt based on the input LLM prompt, the deconstruction LLM prompt being formed to query the LLM to identify multiple sub-steps from within input LLM prompt; and
submitting the deconstruction LLM prompt to the LLM, thereby generating a deconstruction LLM output that includes at least a first step and a second step,
wherein creating the first LLM prompt based on the input LLM prompt further includes creating the first LLM prompt based on the first step,
wherein creating the second LLM prompt based on the input LLM prompt further includes creating the second LLM prompt based on the second step.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
creating a verification LLM prompt based on the first LLM output;
submitting the verification LLM prompt to the LLM, thereby generating a verification LLM output;
comparing the verification LLM output to the solution based on a comparison metric; and
displaying a result of the comparison.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
generating a graph that includes a first state node, a second state node, and one or more edges, the first state node representing an initial state of one or more variables identified by the input LLM prompt, the second state node representing a second state of the one or more variables;
identifying a first edge connecting the first state node and the second state node, the first edge representing a trusted application of the input LLM query to the one or more variables, thereby resulting in a trusted solution;
identifying one or more other edges connecting the first state node and the second state node, the one or more other edges representing application of the input LLM query via the LLM, thereby resulting in the solution; and
determining whether or not the graph commutes based on whether the solution matches the trusted solution.

### Claim 15

A computer storage device having computer-executable instructions stored thereon, which, on execution by a computer, cause the computer to perform operations comprising:
creating a first large language model (LLM) prompt based on an input LLM prompt, the first LLM prompt representing a first step toward generating a solution to the input LLM prompt;
submitting the first LLM prompt to an LLM as a first sub-query, thereby resulting in the generation of a first LLM output;
creating a second LLM prompt based on the input LLM prompt, the second LLM prompt representing a second step toward generating the solution to the input LLM prompt, the second LLM prompt including the first LLM output;
submitting the second LLM prompt to the LLM as a second sub-query, thereby resulting in the generation of a second LLM output; and
displaying the second LLM output as the solution to the input LLM prompt in response to the input LLM prompt.

### Claim 16 (depends on 15)

The computer storage device of claim 15, wherein the input LLM prompt includes a first sentence and a second sentence, wherein creating the first LLM prompt comprises creating the first LLM prompt to include at least the first sentence, wherein creating the second LLM prompt comprises creating the first LLM prompt to include at least the second sentence.

### Claim 17 (depends on 15)

The computer storage device of claim 15, the operations further comprising identifying a pre-configured template that matches a form of the input LLM prompt, wherein creating the first LLM prompt comprises creating the first LLM prompt based on matching one or more portions of the input LLM prompt to one or more portions of the pre-configured template.

### Claim 18 (depends on 15)

The computer storage device of claim 15, the operations further comprising:
creating a deconstruction LLM prompt based on the input LLM prompt, the deconstruction LLM prompt being formed to query the LLM to identify multiple sub-steps from within input LLM prompt;
submitting the deconstruction LLM prompt to the LLM, thereby generating a deconstruction LLM output that includes at least a first step and a second step,
wherein creating the first LLM prompt based on the input LLM prompt further includes creating the first LLM prompt based on the first step,
wherein creating the second LLM prompt based on the input LLM prompt further includes creating the second LLM prompt based on the second step.

### Claim 19 (depends on 15)

The computer storage device of claim 15, the operations further comprising:
creating a verification LLM prompt based on the first LLM output;
submitting the verification LLM prompt to the LLM, thereby generating a verification LLM output;
comparing the verification LLM output to the solution based on a comparison metric; and
displaying a result of the comparison.

### Claim 20 (depends on 15)

The computer storage device of claim 15, the operations further comprising:
generating a graph that includes a first state node, a second state node, and one or more edges, the first state node representing an initial state of one or more variables identified by the input LLM prompt, the second state node representing a second state of the one or more variables;
identifying a first edge connecting the first state node and the second state node, the first edge representing a trusted application of the input LLM query to the one or more variables, thereby resulting in a trusted solution;
identifying one or more other edges connecting the first state node and the second state node, the one or more other edges representing application of the input LLM query via the LLM, thereby resulting in the solution; and
determining whether or not the graph commutes based on whether the solution matches the trusted solution.
