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

Claim 15:
16. A computer-implemented method, comprising:
accessing a pre-trained deep learning model having a first set of parameters trained to predict source code for a given first input;
tuning the deep learning model to predict source code given a second input, wherein the tuning comprises:
iteratively sampling output data from the pre-trained deep learning model and the tuned deep learning model upon application of a plurality of tuning samples;
for each sampled output data, computing a reward-based loss between each sampled output from the pre-trained deep learning model and each sampled output from the tuned deep learning model;
for each source code snippet generated by the tuned deep learning model, augmenting the reward-based loss with a code-quality reward; and
updating parameters of the tuned deep learning model at each iteration based on an accumulated reward-based loss; and
upon completion of the tuning, deploy the tuned deep learning model in an inference system.