Method and device for generating code error correction model, electronic equipment and medium
Patent Information
- Application Number
- CN202410961695.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The prediction accuracy of existing code error correction models is low, mainly because the number of correct code segments far exceeds the incorrect code segments, resulting in the loss weight of correct code segments during the training process being too high, affecting the prediction ability of the model.
Continue pre-training the pre-trained language model by using a sample set of the target programming language, and determine the masked loss by masking a part of the correct code segment, reducing the loss weight of the correct code segment, thereby adjusting the parameters of the language model , improve the prediction accuracy of the code error correction model.
It improves the prediction accuracy of the code error correction model, saves training time, reduces the amount of calculations required to calculate the total loss, and shortens the number of training rounds.
Smart Images

Figure CN118747133A_ABST
Abstract
Citation Information
Patent Citations
Processing method for pre-training language model, and spoken language understanding system
CN114023306A
Text error correction model training method and device and text error correction method and device
CN114048733A
Code pre-training model training method based on program dependency graph prediction
CN116643759A
Systems and methods for code understanding and generation
US20220382527A1
Iterative neural code translation
US20240184555A1
