CPC G06F 40/20 (2020.01) [G06F 16/3329 (2019.01); G06F 16/3344 (2019.01); G06F 40/279 (2020.01); G06F 40/30 (2020.01); G06N 3/08 (2013.01)] | 20 Claims |
1. A method for using a neural network model for natural language processing (NLP), comprising:
receiving training data associated with a source domain and a target domain;
generating one or more query batches,
wherein a source subquery batch includes one or more source tasks associated with the source domain, and
wherein a target subquery batch includes one or more target tasks associated with the target domain;
for each query batch, generating combination class representations associated with a combination of classes in the source domain and the target domain;
generating a source loss using the source subquery batch and the combination class representations;
generating a target loss using the target subquery batch and the combination class representations; and
generating a query batch loss using the source loss and target loss; and
performing an optimization on the neural network model by adjusting its network parameters based on the query batch loss,
wherein the optimized neural network model is used to perform one or more new NLP tasks.
|