A manufacturing value chain management optimization method based on large models and transfer learning
By adopting large models and transfer learning technology in the manufacturing value chain, and using methods such as feature migration and sample migration to reuse source data and models, the problem of low training efficiency caused by large amounts of data is solved and efficient value chain management is achieved. Optimization and function expansion.
Patent Information
- Application Number
- CN202410948372.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing technology uses a large amount of data in the training of large models of the manufacturing value chain, resulting in high difficulty and low efficiency in function expansion, making it difficult to effectively manage and optimize the value chain.
Using methods based on large models and transfer learning, through feature migration, sample migration, model migration and relationship migration, source data and source models are reused to generate training data sets, and the target model is fine-tuned to reduce data consumption of the target data. Improve model training efficiency.
It realizes the use of a small amount of target data to complete model training, improves model training efficiency, and expands the functions of the optimized target value chain to better cope with risks and optimize resources.
Smart Images

Figure CN118484684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of model data processing technology, and in particular to a manufacturing value chain management optimization method based on large models and transfer learning. Background Art
[0002] The Manufacturing Value Chain is a conceptual framework used to describe and analyze how various steps are interconnected and jointly create value in the production and delivery of products or services. Each link in the value chain involves different activities and processes, running through the entire process from raw material procurement to the delivery of final products to consumers.
[0003] The manufacturing value chain big model is a big model trained for a variety of manufacturing-related problems. It contains multiple functional branches, and each function can be used to solve a task activity on a manufacturing value chain.
[0004] In related technologies, a large amount of data is generally used to train a large model of the manufacturing value chain to expand the functions and comprehensively optimize the manufacturing value chain. However, this method of using a large amount of data to train a large model of the manufacturing value chain requires a large amount of data, which increases the cost of model training. At the same time, due to the large amount of training data, the function expansion of the manufacturing value chain is difficult and inefficient. Summary of the invention
[0005] The present application provides a manufacturing value chain management optimization method based on large models and transfer learning to solve or partially solve the problem of reducing the amount of data for training large models of the manufacturing value chain and achieving management optimization of the manufacturing value chain.
[0006] The first aspect of the present application provides a manufacturing value chain management optimization method based on a large model and transfer learning, comprising:
[0007] Obtain the source model and source data of the source value chain and the target model and target data of the value chain to be optimized;
[0008] Based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, determining a transfer learning method for the value chain to be optimized, wherein the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer;
[0009] Performing the feature migration and the sample migration on the source data and the target data to obtain a training data set;
[0010] The training data set is used to train the target model after the model migration and the relationship migration, and the trained target model is fine-tuned to generate a target value chain, and the target value chain is used to complete at least one target task in the manufacturing industry.
[0011] In an optional example, performing the feature migration and the sample migration on the source data and the target data to obtain a training data set includes:
[0012] Transforming the source data and the target data into the same feature space through the feature migration;
[0013] The source data belonging to the same space is reused through the sample migration, and the training data set is generated in combination with the target data.
[0014] In an optional example, the transforming the source data and the target data into the same feature space by the feature migration includes:
[0015] The data format and data dimension of the source data are converted into the data format and data dimension of the target model, so that the source data and the target data are in the same feature space.
[0016] In an optional example, the multiplexing of the source data belonging to the same space through the sample migration and generating the training data set in combination with the target data includes:
[0017] When the sample ranges of the source data and the target data are close, the quantity ratio between the source data and the target data is adjusted according to a preset weight ratio;
[0018] The source data and the target data are configured according to the quantity ratio to generate the training data set.
[0019] In an optional example, the using the training data set to train the target model after the model migration and the relationship migration includes:
[0020] Obtaining shared parameter information between the source model and the target model through the model migration, updating parameter information of the target model using the shared parameter information, and transplanting a similar network structure between the source model and the target model to the target model through the relationship migration;
[0021] The training data set is used to train the target model after the model migration and the relationship migration.
[0022] In an optional example, obtaining shared parameter information between the source model and the target model through the model migration, and updating parameter information of the target model using the shared parameter information includes:
[0023] Using the target data to simultaneously train the source model and the target model, and determining similar areas in parameter distribution between the source model and the target model;
[0024] Calculate the parameter mean of the source model and the target model in the similar area, use the parameter mean as the shared parameter information, and use the shared parameter information to update the parameter information of the similar area in the target model.
[0025] In an optional example, transplanting the similar network structure between the source model and the target model to the target model through the relationship migration includes:
[0026] Acquire a first neural network structure of the source model and a second neural network structure of the target model;
[0027] The first neural network structure and the second neural network structure are compared layer by layer, a similar network structure between the first neural network structure and the second neural network structure is determined, and the similar network structure is transplanted to the target model.
[0028] In an optional example, fine-tuning the trained target model to generate a target value chain includes:
[0029] Fine-tune the trained target model according to a preset model fine-tuning method to generate the target value chain;
[0030] Among them, the model fine-tuning methods include domain transfer, language transfer and continuous learning.
[0031] The second aspect of the present application provides a manufacturing value chain management optimization device based on a large model and transfer learning, comprising:
[0032] An information acquisition module is used to acquire the source model and source data of the source value chain and the target model and target data of the value chain to be optimized;
[0033] A transfer learning method determination module, used to determine a transfer learning method for the value chain to be optimized based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, wherein the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer;
[0034] A training data set generation module, used to perform the feature migration and the sample migration on the source data and the target data to obtain a training data set;
[0035] A target value chain generation module is used to use the training data set to train the target model after the model migration and the relationship migration, and to fine-tune the trained target model to generate a target value chain, wherein the target value chain is used to complete at least one target task in the manufacturing industry.
[0036] A third aspect of the present application provides an electronic device, including:
[0037] Processor; and
[0038] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0039] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0040] The technical solution provided by this application may have the following beneficial effects:
[0041] In an embodiment of the present application, the source model and source data of the source value chain and the target model and target data of the value chain to be optimized are obtained, and based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, the transfer learning method for the value chain to be optimized is determined. The transfer learning method includes feature migration, sample migration, model migration and relationship migration. Feature migration and sample migration are performed on the source data and target data to obtain a training data set. The training data set is used to train the target model after model migration and relationship migration, and the trained target model is fine-tuned to generate a target value chain. The target value chain is used to complete at least one target task in the manufacturing industry.
[0042] Compared with the related technologies, the technical solution of the present application, on the one hand, realizes data reuse by using feature migration and sample migration, realizes model reuse by using model migration and relationship migration, and realizes model training with a small amount of target data, so as to reduce the data consumption required for training the target model to complete new tasks and improve the model training efficiency. On the other hand, by fine-tuning the trained target model, the management optimization of the value chain to be optimized is achieved, the functions of the optimized target value chain are expanded, and it can better cope with risks.
[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0045] Figure 1 It is a flowchart of a manufacturing value chain management optimization method based on a large model and transfer learning shown in an embodiment of the present application;
[0046] Figure 2 It is a schematic diagram of a management optimization process for a manufacturing value chain shown in an embodiment of the present application;
[0047] Figure 3 It is a flowchart of a manufacturing value chain management optimization method based on a large model and transfer learning shown in an embodiment of the present application;
[0048] Figure 4 It is a schematic diagram of the system architecture of the transfer learning method including the value chain task process shown in the embodiment of the present application;
[0049] Figure 5 It is a schematic diagram of the optimization process of large-scale model management of the manufacturing value chain based on transfer learning shown in the embodiment of the present application;
[0050] Figure 6 It is a structural schematic diagram of a manufacturing value chain management optimization device based on a large model and transfer learning shown in an embodiment of the present application;
[0051] Figure 7 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the 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 limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0053] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0054] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0055] In actual applications, the manufacturing value chain model is not static. It can expand its functions and comprehensively optimize according to fluctuations in market demand and transformations in hot areas to cope with new task objectives.
[0056] Although relevant technologies can use large amounts of data training to expand the functions of large models in the manufacturing value chain, and can also use transfer learning technology to complete the training of a single model, when there is less task-related data, it is difficult to complete model training, and it is impossible to manage and optimize the manufacturing value chain and expand new functions.
[0057] In response to the above problems, an embodiment of the present application provides a manufacturing value chain management optimization method based on large models and transfer learning, which can reuse source data and source models to complete model training using a small amount of target data, thereby improving the efficiency of model training and managing and optimizing the value chain to be optimized.
[0058] It should be noted that various data are involved in the embodiments of the present application, and each technical term is explained below:
[0059] The source value chain refers to the existing manufacturing value chain, which can complete the existing value chain task process in the manufacturing industry.
[0060] The source model refers to the model used to solve source tasks in the source value chain.
[0061] Source data refers to the data used to train the source model.
[0062] The source task refers to the task that the source model completes.
[0063] The value chain to be optimized refers to the manufacturing value chain that needs management optimization.
[0064] The target model refers to a pre-set large model of the manufacturing value chain that needs to be trained through transfer learning. After model training, it can complete new value chain tasks.
[0065] Target data refers to the data used to train the target model.
[0066] The target task refers to the new value chain task that the target model needs to be trained and completed.
[0067] The target value chain refers to the manufacturing value chain in the manufacturing industry that includes the target model after training, which can complete new value chain tasks through the target model.
[0068] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0069] Figure 1 This is a flowchart of a manufacturing value chain management optimization method based on a large model and transfer learning shown in an embodiment of the present application. Figure 1 , the method comprises at least the following steps:
[0070] Step 101, obtaining a source model and source data of a source value chain and a target model and target data of a value chain to be optimized;
[0071] In an embodiment of the present application, for new targets that may arise in the manufacturing value chain, the source value chain and the value chain to be optimized are first determined separately, and then the source model and source data are obtained from the source value chain, and the target model and target data are obtained from the value chain to be optimized.
[0072] Step 102, based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, determine the transfer learning method for the value chain to be optimized, the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer;
[0073] In an embodiment of the present application, in order to cope with the situation where there is less target data, the transfer learning method can be used to complete the functional expansion of the large model of the manufacturing value chain. The core of this method is to analyze the relationship between the task training process of the target value chain and the training process of the source value chain task, and use the known information of the source value chain task to train the target model of the target value chain, thereby reducing the amount of target data required to train the large model of the manufacturing value chain.
[0074] After determining the source model and the target model, the present application can determine the transfer learning method for the value chain to be optimized based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, so as to effectively train the target model through the transfer learning method and obtain a model that can complete the target task.
[0075] Optionally, the correlation between the source task and the target task can be analyzed from four aspects, namely, feature representation, data distribution, model parameters, and model structure. According to these four aspects, the feature migration method associated with the feature representation, the sample migration method associated with the data distribution, the model migration method corresponding to the model parameters, and the relationship migration method corresponding to the model structure can be determined respectively.
[0076] Step 103, performing feature migration and sample migration on the source data and the target data to obtain a training data set;
[0077] In the embodiment of the present application, a training data set can be obtained by performing feature migration and sample migration on source data and target data.
[0078] Optionally, the training data set may be a data set combining source data and target data in different proportions.
[0079] Step 104, using the training data set to train the target model after model migration and relationship migration, and fine-tuning the trained target model to generate a target value chain, which is used to complete at least one target task in the manufacturing industry.
[0080] In an embodiment of the present application, after feature migration and sample migration are performed on the source data and the target data, model migration and relationship migration can be performed on the source model and the target model to obtain the target model after model migration and relationship migration. Then, the training data set is used to train the target model after model migration and relationship migration, and the trained target model is fine-tuned to finally generate the target value chain.
[0081] As an example, see Figure 2 , Figure 2 This is a schematic diagram of the management optimization process for the manufacturing value chain shown in an embodiment of the present application. In the process of managing and optimizing the manufacturing value chain, it is first necessary to determine the target data and the source model, and then find a suitable transfer learning method by judging the relationship between the target task and the source task. The source model and the target data are combined to train the large model of the manufacturing value chain, so that the large model of the manufacturing value chain can complete the target task, and then complete the expansion and comprehensive optimization of various functions of the manufacturing value chain, enriching the application scenarios of the manufacturing value chain.
[0082] In an embodiment of the present application, the source model and source data of the source value chain and the target model and target data of the value chain to be optimized are obtained, and based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, the transfer learning method for the value chain to be optimized is determined. The transfer learning method includes feature migration, sample migration, model migration and relationship migration. Feature migration and sample migration are performed on the source data and target data to obtain a training data set. The training data set is used to train the target model after model migration and relationship migration, and the trained target model is fine-tuned to generate a target value chain for completing at least one target task in the manufacturing industry.
[0083] Compared with the related technologies, the technical solution of the present application, on the one hand, realizes data reuse by using feature migration and sample migration, realizes model reuse by using model migration and relationship migration, and realizes model training with a small amount of target data, so as to reduce the data consumption required for training the target model to complete new tasks and improve the model training efficiency. On the other hand, by fine-tuning the trained target model, the management optimization of the value chain to be optimized is achieved, the functions of the optimized target value chain are expanded, and it can better cope with risks.
[0084] Figure 3 It is a flow chart of a manufacturing value chain management optimization method based on large models and transfer learning shown in another embodiment of the present application. Figure 3 relatively Figure 1 The technical solution of the embodiment of the present application is described in more detail. The method may include the following steps:
[0085] Step 301, obtaining a source model and source data of a source value chain and a target model and target data of a value chain to be optimized;
[0086] In an embodiment of the present application, for new targets that may arise in the manufacturing value chain, the source value chain and the value chain to be optimized are first determined separately, and then the source model and source data are obtained from the source value chain, and the target model and target data are obtained from the value chain to be optimized.
[0087] Step 302, based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, determine the transfer learning method for the value chain to be optimized, the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer;
[0088] In an embodiment of the present application, the transfer learning method for the value chain to be optimized is one or more of feature migration, sample migration, model migration, and relationship migration.
[0089] Among them, feature migration is suitable for tasks with similar feature representations. It can transform the features of source data and target data into the same space, reducing the gap between the source data and the target data.
[0090] Sample migration is suitable for tasks with similar data distribution, and it can reuse data samples according to certain weight generation rules.
[0091] Model migration is suitable for tasks with similar model parameters. It can reduce the training cost of the target model by migrating the parameters of the source model.
[0092] Relation transfer is suitable for tasks with similar model structures. It can improve the reasoning ability of the model in the target task by aligning and transplanting the relation structure.
[0093] It should be noted that feature migration is a prerequisite for sample migration. If sample migration of source data and target data is required, it is necessary to first perform feature migration on the source data and target data to ensure that the source data and target data are in the same feature space, thereby reducing the feature differences between the source data and target data, and providing a basis for subsequent sample migration to improve the performance of the target model in the target task.
[0094] Step 303, performing feature migration and sample migration on the source data and the target data to obtain a training data set;
[0095] If the source task and the target task have a high correlation in feature representation, feature migration can be selected. For example, if the edge features and texture features of the source task and the target task are similar, it means that the feature representations of the two tasks have a high similarity.
[0096] If the source task and the target task have a high correlation in data distribution, the sample migration method can be selected. For example, if the input data of the source task and the target task show similar patterns or distributions in the feature space, it means that the data distributions of the two tasks have a high similarity.
[0097] As an optional example of the present application, the process of performing feature migration and sample migration on the source data and the target data to obtain the training data set is as follows:
[0098] First, the source data and target data are transformed into the same feature space through feature migration, and then the source data belonging to the same space are reused through sample migration, and the training data set is generated in combination with the target data.
[0099] Among them, the source data and target data are first transformed into the same feature space through feature migration, and then the source data belonging to the same space are reused through sample migration, and the training data set is generated in combination with the target data. The following steps can be followed:
[0100] 1) Feature migration: Convert the data format and data dimension of the source data to the data format and data dimension of the target model so that the source data and target data are in the same feature space.
[0101] For example, if the data dimension required by the source model is three-dimensional data and the data dimension required by the target model is two-dimensional data, then the source data needs to be converted from three-dimensional to two-dimensional.
[0102] For example, the source data processed by the source model is in image format ①, and the target data processed by the target model is in image format ②, then the image format ① of the source data needs to be converted into image format ②.
[0103] 2) Sample migration: When the sample ranges of the source data and the target data are close, the quantity ratio between the source data and the target data is adjusted according to the preset weight ratio, and the source data and the target data are configured according to the quantity ratio to generate a training data set.
[0104] The method for judging whether the sample ranges of the source data and the target data are close can be: if the source data and the target data are similar in some aspect, the more similar content there is, the closer the sample ranges of the source data and the target data are. On the contrary, if the source data and the target data do not have similar content, it means that the sample ranges of the source data and the target data are different and the sample ranges of the two are not close.
[0105] For example, although the source data and the target data represent different product types, the corresponding task types are similar, so it can be determined that the sample ranges of the source data and the target data are close. Or if the attributes of the source data and the target data overlap, it can also be determined that the sample ranges of the source data and the target data are close.
[0106] When it is determined that the sample ranges of the source data and the target data are close, the data volumes of the source data and the target data can be adjusted using a preset weight ratio to generate a training data set.
[0107] Among them, the preset weight ratio can be the proportion of source data and target data in the training data set set in advance, which can be used to characterize the contribution of source data to the training data set, thereby ensuring the balance of the two types of data in the training data set and meeting the optimization needs of the manufacturing value chain.
[0108] For example, the preset weight ratio is 2:3, which means that the ratio between the source data and the target data in the training data set is 2:3.
[0109] In addition, the present application can also achieve sample migration by reducing the training amplitude of the source data for the target model, such as adjusting the parameter change value brought by the source data to 0.5 times.
[0110] Step 304, performing model migration and relationship migration on the source model and the target model to obtain a target model after the model migration and relationship migration;
[0111] If the source task and the target task have a high correlation in model parameters, you can choose the model migration method. For example, if the source model that completes the source task and the target model that completes the target task have the same feature extraction layer parameters, intermediate layer parameters, etc., it means that the two tasks have a high correlation in model parameters.
[0112] If the source task and the target task have a high correlation in model structure, the relationship transfer method can be selected. For example, the source model that completes the source task and the target model that completes the target task both use convolutional neural networks for image processing, indicating that the model structures of the two tasks have a high correlation.
[0113] As an optional example of this application, the process of performing model migration and relationship migration on the source model and the target model is:
[0114] The shared parameter information between the source model and the target model is obtained through model migration, and the parameter information of the target model is updated using the shared parameter information. The similar network structure between the source model and the target model is transplanted to the target model through relationship migration. Finally, the training data set is used to train the target model after model migration and relationship migration.
[0115] Among them, the shared parameter information between the source model and the target model is obtained through model migration, the parameter information of the target model is updated using the shared parameter information, and the similar network structure between the source model and the target model is transplanted to the target model through relationship migration, which can be performed in the following steps:
[0116] 1) Model migration: Use the target data to train the source model and the target model at the same time, determine the similar areas of the source model and the target model in parameter distribution, calculate the parameter mean of the source model and the target model in the similar areas, use the parameter mean as the shared parameter information, and use the shared parameter information to update the parameter information of the similar areas in the target model.
[0117] 2) Relationship migration: obtain the first neural network structure of the source model and the second neural network structure of the target model, compare the first neural network structure and the second neural network structure layer by layer, determine the similar network structure between the first neural network structure and the second neural network structure, and transplant the similar network structure to the target model.
[0118] For example, suppose the source model contains a deep convolutional neural network, which is mainly used to complete image classification tasks, and the target model is also used to complete similar image classification tasks. When analyzing the internal structures of the two models layer by layer, if it is determined that the convolutional layer structures of the two are similar, the weights of the convolutional layer of the source model can be copied to the target model, and only the newly added other neural network layers can be trained to adapt to the new classification task, so as to achieve effective learning with a small amount of target data.
[0119] As an example, see Figure 4 , Figure 4 is a schematic diagram of the system architecture of the transfer learning method including the value chain task process shown in the embodiment of the present application. Figure 4 In the system architecture shown, the task process of value chain A needs to be transferred through learning to complete the task of value chain B. In other words, the task process of value chain A is transferred to value chain B to solve new tasks. The corresponding migration process can be:
[0120] First, determine the source data, source model, and source tasks of value chain A, as well as the target data, target model, and target tasks of value chain B. Then analyze the correlation between the tasks corresponding to value chain A and those corresponding to value chain B, and determine that the transfer learning method is sample transfer, feature transfer, model transfer, and relationship transfer. Then, use sample transfer, feature transfer, model transfer, and relationship transfer to perform hybrid training on the target model to obtain the target model after hybrid training. Apply the target model to value chain B, so that value chain B can complete the target task through the trained target model.
[0121] Step 305: Use the training data set to train the target model after model migration and relationship migration, and fine-tune the trained target model according to a preset model fine-tuning method to generate a target value chain.
[0122] In the embodiment of the present application, the model fine-tuning methods include domain transfer, language transfer and continuous learning.
[0123] Among them, domain transfer refers to the ability of a model or algorithm trained in one field to be successfully applied to another related but slightly different field, using existing knowledge and data to accelerate the learning process in the new field.
[0124] For example, in the manufacturing industry, the trained target model is used to classify product A. By fine-tuning the target model through domain transfer, the target model can complete the classification task of product B. Domain transfer focuses on the same expression of different results.
[0125] Language transfer refers to the ability to transfer knowledge or skills learned in one language to another language, which helps solve information processing problems in multilingual environments and can improve the intelligence level of machines in multilingual environments.
[0126] For example, since the target model was originally trained using English data, the target model can receive English data and complete corresponding tasks. Fine-tuning the model through language transfer can enable the target model to receive data in other languages and complete corresponding tasks. Language transfer focuses on different ways of expressing the same results.
[0127] Continuous learning requires that the model be able to perform incremental learning on new data that continues to arrive, to avoid forgetting previously learned knowledge, and to make the large model of the manufacturing value chain more flexible and adaptable.
[0128] For example, in the manufacturing industry, the trained target model is used to classify product A. The target model is fine-tuned through continuous learning so that the target model can complete the classification task of product C in addition to completing the classification task of product A.
[0129] This application achieves management optimization of the manufacturing value chain by fine-tuning the large model of the manufacturing value chain according to the above-mentioned model fine-tuning method. The manufacturing value chain after management optimization has the advantages of risk management and resource optimization. When dealing with new risks or new goals, the manufacturing value chain after management optimization can not only acquire the ability to deal with risks and quickly deploy new goals through transfer learning of the large model of the manufacturing value chain, but also can achieve resource reuse through data reuse and model reuse, thereby further reducing costs.
[0130] As an example, see Figure 5 , Figure 5 It is a schematic diagram of the management optimization process of the large model of the manufacturing value chain based on transfer learning shown in the embodiment of the present application. Applying transfer learning to the management optimization of the large model of the manufacturing value chain is essentially an expansion of the functions of the large model of the manufacturing value chain.
[0131] Assume that the manufacturing value chain model needs to complete Task C and Task D. By using transfer learning, the process of Task A and Task B and Data C and Data D are used to complete the training of the manufacturing value chain model. The process can be:
[0132] S51, obtaining model A and data A for completing task A, as well as data C corresponding to task C and target model C to be trained.
[0133] S52, based on the correlation between Task A and Task C, determine the method of transfer learning, reuse Data A and Model A through transfer learning, combine Data A and Data C to generate a training data set, and transplant part of the neural network structure of Model A to the target Model C, and then use the training data set to train the target Model C.
[0134] S53, fine-tunes the trained target model C through domain transfer, language transfer or continuous learning, and finally outputs the optimized manufacturing value chain model, which can complete task C.
[0135] S54 can also obtain model B and data B for completing task B, as well as data D corresponding to task D and target model D to be trained, and execute a process similar to step S52 and step S53, and output the optimized manufacturing value chain large model again, which can complete tasks C and D.
[0136] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that under the guidance of the ideas of the embodiments of the present invention, those skilled in the art can make settings according to actual conditions, and the present invention is not limited to this.
[0137] In an embodiment of the present application, the source model and source data of the source value chain and the target model and target data of the value chain to be optimized are obtained, and based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, the transfer learning method for the value chain to be optimized is determined. The transfer learning method includes feature migration, sample migration, model migration and relationship migration. Feature migration and sample migration are performed on the source data and target data to obtain a training data set. The training data set is used to train the target model after model migration and relationship migration, and the trained target model is fine-tuned according to a preset model fine-tuning method to generate a target value chain.
[0138] This application analyzes the relationship between the data, models, tasks of the source value chain tasks and the target value chain tasks, selects an appropriate transfer learning method, and reuses the data and models of the source value chain through transfer learning, so as to complete the training of the target model with a small amount of target data, reduce the data consumption of model training, and quickly complete the management optimization of the large model of the manufacturing value chain.
[0139] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a manufacturing value chain management optimization device, electronic device and corresponding embodiments based on large models and transfer learning.
[0140] Figure 6 Schematic diagram of a manufacturing value chain management optimization device based on large model and transfer learning shown in the embodiment of the present application. Figure 6 , the device comprises at least the following modules:
[0141] Information acquisition module 601, used for the source model and source data of the source value chain and the target model and target data of the value chain to be optimized; Information acquisition module, used for acquiring the source model and source data of the source value chain and the target model and target data of the value chain to be optimized;
[0142] A transfer learning method determination module 602 is used to determine a transfer learning method for the value chain to be optimized based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model. The transfer learning methods include feature transfer, sample transfer, model transfer and relationship transfer.
[0143] The training data set generation module 603 is used to perform feature migration and sample migration on the source data and the target data to obtain the training data set;
[0144] The target value chain generation module 604 is used to use the training data set to train the target model after model migration and relationship migration, and to fine-tune the trained target model to generate a target value chain. The target value chain is used to complete at least one target task in the manufacturing industry.
[0145] In an optional example, the training data set generating module 603 includes:
[0146] A feature migration submodule is used to transform the source data and the target data into the same feature space through feature migration;
[0147] The sample migration submodule is used to reuse the source data belonging to the same space through sample migration, and generate a training data set in combination with the target data.
[0148] In an optional example, the feature migration submodule is used to:
[0149] The data format and data dimension of the source data are converted to the data format and data dimension of the target model so that the source data and the target data are in the same feature space.
[0150] In an optional example, the sample migration submodule is used to:
[0151] When the sample ranges of the source data and the target data are close, the quantity ratio between the source data and the target data is adjusted according to the preset weight ratio;
[0152] Configure the source data and target data according to the quantity ratio to generate a training data set.
[0153] In an optional example, the target value chain generation module 604 includes:
[0154] The model reuse submodule is used to obtain the shared parameter information between the source model and the target model through model migration, update the parameter information of the target model using the shared parameter information, and transplant the similar network structure between the source model and the target model to the target model through relationship migration;
[0155] The target value chain training submodule uses the training data set to train the target model after model migration and relationship migration.
[0156] In an optional embodiment, the model reuse submodule is used to:
[0157] The source model and the target model are trained simultaneously using the target data to determine the similar areas of the source model and the target model in parameter distribution;
[0158] The parameter mean of the source model and the target model in similar areas is calculated, the parameter mean is used as the shared parameter information, and the parameter information of the similar areas in the target model is updated using the shared parameter information.
[0159] In an optional example, the model reuse submodule is further used to:
[0160] Obtaining a first neural network structure of a source model and a second neural network structure of a target model;
[0161] The first neural network structure and the second neural network structure are compared layer by layer, similar network structures between the first neural network structure and the second neural network structure are determined, and the similar network structures are transplanted to the target model.
[0162] In an optional example, the target value chain generation module 604 includes:
[0163] A model fine-tuning submodule is used to fine-tune the trained target model according to a preset model fine-tuning method to generate a target value chain;
[0164] Among them, model fine-tuning methods include domain transfer, language transfer and continuous learning.
[0165] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0166] Figure 7 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0167] See also Figure 7 , the electronic device 700 includes a memory 710 and a processor 720 .
[0168] The processor 720 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0169] The memory 710 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage. Among them, ROM may store static data or instructions required by the processor 720 or other modules of the computer. The permanent storage may be a readable and writable storage device. The permanent storage may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 710 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 710 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0170] The memory 710 stores executable codes, and when the executable codes are processed by the processor 720 , the processor 720 can execute part or all of the methods described above.
[0171] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0172] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0173] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A manufacturing value chain management optimization method based on large models and transfer learning, characterized in that: include: Obtain the source model and source data of the source value chain and the target model and target data of the value chain to be optimized; Based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, determining a transfer learning method for the value chain to be optimized, wherein the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer; Performing the feature migration and the sample migration on the source data and the target data to obtain a training data set, including: converting the data format and data dimension of the source data into the data format and data dimension of the target model so that the source data and the target data are in the same feature space; adjusting the quantity ratio between the source data and the target data according to a preset weight ratio when the sample ranges of the source data and the target data are close; configuring the source data and the target data according to the quantity ratio to generate the training data set; Obtaining shared parameter information between the source model and the target model through the model migration, updating parameter information of the target model using the shared parameter information, and transplanting a similar network structure between the source model and the target model to the target model through the relationship migration; The training data set is used to train the target model after the model migration and the relationship migration, and the trained target model is fine-tuned to generate a target value chain, and the target value chain is used to complete at least one target task in the manufacturing industry.
2. The method according to claim 1, characterized in that The step of obtaining shared parameter information between the source model and the target model through the model migration, and updating parameter information of the target model using the shared parameter information, includes: Using the target data to simultaneously train the source model and the target model, and determining similar areas in parameter distribution between the source model and the target model; Calculate the parameter mean of the source model and the target model in the similar area, use the parameter mean as the shared parameter information, and use the shared parameter information to update the parameter information of the similar area in the target model.
3. The method according to claim 1, characterized in that The step of transplanting the similar network structure between the source model and the target model to the target model through the relationship migration includes: Acquire a first neural network structure of the source model and a second neural network structure of the target model; The first neural network structure and the second neural network structure are compared layer by layer, a similar network structure between the first neural network structure and the second neural network structure is determined, and the similar network structure is transplanted to the target model.
4. The method according to claim 1, characterized in that: The method of fine-tuning the trained target model to generate a target value chain includes: Fine-tune the trained target model according to a preset model fine-tuning method to generate the target value chain; Among them, the model fine-tuning methods include domain transfer, language transfer and continuous learning.
5. A manufacturing value chain management optimization device based on large models and transfer learning, characterized in that: include: An information acquisition module is used to acquire the source model and source data of the source value chain and the target model and target data of the value chain to be optimized; A transfer learning method determination module, used to determine a transfer learning method for the value chain to be optimized based on the correlation between the source task corresponding to the source model and the target task corresponding to the target model, wherein the transfer learning method includes feature transfer, sample transfer, model transfer and relationship transfer; A training data set generation module, used for performing the feature migration and sample migration on the source data and the target data to obtain a training data set, including: a feature migration submodule, used for converting the data format and data dimension of the source data into the data format and data dimension of the target model so that the source data and the target data are in the same feature space; a sample migration submodule, used for adjusting the quantity ratio between the source data and the target data according to a preset weight ratio when the sample ranges of the source data and the target data are close; configuring the source data and the target data according to the quantity ratio to generate the training data set; A target value chain generation module is used to obtain shared parameter information between the source model and the target model through the model migration, update the parameter information of the target model using the shared parameter information, and transplant the similar network structure between the source model and the target model to the target model through the relationship migration; use the training data set to train the target model after the model migration and the relationship migration, and fine-tune the trained target model to generate a target value chain, which is used to complete at least one target task in the manufacturing industry.
6. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Transfer learning algorithm based on active learning
CN111191786A
Small sample remote sensing target detection method and system based on transfer learning
CN111860236A
Performance prediction method of permanent magnet synchronous motor under condition of few samples based on PDBN-DNN
CN115544877A
Method and system for transfer learning to random target dataset and model structure based on meta learning
US20200160212A1
Method for acquiring neural network model, and image processing method and apparatus
WO2021218517A1
