# US 2025/0156456 A1 · Large language model adaptation for grounding

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

- Number: US 2025/0156456 A1
- Document ID: US20250156456A1
- Status: Published application
- Kind: A1
- Application number: 18/947,752
- Filed: 2024-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Ruoxi Sun; Xi Ye; Sercan Omer Arik
- Web page: https://patentgrep.com/patent/US20250156456A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/3326: {using relevance feedback from the user, e.g. relevance feedback on documents, documents sets, document terms or passages}
- G06F 40/30: Semantic analysis
- 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 grounding LLMs. In one aspect, a method includes accessing responses from a large language model, each response comprising data including: a query, an answer to the query, the answer comprising one or more statements, citations linking each statement to an evidence passage in a corpus; determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model, wherein the grounding quality is a quantification of attribution of the statements in the answer to a document corpus; and tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on grounding quality score.

## Claims

### Claim 1

A computer-implemented method, comprising:
accessing responses from a large language model, each response comprising data including:
a query;
an answer to the query, the answer comprising one or more statements; and
citations linking each statement to an evidence passage in a corpus;
determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model, wherein the grounding quality is a quantification of attribution of the statements in the answer to a document corpus;
tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on a grounding quality score.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
iteratively processing a query by the adapted large language model, comprising:
initially processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer;
for each subsequent iteration:
determining which passages in the answer are not supported by a citation;
adding the passages that are supported by a citation to a list of relevant passages;
if there are one or more passages in the answer that are not supported by a citation, then, for each passage not supported, processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer;
otherwise processing the query by the adapted large language model to obtain a subsequent answer for the query based on the passages and citations for passages in the subsequent answer.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein iteratively processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer comprises iteratively processing the query by the adapted large language model until an inference budget is exhausted.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer comprises processing the passage not supported by a retriever model to generate supplemental passages to be processed by the adapted large language model.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model comprises determining a sum of attribution evaluation model outputs, each output based on an evidence passage and statement provided as input to the attribution evaluation model.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on grounding quality score further comprises tuning the large language model so that answers generated by the adapted large language model maximizing scores with the respect to the large language model such that:
max(·|Q,)(A|Q,){(A,)≥}.

### Claim 7

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 the operations of:
accessing responses from a large language model, each response comprising data including:
a query;
an answer to the query, the answer comprising one or more statements; and
citations linking each statement to an evidence passage in a corpus;
determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model, wherein the grounding quality is a quantification of attribution of the statements in the answer to a document corpus;
tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on a grounding quality score.

### Claim 8 (depends on 7)

The system of claim 7, the operations further comprising:
iteratively processing a query by the adapted large language model, comprising:
initially processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer;
for each subsequent iteration:
determining which passages in the answer are not supported by a citation;
adding the passages that are supported by a citation to a list of relevant passages;
if there are one or more passages in the answer that are not supported by a citation, then, for each passage not supported, processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer;
otherwise processing the query by the adapted large language model to obtain a subsequent answer for the query based on the passages and citations for passages in the subsequent answer.

### Claim 9 (depends on 8)

The system of claim 8, wherein iteratively processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer comprises iteratively processing the query by the adapted large language model until an inference budget is exhausted.

### Claim 10 (depends on 8)

The system of claim 8, wherein processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer comprises processing the passage not supported by a retriever model to generate supplemental passages to be processed by the adapted large language model.

### Claim 11 (depends on 7)

The system of claim 7, wherein determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model comprises determining a sum of attribution evaluation model outputs, each output based on an evidence passage and statement provided as input to the attribution evaluation model.

### Claim 12 (depends on 7)

The system of claim 7, wherein tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on grounding quality score further comprises tuning the large language model so that answers generated by the adapted large language model maximizing scores with the respect to the large language model such that:
max(·|Q,)(A|Q,){(A,)≥}.

### Claim 13

A computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations comprising:
accessing responses from a large language model, each response comprising data including:
a query;
an answer to the query, the answer comprising one or more statements; and
citations linking each statement to an evidence passage in a corpus;
determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model, wherein the grounding quality is a quantification of attribution of the statements in the answer to a document corpus;
tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on a grounding quality score.

### Claim 14 (depends on 13)

The computer storage medium of claim 13, the operations further comprising:
iteratively processing a query by the adapted large language model, comprising:
initially processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer;
for each subsequent iteration:
determining which passages in the answer are not supported by a citation;
adding the passages that are supported by a citation to a list of relevant passages;
if there are one or more passages in the answer that are not supported by a citation, then, for each passage not supported, processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer;
otherwise processing the query by the adapted large language model to obtain a subsequent answer for the query based on the passages and citations for passages in the subsequent answer.

### Claim 15 (depends on 14)

The computer storage medium of claim 14, wherein iteratively processing the query by the adapted large language model to obtain an answer for the query and citations for passages in the answer comprises iteratively processing the query by the adapted large language model until an inference budget is exhausted.

### Claim 16 (depends on 14)

The computer storage medium of claim 14, wherein processing the passage not supported to generate a subsequent answer and citations for passages in the subsequent answer comprises processing the passage not supported by a retriever model to generate supplemental passages to be processed by the adapted large language model.

### Claim 17 (depends on 13)

The computer storage medium of claim 13, wherein determining a grounding quality of the answer based on the evidence passages and the statements using an attribution evaluation model comprises determining a sum of attribution evaluation model outputs, each output based on an evidence passage and statement provided as input to the attribution evaluation model.

### Claim 18 (depends on 13)

The computer storage medium of claim 13, wherein tuning the large language model to obtain an adapted large language model that satisfies a grounding constraint based on grounding quality score further comprises tuning the large language model so that answers generated by the adapted large language model maximizing scores with the respect to the large language model such that:
max(·|Q,)(A|Q,){(A,)≥}.
