Training method and device for pre-trained language model

CN114579699BActive Publication Date: 2024-10-15ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210152672.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-10-15
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

When existing pre-trained language models identify the semantic information of input samples, they fuse the features of each word in the input sample, which affects the convergence speed of the model and may lead to over-training and mismatch between masked words and downstream tasks.

Method used

By masking a set number of characters in the sample text, use the self-attention layer to determine the enhanced semantic vector of each character in the mask training sample, ignore the weight at the position of the masked character, and adjust the model parameters until the training Stop condition to obtain the pre-trained language model that has completed pre-training.

Benefits of technology

It improves the convergence speed of the pre-trained language model, avoids over-training, enhances the model migration ability, and ensures the matching of mask words and downstream tasks, thus improving the processing accuracy of downstream tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579699B_ABST
    Figure CN114579699B_ABST
Patent Text Reader

Abstract

The embodiments of the present specification provide a training method and device for a pre-trained language model, wherein the training method for the pre-trained language model includes: masking a first set number of characters in a sample text to obtain a masked training sample, and then determining an enhanced semantic vector of each character based on the weights at the positions of non-masked characters in the masked training sample, and then determining the loss value of the pre-trained language model based on the enhanced semantic vectors of each character, and training the pre-trained language model, thereby completing the pre-training process of the language model. In this way, when calculating the enhanced semantic vectors of each character of the masked training sample, the weights at the positions of the masked characters can be ignored, which improves the convergence speed of the pre-trained language model, avoids overtraining, and improves the model migration capability, avoiding the problem of mismatch with downstream tasks when there are many masked characters, thereby improving the processing accuracy of downstream tasks.
Need to check novelty before this filing date? Find Prior Art