# US 2025/0094716 A1 · Language model summarization using semantical clustering

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

- Number: US 2025/0094716 A1
- Document ID: US20250094716A1
- Status: Published application
- Kind: A1
- Application number: 18/657,308
- Filed: 2024-05-07
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Zheng Wang; Yazhe Hu; Mengqing Guo; Tao Sheng; Jun Qian; Vinod M. Mamtani
- Web page: https://patentgrep.com/patent/US20250094716A1

## CPC

- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for language model (LM) summarization using semantical clustering are provided. In one technique, a plurality of concepts reflected in text data is identified. A plurality of concept clusters is generated based on similarity among the plurality of concepts. Thus, some concept clusters may include multiple concepts. For each concept cluster of the plurality of concept clusters, an LM generates a summary of the text corresponding to that concept cluster. A summary response of the text data is generated by aggregating the summary of each concept cluster of the plurality of concept clusters. In another technique, an LM generates a summary based on text data. A first set of concepts reflected in the summary is identified and a second set of concepts reflected in the text data is identified. A difference between the two sets may indicate that the summary is missing one or more concepts.

## Claims

### Claim 1

A method comprising:
identifying a first plurality of concepts reflected in text data;
generating a first plurality of concept clusters based on similarity among the first plurality of concepts;
causing a first language model to generate a summary based on the text data;
identifying a second plurality of concepts reflected in the summary;
generating a second plurality of concept clusters based on similarity among the second plurality of concepts;
determining whether the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the second plurality of concept clusters is not missing any concept clusters from the first plurality of concept clusters, providing the summary as a response to a request to summarize the text data.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining whether the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters comprises:
determining a first number of concept clusters in the first plurality of concept clusters;
determining a second number of concept clusters in the second plurality of concept clusters;
comparing the first number to the second number.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating a first plurality of cluster vectors for the first plurality of concept clusters;
generating a second plurality of cluster vectors for the second plurality of concept clusters;
for each cluster vector in the second plurality of cluster vectors:
performing a comparison of said each cluster vector with each cluster vector in the first plurality of cluster vectors;
identifying, from among the first plurality of cluster vectors, a cluster vector that is closest to said each cluster vector;
associating the cluster vector with said each cluster vector;
identifying one or more cluster vectors, in the first plurality of cluster vectors, that is not associated with a cluster vector in the second plurality of cluster vectors.

### Claim 5 (depends on 1)

The method of claim 1, wherein the summary is a first summary, further comprising:
in response to determining that the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters:
causing a second language model to generate a second summary based on text, from the text data, that corresponds to the one or more concept clusters;
generating an aggregated summary based on the second summary and the first summary.

### Claim 6 (depends on 5)

The method of claim 5, wherein the second language model is the first language model.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
causing a third language model to generate output based on the aggregated summary;
identifying a third plurality of concepts reflected in the output;
generating a third plurality of concept clusters based on similarity among the third plurality of concepts;
determining whether the third plurality of concept clusters is missing any concept clusters from the first plurality of concept clusters.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
in response to determining that the third plurality of concept clusters is not missing any concept clusters from the first plurality of concept clusters, providing the output in response to a request to summarize the text data.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
in response to determining that the third plurality of concept clusters is missing one or more second concept clusters from the first plurality of concept clusters:
causing the second language model to generate a third summary based on second text, from the text data, that corresponds to the one or more second concept clusters;
generating a second aggregated summary based on the third summary and the second summary.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters, storing data that indicates that the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters;
based on the data, determining whether to implement an approach that involves causing a second language model to generate summaries of multiple concept clusters, that are based on input text data, without first causing a language model to generate a summary directly from the input text data.

### Claim 11

A method comprising:
identifying a plurality of concepts reflected in text data;
generating a plurality of concept clusters based on similarity among the plurality of concepts;
for each concept cluster of the plurality of concept clusters:
based on a size of text, in the text data, that corresponds to the concepts in said each concept cluster, determining a particular size;
generating a prompt that indicates the particular size;
sending the prompt to a language model, causing the language model to generate a summary of the text corresponding to the concepts in said each concept cluster;
generating a summary response of the text data by aggregating the summary of each concept cluster of the plurality of concept clusters;
wherein the method is performed by one or more computing devices.

### Claim 12 (depends on 11)

The method of claim 11, wherein the plurality of concept clusters is a second plurality of concept clusters, further comprising:
prior to generating the second plurality of concept clusters, generating a first plurality of concept clusters based on the plurality of concepts;
determining whether the number of concept clusters in the first plurality of concept clusters is outside of a particular range.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
prior to generating the second plurality of concept clusters, generating a first plurality of concept clusters based on a first measure of similarity among the plurality of concepts;
in response to determining that the number of concept clusters in the first plurality of concept clusters is outside of the particular range, adjusting the first measure of similarity to be a second measure of similarity that is different than the first measure of similarity;
wherein generating the second plurality of concept clusters comprises generating the second plurality of concept clusters based on the second measure of similarity.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
determining whether the number of concept clusters in the second plurality of concept clusters is outside of the particular range;
wherein causing the language model to generate the summary of the text corresponding to each concept cluster in the second plurality of concept clusters in response to determining that the number of concept clusters in the second plurality of concept clusters is inside the particular range.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
in response to determining that the number of concept clusters in the first plurality of concept clusters is greater than a threshold number, identifying one or more concept clusters that are associated with the least amount of text in the text data among the concept clusters in the first plurality of concept clusters;
wherein the second plurality of concept clusters is a subset of the first plurality of concept clusters.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
determining whether the summary response is greater than a threshold size;
in response to determining that the size of the summary response is greater than the threshold size, generating a second summary response whose size is smaller than the threshold size.

### Claim 17 (depends on 16)

The method of claim 16, wherein generating the second summary response comprises removing, from the summary response, one or more summaries of one or more concept clusters of the plurality of concept clusters.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
identifying a first plurality of concepts reflected in first text data;
generating a first plurality of concept clusters based on similarity among the first plurality of concepts;
causing a first language model to generate a first summary based on the first text data;
identifying a second plurality of concepts reflected in the first summary;
generating a second plurality of concept clusters based on similarity among the second plurality of concepts;
determining whether the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters.

### Claim 19

One or more non-transitory storage media storing instructions which, when executed by one or more computing devices, cause:
identifying a first plurality of concepts reflected in text data;
generating a first plurality of concept clusters based on similarity among the first plurality of concepts;
causing a first language model to generate a summary based on the text data;
identifying a second plurality of concepts reflected in the summary;
generating a second plurality of concept clusters based on similarity among the second plurality of concepts;
determining whether the second plurality of concept clusters is missing one or more concept clusters from the first plurality of concept clusters.

### Claim 20

One or more non-transitory storage media storing instructions which, when executed by one or more computing devices, cause:
identifying a plurality of concepts reflected in text data;
generating a plurality of concept clusters based on similarity among the plurality of concepts;
for each concept cluster of the plurality of concept clusters:
based on a size of text, in the text data, that corresponds to the concepts in said each concept cluster, determining a particular size;
generating a prompt that indicates the particular size;
sending the prompt to a language model, causing the language model to generate a summary of the text corresponding to the concepts in said each concept cluster;
generating a summary response of the text data by aggregating the summary of each concept cluster of the plurality of concept clusters.
