Methods for unsupervised prediction of performance drop due to domain shift
AssigneeNaver France
InventorsMatthias Galle, Hady Elsahar
Life of this patent
Estimating the term…
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.
Claims12
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(Gf(x)))
- where PAD* is the domain shift metric, ε is a predetermined scalar value, and θf and θy are parameters of a first function Gf and a second function G*d learned by minimizing a loss function, and learnable parameters of Gf 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, xi and yi are data-points, Us' represents data in the training domain.
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(Gf(x)))
- where PAD* is the domain shift metric, ε is a predetermined scalar value, and θf and θy are parameters of a first function Gf and a second function G*d learned by minimizing a loss function, and learnable parameters of Gf 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, xi and vi are data-points, Us' represents data in the training domain.
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(Gf(x)))
- where PAD* is the domain shift metric, ε is a predetermined scalar value, and θf and θy are parameters of a first function Gf and a second function G*d learned by minimizing a loss function, and learnable parameters of Gf 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, xi and yi are data-points, Us' represents data in the training domain.
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(Gf(x))),
- where PAD* is the domain shift metric, ε is a predetermined scalar value, and θf and θy are parameters of a first function Gf and a second function G*d learned by minimizing a loss function, and learnable parameters of Gf 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, xi and yi are data-points, Us' represents data in the training domain.
Dependencies are inferred from the claim text.