# US 2021/0286598 A1 · Pretraining utilizing software dependencies

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286598 A1
- Document ID: US20210286598A1
- Status: Published application
- Kind: A1
- Application number: 16/813,778
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: YAN LUO; Liujia Shao; YAN XU; SIBIN FAN
- Web page: https://patentgrep.com/patent/US20210286598A1

## CPC

- G06F 8/33: Intelligent editors
- G06F 8/73: Program documentation
- G06F 8/75: Structural analysis for program understanding
- G06N 3/02: Neural networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 3/096: Transfer learning
- G06N 20/00: Machine learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In an approach to creating code snippet auto-commenting models utilizing a pre-training model leveraging dependency data, one or more computer processors create a generalized pre-training model trained with one or more dependencies and one or more associated dependency embeddings, wherein dependencies include frameworks, imported libraries, header files, and application programming interfaces associated with a software project. The one or more computer processors create a subsequent model with a model architecture identical to the created pre-training model. The one or more computer processors computationally reduce a training of the created subsequent model utilizing one or more trained parameters, activations, memory cells, and context vectors contained in the created pre-training model. The one or more computer processors create deploy the subsequent model to one to more production environments.

## Claims

### Claim 1

A computer-implemented method comprising:
creating, by one or more computer processors, a generalized pre-training model trained with one or more dependencies and one or more associated dependency embeddings, wherein dependencies include frameworks, imported libraries, header files, and application programming interfaces associated with a software project;
creating, by one or more computer processors, a subsequent model with a model architecture identical to the created pre-training model;
computationally reducing, by one or more computer processors, a training of the created subsequent model utilizing one or more trained parameters, activations, memory cells, and context vectors contained in the created pre-training model; and
deploying, by one or more computer processors, the subsequent model to one to more production environments.

### Claim 2 (depends on 1)

The method of claim 1, wherein comprises:
statically analyzing, by one or more computer processors, one or more dependencies associated with the software project;
creating, by one or more computer processors, one or more embeddings mapping the one or more statically analyzed dependencies; and
creating, by one or more computer processors, one or more training sets utilizing the one or more created embeddings.

### Claim 3 (depends on 1)

The method of claim 1, wherein statically analyzing one or more dependencies associated with the software project, comprises:
extracting, by one or more computer processors, one or more imported dependencies;
constructing, by one or more computer processors, one or more naming convention dependent tokens;
extracting, by one or more computer processors, one or more contexts; and
creating, by one or more computer processors, one or more code and comment pairs utilizing the one or more extracted imported dependencies, the one or more constructed naming convention dependent tokens, and the extracted one or more contexts.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
retraining, by one or more computer processors, one or more downstream software projects utilizing the created pre-training model.

### Claim 5 (depends on 1)

The method of claim 1, wherein the created pre-training model is a recurrent neural network.

### Claim 6 (depends on 1)

The method of claim 1, wherein the subsequent model is an auto-commenting model.

### Claim 7 (depends on 6)

The method of claim 6, wherein the auto-commenting model is a recurrent neural network.

### Claim 8 (depends on 7)

The method of claim 7, further comprises:
integrating, by one or more computer processors, the auto-commenting model into one or more integrated development environments.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
concurrently creating, by one or more computer processors, one or more code comments utilizing the integrated auto-commenting model; and
displaying, by one or more computer processors, one or more created code comment

### Claim 10

A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the stored program instructions comprising:
program instructions to create a generalized pre-training model trained with one or more dependencies and one or more associated dependency embeddings, wherein dependencies include frameworks, imported libraries, header files, and application programming interfaces associated with a software project;
program instructions to create a subsequent model with a model architecture identical to the created pre-training model;
program instructions to computationally reduce a training of the created subsequent model utilizing one or more trained parameters, activations, memory cells, and context vectors contained in the created pre-training model; and
program instructions to create deploy the subsequent model to one to more production environments.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the program instructions, stored on the one or more computer readable storage media, comprise:
program instructions to statically analyze one or more dependencies associated with the software project;
program instructions to create one or more embeddings mapping the one or more statically analyzed dependencies; and
program instructions to create one or more training sets utilizing the one or more created embeddings.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the subsequent model is an auto-commenting model.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the auto-commenting model is a recurrent neural network.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the program instructions, stored on the one or more computer readable storage media, comprise:
program instructions to integrate the auto-commenting model into one or more integrated development environments.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein the program instructions, stored on the one or more computer readable storage media, comprise:
program instructions to concurrently create one or more code comments utilizing the integrated auto-commenting model; and
program instructions to display one or more created code comment

### Claim 16

A computer system comprising:
one or more computer processors;
one or more computer readable storage media; and
program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the stored program instructions comprising:
program instructions to create a generalized pre-training model trained with one or more dependencies and one or more associated dependency embeddings, wherein dependencies include frameworks, imported libraries, header files, and application programming interfaces associated with a software project; and
program instructions to create a subsequent model with a model architecture identical to the created pre-training model;
program instructions to computationally reduce a training of the created subsequent model utilizing one or more trained parameters, activations, memory cells, and context vectors contained in the created pre-training model; and
program instructions to create deploy the subsequent model to one to more production environments.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the program instructions, stored on the one or more computer readable storage media, comprise:
program instructions to statically analyze one or more dependencies associated with the software project;
program instructions to create one or more embeddings mapping the one or more statically analyzed dependencies; and
program instructions to create one or more training sets utilizing the one or more created embeddings.

### Claim 18 (depends on 16)

The computer system of claim 16, wherein the subsequent model is an auto-commenting model.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the auto-commenting model is a recurrent neural network.

### Claim 20 (depends on 18)

The computer system of claim 18, wherein the program instructions, stored on the one or more computer readable storage media, comprise:
program instructions to integrate the auto-commenting model into one or more integrated development environments.
