# US 2026/0073194 A1 · Joint decoding of response and predicted query-response pairs using a token generation neural network

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

- Number: US 2026/0073194 A1
- Document ID: US20260073194A1
- Status: Published application
- Kind: A1
- Application number: 18/828,313
- Filed: 2024-09-09
- Published: 2026-03-12
- Earliest claimed: 2024-09-09
- Applicants: DeepMind Technologies Limited
- Inventors: Duc-Hieu Tran; Florian Nils Hartmann
- Web page: https://patentgrep.com/patent/US20260073194A1

## CPC

- G06N 3/0475: Generative networks
- G06F 40/30: Semantic analysis
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/045: Combinations of networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for pre-generating predictions of subsequent queries with corresponding responses relating to a context using a token generation neural network. In one aspect, a system comprises receiving an input comprising a context and a first query related to the context, processing a model input comprising the context and first query using a token generation neural network to generate a first response to the first query and k predicted query-response pairs, wherein each predicted query-response pair comprises (i) a predicted query that is a prediction of a subsequent query submitted by the user related to the context query and (ii) a corresponding response to the predicted query, providing the first response to the first query for presentation to a user, and caching any of the k predicted query-response pairs.

## Claims

### Claim 1

A computer-implemented method for:
receiving an input comprising a context and a first query related to the context for a user;
processing a model input comprising the context and first query using a token generation neural network to generate a first response to the first query and k predicted query-response pairs, wherein each predicted query-response pair comprises (i) a predicted query that is a prediction of a subsequent query submitted by the user related to the context query and (ii) a corresponding response to the predicted query;
providing the first response to the first query for presentation to the user; and
caching any of the k predicted query-response pairs.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving an additional query relating to the context from the user;
determining that the additional query matches one or more of the predicted queries in the k predicted query-response pairs; and
in response to determining that the additional query matches one or more of the predicted queries, providing, for presentation to the user, one or more responses from the cached query-response pairs that correspond with the one or more matched predicted queries.

### Claim 3 (depends on 2)

The method of claim 2, wherein providing the response from the query-response pair comprises providing the response without processing any additional model inputs using the token generation neural network.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
processing auxiliary data characterizing the user and the first query using a profile machine learning model to generate a user profile for the user.

### Claim 5 (depends on 4)

The method of claim 4, wherein the auxiliary data comprises one or more prior queries processed by the token generation neural network for the user.

### Claim 6 (depends on 4)

The method of claim 4, further comprising determining a value of k based on the user profile and the context.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining the value of k comprises processing an input comprising the user profile and the context using a machine learning model to generate the value of k.

### Claim 8 (depends on 7)

The method of claim 7, wherein the input further comprises a measure of size of the context.

### Claim 9 (depends on 7)

The method of claim 7, wherein the machine learning model has been trained by operations comprising optimizing the value of k based on previous user queries for a set of contexts.

### Claim 10 (depends on 1)

The method of claim 1, wherein processing the model input using the token generation neural network to generate the first response to the first query and the k predicted query-response pairs comprises:
autoregressively generating, by processing the model input using the token generation neural network, a sequence of output tokens comprising the first response and the k predicted query-response pairs.

### Claim 11 (depends on 10)

The method of claim 10, wherein the sequence of output tokens comprises one or more of text, image, video, or audio modality output tokens.

### Claim 12 (depends on 10)

The method of claim 10, further comprising decoding the sequence of output tokens.

### Claim 13 (depends on 1)

The method of claim 1, wherein providing the first response to the first query for presentation to the user comprises providing the first response to the user by way of a user interface.

### Claim 14 (depends on 2)

The method of claim 2, wherein receiving the additional query relating to the context from the user comprises:
providing one or more of the predicted queries of the k predicted query-response pairs for presentation to the user by way of a user interface for selection;
receiving an indication of selection of a predicted query by way of the user interface as the additional query from the user; and
in response to the indication of selection, providing the corresponding response of the selected predicted query to the user for presentation by way of the user interface.

### Claim 15 (depends on 2)

The method of claim 2, wherein receiving the additional query relating to the context from the user comprises:
receiving the additional query from the user relating to the context;
determining whether the additional query of the user relates to one or more of the predicted queries in the k predicted query-response pairs; and
in response to determining that the additional query relates to one or more of the predicted queries, providing the corresponding response of the one or more predicted queries to the user for presentation.

### Claim 16 (depends on 15)

The method of claim 15, wherein determining whether the additional query of the user relates to one or more of the predicted queries in the k predicted query-response pairs comprises:
using semantic matching to determine respective measures of similarity for the additional query and each of the queries in the k predicted query-response pairs; and
determining whether one or more of the respective measures of similarity satisfies a threshold criterion indicating that the additional query relates to the predicted query.

### Claim 17 (depends on 16)

The method of claim 16, wherein using semantic matching to determine respective measures of similarity comprises processing a set of query pairs, wherein each query pair comprises the additional query and each of the predicted queries of the k predicted query-response pairs, with a prompt to determine the measure of semantic similarity for each query pair using a second token generation neural network.

### Claim 18 (depends on 16)

The method of claim 16, further comprising, for each of the k predicted query-response pairs, storing a respective query vector with corresponding response in a vector database, wherein each respective query vector is an embedding of the predicted query of the predicted query-response pair, and wherein using semantic matching comprises:
identifying a first query vector in the database based on a measure of similarity between an embedding of the additional query and the query vector; and
retrieving the corresponding response for the first query vector.

### Claim 19 (depends on 1)

The method of claim 1, wherein the token generation neural network is a large language model.

### Claim 20 (depends on 1)

The method of claim 1, wherein the token generation neural network is a vision language model.

### Claim 21 (depends on 1)

The method of claim 1, wherein the token generation neural network has been trained by operations comprising:
obtaining a set of training examples, wherein each training example comprises: (i) a training model input comprising the context and the first query of the user, and (ii) k subsequent query-response pairs for the context; and
training the token generation neural network on the set of training examples.

### Claim 22 (depends on 21)

The method of claim 21, wherein obtaining the set of training examples comprises generating the set of training examples by associating received first queries for the context with any received additional queries for the context from the user.

### Claim 23 (depends on 4)

The method of claim 4, wherein the token generation neural network and the profile machine learning model have been jointly trained by operations comprising:
obtaining a set of training examples, wherein each training example comprises: (i) a training model input comprising the context, the first query of the user, auxiliary data characterizing the user, and (ii) k subsequent query-response pairs for the context; and
training the token generation neural network and the profile machine learning model on the set of training examples.

### Claim 24 (depends on 23)

The method of claim 23, wherein determining the value of k comprises processing an input comprising the user profile and the context using a machine learning model to generate the value of k, and wherein the operations further comprise:
training the token generation neural network, the profile machine learning model, and the machine learning model on the set of training examples.

### Claim 25

A system comprising one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
receiving an input comprising a context and a first query related to the context for a user;
processing a model input comprising the context and first query using a token generation neural network to generate a first response to the first query and k predicted query-response pairs, wherein each predicted query-response pair comprises (i) a predicted query that is a prediction of a subsequent query submitted by the user related to the context query and (ii) a corresponding response to the predicted query;
providing the first response to the first query for presentation to the user; and
caching any of the k predicted query-response pairs.

### Claim 26

A computer storage medium encoded with a computer program, the program comprising instructions that are operable, when executed by data processing apparatus, to cause the data processing apparatus to perform operations comprising:
receiving an input comprising a context and a first query related to the context for a user;
processing a model input comprising the context and first query using a token generation neural network to generate a first response to the first query and k predicted query-response pairs, wherein each predicted query-response pair comprises (i) a predicted query that is a prediction of a subsequent query submitted by the user related to the context query and (ii) a corresponding response to the predicted query;
providing the first response to the first query for presentation to the user; and
caching any of the k predicted query-response pairs.
