# US 2026/0301454 A1 · Method and system for determining similarity between sentences using pair-wise divergence matrix

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

- Number: US 2026/0301454 A1
- Document ID: US20260301454A1
- Status: Published application
- Kind: A1
- Application number: 19/440,735
- Filed: 2026-01-06
- Published: 2026-10-01
- Earliest claimed: 2025-03-27
- Assignees: HCL Technologies Limited
- Applicants: HCL Technologies Limited
- Inventors: Mallamgari Nithin Reddy; Vedasamhitha Challapalli; Rupesh Prasad; Atul Singh; Arvind Maurya
- Web page: https://patentgrep.com/patent/US20260301454A1

## CPC

- G06V 30/19093: {Proximity measures, i.e. similarity or distance measures}
- G06V 30/19073: {Comparing statistics of pixel or of feature values, e.g. histogram matching}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method and system for determining similarity between sentences using a pair-wise divergence matrix is disclosed. The method includes computing, by a processor, a pair-wise divergence value of each word of a first sentence relative to each word of a second sentence using an F-divergence method selected from a plurality of F-divergence methods. Further, the pair-wise divergence value is computed using a probability distribution of each word of the first sentence relative to each word of the second sentence. The method further includes creating, by the processor, a pair-wise divergence matrix based on the computed pair-wise divergence values. The method further includes calculating, by the processor, a similarity score between the first sentence and the second sentence based on the pair-wise divergence matrix.

## Claims

### Claim 1

A method for determining similarity between sentences using a pair-wise divergence matrix, the method comprises:
computing, by a processor, a pair-wise divergence value of each word of a first sentence relative to each word of a second sentence using an F-divergence method selected from a plurality of F-divergence methods, wherein the pair-wise divergence value is computed using a probability distribution of each word of the first sentence relative to each word of the second sentence;
creating, by the processor, a pair-wise divergence matrix based on the computed pair-wise divergence values of each word of the first sentence relative to each word of the second sentence; and
calculating, by the processor, a similarity score between the first sentence and the second sentence based on the pair-wise divergence matrix.

### Claim 2 (depends on 1)

The method of claim 1, further comprises transforming a plurality of words of the first sentence and the second sentence into a plurality of word embeddings.

### Claim 3 (depends on 2)

The method of claim 2, further comprises normalizing each of the plurality of word embeddings into the associated probability distributions.

### Claim 4 (depends on 1)

The method of claim 1, wherein a header column of the pair-wise divergence matrix comprises each word of the first sentence in a unique cell and a header row of the pair-wise divergence matrix comprises each word of the second sentence in a unique cell.

### Claim 5 (depends on 4)

The method of claim 4, wherein creating the pair-wise divergence matrix comprises listing the computed pair-wise divergence value of each word of the first sentence relative to each word of the second sentence in an intersecting cell of the pair-wise divergence matrix, wherein the intersecting cell is an intersection between a row associated with a first word of the header column and a column associated with a second word of the header row.

### Claim 6 (depends on 1)

The method of claim 1, wherein calculating the similarity score comprises:
identifying, for each word of the first sentence, a minimum divergence value from the plurality of divergence values in the corresponding row in the pair-wise divergence matrix;
determining, for each word of the first sentence, a first weighted divergence value based on the multiplication of the identified minimum divergence value with an associated weight; and
calculating a first weighted mean based on the first weighted divergence value determined for each word of the first sentence.

### Claim 7 (depends on 6)

The method of claim 6, further comprises:
identifying, for each word of the second sentence, a minimum divergence value from the plurality of divergence values in the corresponding column in the pair-wise divergence matrix;
determining, for each word of the second sentence, a second weighted divergence value based on the multiplication of the identified minimum divergence value with an associated weight; and
calculating a second weighted mean based on the second weighted divergence value determined for each word of the second sentence.

### Claim 8 (depends on 7)

The method of claim 7, wherein calculating the similarity score comprises calculating a harmonic mean based on the first weighted mean and the second weighted mean.

### Claim 9 (depends on 7)

The method of claim 7, wherein the weight associated with each word of the first sentence and the second sentence is determined based on at least one of a plurality of weighting techniques.

### Claim 10 (depends on 1)

The method of claim 1, further comprises:
identifying the F-divergence method from the plurality of F-divergence methods, wherein identifying the F-divergence method, comprises:
iteratively performing for the plurality of F-divergence methods:
selecting an F-divergence method from the plurality of the F-divergence methods, based on a current value of a counter;
determining a plurality of pair-wise divergence values for the first sentence and the second sentence using the selected F-divergence method;
comparing the plurality of determined pair-wise divergence values with divergence values determined by a user for the first sentence and the second sentence;
computing a relevancy index for the F-divergence method based on a result of the comparison; and
incrementing the current value of the counter by one, when the current value of the counter is less than the total number of the plurality of F-divergence methods; and
selecting the F-divergence method from the plurality of F-divergence methods, wherein the selected F-divergence method has the highest relevancy index.

### Claim 11

A system for determining similarity between sentences using a pair-wise divergence matrix, the method comprises:
a processor; and
a memory communicably coupled to the processor, wherein the memory stores processor-executable instructions, which when executed by the processor, cause the processor to:
compute a pair-wise divergence value of each word of a first sentence relative to each word of a second sentence using an F-divergence method selected from a plurality of F-divergence methods, wherein the pair-wise divergence value is computed using a probability distribution of each word of the first sentence relative to each word of the second sentence;
create a pair-wise divergence matrix based on the computed pair-wise divergence values of each word of the first sentence relative to each word of the second sentence; and
calculate a similarity score between the first sentence and the second sentence based on the pair-wise divergence matrix.

### Claim 12 (depends on 1)

The system of claim 1, wherein the processor-executable instructions further cause the processor to:
transform a plurality of words in the first sentence and the second sentence into a plurality of word embeddings.

### Claim 13 (depends on 2)

The system of claim 2, wherein the processor-executable instructions further cause the processor to:
normalize each of the plurality of word embeddings into the associated probability distributions.

### Claim 14 (depends on 1)

The system of claim 1, wherein a header column of the pair-wise divergence matrix comprises each word of the first sentence in a unique cell and a header row of the pair-wise divergence matrix comprises each word of the second sentence in a unique cell.

### Claim 15 (depends on 14)

The system of claim 14, wherein creating the pair-wise divergence matrix further causes the processor to:
list the computed pair-wise divergence value of each word of the first sentence relative to each word of the second sentence in an intersecting cell of the pair-wise divergence matrix, wherein the intersecting cell is an intersection between a row associated with a first word of the header column and a column associated with a second word of the header row.

### Claim 16 (depends on 1)

The system of claim 1, wherein the similarity score calculation further causes the processor to:
identify a minimum divergence value from the plurality of divergence values for each word of the first sentence, in the corresponding row in the pair-wise divergence matrix;
determine a first weighted divergence value based on the multiplication of the identified minimum divergence value with an associated weight for each word of the first sentence; and
calculate a first weighted mean based on the first weighted divergence value determined for each word of the first sentence.

### Claim 17 (depends on 16)

The system of claim 16, wherein the processor-executable instructions further cause the processor to:
identify, for each word of the second sentence, a minimum divergence value from the plurality of divergence values in the corresponding column in the pair-wise divergence matrix;
determine, for each word of the second sentence, a second weighted divergence value based on the multiplication of the identified minimum divergence value with an associated weight; and
calculate a second weighted mean based on the second weighted divergence value determined for each word of the second sentence.

### Claim 18 (depends on 17)

The system, of claim 17, wherein calculating the similarity score further causes the processor to calculate a harmonic mean based on the first and second weighted mean.

### Claim 19 (depends on 17)

The system of claim 17, wherein the weight associated with each word of the first sentence and the second sentence is determined based on at least one of a plurality of weighting techniques.

### Claim 20 (depends on 11)

The system of claim 11, wherein the processor-executable instructions further cause the processor to:
identify the F-divergence method from the plurality of F-divergence methods, wherein identifying the F-divergence method, comprises:
iteratively perform for the plurality of F-divergence methods:
select an F-divergence method from the plurality of the F-divergence methods, based on a current value of a counter;
determine a plurality of pair-wise divergence values for the first sentence and the second sentence using the selected F-divergence method;
compare the plurality of determined pair-wise divergence values with divergence values determined by a user for the first sentence and the second sentence;
compute a relevancy index for the F-divergence method based on a result of the comparison; and
increment the current value of the counter by one, when the current value of the counter is less than the total number of the plurality of F-divergence methods; and
select the F-divergence method from the plurality of F-divergence methods, wherein the selected F-divergence method has the highest relevancy index.
