A Model Distillation Method Combined with Dynamic Vocabulary Augmentation
A technology of vocabulary enhancement and distillation, which is applied in computing models, machine learning, instruments, etc., can solve the problems of model inference relying on high-configuration equipment, model accuracy decline, and model size being too large, so as to improve semantic understanding and inference The effect of fast speed and low resource consumption
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2021-06-18
Smart Images

Figure 1
Abstract
Description
technical field
[0001] The invention relates to the technical field of natural language processing in the field of artificial intelligence, in particular to a model distillation method combined with dynamic vocabulary enhancement. Background technique
[0002] Text key information extraction is the most common task in the field of natural language processing. In recent years, since the emergence of Bert, models based on the Transformer mechanism have emerged in an endless stream. From Bert to RoBERTa, to XLNet, GPT-3 and other models, the accuracy of key information extraction tasks has been continuously refreshed. However, when NLP tasks are actually implemented, enterprises often use the technical architecture of high-concurrency model deployment considering factors such as cost and efficiency, and large-scale models in a multi-copy system mean that a large amount of GPU resources are occupied. What enterprises are often pursuing is not the highest accuracy rate, but the ...
Examples
Embodiment Construction
[0019] The present invention will be further described below in conjunction with the accompanying drawings.
[0020] In order to make the technical solution given in this embodiment clear, the technical terms mentioned in this embodiment are explained below:
[0021] Encode: Indicates encoding.
[0022] Token: Indicates a token.
[0023] CRF: stands for Conditional Random Field.
[0024] GPU: Indicates the graphics card.
[0025] This embodiment provides a model distillation method combined with dynamic vocabulary enhancement. This method adopts model distillation and adds dictionary information in the fine-tuning process to reduce the size of the student model and improve the accuracy of the student model. The overall workflow is as follows figure 1 As shown, the specific steps are as follows:
[0026] First of all, fine-tuning the ALbert language model is different from the conventional fine-tuning logic. In the process of fine-tuning the ALbert language model, the fine-...