Patent ID: 11941373
Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. A computer-implemented method, comprising:
selecting a pre-trained deep learning model trained to generate source code for a first source code generation task;
generating a second deep learning model having parameters of the pre-trained deep learning model;
updating the parameters of the second deep learning model to learn to generate source code for a second source code generation task given a plurality of tuning samples, wherein the updating uses a policy gradient method to determine a policy loss, wherein the policy gradient method is based on a reward score having a code-quality reward for each source code snippet generated by the second deep learning model given a select one of the plurality of tuning samples, wherein the policy loss is backpropagated to the second deep learning model to update the parameters of the second deep learning model to learn to generate source code for the second source code generation task; and
applying the second deep learning model having the updated parameters in an inference system to generate source code for the second source code generation task.