# US 2026/0260120 A1 · Generating output sequences with inline evidence using language model neural networks

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

- Number: US 2026/0260120 A1
- Document ID: US20260260120A1
- Status: Published application
- Kind: A1
- Application number: 18/846,910
- Filed: 2023-03-16
- Published: 2026-09-03
- Earliest claimed: 2022-03-16
- Assignees: DeepMind Technologies Limited
- Applicants: DeepMind Technologies Limited
- Inventors: Jacob Lee Menick; Vladmir Mikulik; Maja Maria Trebacz; Nathaniel John McAleese-Park; Geoffrey Irving
- Web page: https://patentgrep.com/patent/US20260260120A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06N 3/092: Reinforcement learning
- G06F 16/33295: {in dialogue systems}
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06F 40/56: Natural language generation
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating output sequences using language model neural networks. In particular, the output sequences include a response to an input query and inline evidence that includes a quote from a context document that supports the response.

## Claims

### Claim 1

A method performed by one or more computers, the method comprising:
receiving an input text query;
obtaining one or more first context text sequences and a respective natural language identifier for each of the first context text sequences;
generating a first input sequence that includes the input text query, the one or more first context text sequences, and the respective natural language identifiers for each of the one or more first context text sequences;
processing the first input text sequence using an auto-regressive language model neural network to generate a first output text sequence that comprises:
(i) a first output text sub-sequence that is a response to the input text query;
(ii) a second output text sub-sequence that is one of the respective natural language identifiers for the first context text sequences, and
(iii) a third output text sub-sequence that is text from the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
providing at least the first output text sub-sequence and the third output text sub-sequence in response to the input text query.

### Claim 2 (depends on 1)

The method of claim 1, wherein providing at least the first output text sub-sequence and the first context text sequence in response to the input text query comprises
providing the first output text sub-sequence, the second output text sub-sequence, and the third output text sub-sequence in response to the query.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining, from the second output text sub-sequence, a source of the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
providing a reference to the source of the first context text sequence in response to the query.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
obtaining one or more second context text sequences and a respective natural language identifier for each of the second context text sequences;
generating a second input sequence that includes the input text query, the one or more second context text sequences, and the respective natural language identifiers for each of the one or more second context text sequences;
processing the second input text sequence using the auto-regressive language model neural network to generate a second output text sequence that comprises:
(i) a fourth output text sub-sequence that is a response to the input text query;
(ii) a fifth output text sub-sequence that is one of the respective natural language identifiers for the second context text sequences, and
(iii) a sixth output text sub-sequence that is text from the second context text sequence identified by the natural language identifier in the fifth output text sub-sequence;
generating a respective score for each output text sequence in a set that includes the first and second output text sequences;
determining that the first output text sequence has a highest score of any output text sequence in the set; and
providing at least the first output text sub-sequence and the third output text sub-sequence in response to the input text query in response to determining that the first output text sequence has the highest score.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating a respective score for each output text sequence in a set that includes the first and second output text sequences comprises:
scoring each of the output text sequences using a learned reward model.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first output sequence includes a respective token from a vocabulary of tokens at each of a plurality of time steps, wherein the auto-regressive neural network is configured to, for each time step in the first output sequence, generate a respective score for each token in the vocabulary conditioned on the first input text sequence and any tokens in the output sequence at any time steps before the time step in the first output sequence, and wherein generating the first output sequence comprises:
at each time step, selecting the token at the time step using the respective scores for the tokens in the vocabulary generated by the neural network for the time step.

### Claim 7 (depends on 6)

The method of claim 6, wherein generating the first output sequence comprises:
at each time step in the second output text sub-sequence that is after the first time step in the second output text sub-sequence:
receiving the respective scores generated by the neural network at the time step;
generating a constrained score distribution that assigns a non-zero score only to tokens that immediately follow the tokens already generated within the second output text sub-sequence in one of the natural language identifiers; and
sampling the token at the time step from the constrained score distribution.

### Claim 8 (depends on 7)

The method of claim 7, wherein the second output text sub-sequence is preceded by one or more first predetermined syntax tokens in the first output text sequence, and wherein generating the first output sequence comprises:
at a particular time step, determining that the one or more first predetermined syntax tokens have been selected at one or more time steps immediately preceding the particular time step and, in response, determining that the particular time step is the first time step in the second output text-subsequence;
receiving the respective scores generated by the neural network at the particular time step;
in response to determining that the particular time step is the first time step in the second output text-subsequence, generating a constrained score distribution that assigns a non-zero score only to tokens that are the first token in one of the natural language identifiers; and
sampling the token at the time step from the constrained score distribution.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the first output sequence comprises:
at each time step in the third output text sub-sequence that is after the first time step in the third output text sub-sequence:
receiving the respective scores generated by the neural network at the time step;
generating a constrained score distribution that assigns a non-zero score only to tokens that immediately follow the tokens already generated within the third output text sub-sequence in the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
sampling the token at the time step from the constrained score distribution.

### Claim 10 (depends on 9)

The method of claim 9, wherein the third output text sub-sequence is preceded by one or more second predetermined syntax tokens in the first output text sequence, and wherein generating the first output sequence comprises:
at a second particular time step, determining that the one or more second predetermined syntax tokens have been selected at one or more time steps immediately preceding the second particular time step and, in response, determining that the particular time step is the first time step in the third output text-subsequence;
receiving the respective scores generated by the neural network at the particular time step;
in response to determining that the particular time step is the first time step in the third output text-subsequence, generating a constrained score distribution that assigns a non-zero score only to tokens that appear in the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
sampling the token at the time step from the constrained score distribution.

### Claim 11 (depends on 1)

The method of claim 1, wherein obtaining one or more first context text sequences and a respective natural language identifier for each of the first context text sequences comprises:
submitting a query derived from the input text query to a search engine;
obtaining, from the search engine, one or more context documents in response to the query; and
selecting the one or more first context sequences from the one or more context documents.

### Claim 12 (depends on 11)

The method of claim 11, wherein the respective natural language identifier for each of the first context text sequences is a title of the context document from which the first context text sequence is selected.

### Claim 13 (depends on 1)

The method of claim 1, wherein the neural network has been pre-trained through unsupervised learning on a language modeling objective.

### Claim 14 (depends on 1)

The method of claim 1, wherein the neural network has been fine-tuned through supervised learning, reinforcement learning, or both.

### Claim 15

A system comprising:
one or more computers; and
one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:
receiving an input text query;
obtaining one or more first context text sequences and a respective natural language identifier for each of the first context text sequences;
generating a first input sequence that includes the input text query, the one or more first context text sequences, and the respective natural language identifiers for each of the one or more first context text sequences;
processing the first input text sequence using an auto-regressive language model neural network to generate a first output text sequence that comprises:
(i) a first output text sub-sequence that is a response to the input text query;
(ii) a second output text sub-sequence that is one of the respective natural language identifiers for the first context text sequences, and
(iii) a third output text sub-sequence that is text from the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
providing at least the first output text sub-sequence and the third output text sub-sequence in response to the input text query.

### Claim 16

One or more non-transitory computer-readable storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
receiving an input text query;
obtaining one or more first context text sequences and a respective natural language identifier for each of the first context text sequences;
generating a first input sequence that includes the input text query, the one or more first context text sequences, and the respective natural language identifiers for each of the one or more first context text sequences;
processing the first input text sequence using an auto-regressive language model neural network to generate a first output text sequence that comprises:
(i) a first output text sub-sequence that is a response to the input text query;
(ii) a second output text sub-sequence that is one of the respective natural language identifiers for the first context text sequences, and
(iii) a third output text sub-sequence that is text from the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
providing at least the first output text sub-sequence and the third output text sub-sequence in response to the input text query.

### Claim 17 (depends on 15)

The system of claim 15, wherein providing at least the first output text sub-sequence and the first context text sequence in response to the input text query comprises
providing the first output text sub-sequence, the second output text sub-sequence, and the third output text sub-sequence in response to the query.

### Claim 18 (depends on 15)

The system of claim 15, the operations further comprising:
determining, from the second output text sub-sequence, a source of the first context text sequence identified by the natural language identifier in the second output text sub-sequence; and
providing a reference to the source of the first context text sequence in response to the query.

### Claim 19 (depends on 15)

The system of claim 15, the operations further comprising:
obtaining one or more second context text sequences and a respective natural language identifier for each of the second context text sequences;
generating a second input sequence that includes the input text query, the one or more second context text sequences, and the respective natural language identifiers for each of the one or more second context text sequences;
processing the second input text sequence using the auto-regressive language model neural network to generate a second output text sequence that comprises:
(i) a fourth output text sub-sequence that is a response to the input text query;
(ii) a fifth output text sub-sequence that is one of the respective natural language identifiers for the second context text sequences, and
(iii) a sixth output text sub-sequence that is text from the second context text sequence identified by the natural language identifier in the fifth output text sub-sequence;
generating a respective score for each output text sequence in a set that includes the first and second output text sequences;
determining that the first output text sequence has a highest score of any output text sequence in the set; and
providing at least the first output text sub-sequence and the third output text sub-sequence in response to the input text query in response to determining that the first output text sequence has the highest score.

### Claim 20 (depends on 19)

The system of claim 19, wherein generating a respective score for each output text sequence in a set that includes the first and second output text sequences comprises:
scoring each of the output text sequences using a learned reward model.
