# US 2025/0094838 A1 · Image Analysis by Prompting of Machine-Learned Models Using Chain of Thought

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

- Number: US 2025/0094838 A1
- Document ID: US20250094838A1
- Status: Published application
- Kind: A1
- Application number: 18/967,327
- Filed: 2024-12-03
- Published: 2025-03-20
- Earliest claimed: 2022-06-03
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Jason Weng Wei; Dengyong Zhou; Xuezhi Wang; Dale Eric Schuurmans; Quoc V. Le; Maarten Paul Bosma; Ed Huai-Hsin Chi; Olivier Jean Andrè Bousquet; Le Hou; Charles Aloysius Sutton; Nathanael Martin Schärli; Nathan Kemp Sekiguchi Scales; Augustus Quadrozzi Odena; Sharan Ajit Narang; Guy Gur-Ari Krakover; Aakanksha Chowdhery; David Martin Dohan; Aitor Lewkowycz; Jacob Austin; Henryk Michalewski; David Luan; David J. Bieber; Anders Johan Andreassen; Maxwell Isaac Nye
- Web page: https://patentgrep.com/patent/US20250094838A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 3/096: Transfer learning
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An example technique for image analysis is provided. An example image analysis method includes obtaining an instructive sequence descriptive of an instructive query, an instructive response, and an instructive trace of intermediate states from the instructive query to the instructive response. The example image analysis method includes inputting, to a machine-learned model, the instructive sequence and an operative image processing query that comprises image data, wherein the machine-learned model is configured to process the operative query with attention over the instructive sequence. The example method can include generating, using the machine-learned model and responsive to the operative query, an operative image processing response that comprises an analysis of the image data.

## Claims

### Claim 1

A computer-implemented method for performing image analysis, the method comprising:
obtaining, by a computing system comprising one or more processors, an instructive sequence descriptive of an instructive query, an instructive response, and an instructive trace of intermediate states from the instructive query to the instructive response;
inputting, by the computing system and to a machine-learned model, the instructive sequence and an operative image processing query comprising image data, wherein the machine-learned model is configured to process the operative image processing query with attention over the instructive sequence; and
generating, by the computing system, using the machine-learned model and responsive to the operative image processing query, an operative image processing response.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, comprising:
generating, by the computing system, using the machine-learned model and responsive to the operative image processing query, an operative trace of intermediate states from the operative query to the operative image processing response.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the instructive sequence is prepended to the operative image processing query.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein the instructive trace comprises a chain of intermediate responses to intermediate queries.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the instructive sequence comprises an input flag and an output flag.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the instructive sequence comprises a tokenized representation of a natural language.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the instructive trace comprises one or more intermediate states of one or more variables declared by a computer-executable coding language.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein generating the operative response comprises:
generating, by the computing system and using the machine-learned model, a plurality of operative responses; and
determining, by the computing system, the operative image processing response based on a sample of the plurality of operative responses.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein determining the operative image processing response comprises:
determining, by the computing system, a consistency metric based on the sample of the plurality of operative responses.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, wherein the sample is based on respective probabilities associated with the plurality of operative responses.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the consistency metric comprises at least one of: a plurality vote, or a majority vote.

### Claim 12 (depends on 9)

The computer-implemented method of claim 9, wherein the consistency metric comprises a vote based on operative responses respectively associated with diverse operative traces.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, wherein the operative image processing query is a first query component and the operative image processing response is a first response component, and wherein the method comprises:
inputting, by the computing system and to the machine-learned model, the instructive sequence, the first query component, the first response component, and a second query component; and
generating, by the computing system, using the machine-learned model and responsive to the second query component, a second response component.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, comprising:
generating, by the computing system and responsive to a target query, one or more query components.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, comprising:
inputting, by the computing system and to the machine-learned model, a preliminary instructive sequence comprising a preliminary instructive query and a preliminary instructive response, wherein the preliminary instructive response comprises a plurality of preliminary instructive query components.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, wherein the first query component and the second query component are generated with a different machine-learned model other than the machine-learned model used to obtain the first response component and the second response component.

### Claim 17 (depends on 14)

The computer-implemented method of claim 14, wherein the second query component corresponds to the target query.

### Claim 18 (depends on 13)

The computer-implemented method of claim 13, comprising, for a plurality of iterations:
generating, by the computing system, an updated instructive sequence based on combining one or more prior input sequences with one or more output sequences respectively corresponding thereto;
inputting, by the computing system and to the machine-learned model, the updated instructive sequence and an additional query component; and
generating, by the computing system, using the machine-learned model and responsive to the additional query component, an additional response component.

### Claim 19

One or more memory devices storing non-transitory computer-readable instructions executable to cause one or more processors to perform operations for performing image analysis, the operations comprising:
obtaining an instructive sequence descriptive of an instructive query, an instructive response, and an instructive trace of intermediate states from the instructive query to the instructive response;
inputting, to a machine-learned model, the instructive sequence and an operative image processing query comprising image data, wherein the machine-learned model is configured to process the operative image processing query with attention over the instructive sequence; and
generating, using the machine-learned model and responsive to the operative image processing query, an operative image processing response.

### Claim 20

A computing system for performing image analysis, the system comprising:
one or more processors; and
one or more memory devices storing non-transitory computer-readable instructions that are executable to cause the one or more processors to perform operations, the operations comprising:
obtaining, by a computing system comprising one or more processors, an instructive sequence descriptive of an instructive query, an instructive response, and an instructive trace of intermediate states from the instructive query to the instructive response;
inputting, by the computing system and to a machine-learned model, the instructive sequence and an operative image processing query comprising image data, wherein the machine-learned model is configured to process the operative image processing query with attention over the instructive sequence; and
generating, by the computing system, using the machine-learned model and responsive to the operative image processing query, an operative image processing response.
