IP Library › Granted Patent US 11,907,663
Granted Patent B2
US 11,907,663 · App. 17/240,216 · Granted Feb 20, 2024

Methods for unsupervised prediction of performance drop due to domain shift

Inventors: Matthias Galle (Eybens, FR); Hady Elsahar (Grenoble, FR)
Assignee: NAVER FRANCE
G06F40/30G06F16/3344G06F40/117G06N5/04G06N20/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,907,663
App. No.
17/240,216
Granted
Feb 20, 2024
Kind
B2
Abstract

A system includes: a natural language processing (NLP) model trained in a training domain and configured to perform natural language processing on an input dataset; an accuracy module configured to: calculate a domain shift metric based on the input dataset; and calculate a predicted decrease in accuracy of the NLP model attributable to domain shift relative to the training domain based on the domain shift metric; and a retraining module configured to selectively trigger a retraining of the NLP model based on the predicted decrease in accuracy of the NLP model.

Claims (260)

1. A system comprising:

a natural language processing (NLP) model trained in a training domain and configured to perform natural language processing on an input dataset;

an accuracy module configured to:

calculate a domain shift metric based on the input dataset; and

calculate a predicted decrease in accuracy of the NLP model attributable to domain shift relative to the training domain based on the domain shift metric; and

a retraining module configured to selectively trigger a retraining of the NLP model based on the predicted decrease in accuracy of the NLP model wherein one of:

(a) the domain shift metric is a proxy A domain (PAD) metric and the accuracy module is configured to calculate the domain shift metric using the equation

PAD*=1−2ε( G* d ( G f ( x )))

where PAD* is the domain shift metric, ε is a predetermined scalar value, and θ f and θ y are parameters of a first function G f and a second function G* d learned by minimizing a loss function, and learnable parameters of G f and G* d are learned parameters; and

(b) the domain shift metric is a reverse classification accuracy (RCA) metric and the accuracy module is configured to calculate the domain shift metric using the equation:

RCA

*=

1

U

s

′

⁢

∑

x

i

,

y

i

∈

U

s

′

m

′

⁢

⁡

[

y

i

=

C

′

⁡

(

x

i

)

]

-

⁡

[

y

i

=

C

_

⁡

(

x

i

)

]

,

where RCA* is the domain shift metric, C′ is a classifier learned on out-of-domain data and C the classifier learned on held-out in-domain data, x i and y i are data-points, U s ' represents data in the training domain.

2. The system of claim 1 wherein the retraining module is configured to trigger a retraining of the NLP model when the predicted decrease in accuracy of the NLP model is greater than a predetermined value,

wherein the predetermined value is greater than zero.

3. The system of claim 1 further comprising a results module configured to:

determine a sentiment regarding a subject based on an output of the NLP model; and

provide results including the sentiment to a computing device from which a query regarding the subject was received.

4. The system of claim 1 further comprising a results module configured to determine a tag for a point of speech (POS) based on an output of the NLP model.

5. The system of claim 1 , wherein the NLP model is trained based on a training dataset that is different than the input dataset.

6. The system of claim 5 wherein the training domain of the training dataset is different than a second domain of the input dataset.

7. The system of claim 1 wherein the input dataset includes text of N social media posts,

wherein N is an integer greater than 0.

8. A system comprising:

a training module configured to:

train, using a training dataset in a training domain, a machine learning (ML) model to perform processing on an input dataset;

determine properties of a domain shift metric for the training dataset in the training domain;

an accuracy module configured to:

calculate the domain shift metric based on the input dataset; and

calculate a predicted decrease in accuracy of the ML model attributable to domain shift relative to the training domain based on the domain shift metric using the properties of the domain shift metric for the training dataset; and

a retraining module configured to selectively trigger a retraining of the ML model based on the predicted decrease in accuracy of the ML model, wherein one of:

(a) the domain shift metric is a proxy A domain (PAD) metric and the accuracy module is configured to calculate the domain shift metric using the equation

PAD*=1−2ε( G* d ( G f ( x )))

where PAD* is the domain shift metric, ε is a predetermined scalar value, and θ f and θ y are parameters of a first function G f and a second function G* d learned by minimizing a loss function, and learnable parameters of G f and G* d are learned parameters; and

(b) the domain shift metric is a reverse classification accuracy (RCA) metric and the accuracy module is configured to calculate the domain shift metric using the equation:

R

⁢

C

⁢

A

*

=

1

U

s

′

⁢

∑

x

i

,

y

i

∈

U

s

′

m

′

⁢

𝕀

[

y

i

=

C

′

(

x

i

)

]

-

𝕀

[

y

i

=

C

¯

(

x

i

)

]

,

where RCA* is the domain shift metric, C′ is a classifier learned on out-of-domain data and C the classifier learned on held-out in-domain data, x i and v i are data-points, U s ' represents data in the training domain.

9. The system of claim 8 wherein the retraining module is configured to trigger a retraining of the ML model when the predicted decrease in accuracy of the ML model is greater than a predetermined value,

wherein the predetermined value is greater than zero.

10. The system of claim 8 , wherein the ML model is a natural language processing (NLP) model that is trained based on a training dataset that is different than the input dataset.

11. A computerized method performed by one or more processors, the method comprising:

training a natural language processing (NLP) model using a training dataset to perform natural language processing on an input dataset;

after receiving the input dataset that is different than the training dataset:

calculating a domain shift metric based on the input dataset; and

calculating a predicted decrease in accuracy of the NLP model attributable to domain shift relative to a training domain based on the domain shift metric; and

selectively triggering a retraining of the NLP model based on the predicted decrease in accuracy of the NLP model,

wherein one of:

(a) the domain shift metric is a proxy A domain (PAD) metric and the calculating the domain shift metric includes calculating the domain shift metric using the equation

PAD*=1−2ε( G* d ( G f ( x )))

where PAD* is the domain shift metric, ε is a predetermined scalar value, and θ f and θ y are parameters of a first function G f and a second function G* d learned by minimizing a loss function, and learnable parameters of G f and G* d are learned parameters; and

(b) the domain shift metric is a reverse classification accuracy (RCA) metric and the calculating the domain shift metric includes calculating the domain shift metric using the equation:

RCA

*

=

1

U

s

′

⁢

∑

x

i

,

y

i

∈

U

s

′

m

′

⁢

𝕀

[

y

i

=

C

′

⁢

(

x

i

)

]

-

𝕀

[

y

i

=

C

¯

⁢

(

x

i

)

]

,

where RCA* is the domain shift metric, C′ is a classifier learned on out-of-domain data and C the classifier learned on held-out in-domain data, x i and y i are data-points, U s ' represents data in the training domain.

12. A system comprising:

a natural language processing (NLP) model trained in a training domain and configured to perform natural language processing on an input dataset;

a means for:

calculating a domain shift metric based on the input dataset; and

calculating a predicted decrease in accuracy of the NLP model attributable to domain shift relative to the training domain based on the domain shift metric; and

a means for selectively triggering a retraining of the NLP model based on the predicted decrease in accuracy of the NLP model,

wherein one of:

(a) the domain shift metric is a proxy A domain (PAD) metric and the means for calculating the domain shift metric is configured to calculate the domain shift metric using the equation

PAD*=1−2ε( G* d ( G f ( x ))),

where PAD* is the domain shift metric, ε is a predetermined scalar value, and θ f and θ y are parameters of a first function G f and a second function G* d learned by minimizing a loss function, and learnable parameters of G f and G* d are learned parameters; and

(b) the domain shift metric is a reverse classification accuracy (RCA) metric and the means for calculating the domain shift metric is configured to calculate the domain shift metric using the equation:

R

⁢

C

⁢

A

*

=

1

U

s

′

⁢

∑

x

i

,

y

i

∈

U

s

′

m

′

⁢

𝕀

[

y

i

=

C

′

(

x

i

)

]

-

𝕀

[

y

i

=

C

¯

(

x

i

)

]

,

where RCA* is the aomain snip metric, C′ is a classifier learned on out-of-domain data and C the classifier learned on held-out in-domain data, x i and y i are data-points, U s ' represents data in the training domain.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 22, 2024
From: NAVER FRANCE
To: NAVER CORPORATION
Reel/Frame 069369/0950 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 28, 2021
From: GALLÉ, MATTHIAS; ELSAHAR, HADY
To: NAVER FRANCE
Reel/Frame 056064/0627 →
Continuity (2)
Provisional Application 63017963 · Apr 30, 2020
Related Publication 20210342544A1 · Nov 4, 2021