Training Data Augmentation via Program Simplification

By simplifying and verifying source code samples within training datasets, the system addresses data quality issues in AI models, improving their performance and robustness across different contexts.

JP2024536372AActive Publication Date: 2024-10-04INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024520777
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-11
Filing Date
2022-09-22
Publication Date
2024-10-04
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

Existing AI models for source code understanding face issues such as data overlap bias, labeling quality, low robustness and generalization, model overfitting, and class imbalance due to dataset size limitations, leading to performance impairments in non-theoretical contexts.

Method used

A system and method for generating augmented training datasets by simplifying source code samples using a simplification algorithm, verifying their correctness, and labeling them task-specifically to create expanded training datasets that focus on task-relevant aspects, thereby reducing noisy data and class imbalance.

Benefits of technology

The approach improves the performance of AI models by allowing them to focus on task-relevant aspects, reducing overfitting and class imbalance, and enhancing model performance across various AI model types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024536372000001_ABST
    Figure 2024536372000001_ABST
Patent Text Reader

Abstract

Techniques are provided that relate to expanding one or more training datasets to train one or more AI models. For example, one or more embodiments described herein may have a system that may include a memory that may store computer-executable components. The system may also include a processor operatively coupled to the memory and capable of executing the computer-executable components stored in the memory. The computer-executable components may include a training expansion component that may generate an expanded training dataset for training an artificial intelligence model by extracting abbreviated source code samples from source code samples included in the training dataset.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to augmenting training data for one or more artificial intelligence ("AI") models, and more particularly, to augmenting one or more AI model training datasets by simplifying source code samples. [Background technology]

[0002] AI models are utilized in a variety of source code understanding tasks, such as defect detection, code summarization, code completion, bug fixing, function and variable naming, code recommendations, software development workflows, and / or the like. However, training an AI model for source code understanding tasks can face a variety of reliability concerns, including: data redundancy bias, labeling quality, poor robustness and / or generalization, model overfitting (e.g., due to limited size of the dataset), class imbalance (e.g., due to discrepancies between counts of samples belonging to different classes), and / or the like. For example, the quality of an AI model's performance can be affected by whether the model has learned task-relevant aspects of the source code.

[0003] For example, a conventionally trained AI model may learn separators between faulty and healthy source code samples using non-representative signals for a given task, such as unexpected correlations between code samples, thereby training the AI ​​model to learn dataset nuances that may result in performance impairments when applied to settings other than the theoretical context. Summary of the Invention

[0004] SUMMARY OF THE DISCLOSURE The following provides a summary to provide a basic understanding of one or more embodiments of the present invention. This summary is not intended to identify key or critical elements or to delineate the scope of any particular embodiments or the scope of the claims. Its sole purpose is to present concepts in a simplified form as a prelude to the more detailed description presented later. In one or more embodiments described herein, systems, computer-implemented methods, apparatus, and / or computer program products are described that can generate one or more extended training data sets for training one or more artificial intelligence models.

[0005] According to an embodiment, a system is provided. The system may include a memory capable of storing computer-executable components. The system may also include a processor operatively coupled to the memory and capable of executing the computer-executable components stored in the memory. The computer-executable components may include a training augmentation component that generates an augmented training data set for training an artificial intelligence model by extracting abbreviated source code samples from source code samples included in a training data set. An advantage of such a system may be the generation of additional training samples for training an artificial intelligence model.

[0006] In some examples, the system may also include a verification component that may verify the accuracy of the abbreviated source code samples. Additionally, the system may include a labeler component that may label the abbreviated source code samples via a task-specific labeling scheme. An advantage of such a system may be the implementation of quality control with newly generated training samples.

[0007] According to another embodiment, a system is provided. The system may include a memory capable of storing computer-executable components. The system may also include a processor operatively coupled to the memory and capable of executing the computer-executable components stored in the memory. The computer-executable components may include a model training component that may train an artificial intelligence model on an augmented training dataset that includes abbreviated source code samples of source code samples from a training dataset.

[0008] In some examples, the system may include a simplification component that may execute a simplification algorithm to generate the simplified source code sample by reducing the source code sample. An advantage of such a system may be the generation of new training samples that may contain less noisy data.

[0009] According to an embodiment, a computer-implemented method is provided. The computer-implemented method may include a system operatively coupled to a processor generating an augmented training dataset for training an artificial intelligence model by extracting abbreviated source code samples from source code samples included in the training dataset. An advantage of such a computer-implemented method may be improved performance by the artificial intelligence model by allowing the model to focus on task-relevant aspects of the training samples.

[0010] In some examples, the computer-implemented method may include a system generating a plurality of simplified source code samples from the source code sample through a series of iterative reductions of the source code sample, the simplified source code samples may be from the plurality of simplified source code samples. An advantage of such a computer-implemented method may be the generation of a plurality of simplified source code samples from a single parent source code sample.

[0011] According to another embodiment, a computer-implemented method is provided that may include a system operatively coupled to a processor training an artificial intelligence model on an augmented training dataset that includes abbreviated source code samples of source code samples from the training dataset.

[0012] In some examples, the computer-implemented method may include the system verifying accuracy of the abbreviated source code samples. The computer-implemented method may also include the system labeling the abbreviated source code samples via a task-based labeling scheme. The computer-implemented method may further include the system adding the abbreviated source code samples to a training dataset following the verification and labeling. An advantage of such a computer-implemented method may be training of an artificial intelligence system on an expanded training dataset that includes both original and abbreviated source code samples.

[0013] According to an embodiment, a computer program product for training an artificial intelligence model is provided. The computer program product may include a computer-readable storage medium having program instructions embodied therein. The program instructions may be executable by a processor to cause the processor to generate an augmented training dataset for training the artificial intelligence model by extracting abbreviated source code samples from source code samples included in the training dataset. An advantage of such a computer program product may be a reduction in overfitting and / or class imbalance during training of the artificial intelligence model.

[0014] In some examples, the program instructions may further cause the processor to generate a plurality of simplified source code samples from the source code sample via a series of iterative reductions of the source code sample. The simplified source code sample may be from the plurality of simplified source code samples. Also, the series of iterative reduction iterations may generate new simplified source code samples that may be simpler than previous simplified source code samples generated by the series of iterative reductions. Furthermore, the program instructions may cause the processor to utilize a delta debugging algorithm to perform the series of iterative reductions. An advantage of such a computer program product may be a more scalable generation of simplified source code samples via a more efficient source code token reduction scheme. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 illustrates a block diagram of an example, non-limiting system that can facilitate training one or more AI models on one or more augmented training datasets in accordance with one or more embodiments described herein.

[0016] [Diagram 2] FIG. 1 illustrates a block diagram of an example, non-limiting system that can verify and / or label abbreviated source code samples to augment one or more training datasets that can be utilized to train one or more AI models in accordance with one or more embodiments described herein.

[0017] [Diagram 3] FIG. 1 illustrates an example and non-limiting table diagram showing example authentication and / or labeling of abbreviated source code samples that may be performed in accordance with one or more embodiments described herein.

[0018] [Figure 4]FIG. 1 illustrates an example, non-limiting diagram of a system that can generate one or more augmented training datasets for training one or more AI models in accordance with one or more embodiments described herein.

[0019] [Diagram 5] FIG. 1 illustrates an example, non-limiting diagram of a system that can train one or more AI models on one or more augmented training datasets in accordance with one or more embodiments described herein.

[0020] [Figure 6] FIG. 1 illustrates an example, non-limiting training scheme that may be implemented for training one or more AI models on one or more augmented training datasets in accordance with one or more embodiments described herein.

[0021] [Figure 7] FIG. 10 illustrates an example, non-limiting graphical illustration that may indicate the effectiveness of expanding one or more training datasets in accordance with one or more embodiments described herein. [Figure 8] FIG. 10 illustrates an example, non-limiting graphical illustration that may indicate the effectiveness of expanding one or more training datasets in accordance with one or more embodiments described herein.

[0022] [Figure 9] FIG. 1 illustrates a flow diagram of an example, non-limiting computer-implemented methodology that may facilitate generating one or more augmented training datasets and / or training one or more AI models on one or more augmented training datasets in accordance with one or more embodiments described herein.

[0023] [Figure 10] 1 illustrates a cloud computing environment in accordance with one or more embodiments described herein.

[0024] [Figure 11] 1 illustrates an abstraction model layer according to one or more embodiments described herein.

[0025] [Figure 12] FIG. 1 illustrates a block diagram of an example non-limiting operating environment in which one or more embodiments described herein may be facilitated. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] The following detailed description is illustrative only and is not intended to limit the embodiments and / or the application or uses of the embodiments, and is further not intended to be bound by any expressed or implied information presented in the preceding Background or Summary sections or in the Detailed Description section.

[0027] One or more embodiments are now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a more thorough understanding of one or more embodiments. However, it will be apparent that in various instances, one or more embodiments may be practiced without these specific details.

[0028] Given the problems with other implementations of AI model training, the present disclosure may be implemented to generate solutions to one or more of these problems by expanding the training dataset through one or more simplification processes to create a distribution of source code samples with varying code complexity. Advantageously, one or more embodiments described herein may utilize a data-driven approach to assist one or more AI models in focusing on task-relevant aspects of a given source code during training. For example, one or more embodiments described herein may incorporate code complexity into AI model learning. By utilizing a data-driven approach, one or more embodiments described herein may be task-agnostic, programming language-agnostic, and / or applicable to a wide variety of AI model types (e.g., including traditional machine learning models such as linear regression, support vector machines, decision trees, principal component analysis, naive Bayes classifiers, neural network architectures such as convolutional neural networks ("CNNs"), recurrent neural networks ("RNNs"), graph neural networks ("GNNs"), combinations thereof, and / or the like).

[0029] Various embodiments of the present invention may be directed to computer processing systems, computer-implemented methods, apparatus, and / or computer program products that facilitate efficient, effective, autonomous (e.g., without direct human guidance) AI model training. For example, one or more embodiments described herein may extend one or more training datasets by simplifying one or more source code samples. For example, the simplified program samples may be generated by utilizing a simplification algorithm, such as delta debugging. Various embodiments described herein may thereby extend one or more training datasets using smaller and potentially less noisy source code samples, while maintaining, for example, the task profile of the training dataset.

[0030] The computer processing system, computer-implemented method, apparatus, and / or computer program product utilizes hardware and / or software to solve a problem (e.g., AI model training) that is highly technical in nature, which is not abstract and cannot be performed as a set of mental activities by a human. For example, an individual or multiple individuals cannot easily extend a training dataset via a program simplification scheme while maintaining the task profile of the training dataset. Also, one or more embodiments described herein may constitute a technical improvement over traditional AI model training by extending a training dataset to create a variety of training samples with varying code complexity. Furthermore, one or more embodiments described herein may have practical application by improving the training of AI models via a data-driven approach that is task-agnostic and applicable to a wide variety of AI model architectures. For example, various embodiments described herein may enable task-related learning for one or more AI models by incorporating complexity awareness of the code. One or more embodiments described herein may control the training protocol of one or more AI models by extending one or more training datasets to generate a plurality of simplified source code samples.

[0031] FIG. 1 illustrates a block diagram of an exemplary and non-limiting system 100 that may expand one or more training datasets for training one or more AI models. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. Aspects of the systems (e.g., system 100, etc.), devices, or processes in various embodiments of the present invention may constitute one or more machine-executable components embodied in one or more machines, e.g., embodied in one or more computer-readable media associated with one or more machines. When executed by one or more machines (e.g., computers, computing devices, virtual machines, combinations thereof, and / or the like), such components can cause the machines to perform the operations described.

[0032] As shown in FIG. 1, the system 100 may include one or more servers 102, one or more networks 104, and / or one or more input devices 106. The server 102 may include a training extension component 110. The training extension component 110 may further include a communication component 112 and / or a simplification component 114. The server 102 may also include or be otherwise associated with at least one memory 116. The server 102 may further include a system bus 118 that may be coupled to various components, such as, for example, but not limited to, the training extension component 110 and related components, the memory 116, and / or the processor 120. Although the server 102 is shown in FIG. 1, in other embodiments, multiple devices of various types may be associated with or include the features shown in FIG. 1. Additionally, the server 102 may be in communication with one or more cloud computing environments.

[0033] The one or more networks 104 may include wired and wireless networks, including, but not limited to, a cellular network, a wide area network (WAN) (e.g., the Internet), or a local area network (LAN). For example, the server 102 may communicate with the one or more input devices 106 (and vice versa) using virtually any desired wired or wireless technology, including, but not limited to, cellular, WAN, Wireless Fidelity (Wi-Fi), WiMAX, WLAN, Bluetooth technology, combinations thereof, and / or the like. Furthermore, while in the illustrated embodiment, the training extension component 110 may be provided on one or more servers 102, it should be understood that the architecture of the system 100 is not so limited. For example, the training extension component 110, or one or more components of the training extension component 110, may be located on another computing device, such as, for example, another server device, a client device, and / or the like.

[0034] The one or more input devices 106 may include one or more computerized devices, which may include, but are not limited to: a personal computer, a desktop computer, a laptop computer, a mobile phone (e.g., a smartphone), a computerized tablet (e.g., including a processor), a smartwatch, a keyboard, a touch screen, a mouse, combinations thereof, and / or the like. The one or more input devices 106 may be utilized to input one or more training datasets 122 and / or AI models 124 into the system 100, thereby sharing such data with the server 102 (e.g., via a direct connection and / or via one or more networks 104). For example, the one or more input devices 106 may transmit data to the communication component 112 (e.g., via a direct connection and / or via one or more networks 104). Additionally, the one or more input devices 106 may include one or more displays that may present one or more outputs generated by the system 100 to a user. For example, the one or more displays may include, but are not limited to: a cathode ray tube display ("CRT"), a light emitting diode display ("LED"), an electroluminescent display ("ELD"), a plasma display panel ("PDP"), a liquid crystal display ("LCD"), an organic light emitting diode display ("OLED"), combinations thereof, and / or the like.

[0035] In various embodiments, one or more input devices 106 and / or one or more networks 104 can be utilized to input one or more settings and / or commands into the system 100. For example, in various embodiments described herein, one or more input devices 106 can be utilized to operate and / or manipulate the server 102 and / or associated components. Additionally, one or more input devices 106 can be utilized to display one or more outputs (e.g., displays, data, visualizations, and / or the like) generated by the server 102 and / or associated components. Further, in one or more embodiments, one or more input devices 106 can be comprised within and / or operably coupled to a cloud computing environment.

[0036] For example, in one or more embodiments, the one or more input devices 106 may be utilized to input one or more training data sets 122 (e.g., including one or more source code samples 123) into the system 100, which may be stored in one or more memories 116. Additionally, the training augmentation component 110 may utilize the one or more training data sets to train one or more AI models 124 (e.g., one or more source code comprehension tasks). For example, the one or more training data sets 122 may include one or more source code samples 123. In one or more embodiments, the one or more input devices 106 may also be utilized to input one or more AI models 124 into the system 100, which may be stored in one or more memories 116 and / or trained by the training augmentation component 110. Additionally, in various embodiments, the one or more input devices 106 may be utilized to define one or more settings and / or parameters for the training of the AI ​​models 124. In various embodiments, the communications component 112 may share one or more inputs (e.g., entering the system 100 via one or more input devices 106) with associated components of the training extension component 110 in accordance with one or more embodiments described herein.

[0037] In various embodiments, one or more AI models 124 may be used to facilitate one or more machine learning tasks. In one or more embodiments, the AI ​​model 124 may simulate several interconnected processing units that may resemble an abstract version of a neuron. For example, the processing units may be arranged in multiple layers (e.g., one or more input layers, one or more hidden layers, and / or one or more output layers) connected by varying connection strengths (e.g., which may be commonly referred to in the art as "weights"). The AI ​​model 124 may learn through training, where data with known outcomes is input to the computer model, the output for the data is compared to the known outcomes, and / or the weights of the computer model are autonomously adjusted based on the comparison to replicate the known outcomes. As the one or more AI models 124 train, the computer model may become increasingly accurate, and thus the trained AI model 124 may accurately analyze data with unknown outcomes based on lessons learned from the training data to facilitate one or more machine learning tasks.Examples of AI models 124 include, but are not limited to, Perceptrons ("P"), Feedforward ("FF"), Radial Basis Networks ("RBF"), Deep Feedforward ("DFF"), Recurrent Neural Networks ("RNN"), Long Short-Term Memory ("LSTM"), Gated Recurrent Units ("GRU"), Autoencoders ("AE"), Variational Autoencoders ("VAE"), Denoising Autoencoders ("DAE"), Sparse Autoencoders ("SAE"), Markov Chains ("MC"), Hopfield Networks ("HN"), Boltzmann Machines ("BM"), Deep Biased Neural Networks ("DBN ... The neural networks may include Deep Learning Networks ("DBN"), Deep Convolutional Networks ("DCN"), Deconvolutional Networks ("DN"), Deep Convolutional Inverse Graphics Networks ("DCIGN"), Generative Adversarial Networks ("GAN"), Liquid State Machines ("LSM"), Extreme Learning Machines ("ELM"), Echo State Networks ("ESN"), Deep Residual Networks ("DRN"), Kohonen Networks ("KN"), Support Vector Machines ("SVM"), and / or Neural Turing Machines ("NTM").

[0038] In one or more embodiments, the training augmentation component 110 may augment one or more training datasets 122 to facilitate training one or more AI models 124. For example, the training augmentation component 110 may include a simplification component 114 that may generate simplified source code samples 126 from the one or more training datasets 122 by executing one or more simplification algorithms. As shown in FIG. 1 , in one or more embodiments, the simplified source code samples 126 generated by the simplification component 114 may be stored, for example, in one or more memories 116. In various embodiments, the one or more simplified source code samples 126 may be smaller samples derived from parent source code samples 123 included in the one or more training datasets 122, thereby allowing the training augmentation component 110 to increase the number of training samples utilized to train one or more AI models 124 from the one or more training datasets 122.

[0039] For example, the simplification component 114 may reduce a source code sample 123 included in one or more training data sets 122 to a single reduced source code sample 126. In another example, the simplification component 114 may reduce a source code sample 123 included in one or more training data sets 122 to multiple reduced source code samples 126. In one or more embodiments, the simplification component 114 may reduce a source code sample 123 included in one or more training data sets 122 to multiple reduced source code samples 126 based on size, where the number of reduced source code samples 126 generated from a source code sample 123 may increase as the size of the source code sample 123 increases. For example, as the source code samples 123 from the one or more training data sets 122 increase, the simplification component 114 may perform additional reduction iterations via one or more simplification algorithms, resulting in a larger number of reduced source code samples 126.

[0040] Additionally, the simplification component 114 may simplify each of the source code samples 123 included in the one or more training data sets 122, or a portion of the source code samples 123 included in the one or more training data sets 122. For example, in one or more embodiments, the simplification component 114 may simplify all, or substantially all, of the source code samples 123 included in the one or more training data sets 122. In another example, in one or more embodiments, the simplification component 114 may simplify source code samples 123 included in one or more training data sets 122 that have a code complexity or size greater than a defined threshold (e.g., defined by one or more code complexity metrics).

[0041] In various embodiments, the simplification component 114 may utilize any simplification algorithm that may reduce the input of the source code sample 123 while generating a reduced sample (e.g., the simplified source code sample 126) that preserves task-relevant features of the source code comprehension task to be performed by the one or more AI models 124. Exemplary simplification algorithms may include, but are not limited to, algorithms that may drop tokens and / or statements from the source code sample 123 in a naive manner, in a randomized manner, in a brute-force manner, or via a scalable reduction scheme (e.g., a delta debugging algorithm, etc.).

[0042] For example, the simplification component 114 may utilize a delta debugging algorithm to generate one or more simplified source code samples 126, however, the architecture of the simplification component 114 is not limited to the use of a delta debugging algorithm. The simplification component 114 may utilize a simplification algorithm (e.g., a delta debugging algorithm) to continuously simplify a given source code sample 123 from one or more training datasets 122 while maintaining a task profile established by the given source code sample 123 (e.g., maintaining a vulnerability profile of healthy code or faulty code in the case of a vulnerability detection setting). For example, the simplification component 114 may utilize one or more simplification algorithms to iteratively remove source code tokens from a source code sample 123 that is subject to a simplification procedure, where each iteration of source code token removal may generate a respective simplified source code sample 126. In various embodiments, the simplification component 114 may remove tokens based on, for example: a smart reduction similar to a binary search (e.g., via a delta debugging algorithm), a linear approach (e.g., removing tokens one at a time via multiple iterations), a randomized approach (e.g., where tokens are randomly selected from the source code sample 123 for removal), operating at a multi-token level, operating at a statement level, operating at a multi-statement level, combinations thereof, and / or the like. Because at least the simplified source code sample 126 is a reduction of the source code sample 123 from the training dataset 122, the simplified source code sample 126 may include less noisy data than the one or more training datasets 122.

[0043] 2 illustrates an exemplary and non-limiting diagram of a system 100 further including a validation component 202 and / or a labeler component 204, in accordance with one or more embodiments described herein. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. In various embodiments, simplified source code samples 126 are generated by the simplification component 114 that may be analyzed by the validation component 202 and / or the labeler component 204 to identify suitable candidates for extending one or more training datasets 122.

[0044] In one or more embodiments, the verification component 202 may determine whether the simplified source code sample 126 is correct (e.g., compilable and / or executable). For example, the verification component 202 may determine whether the simplified source code sample 126 can be compiled and / or executed. For example, the simplification component 114 may generate the simplified source code sample 126 regardless of whether the reduction (e.g., source code token reduction) would cause the resulting simplified source code sample 126 to be incorrect (e.g., non-compilable and / or non-executable). The verification component 202 may identify simplified source code samples 126 that remain correct after the reduction performed by the simplification component 114. For example, the validation component 202 may be a compiler, where valid simplified source code samples 126 may be able to be compiled (e.g., even if the compiled simplified source code sample 126 operates in a different manner than the parent source code sample 123 from which it was derived) and invalid simplified source code samples 126 may not be able to be compiled. In various embodiments, the training extension component 110 may discard invalid simplified source code samples 126 such that the invalid simplified source code samples 126 are not present in the extension of one or more training datasets 122. In another example, the validation component 202 may be adjusted (e.g., via one or more settings defined by one or more input devices 106) to ensure that key aspects of the parent source code sample 123 (e.g., API calls, code variables, and / or other constructs of the like) are maintained.

[0045] In one or more embodiments, the valid simplified source code samples 126 may be further analyzed by the labeler component 204 to determine whether the valid simplified source code samples 126 have the same task profile as one or more parent source code samples 123 from which the valid simplified source code samples 126 were derived. In one or more embodiments, the labeler component 204 may: include labeler computer logic included in one or more training data sets 122; utilize line-based code feature matching (e.g., comparing the simplified source code samples 126 to the parent source code samples 123 from the one or more training data sets 122); include a static analyzer, include a fuzz testing algorithm, be facilitated by a subject matter expert; combinations thereof, and / or the like. Additionally, the labeler component 204 may label the valid simplified source code samples 126 that exhibit the same task profile as the parent source code samples 123. For example, the simplified source code samples 126 may exhibit the same task profile as the parent source code sample 123, where the generation of the simplified source code sample 126 avoids the generation of one or more new defects. For example, the simplified source code samples 126 may exhibit the same task profile as the parent source code sample 123, where the simplified source code sample 126: is free of defects; or contains one or more defects or other task-related features, but the one or more defects or other task-related features are also present in the parent source code sample 123. The simplified source code samples 126 that exhibit a different task profile than the parent source code sample 123 from which they are derived may contain one or more defects that are not present in the parent source code sample 123. In one or more embodiments, the labeler component 204 can store (e.g., and / or label accordingly) those simplified source code samples 126 that exhibit the same task profile as the parent source code sample 123.In one or more embodiments, the labeler component 204 can store (e.g., and / or label accordingly) those abbreviated source code samples 126 that exhibit a different task profile than the parent source code samples 123.

[0046] In various embodiments, the labeling performed by the labeler component 204 may be based on the machine learning task to be performed by one or more AI models 124. For example, the labeler component 204 may label the abbreviated source code samples 126 (e.g., determined to be valid and / or maintain the task profile of the parent source code samples 123) according to one or more labeling schemes defined by the task of the one or more AI models 124 (e.g., according to a task-specific oracle code). For example, with respect to a vulnerability task, the labeler component 204 may label the abbreviated source code samples 126 that include a defined vulnerability with a "1" and the abbreviated source code samples 126 that lack the defined vulnerability with a "0". In one or more embodiments, the label parameters utilized by the labeler component 204 may be customized (e.g., via one or more input devices 106) based on the task to be performed by the one or more AI models 124. Additionally, in one or more embodiments, the labeler component 204 may determine one or more confidence values ​​associated with the generated labels assigned to the abbreviated source code samples 126.

[0047] For example, labeler component 204 may determine whether simplified source code sample 126: contains the same defects or other characteristics relevant to a given source code comprehension task as one or more source code samples 123 from which one or more simplified source code samples 126 were derived; is free of defects; or contains new defects (e.g., compared to one or more source code samples 123 from which simplified source code sample 126 was derived). If no defects are present in simplified source code sample 126, labeler component 204 may determine that simplified source code sample 126 maintains a task profile and may label simplified source code sample 126 according to a task-based labeling scheme. If the simplified source code sample 126 includes one or more defects that were also included in the source code sample 123 from which the simplified source code sample 126 was derived; the labeler component 204 may determine that the simplified source code sample 126 maintains a task profile and may label the simplified source code sample 126 according to a task-based labeling scheme. If the simplified source code sample 126 includes one or more defects that were not included in the source code sample from which the simplified source code sample 126 was derived; the labeler component 204 may determine that the simplified source code sample 126 has a different task profile than the parent source code sample 123, which may make the simplified source code sample 126 unsuitable for augmenting one or more training datasets 122. Thereby, the labeler component 204 can ensure that the augmentation of the one or more training datasets 122 performed by the training augmentation component 110 can avoid introducing new defects (e.g., compared to the one or more training datasets 122) into the training of the one or more AI models 124.

[0048] 3 illustrates an example and non-limiting diagram of a table 300 that may include example source code samples 123 from one or more training datasets 122 and / or simplified source code samples 126 that may be analyzed by the verification component 202 and / or the labeler component 204, according to one or more embodiments described herein. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. Source code sample #1 may be an example source code sample from one or more training datasets 122 for training one or more AI models 124 in vulnerability detection tasks. According to various embodiments described herein, the simplification, authentication, and / or labeling performed by the training augmentation component 110 is not limited to a particular type of source code sample 123 or source code comprehension task.

[0049] 3, example source code samples #2 through #22 may be example simplified source code samples 126 generated by simplification component 114. For example, simplification component 114 may reduce example source code sample #1 by half to generate example source code samples #2 through #3. In addition, simplification component 114 may remove one or more tokens from example source code sample #1 to generate example simplified source code samples #3 through #22. For example, simplification component 114 may iteratively reduce example source code sample #1 at finer granularity to reach a token-level reduction.

[0050] Verification component 202 may attempt to compile example source code samples #1-#22 (e.g., including simplified source code sample 126). If simplified source code sample 126 can be compiled, verification component 202 may determine that source code sample 126 is valid (e.g., as indicated by a check mark in table 300). If simplified source code sample 126 cannot be compiled, verification component 202 may determine that source code sample 126 is invalid (e.g., as indicated by an "X" in table 300). As shown in FIG. 3, verification component 202 may determine that example source code samples #13 and #22 may be valid simplified source code samples 126, while example source code samples #2-#5 and #21 may be invalid simplified source code samples 126.

[0051] Additionally, the labeler component 204 may determine whether the exemplary source code samples #2 through #22 (e.g., the abbreviated source code sample 126) may exhibit the same task profile as the exemplary source code sample #1 (e.g., the parent source code sample 123), according to various embodiments described herein. For example, the labeler component 204 may determine that the valid abbreviated source code samples #13 and #22 maintain the task profile of the source code sample #1 because, at least, the exemplary abbreviated source code samples #13 and #22 lack defects and / or contain defects that are also present in the exemplary source code sample #1. Additionally, the labeler component 204 may label the exemplary source code samples #13 and #22 based on whether the abbreviated source code sample 126 includes one or more defined vulnerabilities.

[0052] 4 illustrates an example and non-limiting diagram of the system 100 further including a dataset component 402 in accordance with one or more embodiments described herein. Repetitive descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. In various embodiments, the dataset component 402 may generate one or more augmented training datasets 404 by utilizing abbreviated source code samples 126 determined to be valid and / or suitable by the validation component 202 and / or the labeler component 204.

[0053] For example, the expanded training dataset 404 may include: all or substantially all simplified source code samples 126 that are deemed valid and / or labeled in combination with all or substantially all of the source code samples 123 of the one or more training datasets 122; all or substantially all simplified source code samples 126 that are deemed valid and / or labeled in combination with a portion of the source code samples 123 of the one or more training datasets 122; a portion of the simplified source code samples 126 that are deemed valid and / or labeled in combination with all or substantially all of the source code samples 123 of the one or more training datasets 122; a portion of the simplified source code samples 126 that are deemed valid and / or labeled in combination with a portion of the source code samples 123 of the one or more training datasets 122; and / or simplified source code samples 126 that are merely deemed valid and / or labeled.

[0054] For example, the dataset component 402 may reduce overfitting during training of one or more AI models 124 by combining the source code samples 123 of the training dataset 122 with abbreviated source code samples 126 that have been determined to be valid (e.g., via the validation component 202 and / or the labeler component 204) and / or have been labeled to generate one or more extended training datasets 404. For example, adding the labeled and / or verified abbreviated source code samples 126 to the one or more training datasets 122 may generate one or more extended training datasets 404 that include more training samples than were originally provided by the training dataset 122. The additional amount of training samples may reduce the percentage of noisy data included in the training of the one or more AI models 124 and / or facilitate the one or more AI models 124 in learning task-relevant aspects of the training dataset 122.

[0055] In another example, the dataset component 402 may reduce class imbalance during training of one or more AI models 124 by adding underclassified abbreviated source code samples 126 (e.g., determined to be valid and / or preferred) to one or more training datasets 122 to generate one or more augmented training datasets 404. For example, the source code samples 123 included in the one or more training datasets 122 may be classified into two or more classes, where the distribution of the source code samples 123 may be imbalanced between the classes. To reduce the imbalance, the dataset component 402 may add valid abbreviated source code samples 126 labeled as belonging to the underclass to one or more training datasets 122 to generate one or more augmented training datasets 404, where valid abbreviated source code samples 126 labeled as belonging to other classes may be removed from the one or more augmented training datasets 404.

[0056] 5 illustrates an example and non-limiting diagram of a system 100 further including a model training component 502, according to one or more embodiments described herein. Repetitive descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. In various embodiments, the model training component 502 may train one or more AI models 124 on one or more augmented training datasets 404 and / or training datasets 122 for one or more source code understanding tasks (e.g., defined via one or more input devices 106).

[0057] In one or more embodiments, the one or more augmented training data sets 404 may include source code samples 123 from one or more training data sets 122 and verified and / or labeled abbreviated source code samples 126; where the model training component 502 may randomly sample from the one or more augmented training data sets 404 to train the one or more AI models 124. Alternatively, the model training component 502 may sample from the augmented training data sets 404 based on one or more parameters of the source code samples 123 and / or the abbreviated source code samples 126. For example, the model training component 502 may sample from the one or more augmented training data sets 404 based on noise data content, code complexity, size, class labels, confidence values, combinations thereof, and / or the like. For example, the model training component 502 may sample one or more augmented training data sets 404 so that the samples are provided to one or more AI models 124 in progressive order from smallest to largest. In another example, the model training component 502 may sample one or more augmented training data sets 404 so that the samples are provided to one or more AI models 124 in progressive order from least code complexity to most code complexity.

[0058] In one or more embodiments, the one or more augmented training datasets 404 may simply include the verified and / or labeled abbreviated source code samples 126; here, the model training component 502 may sample from the one or more training datasets 122 in addition to randomly sampling from the one or more augmented training datasets 404. In one or more embodiments, the one or more augmented training datasets 404 may simply include the verified and / or labeled abbreviated source code samples 126; here, the model training component 502 may simply sample from the one or more augmented training datasets 404 (e.g., randomly or according to a progressive order).

[0059] FIG. 6 illustrates an exemplary and non-limiting training scheme 600 that may be performed by the training extension component 110, according to one or more embodiments described herein. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. Although the training scheme 600 illustrates a combination of features described herein to illustrate the operation of the training extension component 110; however, the architecture of the training extension component 110 is not so limited. For example, although the training scheme 600 illustrates an iterative reduction of the source code samples 123; however, the source code samples 123 may be reduced via a single reduction or via multiple reductions independent of each other, according to one or more embodiments described herein. In another example, although the training scheme 600 illustrates augmenting the training dataset 122 by combining the training dataset 122 and the abbreviated source code samples 126; however, the training dataset 122 and the abbreviated source code samples 126 may also be sampled independently of each other, according to one or more embodiments described herein.

[0060] At 602, the training augmentation component 110 may obtain one or more source code samples 123 from one or more training datasets 122 to serve as initial source code sample inputs 604 for one or more subsequent simplification, authentication, and / or labeling processes. At 606, the training augmentation component 110 may share the source code sample inputs 604 with the simplification component 114. In accordance with various embodiments described herein, the simplification component 114 may execute one or more simplification algorithms to reduce the source code sample inputs 604 to simplified source code samples 126. In 608, the training augmentation component 110 may share the simplified source code samples 126 with the verification component 202. In accordance with various embodiments described herein, the verification component 202 may verify the accuracy of the simplified source code samples 126. For example, the validation component 202 may attempt to compile the abbreviated source code sample 126; where a simplified source code sample 126 that can be compiled is valid and a simplified source code sample 126 that does not compile is invalid.

[0061] At 610, the simplified source code sample 126 has been determined to be valid, and the training augmentation component 110 may share the valid simplified source code sample 126 with the labeler component 204. In accordance with various embodiments described herein, the labeler component 204 may label the valid simplified source code sample 126 via one or more labeling schemes based on a determination that the valid simplified source code sample 126 maintains the task profile of the source code sample input 604. At 612, the training augmentation component 110 may share the labeled and verified simplified source code sample 126 with the dataset component 402. Also, at 614, the training augmentation component 110 may utilize a copy of the verified and labeled simplified source code sample 126 as the source code sample input 604 for the next iteration of reduction and / or generation of the simplified source code sample 126. At 616, the model training component 502 may sample from one or more training datasets 122 and / or one or more labeled and / or validated abbreviated source code samples 126 to train one or more AI models 124.

[0062] To demonstrate the effectiveness of various embodiments described herein, the system 100 is utilized with respect to a vulnerability detection use case on multiple datasets, however, various embodiments are applicable to other source code understanding tasks. Exemplary training datasets 122 utilized to demonstrate the effectiveness of the system 100 include: s-bAbI synthetic dataset ("s-bAbI"), Juliet test suite ("Juliet"), and D2A dataset. Although the s-bAbI, Juliet, and D2A datasets are utilized to demonstrate the effectiveness of various embodiments described herein, however, the features of the training extension component 110 are not limited to the exemplary s-bAbI, Juliet, and D2A datasets, but rather, other source code datasets may be analyzed. s-bAbI includes a syntactically valid C program with non-trivial control flow that focuses on buffer overflow vulnerabilities. For the purpose of vulnerability detection tasks, the s-bAbI generator can be used to create a dataset, where samples with an “UNSAFE” tag can be labeled with 1 and samples with a “SAFE” tag can be labeled with 0. The Juliet dataset contains synthetic examples with various vulnerability types designed to test static analyzers. Samples tagged as “bad” from the Juliet test cases and with clear bug information in Juliet’s manifest.xml can be labeled as 1, while samples tagged as “good” can be labeled as 0. The D2A dataset is a real-world vulnerability detection dataset built via multiple Github projects—OpenSSL, FFMpeg, HTTPD, Nginx, and libtiff. The D2A dataset contains detailed trace-level bug information derived using differential analysis on the output of the Infer static analyzer of successive repository versions before and after a bug-fix commit.Function-level sampling from the D2A trace may result in training functions labeled as 1 (e.g., from pre-modification commits) and training functions labeled as 0 (e.g., from post-modification commits). Additionally, in one or more embodiments, convolutional neural network ("CNN"), recurrent neural network ("RNN"), and / or graph neural network ("GNN") AI models 124 may be utilized to demonstrate the effectiveness of the system 100.

[0063] 7-8 show exemplary and non-limiting diagrams 704, 802 and / or 804 that may indicate the effectiveness of the training augmentation component 110, according to one or more embodiments described herein. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. The training augmentation component 110 may generate an augmented training data set 404 that includes 9 times the samples of s-bAbI, 9.6 times the samples of Juliet, and 53 times the samples of D2A as factors of the training data set 122. Variations in the augmentation level may be due to differences in the size of the source code samples 123 included within the training data set 122. For example, the larger the source code sample input 604, the more reduction iterations may be performed by the simplification component 114; thereby potentially resulting in more valid and / or labeled simplified source code samples 126.

[0064] As shown in FIG. 7, training one or more AI models 124 with a more populated augmented training dataset 404 may enhance model performance. For example, graph 704 is for a GNN model 124 trained with a random sampling of the augmented Juliet dataset. A signal-aware recall metric may be used to indicate the improvement in performance of an AI model 124 that may be achieved via the training augmentation component 110. A signal-aware recall metric may be used to measure the signal recognition of an AI-for-code model. For example, in the context of a vulnerability detection task, a recall measurement may measure the proportion of vulnerable samples that the model correctly predicts, while a signal-aware recall metric may measure how many of those cases the model captures the correct signal to arrive at a prediction. For example, in the context of vulnerability detection, a signal-aware recall metric may measure the proportion of vulnerable samples that the AI ​​model 124 correctly predicts (e.g., using a task-related signal). The x-axis of the graph 704 shows the proportion of samples (e.g., in percentage of the base dataset size) randomly selected from the generated set and added to the training dataset 122 with the left endpoint (e.g., x=0) referring to the baseline model performance. In addition, the training augmentation component 110 may improve the performance of the AI ​​model 124 in terms of other evaluation metrics such as, for example: accuracy, F1 value, average precision (e.g., PR-AUC), combinations thereof, and / or the like. As shown in FIG. 7, gains in model performance may continue with more augmentations. By presenting the AI ​​model 124 with smaller samples while still including characteristics relevant to the task at hand, the AI ​​model 124 may be trained to focus more on task-relevant aspects of the source code samples 123 and less on noise data or dataset nuances.

[0065] Graphs 802 and / or 804 illustrate that the performance of the enhanced AI model 124 achievable by the training augmentation component 110 may be attributable to more than simply increasing the sample population. For example, FIG. 8 shows the signal recognition recall values ​​obtained with general augmentation compared to the augmentation performed by the training augmentation component 110 for several representative augmentation levels of the s-bAbI dataset. As shown in FIG. 8, the gain in model performance may continue with more augmentation, with the signal recognition recall reaching nearly 96% of its achievable maximum at 50% augmentation, a 113% improvement over simply training the AI ​​model 124 with the training dataset 122. As also shown in FIG. 8, general augmentation to increase the sample population may have little effect on the performance of the AI ​​model 124 (e.g., in terms of the signal recognition recall metric). In contrast, extending the training dataset 122 to further sample valid and / or labeled simplified source code samples 126 may significantly improve the performance of the AI ​​model 124. In addition, as shown in graph 804, improved performance may be achieved across a wide variety of AI model 124 types.

[0066] 9 illustrates a flow diagram of an example and non-limiting computer-implemented method 900 that may facilitate generating one or more augmented training datasets 404 and / or training one or more AI models 124 on one or more augmented training datasets 404 in accordance with one or more embodiments described herein. Repeated descriptions of similar elements utilized in other embodiments described herein are omitted for brevity.

[0067] At 902, the computer-implemented method 900 includes receiving by the system 100 (e.g., via the communication component 112) one or more training data sets 122, which may include one or more source code samples 123, operatively coupled to the processor 120. For example, the one or more training data sets 122 may be entered into the system 100 via one or more input devices 106. At 904, the computer-implemented method 900 may execute by the system 100 (e.g., via the simplification component 114) one or more simplification algorithms, which may generate one or more simplified source code samples 126 by reducing one or more source code samples 123 of the one or more training data sets 122. For example, the one or more simplified source code samples 126 may be generated by extracting one or more portions from the one or more source code samples 123 of the one or more training data sets 122. In another example, the one or more simplified source code samples 126 may be generated by removing one or more tokens from one or more source code samples 123 of one or more training data sets 122. In a further example, the one or more simplified source code samples 126 may be generated via one or more iterative reductions of the source code samples 123 of the one or more training data sets 122, according to various embodiments described herein.

[0068] At 906, the computer-implemented method 900 may include verifying the accuracy of the one or more simplified source code samples 126 by the system 100 (e.g., via the verification component 202). For example, the verifying at 906 may include attempting to compile the one or more simplified source code samples 126. The simplified source code samples 126 that can be compiled may be determined to be correct and / or valid, while the simplified source code samples 126 that cannot be compiled may be determined to be incorrect and / or invalid. At 908, the computer-implemented method 900 may include labeling the one or more simplified source code samples 126 by the system 100 (e.g., via the labeler component 204) via a task-based labeling scheme. For example, the simplified source code samples 126 that maintain task profiles of parent source code samples 123 may be labeled into one or more classes, groups, and / or clusters based on a defined machine learning task.

[0069] At 910, the computer-implemented method 900 may include generating, by the system 100 (e.g., via the dataset component 402), one or more extended training datasets 404, which may include one or more abbreviated source code samples 126 for training one or more AI models 124. For example, the generating at 910 may include adding the one or more abbreviated source code samples 126 to the one or more training datasets to generate the one or more extended training datasets 404. At 912, the computer-implemented method 900 may include training, by the system 100 (e.g., via the model training component 502), the one or more AI models 124 on the one or more extended training datasets 404.

[0070] Although this disclosure includes detailed descriptions of cloud computing, it should be understood that implementation of the teachings described herein is not limited to a cloud computing environment. Rather, embodiments of the invention can be implemented in conjunction with any other type of computing environment now known or later developed.

[0071] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort or interaction with the service provider. The cloud model can include at least five characteristics, at least three service models, and at least four deployment models.

[0072] The characteristics are as follows:

[0073] On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically as needed, without requiring human interaction with the service provider.

[0074] Broad network access: The capabilities are available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin or thick client platforms (eg, cell phones, laptops, and PDAs).

[0075] Resource Pooling: Provider computing resources are pooled to serve multiple consumers using a multi-tenant model, with various physical and virtual resources dynamically allocated and reallocated along demand. Consumers generally have no control or knowledge over the exact location of the resources provided, although there is some location independence in that it may be possible to specify a location at a higher level of abstraction (e.g., country, state, or data center).

[0076] Rapid Elasticity: This capacity can be rapidly and elastically provisioned, in some cases automatically, to rapidly scale out, and rapidly released to rapidly scale in. To the consumer, the capacity available for provisioning often appears unlimited, and can be purchased in any amount at any point in time.

[0077] Metered Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts) at a certain level of abstraction. Resource utilization can be monitored, controlled, and reported, thus providing transparency to both providers and consumers of the services being used.

[0078] The service model is as follows:

[0079] Software as a Service (SaaS): The consumer is offered the ability to use a provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.

[0080] Platform as a Service (PaaS): The capability offered to a consumer is to deploy applications that the consumer creates or acquires, written using programming languages ​​and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does control the deployed applications and, in some cases, the configuration of the application hosting environment.

[0081] Infrastructure as a Service (IaaS): The ability provided to a consumer is to provision processing, storage, network, and other basic computing resources onto which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does control the operating systems, storage, deployed applications, and in some cases, limited control over selected networking components (e.g., host firewalls).

[0082] The deployment models are as follows:

[0083] Private Cloud: The cloud infrastructure is operated exclusively for the organization. It may be managed by the organization or a third party and may exist on-premise or off-premise.

[0084] Community Cloud: This cloud infrastructure is shared by several organizations and supports a particular community with shared concerns (e.g., mission, security requirements, policies and compliance considerations). The community cloud may be managed by those organizations or a third party and may exist on-premise or off-premise.

[0085] Public Cloud: The cloud infrastructure is made available to the general public or large industry entities and is owned by organizations that sell cloud services.

[0086] Hybrid Cloud: This cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain a unique entity but are bound together by standardized or proprietary technologies that allow portability of data and applications (e.g., cloud bursting for load balancing between clouds).

[0087] Cloud computing environments are service-oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is an infrastructure that includes a network of interconnected nodes.

[0088] 10, an exemplary cloud computing environment 1000 is shown. As shown, the cloud computing environment 1000 comprises one or more cloud computing nodes 1002 with which local computing devices used by cloud consumers, such as, for example, a personal digital assistant (PDA) or mobile phone 1004, a desktop computer 1006, a laptop computer 1008, and / or an automobile computer system 1010, may communicate. The nodes 1002 may communicate with each other. They may be physically or virtually grouped in one or more networks, such as a private cloud, a community cloud, a public cloud, or a hybrid cloud, or combinations thereof, as described herein above (not shown). This allows the cloud computing environment 1000 to provide infrastructure, platform, and / or software as a service for which the cloud consumer does not need to maintain resources on a local computing device. It will be understood that the types of computing devices 1004-1010 shown in FIG. 10 are intended to be illustrative only, and that the computing node 1002 and cloud computing environment 1000 can communicate with any type of computerized device via any type of network and / or network-addressable connection (e.g., using a web browser).

[0089] Referring now to Figure 11, a set of functional abstraction layers provided by the cloud computing environment 1000 (Figure 10) is shown. Repetitive descriptions of similar elements utilized in other embodiments described herein are omitted for brevity. It should be understood in advance that the components, layers, and functions shown in Figure 11 are intended to be illustrative only, and the embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:

[0090] Hardware and software layer 1102 comprises hardware and software components. Examples of hardware components include mainframe 1104, RISC (reduced instruction set computing) architecture based servers 1106, servers 1108, blade servers 1110, storage devices 1112, and networks and networking components 1114. In some embodiments, software components comprise network application server software 1116 and database software 1118.

[0091] The virtualization layer 1120 provides an abstraction layer over which the following examples of virtual entities may be provided: virtual servers 1122, virtual storage 1124, virtual networks including virtual private networks 1126, virtual applications and operating systems 1128, and virtual clients 1130.

[0092] In one example, management layer 1132 may provide the functionality described below. Resource provisioning 1134 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 1136 provides cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, and protection of data and other resources. User portal 1138 provides access to the cloud computing environment for consumers and system administrators. Service level management 1140 provides cloud computing resource allocation and management so that required service levels are met. Service level agreement (SLA) planning and fulfillment 1142 provides pre-arrangement and procurement of cloud computing resources where future requirements are forecasted according to SLAs.

[0093] Workload tier 1144 provides examples of functions for which a cloud computing environment may be utilized. Examples of workloads and functions that may be provided from this tier include mapping and navigation 1146, software development and lifecycle management 1148, providing virtual classroom instruction 1150, data analytics processing 1152, transaction processing 1154, and AI model training 1156. Various embodiments of the present invention may utilize the cloud computing environments described with reference to Figures 10 and 11 to augment one or more training datasets and / or train one or more AI models.

[0094] The present invention may be a system, method and / or computer program product integrated at any possible level of technical detail. The computer program product may include a computer readable storage medium (or multiple computer readable storage media) having computer readable program instructions for causing a processor to perform aspects of the present invention. A computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM, or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves on which instructions are recorded, and any suitable combination of the above. Computer-readable storage medium, as used herein, should not be construed as a transitory signal per se, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over electrical wires.

[0095] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and transfers the computer-readable program instructions to a computer-readable storage medium in the respective computing / processing device for storage.

[0096] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages ​​such as Smalltalk® or C++, and procedural programming languages ​​such as the “C” programming language or similar programming languages. The computer readable program instructions may run entirely on the user's computer, as a stand-alone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can execute computer readable program instructions using state information of the computer readable program instructions to personalize the electronic circuitry to carry out aspects of the invention.

[0097] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0098] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus create means for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and / or other device to function in a particular manner, such that a computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0099] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a sequence of operational steps to be executed on the computer, other programmable apparatus, or other device to generate a computer-implemented process, such that the instructions executing on the computer, other programmable apparatus, or other device implement the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0100] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in the reverse order depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, may be implemented by a dedicated hardware-based system that executes the specified functions or operations, or executes a combination of dedicated hardware and computer instructions.

[0101] To provide additional context for the various embodiments described herein, Figure 12 and the following discussion are intended to provide a general description of a suitable computing environment 1200 in which various embodiments of the embodiments described herein may be implemented. Although the embodiments have been described above in the general context of computer-executable instructions that may be executed on one or more computers, those skilled in the art will recognize that the embodiments may also be implemented in combination with other program modules and / or as a combination of hardware and software.

[0102] Generally, program modules include routines, programs, components, data structures, and / or the like that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the methods of the present invention may be practiced with other computer system configurations including single-processor or multi-processor computer systems, minicomputers, mainframe computers, Internet of Things ("IoT") devices, distributed computing systems, and personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, and the like, each of which may be operatively coupled to one or more associated devices.

[0103] The illustrated embodiments of the embodiments herein may also be practiced in a distributed computing environment where certain tasks are performed by remote processing devices linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices. For example, in one or more embodiments, computer-executable components may execute from a memory that may include or be composed of one or more distributed memory units. As used herein, the terms "memory" and "memory unit" are interchangeable. Furthermore, one or more embodiments described herein may execute the code of the computer-executable components in a distributed manner, for example, multiple processors working in combination or cooperation to execute the code from one or more distributed memory units. As used herein, the term "memory" may encompass a single memory or memory unit at one location, or multiple memories, or memory units at one or more locations.

[0104] A computing device typically includes a variety of media, which may include computer-readable storage media, machine-readable storage media, and / or communication media, as the two terms are used herein to distinguish one from the other as follows: A computer-readable storage medium or machine-readable storage medium may be any available storage medium that can be accessed by a computer and includes both volatile and non-volatile media, removable and non-removable media. By way of example, and not limitation, a computer-readable storage medium or machine-readable storage medium may be implemented in association with any method or technology for storage of information, such as computer-readable or machine-readable instructions, program modules, structured or unstructured data, and the like.

[0105] A computer-readable storage medium may include, but is not limited to, random access memory ("RAM"), read-only memory ("ROM"), electrically erasable programmable read-only memory ("EEPROM"), flash memory or other memory technology, compact disk read-only memory ("CD-ROM"), digital versatile disk ("DVD"), Blu-ray disk ("BD") or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, solid-state drives or other solid-state storage devices, or other tangible and / or non-transitory media that may be used to store the desired information. In this regard, the terms "tangible" or "non-transitory" herein as applied to storage, memory, or computer-readable medium should be understood as qualifiers to exclude only transitory signals that propagate by themselves, and do not waive the right to all standard storage, memory, or computer-readable media that are not merely transitory signals that propagate by themselves.

[0106] A computer-readable storage medium may be accessed by one or more local or remote computing devices for various operations relating to the information stored by the medium, for example, via access requests, queries, or other data retrieval protocols.

[0107] Communication media typically embodied computer readable instructions, data structures, program modules, or other structured or unstructured data in a modulated data signal, e.g., a data signal such as a carrier wave or other transport mechanism, and includes any information delivery or transport media. The term "modulated data signal" or signal refers to a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal or signals. By way of example, and not limitation, communication media include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.

[0108] 12, an exemplary environment 1200 for implementing various embodiments of the aspects described herein includes a computer 1202, the computer 1202 including a processing unit 1204, a system memory 1206, and a system bus 1208. The system bus 1208 couples system components including, but not limited to, the system memory 1206 to the processing unit 1204. The processing unit 1204 can be any of a variety of commercially available processors. Dual microprocessors and other multi-processor architectures can also be utilized as the processing unit 1204.

[0109] The system bus 1208 may be any of several types of bus structures that may be further interconnected to a memory bus, a peripheral bus, and a local bus (with or without a memory controller) using any of a variety of commercially available bus architectures. The system memory 1206 includes a ROM 1210 and a RAM 1212. A basic input / output system ("BIOS") may be stored in non-volatile memory, such as a ROM, erasable programmable read-only memory ("EPROM"), EEPROM, etc., that contains the basic routines that help the BIOS transfer information between elements within the computer 1202, such as during start-up. The RAM 1212 may also include a high-speed RAM, such as a static RAM, for caching data.

[0110] The computer 1202 further comprises an internal hard disk drive ("HDD") 1214 (e.g., EIDE, SATA), one or more external storage devices 1216 (e.g., a magnetic floppy disk drive ("FDD") 1216, a memory stick or flash drive reader, a memory card reader, combinations thereof, and / or the like), and an optical disk drive 1220 (e.g., capable of reading from or writing to CD-ROM disks, DVDs, BDs, and / or the like). Although the internal HDD 1214 is shown as being located within the computer 1202, the internal HDD 1214 may also be configured for external use in a suitable chassis (not shown). Additionally, although not shown in the environment 1200, a solid state drive ("SSD") may be used in addition to or in place of the HDD 1214. HDD 1214, external storage device 1216, and optical disk drive 1220 may be connected to system bus 1208 by HDD interface 1224, external storage interface 1226, and optical drive interface 1228, respectively. Interface 1224 for external drive implementations may include at least one or both of Universal Serial Bus ("USB") and Institute of Electrical and Electronics Engineers ("IEEE") 1394 interface technologies. Other external drive connection technologies are within the contemplation of the embodiments described herein.

[0111] The drives and their associated computer-readable storage media provide non-volatile storage of data, data structures, computer-executable instructions, etc. For the computer 1202, the drives and storage media accommodate the storage of any data in a suitable digital format. Although the above description of computer-readable storage media refers to each type of storage device, it should be understood by those skilled in the art that other types of storage media that are readable by a computer, either now existing or developed in the future, may be used in the exemplary operating environment, and further that any such storage media may include computer-executable instructions for performing the methods described herein.

[0112] A number of program modules may be stored in the drives and RAM 1212, including an operating system 1230, one or more application programs 1232, other program modules 1234, and program data 1236. All or portions of the operating system, applications, modules, and / or data may also be cached in RAM 1212. The systems and methods described herein may be implemented using various commercially available operating systems or combinations of operating systems.

[0113] Computer 1202 may optionally include emulation technology. For example, a hypervisor (not shown) or other intermediary may emulate a hardware environment for operating system 1230, where the emulated hardware may optionally differ from the hardware shown in FIG. 12. In one such embodiment, operating system 1230 may include one of a number of virtual machines ("VMs") hosted on computer 1202. Additionally, operating system 1230 may provide a runtime environment, such as the Java Runtime Environment or the .NET Framework, for application 1232. A runtime environment is a consistent execution environment that allows application 1232 to run on any operating system that includes the runtime environment. Similarly, operating system 1230 may support containers, where application 1232 may be in the form of a container, e.g., a lightweight, standalone, executable package of software including code, runtime, system tools, system libraries, and settings for the application.

[0114] Additionally, computer 1202 can be enabled with a security module, such as a trusted processing module ("TPM"). For example, with a TPM, a boot component hashes the chronologically succeeding boot component and waits for the resulting match to a protected value before loading the next boot component. This process can occur at any layer in the code execution stack of computer 1202, for example, applied at the application execution level or the operating system ("OS") kernel level, thereby enabling security at any level of code execution.

[0115] A user may enter commands and information into the computer 1202 through one or more wired / wireless input devices, such as a keyboard 1238, a touch screen 1240, and a pointing device such as a mouse 1242. Other input devices (not shown) may include a microphone, an infrared ("IR") remote control, a radio frequency ("RF") remote control, or other remote control, a joystick, a virtual reality controller and / or virtual reality headset, a game pad, a stylus pen, an image input device such as a camera, a gesture sensor input device, a vision movement sensor input device, an expression or face detection device, a biometric input device such as a fingerprint or iris scanner, etc. These and other input devices are often connected to the processing unit 1204 through an input device interface 1244 that may be coupled to the system bus 1208, but may be connected by other interfaces, such as a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, a BLUETOOTH interface, and / or the like.

[0116] A monitor 1246 or other type of display device may also be connected to the system bus 1208 via an interface, such as a video adapter 1248. In addition to the monitor 1246, computers typically include other peripheral output devices (not shown), such as speakers, printers, a combination thereof, and / or the like.

[0117] The computer 1202 may operate in a networked environment using logical connections via wired and / or wireless communications to one or more remote computers, such as a remote computer 1250. The remote computer 1250 can be a workstation, a server computer, a router, a personal computer, a portable computer, a microprocessor-based entertainment device, a peer device, or other common network node, and typically includes many or all of the elements described above with respect to the computer 1202, although only a memory / storage device 1252 is shown for simplicity. The logical connections shown include wired / wireless connectivity to a local area network ("LAN") 1254 and / or larger networks, such as a wide area network ("WAN") 1256. Such LAN and WAN networking environments are commonplace in offices and businesses, facilitating enterprise-wide computer networks, such as intranets, all of which may connect to a global communications network, such as the Internet.

[0118] When used in a LAN networking environment, the computer 1202 can be connected to the local network 1254 through a wired and / or wireless communication network interface or adapter 1258. The adapter 1258 can facilitate wired or wireless communication to the LAN 1254, which can also include a wireless access point ("AP") disposed thereon for communicating with the adapter 1258 in a wireless mode.

[0119] When used in a WAN networking environment, the computer 1202 may include a modem 1260 or may be connected to a communications server on the WAN 1256 via other means for establishing communications over the WAN 1256, such as by way of the Internet. The modem 1260, which may be internal or external and may be a wired or wireless device, may be connected to the system bus 1208 via the input device interface 1244. In a networked environment, program modules depicted for the computer 1202, or portions thereof, may be stored in the remote memory / storage device 1252. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0120] When used in either a LAN or WAN networking environment, computer 1202 may access a cloud storage system or other network-based storage system in addition to or in place of external storage device 1216, as described above. Generally, a connection between computer 1202 and a cloud storage system may be established over LAN 1254 or WAN 1256, for example, by adapter 1258 or modem 1260, respectively. Upon connecting computer 1202 to an associated cloud storage system, external storage interface 1226, with the aid of adapter 1258 and / or modem 1260, may manage the storage provided by the cloud storage system as it manages other types of external storage. For example, external storage interface 1226 may be configured to provide access to cloud storage sources as if those sources were physically connected to computer 1202.

[0121] The computer 1202 may be operable to communicate with any wireless device or entity operatively arranged in wireless communication, such as printers, scanners, desktop and / or portable computers, personal digital assistants, communications satellites, any equipment or location associated with a wirelessly detectable tag (e.g., a kiosk, a newsstand, a store shelf, and / or the like), and telephones. This may include Wireless Fidelity ("Wi-Fi") and BLUETOOTH wireless technologies. Thus, communication may be in a predefined structure as in a traditional network, or simply ad-hoc communication between at least two devices.

[0122] What has been described above includes merely examples of systems, computer program products, and computer-implemented methods. Of course, for purposes of describing the present disclosure, it is not possible to describe every conceivable combination of components, products, and / or computer-implemented methods, and one of ordinary skill in the art may recognize that many further combinations and permutations of the present disclosure are possible. Furthermore, to the extent that terms such as "includes," "has," and "possesse" are used in the detailed description, claims, appendices, and drawings, such terms are intended to be inclusive in a similar manner to the term "comprising," as "comprising" is interpreted when used as a transitional term in the claims. The description of various embodiments has been presented for purposes of illustration, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used in this specification has been selected to best explain the principles of the embodiments, practical applications, or technical improvements to technology found in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. memory for storing computer-executable components; and a processor operatively coupled to the memory for executing the computer-executable components stored in the memory, wherein the computer-executable components include: A training augmentation component that generates an augmented training data set for training an artificial intelligence model by extracting abbreviated source code samples from source code samples contained within the training data set. A processor having A system comprising:

2. a simplification component that generates a plurality of simplified source code samples from the source code sample through a series of iterative reductions of the source code sample, where each iteration of the series of iterative reductions generates a new simplified source code sample that is simpler than a previous simplified source code sample generated by the series of iterative reductions. The system of claim 1 further comprising:

3. a verification component that verifies the accuracy of the abbreviated source code sample; and a labeler component for labeling the abbreviated source code samples via a task-specific labeling scheme; The system of claim 1 further comprising:

4. a dataset component that adds the abbreviated source code samples to the training dataset following authentication by the verification component and labeling by the labeler component. The system of claim 3 further comprising:

5. a model training component for training the artificial intelligence model from the augmented training data set. The system of claim 4 further comprising:

6. memory for storing computer-executable components; and a processor operatively coupled to the memory for executing the computer-executable components stored in the memory, wherein the computer-executable components include: A model training component that trains an artificial intelligence model on an augmented training dataset that includes abbreviated source code samples of the source code samples from the training dataset. A processor having A system comprising:

7. a simplification component that executes a simplification algorithm to reduce the source code sample to generate the simplified source code sample. The system of claim 6 further comprising:

8. The system of claim 7 , wherein the simplification component generates a plurality of simplified source code samples from the source code sample through a series of iterative reductions.

9. a verification component that verifies accuracy of the abbreviated source code sample; a labeler component that labels the abbreviated source code samples via a task-based labeling scheme; and a dataset component that generates the augmented training dataset by adding the abbreviated source code samples to the training dataset following authentication by the verification component and labeling by the labeler component. The system of claim 6 further comprising:

10. A computer-implemented method comprising: a system operatively coupled to a processor generating an augmented training dataset for training an artificial intelligence model by extracting abbreviated source code samples from source code samples included in the training dataset.

11. generating a plurality of simplified source code samples from the source code sample through a series of iterative reductions of the source code sample, where the simplified source code samples are from the plurality of simplified source code samples; The computer-implemented method of claim 10 further comprising:

12. said system utilizing a delta debugging algorithm to perform said series of iterative reductions. The computer-implemented method of claim 11 further comprising:

13. 12. The computer-implemented method of claim 11, wherein each iteration of the series of iterative reductions produces a new simplified source code sample that is simpler than a previous simplified source code sample produced by the series of iterative reductions.

14. the system verifying the accuracy of the abbreviated source code sample; and The system labels the abbreviated source code samples via a task-specific labeling scheme. The computer-implemented method of claim 10 further comprising:

15. the system adding the abbreviated source code samples to the training data set following the verification and the labeling; and the system training the artificial intelligence model from the augmented training data set. The computer-implemented method of claim 14 further comprising:

16. 1. A computer-implemented method comprising: a system operatively coupled to a processor training an artificial intelligence model on an augmented training dataset that includes abbreviated source code samples of source code samples from the training dataset.

17. the system executing a simplification algorithm to generate the simplified source code samples by reducing the source code samples from the training data set. The computer-implemented method of claim 16 further comprising:

18. generating a plurality of source code samples by performing a series of iterative reductions, where each iteration of the series of iterative reductions generates a new simplified source code sample that is simpler than a previous simplified source code sample generated by the series of iterative reductions. The computer-implemented method of claim 16 further comprising:

19. the system verifying the accuracy of the abbreviated source code samples; the system labeling the abbreviated source code samples via a task-based labeling scheme; and the system adding the abbreviated source code samples to the training data set following the verification and the labeling. The computer-implemented method of claim 16 further comprising:

20. 1. A computer program product for training an artificial intelligence model, the computer program product comprising a computer readable storage medium having program instructions embodied therein, the program instructions causing a processor to: generating an augmented training data set for training the artificial intelligence model by extracting abbreviated source code samples from source code samples included in a training data set; A computer program product executable by the processor to cause the processor to execute the steps of:

21. The program instructions include: the processor generating a plurality of simplified source code samples from the source code sample through a series of iterative reductions of the source code sample, where the simplified source code sample is from the plurality of simplified source code samples.

21. The computer program product of claim 20, further comprising:

22. 22. The computer program product of claim 21, wherein each iteration of the series of iterative reductions produces a new simplified source code sample that is simpler than a previous simplified source code sample produced by the series of iterative reductions.

23. The program instructions include: The processor employs a delta debugging algorithm to perform the series of iterative reductions.

23. The computer program product of claim 22, further comprising:

24. The program instructions include: the processor verifying the accuracy of the abbreviated source code sample; and the processor labeling the abbreviated source code samples via a task-based labeling scheme.

21. The computer program product of claim 20, further causing the processor to execute:

25. The program instructions include: the processor appending the source code samples to the training dataset following validation and labeling to generate the augmented training dataset; and The processor trains the artificial intelligence model from the augmented training data set.

24. The computer program product of claim 23, further causing the processor to execute:

Citation Information

Patent Citations

  • Sample extraction and expansion method for small sample image recognition, and storage medium

    CN113298184A

  • Predicting software build errors

    JP2015526820A

  • Data generation system, learning device, data generation device, data generation method and data generation program

    JP2021056677A

  • Source code bug prediction

    US20180150742A1

  • Classifying code as introducing a bug or not introducing a bug to train a bug detection algorithm

    US20190287029A1