# US 2022/0044135 A1 · Complementary evidence identification in natural language inference

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

- Number: US 2022/0044135 A1
- Document ID: US20220044135A1
- Status: Published application
- Kind: A1
- Application number: 16/989,866
- Filed: 2020-08-10
- Published: 2022-02-10
- Earliest claimed: 2020-08-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Mo Yu; Li Zhang; Hui Su; Shiyu Chang; Ming Tan; Xiangyang Mou
- Web page: https://patentgrep.com/patent/US20220044135A1

## CPC

- G06F 40/30: Semantic analysis
- G06N 5/04: Inference or reasoning models
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N 3/048: Activation functions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and apparatus for complementary evidence identification in natural language inference. A given question is obtained and a set of N passages is obtained from a database. A probability is determined, for each passage of the set of N passages, of a corresponding passage being a supportive passage for the given question and the set of N passages is ranked based on the determined probabilities. M passages that are ranked 1 to M of the set of N passages are selected. A set of L passages is selected based on a plurality of scores, each score assigned to a set of candidate passages of the set of N passages, each score being based on the determined probabilities, the selected M passages, and a weighted regulation parameter. The set of L passages is provided to a computerized machine learning system to answer the question based on the set of L passages.

## Claims

### Claim 1

A method for natural language inference, the method comprising:
obtaining a given question for input to a hardware processor;
obtaining, using the hardware processor, a set of N passages from an electronic database;
determining, using the hardware processor, for each passage of the set of N passages, a probability of a corresponding passage being a supportive passage for the given question;
ranking, using the hardware processor, the set of N passages based on the determined probabilities;
selecting, using the hardware processor, M passages that are ranked 1 to M of the set of N passages;
selecting, using the hardware processor, a set of L passages based on a plurality of scores, each score assigned to a set of candidate passages of the set of N passages, each score being based on the determined probabilities, the selected M passages, and a weighted regulation parameter; and
providing, using the hardware processor, a set of M highest ranked passages of the set of L passages to a computerized machine learning system to answer the question based on the set of L passages.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of N passages comprises a mixture set of passages P=P+∪P− with one or more passages p∈P+ being relevant to the given question and one or more passages p∈P− being irrelevant to the given question, wherein each passage of the set of N passages is designated as pi.

### Claim 3 (depends on 1)

The method of claim 1, wherein a score function g for finding a best passage is defined by:
ℊ
⁡
(
P
sel
;
q
;
{
p
i
}
)
=
∑
p
i
⁢
Pr
⁡
(
p
i
|
q
)
+
α
⁢
⁢
cos
⁡
(
∑
p
i
⁢
p
i
,
q
)
+
β
⁢
∑
p
i
,
p
j
,
i
≠
j
⁢
ℓ
1
⁡
(
p
i
,
p
j
)
where α and β are hyperparameters, each passage of the set of N passages is designated as pi, the given question is designated as q, and 1(⋅, ⋅) denotes an L1 loss between two input vectors.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the selected set of L passages is designated as Psel and is similar to the given question q such that Psel has a probability of Σpi∈PselPr(pi|q) that is higher than an average probability for an unselected set of passages, wherein each passage of the set of N passages is designated as pi and the given question is designated as q;
Psel covers all facts asked by the given question q such that a joint set of passages in Psel has a high similarity to the given question q and maximizes cos(Σi∈{i|pi∈Psel}pi, q); and
Psel covers passages pi having diversity based on an average distance between any pair of passages pi in Psel.

### Claim 5 (depends on 4)

The method of claim 4, wherein the diversity is attained by maximizing Σi,j∈{i,j|pi,pj∈Pseli≠j1(pi, pj) where 1(⋅, ⋅) denotes an L1 distance; and wherein coverage is attained by maximizing cos(Σi∈{i|pi∈Psel} pi, q).

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
applying a BERT model to estimate the probability of the passage pi being supporting evidence to the given question q, where a concatenation of q and pi is input into the BERT model, and one or more hidden states of a last layer are used to represent q and pi in vector space, denoted as q and pi, respectively; wherein a fully connected layer f followed by sigmoid activation is added to an end of the BERT model; and a scalar Prob(pi|q) is output to estimate a relevancy of passage pi to the given question q, wherein each passage of the set of N passages is designated as pi and the given question is designated as q.

### Claim 7 (depends on 6)

The method of claim 6, further comprising training the BERT model using a supervised training objective function based on a set of labeled training examples where, for each training instance (q, P), {pi}+={pi}, ∀i∈{i|pi ∈P+}; {pi}−={pi}, ∀i∈{i|pi∈P−}; and {pi}={pi}+∪{pi}− are defined.

### Claim 8 (depends on 7)

The method of claim 7, wherein the supervised training objective function comprises a sum of a cross-entropy loss corresponding to a relevance condition that is at least one of a measure of a similarity and a measure of a dissimilarity between a question vector and each passage vector; a weighted cosine-embedding loss for a coverage condition that is a measure of a similarity between the question vector and a subspace spanned by one or more selected passage vectors; and a weighted regularization of a diversity condition that is a measure of an overall distance among supporting passage vectors.

### Claim 9 (depends on 8)

The method of claim 8, wherein the supervised training objective function is defined as:
ℒ
⁡
(
{
p
i
}
;
q
;
y
)
=
ℒ
sup
⁡
(
{
p
i
}
;
q
;
y
)
+
αℒ
c
⁡
(
{
p
i
}
;
q
;
y
)
+
βℒ
d
⁡
(
{
p
i
}
+
)
where
ℒ
sup
⁡
(
{
p
i
}
;
q
;
y
)
=
-
∑
i
⁢
y
p
i
⁢
log
⁡
(
f
⁡
(
p
i
)
)
,
(
1
)
ℒ
c
⁡
(
{
p
i
}
;
q
;
y
)
=
{
1
-
cos
⁡
(
q
,
∑
i
⁢
,
p
i
)
,
if
⁢
⁢
∏
p
i
y
⁢
p
i
=
1
max
⁡
(
0
,
cos
⁡
(
q
,
∑
i
⁢
p
i
)
-
γ
)
,
if
⁢
⁢
∏
p
i
y
⁢
p
i
=
0
(
2
)
ℒ
d
⁡
(
{
p
i
}
+
)
=
∑
p
i
,
p
j
,
i
≠
j
⁢
(
1
-
ℓ
1
⁡
(
p
i
,
p
j
)
)
.
(
3
)
where α and β are hyperparameter weights, where γ is a cosine similarity margin, and 1(⋅, ⋅) denotes an L1 loss between two input vectors.

### Claim 10 (depends on 1)

The method of claim 1, further comprising answering the question with the computerized machine learning system.

### Claim 11

A non-transitory computer readable medium comprising computer executable instructions which when executed by a computer cause the computer to perform the method of:
obtaining a given question q;
obtaining a set of N passages from an electronic database;
determining for each passage of the set of N passages, a probability of a corresponding passage being a supportive passage for the given question;
ranking the set of N passages based on the determined probabilities;
selecting M passages that are ranked 1 to M of the set of N passages;
selecting a set of L passages based on a plurality of scores, each score assigned to a set of candidate passages of the set of N passages, each score being based on the determined probabilities, the selected M passages, and a weighted regulation parameter; and
providing a set of M highest ranked passages of the set of L passages to a computerized machine learning system in order to answer the question based on the set of L passages.

### Claim 12

An apparatus comprising:
a memory; and
at least one processor, coupled to said memory, and operative to perform operations comprising:
obtaining a given question;
obtaining a set of N passages from an electronic database;
determining for each passage of the set of N passages, a probability of a corresponding passage being a supportive passage for the given question;
ranking the set of N passages based on the determined probabilities;
selecting M passages that are ranked 1 to M of the set of N passages;
selecting a set of L passages based on a plurality of scores, each score assigned to a set of candidate passages of the set of N passages, each score being based on the determined probabilities, the selected M passages, and a weighted regulation parameter; and
providing a set of M highest ranked passages of the set of L passages to a computerized machine learning system in order to answer the question based on the set of L passages.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the set of N passages comprises a mixture set of passages P=P+∪P− with one or more passages p∈P+ being relevant to the given question q and one or more passages p∈P− being irrelevant to the given question q, wherein each passage of the set of N passages is designated as pi and the given question is designated as q.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein a score function g for finding a best passage is defined by:
ℊ
⁡
(
P
sel
;
q
;
{
p
i
}
)
=
∑
p
i
⁢
Pr
⁡
(
p
i
|
q
)
+
α
⁢
⁢
cos
⁡
(
∑
p
i
⁢
p
i
,
q
)
+
β
⁢
∑
p
i
,
p
j
,
i
≠
j
⁢
ℓ
1
⁡
(
p
i
,
p
j
)
where α and β are hyperparameters, each passage of the set of N passages is designated as pi, the given question is designated as q, and 1(⋅, ⋅) denotes an L1 loss between two input vectors.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein:
the selected set of L passages is designated as Psel and is similar to the given question q such that Psel has a probability of Σpi∈PselPr(pi|q) that is higher than an average probability for an unselected set of passages, wherein each passage of the set of N passages is designated as pi and the given question is designated as q;
Psel covers all facts asked by the given question q such that a joint set of passages in Psel has a high similarity to the given question q and maximizes cos(Σi∈{i|pi∈Psel}pi, q); and
Psel covers passages pi having diversity based on an average distance between any pair of passages pi in Psel.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the diversity is attained by maximizing Σi,j∈≡i,j|pi,pj∈Psel,i≠j1(pi,pj) where 1(⋅, ⋅) denotes an L1 distance; and wherein coverage is attained by maximizing cos(Σi∈{i|pi∈Psel}pi, q).

### Claim 17 (depends on 12)

The apparatus of claim 12, the operations further comprising:
applying a BERT model to estimate the probability of the passage pi being supporting evidence to the given question q, where a concatenation of q and pi is input into the BERT model, and one or more hidden states of a last layer are used to represent q and pi in vector space, denoted as q and pi, respectively; wherein a fully connected layer f(⋅) followed by sigmoid activation is added to an end of the BERT model; and a scalar Prob(pi|q) is output to estimate a relevancy of passage pi to the given question q, wherein each passage of the set of N passages is designated as pi and the given question is designated as q.

### Claim 18 (depends on 17)

The apparatus of claim 17, the operations further comprising training the BERT model using a supervised training objective function based on a set of labeled training examples where, for each training instance (q, P), {pi}+={pi}, ∀i∈{i|pi ∈P+}; {pi}−={pi}, ∀i∈{i|pi∈P−}; and {pi}={pi}+∪{pi}− are defined.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the supervised training objective function comprises a sum of a cross-entropy loss corresponding to a relevance condition that is a measure of a similarity or dissimilarity between a question vector and each passage vector; a weighted cosine-embedding loss for a coverage condition that is a measure of a similarity between the question vector and a subspace spanned by one or more selected passage vectors; and a weighted regularization of a diversity condition that is a measure of an overall distance among supporting passage vectors.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the supervised training objective function is defined as:
ℒ
⁡
(
{
p
i
}
;
q
;
y
)
=
ℒ
sup
⁡
(
{
p
i
}
;
q
;
y
)
+
αℒ
c
⁡
(
{
p
i
}
;
q
;
y
)
+
βℒ
d
⁡
(
{
p
i
}
+
)
where
ℒ
sup
⁡
(
{
p
i
}
;
q
;
y
)
=
-
∑
i
⁢
y
p
i
⁢
log
⁡
(
f
⁡
(
p
i
)
)
,
(
1
)
ℒ
c
⁡
(
{
p
i
}
;
q
;
y
)
=
{
1
-
cos
⁡
(
q
,
∑
i
⁢
,
p
i
)
,
if
⁢
⁢
∏
p
i
y
⁢
p
i
=
1
max
⁡
(
0
,
cos
⁡
(
q
,
∑
i
⁢
p
i
)
-
γ
)
,
if
⁢
⁢
∏
p
i
y
⁢
p
i
=
0
(
2
)
ℒ
d
⁡
(
{
p
i
}
+
)
=
∑
p
i
,
p
j
,
i
≠
j
⁢
(
1
-
ℓ
1
⁡
(
p
i
,
p
j
)
)
.
(
3
)
where α and β are hyperparameter weights, where γ is a cosine similarity margin, and 1(⋅, ⋅) denotes an L1 loss between two input vectors.
