Microminiature AI training-oriented management system and management method
Through the management system for micro-small AI training, parallel training and weight information processing technology are used to improve the training efficiency of the neural network model, solve the problem of low training efficiency, and achieve accurate analysis of changes in weight parameters.
Patent Information
- Application Number
- CN202411047327.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the neural network model is trained with large batches of training samples, the training efficiency is low. Because the impact of each training sample on the relevant weight parameters in the prediction model is not clear, only one training sample is input for training at a time, which is inefficient.
Design a management system for micro-scale AI training, including a data set collection module, a prediction module, a weight information monitoring module and a management module. It improves training efficiency by training different types of samples in parallel, and uses the weight information change rate and value Range normalization processing intuitively reflects changes in weight parameters and assists in analyzing the impact of training samples.
It improves the training efficiency of the neural network model, reduces the training time by training different types of samples in parallel, and accurately analyzes the impact of training samples on weight parameters through the weight change coefficient, reducing the computational difficulty of classifying sample categories.
Smart Images

Figure CN118569349A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a management system and method for micro-AI training. Background Art
[0002] Before the neural network model is used, it needs to be trained with training samples to update the built-in weight parameters of the neural network model. The training samples include data items and label items. The training samples are input into the neural network model for training. The neural network model finds the relationship between the data items and the label items based on the input training samples. This relationship is reflected in the neural network model, which is the change of the built-in weight parameters of the neural network model.
[0003] In order to obtain an accurate neural network model, a large number of training samples are collected for cross-training of the neural network model. When the current neural network model is training a large number of training samples, it is unclear what impact each training sample will have on the relevant weight parameters in the prediction model. Therefore, each time the training is performed, a training sample is input into the prediction model, and then the next training sample is input, which leads to low training efficiency of the neural network model. Summary of the invention
[0004] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0005] As a first aspect of the present application, in order to solve the technical problem of low training efficiency of neural network models, the present application provides a management system for micro-AI training, including: Dataset collection module, used to collect training samples; A prediction module, having a built-in prediction model, and receiving training samples to train the prediction model; The weight information monitoring module is used to obtain each training sample of the training prediction model, as well as the weight update information of the prediction model after the training is completed; A management module, which updates the weight information of each training sample and divides the training samples into several sample types; When the prediction module cross-trains the prediction model, the management module extracts one training sample from each sample type each time and inputs it into the prediction module. The prediction module receives the training samples corresponding to each sample type to perform parallel training on the prediction model.
[0006] In the technical solution provided by the present application, when training the neural network model, it is not necessary to input one training sample into the neural network model at a time, but rather to input different types of samples into the prediction module and train the prediction model in parallel, thereby increasing the training efficiency of the neural network model. In addition, because the training samples of each type of sample generally only affect the weight parameters corresponding to the prediction model, the prediction model can input multiple training samples at a time for parallel training, thereby improving the training efficiency of the prediction model.
[0007] Furthermore, the data set collection module includes a data item information collection unit, a label information collection unit, and a training sample production unit; The data item information collection unit is used to collect data items; The tag information collection unit is used to collect tags; The training sample production unit is respectively connected to the data item information collection unit and the label information collection unit for merging the corresponding training samples and labels into training samples to obtain a data set M, where M={m1, m2, …m k}, where m i represents the i-th training sample, i represents the index of the training sample, i∈[1,k], and i and k are both positive integers.
[0008] There are many forms of prediction models, and the corresponding internal weight parameter value ranges are not consistent. Therefore, directly using the change in the weight parameter as the weight update information is difficult to reflect the impact of each training sample on the weight parameter. To address this problem, this application provides the following technical solutions: The weight update information includes the information change rate θ of each weight parameter d,i ,θ d,i The rate of change of the dth weight parameter when the prediction model is trained using the i-th sample, d is the index of the weight parameter in the prediction model, d∈[1,D], and D is the total number of weight parameters in the prediction model.
[0009] In the present application, the weight update information is the rate of change of the weight parameter, so it can intuitively show the change of the weight information in the prediction model.
[0010] When dividing training samples into several sample categories, if the smallest training sample is used as the division method, the sample category division will be too difficult and inaccurate. To address this problem, the present application provides the following technical solutions: The management module includes a training sample classification unit, a weight parameter classification unit, a mapping unit, and a control unit; The training sample classification unit is used to divide the training samples into N types of basic sets according to the labels and data items of the training samples.
[0011] In this scheme, the training samples are divided into N types of basic sets according to labels and data items, so the training samples are divided in advance, thereby reducing the computational difficulty of subsequent sample category division.
[0012] The ranges of the weight parameters in the prediction model are not consistent, and the value range of the weight parameters can reflect the feedback information of the weight parameters on the training samples. When considering the influence of training samples on two weight parameters with very different value ranges, if the same measurement standard is used, it will lead to the inability to accurately analyze the influence of each training sample on the weight parameter. To solve this problem, this application provides the following technical solutions: Furthermore, the weight parameter classification unit is used to obtain the value range of the weight parameter in each prediction model, and normalize the value range of the weight parameter to a weight variation coefficient.
[0013] In the technical solution provided in the present application, the value range of each weight parameter is obtained in advance, and the value range is normalized to obtain the weight change coefficient, so the weight change coefficient can be used to reflect the change ability of each weight parameter, and then can be used to assist in analyzing the impact of training samples on the weight parameters.
[0014] Furthermore, the mapping unit is signal-connected to the training sample classification unit and the weight parameter classification unit respectively; the mapping unit obtains the sample classification method of the training sample and the weight classification method of the weight parameter according to the weight update information of the training samples of each basic type and the weight change coefficient of each weight parameter; The sample classification method classifies training samples into multiple sample types, and the weight classification method classifies weight parameters into multiple weight types; each sample type corresponds to each weight type in turn.
[0015] In this solution, the mapping unit divides the training samples into sample types in a basic type manner, so the relationship between the training samples and the weight parameters can be found quickly and accurately.
[0016] Furthermore, the control unit extracts one training sample from each sample type and inputs it into the prediction module.
[0017] Further, the prediction module includes a training control unit, a plurality of interconnected operation units, and a summarizing unit; There are multiple operation units, each of which has an independent prediction model built in. A training control unit controls the training samples input to each operation unit according to the weight classification method of the weight parameters in the prediction model; The summarizing unit is connected to the running unit signal and is used to obtain the update information of the weight parameters of the prediction models running on all the running units to obtain the prediction model that has completed the training.
[0018] In the technical solution provided in the present application, a prediction model is set inside each operating unit, and then each operation unit is used to update a weight parameter. In this way, the training of the prediction model can be completed by simply inputting the corresponding type of training samples into each operation unit in parallel.
[0019] The sample classification method and the weight classification method include the following steps: S1: Organize the dataset: X={x1, x2, …x k}, x i represents the basic set of the i-th training sample, i represents the index of the training sample, i∈[1,k], i and k are both positive integers; Y={y1,y2,…y k},y i It represents the weight update information of the prediction model after the i-th training sample is input into the prediction model training, y i =K d θ d,i ; Among them, set x i ∈{1, 2, …J}, J is a positive integer, J represents the number of sample types; S2: Based on the original question; or ; i = 1, 2…k, i represents the sample index, w is the normal vector of the hyperplane, b is the intercept of the hyperplane, x i represents the basic set of the i-th training sample, y i Indicates the weight update information of the prediction model after the i-th training sample is input into the prediction model training; S3: Set the decision function f(x), Among them, sign is the sample type, and x represents the input training sample.
[0020] As the second aspect of the present application, in order to solve the technical problem of low efficiency in training neural network models, the present application provides a management method for micro-AI training, and adopts the management system for micro-AI training for training prediction models. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The illustrative embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application.
[0022] In addition, throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the components and elements are not necessarily drawn to scale.
[0023] In the attached picture: Figure 1 This is a schematic diagram of the structure of a management system for micro-AI training; Figure 2 A schematic diagram of existing parallel training; Figure 3 A schematic diagram of the operating unit.
[0024] Figure 4 A schematic diagram of an operating unit in another manner. DETAILED DESCRIPTION
[0025] Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms, and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0026] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0027] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments.
[0028] Example 1: Reference Figure 1 A management system for micro-sized AI training includes: a data set collection module, a prediction module, a weight information monitoring module, and a management module. The data set collection module is connected to the prediction module by signal, and the weight information monitoring module is connected to the prediction module by signal. The management module is respectively connected to the data collection module, the prediction module, and the weight information monitoring module by signal.
[0029] The data set collection module is used to collect training samples, which include data items and label items.
[0030] The prediction module has a built-in prediction model, and the prediction module receives training samples to train the prediction model.
[0031] The weight information monitoring module is used to obtain each training sample of the training prediction model, as well as the weight update information of the prediction model after the training is completed; A management module, which updates the weight information of each training sample and divides the training samples into several sample types; When the prediction module cross-trains the prediction model, the management module extracts one training sample from each sample type each time and inputs it into the prediction module. The prediction module receives the training samples corresponding to each sample type to perform parallel training on the prediction model.
[0032] Specifically, when cross-training the prediction model, the training samples are actually input into the prediction model for training multiple times. In this solution, when the training samples are trained for the first time, the relationship between the training samples and the weight parameters is obtained, and then the training samples and the weight parameters are classified respectively, thereby guiding the prediction model to perform parallel training.
[0033] The data item is the input of the prediction model, and the label item is the output of the prediction model. After the training sample is input into the neural prediction model, the prediction model updates the built-in weight information to obtain the relationship between the data item and the label item.
[0034] The data set collection module includes a data item information collection unit, a label information collection unit and a training sample production unit. The data item information collection unit is used to collect data items, the label information collection unit is used to collect labels, and the training sample production unit is connected to the data item information collection unit and the label information collection unit respectively, and is used to merge the corresponding training samples and labels into training samples to obtain a data set M, M={m1, m1, …m k}, where m i represents the i-th training sample, i represents the index of the training sample, i∈[1,k], and i and k are both positive integers.
[0035] The weight information monitoring module is used to obtain each training sample used to train the prediction model, as well as the weight update information of the prediction model after the training is completed.
[0036] After the training sample is input into the prediction model, the prediction model updates the weight parameters once. The weight information monitoring module monitors the changes of each weight parameter in the prediction model after the training of the training sample is completed, and the weight update information can be obtained.
[0037] Furthermore, the weight update information includes the information change rate θ of each weight parameter d,i ,θ d,i The rate of change of the dth weight parameter when the prediction model is trained using the i-th sample, d is the index of the weight parameter in the prediction model, d∈[1,D], and D is the total number of weight parameters in the prediction model.
[0038] The management module includes a training sample classification unit, a weight parameter classification unit, a mapping unit and a control unit; The training sample classification unit is used to divide the training samples into N types of basic sets according to the labels and data items of the training samples.
[0039] In the solution provided by the present application, the prediction model is used to collect various types of digital information and then map them to different types of labels. For example, in the prediction model for judging the battery life, the data item is the historical data of the battery, and the labels are: healthy, sub-healthy and unhealthy. The prediction model obtains the health status of the battery based on the historical data of the battery.
[0040] To this end, for the data item being digital information and the label being the setting method of category information, this application provides the following division method of training samples: The training sample classification unit calculates the normalized mean value of each element in each data item to obtain the data classification number, and divides the distribution range of the data classification number into n1 distribution intervals. The number of data classification numbers in each distribution interval is equal, and the corresponding data item in each distribution interval is regarded as a data category; Specifically, assuming that there are 3 elements in the data item, 0.1, 0.2, and 0.3, before division, 0.1, 0.2, and 0.3 need to be normalized and then the mean is calculated. In this way, each data item can be represented by 1 data classification number, and then the data classification number of each data item is mapped to the number axis, and the distribution range of all data classification numbers can be obtained. At this time, you only need to pre-set the number of data categories n1 of 1 expected data item, and then divide the distribution interval so that the number of data items in each distribution interval is equal. Therefore, if the subsequent training samples are mapped to the distribution range, the distribution interval where the data item of the training sample is located is the corresponding data category of the data item.
[0041] The training sample classification unit divides the training samples into N types of basic sets according to the label category n2 and data category n1, N=n 1× n2.
[0042] The weight parameter classification unit is used to obtain the value range of the weight parameter in each prediction model and normalize the value range of the weight parameter to the weight change coefficient K. d , K d Represents the weight change coefficient of the dth weight parameter.
[0043] In the prediction model, some weight parameters have a wide range of values, while some weight parameters have a small range of values. In order to conveniently represent the range of values of each weight parameter, the range of values is normalized to the weight variation coefficient. The larger the weight variation coefficient, the larger the corresponding range of values.
[0044] The mapping unit is connected to the training sample classification unit and the weight parameter classification unit by signal respectively; the mapping unit obtains the sample classification method of the training sample and the weight classification method of the weight parameter according to the weight update information of the training samples of each basic type and the weight change coefficient of each weight parameter; The sample classification method classifies training samples into multiple sample types, and the weight classification method classifies weight parameters into multiple weight types; each sample type corresponds to each weight type in turn.
[0045] In the present application, the mapping unit is used to find the relationship between each weight parameter and the type of training sample in the prediction model. Among them, the sample type of the training sample is the smallest expression method of the training sample, and the sample classification method includes multiple sample types. The weight classification method of the weight parameter is the main category parameter in which the weight item in the prediction model will change after the training sample under the same sample classification method is input into the prediction model.
[0046] The technical solution provided in this application uses a support vector machine to classify samples. The specific method is as follows: S1: Organize the dataset: X={x1, x2, …x k}, x i represents the basic set of the i-th training sample, i represents the index of the training sample, i∈[1,k], i and k are both positive integers; Y={y1,y2,…y k},y i It represents the weight update information of the prediction model after the i-th training sample is input into the prediction model training, y i =K d θ d,i ; Among them, set x i ∈{1, 2, …J}, J is a positive integer, J represents the number of sample types; S2: Based on the original question; or ; i = 1, 2…k, i represents the sample index, w is the normal vector of the hyperplane, b is the intercept of the hyperplane, x i represents the basic set of the i-th training sample, y i Represents the weight update information of the prediction model after the i-th training sample is input into the prediction model training; S3: Set the decision function f(x), Among them, sign is the sample type, and x represents the input training sample.
[0047] In the technical solution provided in the present application, by constructing a data set, a support vector machine is then used to find the relationship between training samples and weight parameters.
[0048] In this proposal, only the construction method of the support vector machine model is given, and the specific training method of the model and the design of the loss function are not further discussed.
[0049] In the technical solution provided by the present application, the classification relationship between the sample types and the sets of weight parameters can be obtained by using the support vector machine, so each sample type will have an impact on one or more weight parameters. The training samples that have an impact on the same set of weight parameters are regarded as a sample type, and the corresponding weight parameters are regarded as another weight type.
[0050] The control unit extracts one training sample from each sample type and inputs it into the prediction module. In the mapping unit, the sample classification method of the training samples and the weight classification method of the weight parameters that correspond to each other have been found. For this purpose, the control unit controls the prediction module in this way.
[0051] The prediction module includes a training control unit, a number of interconnected operation units, and a summary unit; There are multiple operation units, each of which has an independent prediction model built in. A training control unit controls the training samples input to each operation unit according to the weight classification method of the weight parameters in the prediction model; The summarizing unit is connected to the running unit signal and is used to obtain the update information of the weight parameters of the prediction models running on all the running units to obtain the prediction model that has completed the training.
[0052] Furthermore, the prediction model generally includes a hidden layer, which includes multiple layers. Therefore, when training the prediction model, it is necessary to update the weight parameters of the previous layer before updating the weight parameters of the next layer. Figure 2 As shown, in the traditional parallel training scheme of the neural network model, the first running unit completes a weight parameter ( Figure 2 After the update of F1 and B1 in the first operation unit, the updated weight parameters will be sent to the second operation unit, and the second operation unit will receive the second training sample and update the second weight parameters. In this scheme, the operation unit will have a lot of idle time (bubble time). Figure 2 The F1 and B1 in it represent the weight parameters during forward propagation and backward propagation.
[0053] To this end, this application provides the following technical solutions: Solution 1: There are multiple running units, and the running units are arranged according to the classification of weight parameters in the prediction model. For example, the prediction model has 3 hidden layers, each hidden layer includes 3 types of weight parameters, so the arrangement of the running units is as follows: Figure 3 As shown: When starting training: The operation units corresponding to the first layer input the training samples of the corresponding sample type. After the operation units of the first layer complete the training, the updated weight parameters are sent to the operation units of the second layer. Then the operation units of the second layer input new training samples. After completing the training, they are sent to the third layer, and so on. Finally, the operation units of the last layer send the updated weight coefficients to the summary unit.
[0054] Solution 2: Because each computing unit in the above solution is only trained once, in order to reduce the number of computing units used, this application provides the following technical solutions: The number of computational units is equal to the maximum value of the weight parameter type in the hidden layer.
[0055] refer to Figure 4 , when starting training: The operation unit inputs the training samples of the corresponding sample type. After the weight parameters of the first layer of the prediction model in the running unit are updated, the operation unit accesses the training samples corresponding to the weight parameter category of the second layer of the prediction model, and so on, to complete the input of all training samples.
[0056] Embodiment 2: A management method for micro-AI training, using the management system for micro-AI training to train prediction models.
[0057] The above description is only some preferred embodiments of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present application is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present application to form a technical solution.
Claims
1. A management system for micro-AI training, including a data set collection module for collecting training samples; A prediction module, having a built-in prediction model, and receiving training samples to train the prediction model; It is characterized in that The management system further comprises: The weight information monitoring module is used to obtain each training sample of the training prediction model, as well as the weight update information of the prediction model after the training is completed; A management module, which updates the weight information of each training sample and divides the training samples into several sample types; When the prediction module cross-trains the prediction model, the management module extracts one training sample from each sample type and inputs it into the prediction module each time. The prediction module receives the training samples corresponding to each sample type to perform parallel training on the prediction model. The weight update information includes the information change rate θ of each weight parameter d,i ,θ d,i The rate of change of the dth weight parameter when the prediction model is trained using the i-th sample, d is the index of the weight parameter in the prediction model, d∈[1,D], and D is the total number of weight parameters in the prediction model.
2. A management system for micro-AI training according to claim 1, Features: The data set collection module includes a data item information collection unit, a label information collection unit, and a training sample production unit; The data item information collection unit is used to collect data items; The tag information collection unit is used to collect tags; The training sample production unit is connected to the data item information collection unit and the label information collection unit respectively, and is used to merge the corresponding training samples and labels into training samples to obtain a data set M, M={m 1 、m 1 ,…m k }, where m i represents the i-th training sample, i represents the index of the training sample, i∈[1,k], and i and k are both positive integers.
3. A management system for micro-AI training according to claim 1, Features: The management module includes a training sample classification unit, a weight parameter classification unit, a mapping unit and a control unit; The training sample classification unit is used to divide the training samples into N types of basic sets according to the labels and data items of the training samples.
4. A management system for micro-AI training according to claim 3, Features: The method also includes the following steps: a weight parameter classification unit is used to obtain the value range of the weight parameter in each prediction model, and normalize the value range of the weight parameter into a weight variation coefficient.
5. A management system for micro-AI training according to claim 3, Features: A mapping unit is respectively connected with the training sample classification unit and the weight parameter classification unit signal; The mapping unit obtains a sample classification method of the training samples and a weight classification method of the weight parameters according to the weight update information of the training samples of each basic type and the weight change coefficient of each weight parameter; The sample classification method classifies training samples into multiple sample types, and the weight classification method classifies weight parameters into multiple weight types; each sample type corresponds to each weight type in turn.
6. A management system for micro-AI training according to claim 3, Features: The control unit extracts one training sample from each sample type and inputs it into the prediction module.
7. A management system for micro-AI training according to claim 3, Features: The prediction module includes a training control unit, a number of interconnected operation units, and a summary unit; There are multiple operation units, each of which has an independent prediction model built in. A training control unit controls the training samples input to each operation unit according to the weight classification method of the weight parameters in the prediction model; The summarizing unit is connected to the running unit signal and is used to obtain the update information of the weight parameters of the prediction models running on all the running units to obtain the prediction model that has completed the training.
8. According to the management system for micro-sized AI training according to claim 7, the sample classification method and the weight classification method include the following steps: S1: S1: Organized dataset: X={x 1 、x 2 ,…x k }, x i represents the basic set of the i-th training sample, i represents the index of the training sample, i∈[1,k], i and k are both positive integers; Y={y 1 ,y 2 ,…y k },y i It represents the weight update information of the prediction model after the i-th training sample is input into the prediction model training, y i =K d θ d,i ; in, Setting x i ∈{1, 2, …J}, J is a positive integer, J represents the number of sample types; S2: Based on the original question; ,or ; i = 1, 2…k, i represents the sample index, w is the normal vector of the hyperplane, b is the intercept of the hyperplane, x i represents the basic set of the i-th training sample, y i Represents the weight update information of the prediction model after the i-th training sample is input into the prediction model training; S3: Set the decision function f(x), Among them, sign is the sample type, and x represents the input training sample.
9. A management method for micro-AI training, Features: A management system for micro-AI training according to any one of claims 1 to 8 is used for training prediction models.
