Ai learning method and ai learning device

Fusing learned layer features from existing AI models with a learning target model through fusion processing addresses inefficiencies in conventional training methods, improving learning time and accuracy.

JP2024151166APending Publication Date: 2024-10-24DENSO TEN LTD

Patent Information

Application Number
JP2023064321
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Conventional AI model training methods require extensive retraining when environmental conditions change, leading to inefficient learning times and reduced accuracy.

Method used

A method that fuses learned layer features from existing trained AI models with a learning target AI model to generate a new trained model, utilizing fusion processing to improve learning efficiency and accuracy.

Benefits of technology

This approach reduces learning time and enhances initial learning accuracy by incorporating optimized features from existing models, allowing for more efficient creation of a learning target AI model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024151166000001_ABST
    Figure 2024151166000001_ABST
Patent Text Reader

Abstract

To provide a technique capable of improving learning time in the learning of an AI model.SOLUTION: An AI learning method includes inputting learning data to an existing learned AI model to acquire a learned layer feature amount output from a learned layer in the existing learned AI model, merging the learned layer feature amount with a learning target layer feature amount output from a learning target layer in a learning target AI model to generate a merged feature amount, and inputting the merged feature amount to a learning target layer subsequent to the learning target layer to generate a new learned AI model.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an AI learning method and an AI learning device. [Background technology]

[0002] Conventionally, in learning an AI (artificial intelligence) model by deep learning, in order to create a learning model with a certain level of discrimination accuracy, learning with a very large amount of sample data is required until learning is completed, and therefore the learning process takes a long time. However, even if the AI ​​model used for image recognition has almost the same configuration, if some configuration or conditions such as high parameters are changed, it is necessary to re-learn from scratch using sample data. In response to this, a technique is known for creating an AI model using an already trained AI model, in which the weight coefficients of layers constituting a neural network obtained from multiple trained AI models are combined and trained in the learning of the AI ​​model to be trained (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2021-140400 Summary of the Invention [Problem to be solved by the invention]

[0004] Conventional technology can build a common learning model that can adapt to multiple environments by fusing the weight coefficients of the layers that make up the neural network obtained from multiple trained AI models suited to each environment. However, since it is necessary to retrain a new learning model, there is an issue that improvements in learning time cannot necessarily be expected.

[0005] In view of the above problems, the present invention aims to provide a technique capable of improving the learning time in learning an AI model. [Means for solving the problem]

[0006] An exemplary embodiment of the present invention is an AI learning method in which training data is input into a trained AI model having layers to generate a new trained AI model, the training data is input into an existing trained AI model, trained layer features output from a trained layer of the existing trained AI model are obtained, the trained layer features are fused with trained layer features output from a trained layer of the trained AI model to generate fused features, and the fused features are input into a trained layer subsequent to the trained layer to generate the new trained AI model. Effect of the Invention

[0007] According to the present invention, by inputting the trained layer feature output from the trained layer of the trained AI model to the trained layer of the trained AI model, the feature ideal as the trained layer feature output from the trained layer of the trained AI model is input to the subsequent trained layer. That is, by fusing the trained layer feature of the trained AI model with the trained AI model by the fusion process, it is possible to input a feature close to the trained AI (the feature output after learning) to the subsequent layer of the trained AI model. This makes it possible to improve the learning time of the trained AI model. In addition, by utilizing information from an existing trained AI model, the learning accuracy in the early stages of learning is improved. Therefore, it is possible to improve the efficiency of creating the trained AI model. [Brief description of the drawings]

[0008] [Figure 1] A diagram showing an example of an AI learning device [Diagram 2] An explanatory diagram outlining the AI ​​learning method [Diagram 3] An explanatory diagram showing an example of an AI learning method that applies fusion processing of trained layer features of trained AI models [Figure 4] FIG. 4 is an explanatory diagram showing an example of the fusion process of FIG. 3; [Diagram 5] A flowchart showing the AI ​​learning process executed by the controller of the AI ​​learning device of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the contents of the embodiments described below.

[0010] Fig. 1 is a configuration diagram showing an example of an AI learning device 10. Fig. 1 shows components necessary for explaining the features of this embodiment, and omits the description of general components.

[0011] 1, the AI ​​learning device 10 includes a controller 11, an operation unit 12, a display unit 13, a communication unit 14, and a storage unit 15. The AI ​​learning device 10 is configured by a so-called computer device. The AI ​​learning device 10 performs a learning process for an AI model.

[0012] The controller 11 is configured with a processor that performs arithmetic processing and the like, and controls various operations in the AI ​​learning device 10. The processor includes, for example, a CPU (Central Processing Unit). The controller 11 performs various processes in a neural network configured as an AI model.

[0013] The operation unit 12 is composed of an input device operated by a user, such as a keyboard. The display unit 13 is composed of an output device, such as a display. The display unit 13 is, for example, a liquid crystal display panel, and may be equipped with an operation unit 12 of a touch panel type or the like. The display unit 13 displays various information related to the learning of the AI ​​model. The communication unit 14 is an interface for communicating data with other devices via a communication network. The communication unit 14 is, for example, a NIC (Network Interface Card).

[0014] The storage unit 15 includes a volatile memory and a non-volatile memory, and stores various information necessary for the learning process of the AI ​​model. The volatile memory is, for example, a random access memory (RAM). The non-volatile memory is, for example, a read only memory (ROM), a flash memory, and a hard disk drive. The non-volatile memory stores programs and data that can be read by the controller 11. At least a part of the programs and data stored in the non-volatile memory may be obtained from another computer device (server device) connected by wire or wirelessly, or from a portable recording medium.

[0015] FIG. 2 is an explanatory diagram showing an overview of an AI learning method. The AI ​​learning method shown in FIG. 2 is used to generate a trained AI model m1. The trained AI model m1 is generated by performing training on an untrained AI model m0. The AI ​​models m0 and m1 are, for example, AI models for image recognition that perform image classification, object detection, and the like. However, the AI ​​models m0 and m1 are not limited to AI models for image recognition, and may be, for example, AI models for voice recognition, etc.

[0016] The AI ​​model m0 before learning and the trained AI model m1 each include multiple layers L1, L2, ..., Ln, constituting a neural network. The layers L1, L2, ..., Ln constituting the neural network include layers such as a convolution layer and a pooling layer. In the following description, the layers L1, L2, ..., Ln may be collectively referred to as "layer L."

[0017] For training the pre-training AI model m0, a training data set, which is a group of training data including training data d1 consisting of image data etc. and correct answer labels, is used. That is, the pre-training AI model m0 is input with the training data d1. In each of the layers L1, L2, ...,, the training parameters p01, p02, ..., p0n such as weights are applied to the input data, and calculation processing is performed, and features are extracted (output) from the training data d1. The features are propagated (input) to the next layer.

[0018] The output data (estimated data by AI model m0) of layer Ln in the output stage (final stage) of AI model m0 is compared with the correct data in the training data set. Then, the training parameters p01, p02, ..., p0n are adjusted so that the output data approaches the correct data. The above training process using the training data is repeated, and when the error between the output data of AI model m0 and the correct data reaches a predetermined learned judgment value set in advance, or the number of epochs, which is the number of times of training, reaches a predetermined learned judgment number set in advance, the training ends and a trained AI model m1 can be obtained. The trained AI model m1 has trained parameters p11, p12, ..., p1n for each of the layers L1, L2, ..., Ln, respectively.

[0019] In the AI ​​learning method of the present embodiment, learning is performed by fusing features obtained from trained AI models to reduce the learning time. The AI ​​learning method will be described in further detail below.

[0020] 1, the controller 11 includes, as its functions, a main processing unit 111, a fusion processing unit 112, and a learning unit 113. In this embodiment, the functions of the controller 11 are realized by a processor executing arithmetic processing in accordance with a learning processing program stored in the storage unit 15.

[0021] The main processing unit 111 performs various arithmetic processing in each layer constituting the neural network. In the arithmetic processing, the main processing unit 111 performs the calculation by applying learning parameters such as weights to the data input to the layer. A known method may be applied to the arithmetic processing in each layer.

[0022] The fusion processing unit 112 acquires trained layer features output from trained layers of existing trained AI models. Furthermore, the fusion processing unit 112 performs a fusion process to fuse trained layer features with trained layer features output from the trained layer of the trained AI model, and generates fusion features that are input data to a subsequent trained layer in the trained AI model. The fusion process can be, for example, a process using a cross-attention mechanism described later, or a process such as averaging or summing features.

[0023] The learning unit 113 performs learning to adjust learning parameters such as weights used in the processing in the main processing unit 111 and the fusion processing unit 112. In other words, the learning unit 113 reduces the error between the output data of the AI ​​model and the correct answer data of the learning dataset, which is a group of teacher data, and guides the data in a direction toward an optimal solution. This makes it possible to optimize the learning parameters of the AI ​​model. Note that known methods such as gradient descent and backpropagation may be used as the learning method using the learning dataset.

[0024] The memory unit 15 includes a learning process program memory unit 151, a learning dataset memory unit 152, a training target AI model memory unit 153, a trained AI model memory unit 154, and a fusion data memory unit 155.

[0025] The learning process program storage unit 151 stores a learning process program executed by the controller 11. The learning process program includes various programs for implementing various functions of the AI ​​learning device 10. The learning dataset storage unit 152 stores a learning dataset, which is a group of supervised learning data used for learning an AI model. The supervised learning data is composed of input data (e.g., image data) and correct answer data (e.g., object name).

[0026] The AI ​​model to be trained by the training method of this embodiment and training parameters for the AI ​​model to be trained are stored in the training object AI model storage unit 153. The trained AI model storage unit 154 stores a trained AI model to be used for training the training object AI model and training parameters for the trained AI model.

[0027] The fusion data storage unit 155 stores various information related to the fusion process executed by the fusion processing unit 112. For example, when a mutual attention mechanism is used in the fusion process, the fusion data storage unit 155 stores information related to the algorithm of the mutual attention mechanism and fusion parameters for mutual attention. Furthermore, the storage unit 15 is provided with data tables (not shown) for various processes.

[0028] 3 is an explanatory diagram showing an example of an AI learning method that applies a fusion process of trained layer features of a trained AI model m1. In the AI ​​learning method of this embodiment, a trained AI model m2 and a trained AI model m1 are used. Prior to training of the AI ​​models, the trained AI model m2 is pre-stored in the trained AI model storage unit 153, and the trained AI model m1 is pre-stored in the trained AI model storage unit 154 by the operation of a training operator.

[0029] The basic configuration of the trained AI model m2 and the trained AI model m1 is the same. In this example, the trained AI model m2 and the trained AI model m1 have the same number of layer structures (n layers), and the corresponding layers (L21, L22, ..., L2n and L11, L12, ..., L1n) themselves have the same configuration. For example, if the trained layer L21 of the trained AI model m2 is a convolutional layer, the trained layer L11 of the trained AI model m1 is also a convolutional layer. Learning parameters p21, p22, ..., p2n are applied to the trained layers L21, L22, ..., L2n of the trained AI model m2, respectively.

[0030] In addition, the trained AI model m1 is a model with similar functions to the trained AI model that the training target AI model m2 is intended to serve, and the closer the functions, the greater the effect that can be expected. For example, if the training target AI model m2 is an AI model that recognizes "dogs," using the trained AI model m1 that recognizes "animals" as the trained AI model is expected to improve the efficiency of learning for the training target AI model m2, rather than using the trained AI model m1 that recognizes "vehicles."

[0031] This learning utilizes the correlation between the output of each trained layer in the trained AI model m2 in the trained state and the output of each trained layer in the trained AI model m1. Therefore, if there is this correlation, an effect can be expected, and the higher the correlation, the higher the effect can be expected. For this reason, it is preferable that the trained AI model m1 has similar functions to the trained AI model that the trained AI model m2 is intended to be, and has a similar model structure (layer connection structure, each layer type, etc.).

[0032] In addition, structural improvements to AI models are often made to improve their performance and functionality. In such cases, the training target AI model m2 is often improved based on the trained AI model m1. For example, the layer connection configurations of the training target AI model m2 and the trained AI model m1 are the same, and the convolution layer used in the training target layer L21 of the training target AI model m2 is a modified version of the convolution layer used in the trained layer L11 of the trained AI model m1. In such cases, the similarity between the training target AI model m2 and the trained AI model m1 is high, so a significant effect in improving the efficiency of training can be expected.

[0033] During learning, the configuration of the learning target AI model m2 is such that fusion units F1 to Fn-1 (not shown) are inserted between each learning target layer (L21 to L2n). Each fusion unit F1 to Fn-1 holds (stores) data of parameters pf1 to pfn-1 (not shown) that determine the operating characteristics of the fusion process. The fusion units F1 to Fn-1 and the learning parameters pf1 to pfn-1 are deleted from the learning target AI model m2 after learning is completed.

[0034] Each of the fusion units F1 to Fn-1 inputs the training layer features Do2L21 to Do2L2n-1 output from each training layer (L21 to L2n) of the training AI model m2. Each of the fusion units F1 to Fn-1 also inputs the trained layer features Do1L11 to Do1L1n-1 output from each trained layer (L11 to L1n) of the trained AI model m1. Each of the fusion units F1 to Fn-1 then fuses the input training layer features Do2L21 to Do2L2n-1 and trained layer features Do1L11 to Do1L1n-1, and inputs the fusion features Di2F1 to Di2Fn-1 to each subsequent training layer (L22 to L2n) in the training AI model m2.

[0035] The fusion processing performed by each of the fusion units F1 to Fn-1 can be various processing based on the input feature amount, such as averaging processing (Di2F1=(Do2L21+Do1L11) / 2).

[0036] In addition, by setting the fusion parameters pf1 to pfn-1 and adjusting the values ​​thereof, each fusion unit F1 to Fn-1 can adjust the fusion degree of each trained layer feature Do1L11 to Do1L1n-1 from the trained AI model m1. For example, by setting the fusion parameter pf1 to the fusion degree, the fusion feature output from the fusion unit F1 can be Di2F1=Do2L21×(pfn-1)+Do1L11×pf1. In this case, by setting the fusion degree of the fusion parameters pf1 to pfn-1 to a lower value as the learning progresses, the influence of each trained layer feature Do1L11 to Do1L1n-1 from the trained AI model m1 becomes smaller, and it is possible to suppress the influence of the trained AI model m1 more than necessary at the end of learning stage.

[0037] The "learning progress" is a value indicating how much the learning of the model to be trained has progressed since the start of learning. Specifically, the learning progress can be determined based on the number of learning sessions, the error between the output data of the model to be trained and the correct answer data, etc.

[0038] The learning unit 113 receives the output of the learning AI model m2 (the output of the learning layer L2n at the final stage) and the correct answer data of the learning data, and adjusts the learning parameters p21 to p2n of each of the learning layers L21 to L2n based on the difference between these two inputs. Note that a learning processing method such as the gradient descent method or the error backpropagation method is applied to the adjustment process of this learning parameter.

[0039] Moreover, the processing in each of the training layers L21 to L2n of the training AI model m2 and each of the trained layers L11 to L1n of the trained AI model m1 is handled by the main processing unit 111. Moreover, the fusion processing in each of the fusion units F1 to Fn-1 is handled by the fusion processing unit 112. And the adjustment processing of the learning parameters is handled by the learning unit 113.

[0040] Next, the operations during learning and state changes will be explained in order. Note that these operations are realized by the controller 11 of the AI ​​learning device 10.

[0041] The controller 11 inputs the same learning data d1 from the same learning data set to each of the learning target AI model m2 and the trained AI model m1 at the same timing during learning.

[0042] The training layer L21 of the training AI model m2 processes the input training data d1 based on the training parameters p21, generates training layer features Do2L21, and outputs them to the fusion unit F1. On the other hand, the trained layer L11 of the trained AI model m1 processes the input training data d1 based on the trained learning parameters, generates trained layer features Do1L11, and outputs them to the fusion unit F1 and the training layer L12. Then, the fusion unit F1 performs a fusion process on the input training layer features Do2L21 and trained layer features Do1L11 using the fusion parameters pf1, generates fusion features Di2F1, and inputs them to the layer L22.

[0043] Next, the training layer L22 of the training AI model m2 processes the input fusion feature Di2F1 based on the learning parameter p22 during training, generates the training layer feature Do2L22, and outputs it to the fusion unit F2. On the other hand, the trained layer L12 of the trained AI model m1 processes the input trained layer feature Do1L11 based on the trained learning parameters, generates the trained layer feature Do1L12, and outputs it to the fusion unit F2 and the training layer L13. Then, the fusion unit F2 performs a fusion process on the input training layer feature Do2L22 and the trained layer feature Do1L12 using the fusion parameter pf2, generates the fusion feature Di2F2, and inputs it to the layer L23 (not shown).

[0044] Thereafter, the learning layers L23 to L2n-1 of the learning AI model m2, the learned layers L13 to L1n-1 of the trained AI model m1, and the fusion unit F3 (not shown) to Fn-1 perform the same processing as above. Then, the learning layer L2n of the learning AI model m2 processes the fusion feature Di2Fn-1 input from the fusion unit Fn-1 based on the learning parameter p2n during learning, generates and outputs an estimated value PR which is the output data of the learning AI model m2. Then, the controller 11 of the AI ​​learning device 10 compares the correct answer data of the learning data with the estimated value PR which is the output of the learning AI model m2, and corrects the learning parameters p21 to p2n of each of the learning layers L21 to L2n based on the difference. Then, each learning data of the learning dataset is input sequentially to the learning AI model m2 and the trained AI model m1, and learning is performed by the above-mentioned processing.

[0045] By performing the fusion process by the fusion processing unit 112, effective information of the trained AI model m1 is transferred to the training target AI model m2. For example, the learning parameters of each layer are data that are far from appropriate values ​​when training has not progressed. For this reason, if the training of the previous layer does not progress (if the training parameters are not adjusted to appropriate values), the input data of the subsequent layer is likely to be data that is not very appropriate. However, as in this embodiment, by fusing the outputs of each trained layer of the trained AI model m1, that is, data that is likely to have already been optimized, the input data to each training target layer of the training target AI model m2 becomes data that is in a relatively appropriate state at the early training stage.

[0046] This increases the rate of error reduction for the training AI model m2 relative to the correct answer data, compared to when training is continued without performing the fusion process. In other words, the time it takes for the training AI model m2 to approach the correct answer data is shortened, making it possible to shorten the time until training is completed.

[0047] Then, the controller 11 changes the degree of fusion in the fusion process based on the learning progress of the trained AI model m2. For example, the controller 11 reduces the degree of fusion in the fusion process based on the number of times the trained AI model m2 has been trained and the error from the correct answer data. That is, the controller 11 reduces the influence of the trained layer features Do1L11 to Do1L1n-1 output by each trained layer (L11 to L1n) of the trained AI model m1 on the trained layer features Do2L21 to Do2L2n-1 output by each trained layer (L21 to L2n) of the trained AI model m2.

[0048] This makes it possible to suppress the unnecessary impact of fusion processing at a stage where learning has progressed. At the stage where learning has progressed, the output data of each learning target layer in the learning target AI model m2 is data with advanced optimization. As a result, learning of the later layers is progressing efficiently, and there is little loss of efficiency due to a reduction in the degree of fusion.

[0049] 3, a fusion unit F is provided between each layer L, but it may be provided between some layers rather than all layers. For example, a fusion unit F1 may be provided, and a fusion unit F2 may not be provided, so that a training layer feature Do2L22 output from a training layer L22 is input to a training layer L23.

[0050] In addition, the configuration of the trained AI model m1 does not have to be the same as that of the trained AI model m2, and for example, the number of layers may be different. However, the trained layer of the trained AI model m1 and the trained layer of the trained AI model m2 to be merged must be appropriately set so that the output data is similar, taking into account the overall structure of each learning model. In addition, at that time, it is necessary to prevent the upstream / downstream relationship between the trained layer of the trained AI model m1 and the trained layer of the trained AI model m2 from changing. For example, it is necessary to avoid fusing the trained layer feature output by the trained layer L21 of the trained AI model m2 with the trained layer feature output by the trained layer L14 (not shown) of the trained AI model m1, and fusing the trained layer feature output by the trained layer L23 of the trained AI model m2 with the trained layer feature output by the trained layer L12 of the trained AI model m1.

[0051] According to the above configuration, by learning using the learned layer features output by each learned layer of the trained AI model m1, it is expected that the learning accuracy, especially in the early stage of learning, can be improved, the learning efficiency of the trained AI model m2 can be improved, and the learning time can be improved. In addition, based on the learning progress of the trained AI model m2, the degree of fusion of the trained layer features output by each trained layer of the trained AI model m1 to the trained layer features output by each trained layer of the trained AI model m2 is changed. In other words, the fusion process can be reduced before the learning is completed. This makes it possible to suppress the unnecessary influence of the fusion process at the stage where the learning has progressed. Therefore, it is possible to efficiently train the trained AI model m2.

[0052] Fig. 4 is an explanatory diagram showing an example of the fusion process in Fig. 3. In the fusion process, the fusion processing unit 112 (controller 11) fuses the learning layer feature Do2L2x (x: variable indicating the number of layers, x=1 to n-1) and the learned layer feature Do1L1x by using, for example, a cross-attention mechanism shown in Fig. 4.

[0053] In Fig. 4, "input" is the training layer feature Do2L2x, which is the output of the training layer L2x (x: variable indicating the number of layers, x = 1 to n-1) of the training AI model m2 before the fusion process. "memory" is the trained layer feature Do1L1x, which is the output of the trained layer L1x of the trained AI model m1, which is in the same row as the training layer L2x of the training AI model m2 before the fusion process.

[0054] The input, which is the learning layer feature Do2L2x, is converted to "query" in the dense layer. The memory, which is the learned layer feature Do1L1x, is converted to "key" and "value" in the dense layer. For the feature, the query is the search target, the key is the search word, and the value is the source data. In the attention mechanism, information is extracted from the memory (key: search word and value: source data) by the query (search target) for the feature.

[0055] The dot product (logit) of the query and key is taken in the first matmul layer to calculate the mutual similarity. The dot product (logit) of the query and key is subjected to Softmax processing and normalized for subsequent processing. This normalizes the weights for each query so that the sum is 1.0, and the "attention_weight" is calculated. Then, in the matmul layer, the dot product of attention_weight and value is taken, and value information is extracted according to the weight.

[0056] In this way, in the fusion process, the information in the memory is reflected in the input, and the output is calculated. The output is the fusion feature Di2Fx, which is the input to the learning layer L2x+1 subsequent to the learning AI model m2.

[0057] As described above, in the fusion process, the input, which is the learning layer feature Do2L2x, is converted with reference to the memory value, which is the learned layer feature Do1L1x, and output. In detail, the input, which is the learning layer feature Do2L2x, is converted so that a region close to the memory value, which is the learned layer feature Do1L1x, is extracted and strongly influenced by the memory value. That is, the information contained in the memory, which is the learned layer feature Do1L1x, is reflected in the input, which is the learning layer feature Do2L2x. The input, which is the learning layer feature Do2L2x, is converted with reference to the memory value, which is the learned layer feature Do1L1x, and is converted so as to be close to the memory value.

[0058] When changing the degree of fusion in the fusion process, the “value” is made smaller (weakened) to reduce the influence of the trained layer feature Do1L1x on the training layer feature Do2L2x.

[0059] As described above, by using a mutual attention mechanism in the fusion process, it is possible to automatically identify which region of the feature should be focused on and learn it. For example, in image recognition, it is possible to focus on the foreground, which is the recognition target, among the foreground and background of the image, and learn specifically about the foreground that should be focused on. In other words, it is possible to efficiently extract features by suppressing the influence of the background that is not related to recognition and specializing in the foreground that should be focused on.

[0060] Fig. 5 is a flowchart showing the AI ​​learning process executed by the controller 11 of the AI ​​learning device 10 in Fig. 1. This flowchart shows the technical content of a computer program that causes a computer device to realize the learning process of an AI model. The computer program is stored in various readable non-volatile recording media and provided (sold, distributed, etc.). The computer program may be composed of only one program, or may be composed of multiple programs that work together.

[0061] The process shown in Fig. 5 is executed when a designer of the AI ​​learning device 10 performs an operation to start the learning process on the learning target AI model m2 stored in the memory unit 15, for example, by using the operation unit 12 such as a keyboard. The process will be described below with reference to Fig. 3 as necessary.

[0062] In step S101, the controller 11 inputs the same learning data d1 from the same learning dataset to each of the AI ​​model m2 to be trained and the trained AI model m1, and proceeds to step S102 as input data for the training layer L21 of the AI ​​model m2 to be trained and the trained layer L11 of the trained AI model.

[0063] In step S102, the controller 11 sets a variable x indicating the number of layers to 1, and the process proceeds to step S103.

[0064] In step S103, the controller 11 performs various arithmetic operations on each input data of the training layer L2x of the training AI model m2 and the trained layer L1x of the trained AI model m1 to calculate output data (trained layer feature Do2L2x and trained layer feature Do1L1x), and then proceeds to step S104.

[0065] In step S104, the controller 11 performs a fusion process of the training layer feature Do2L2x, which is the output data of the training layer L2x of the training AI model m2, and the trained layer feature Do1L1x, which is the output data of the layer L1x of the trained AI model m1, to calculate the fusion feature Di2Fx, which is the input data of the training layer L2x+1 at the rear stage of the training AI model m2, and proceeds to step S105. Note that if the variable x indicating the number of layers is n, the fusion process in step S104 does not need to be performed.

[0066] In step S105, the controller 11 adds 1 to the variable x indicating the number of layers, and proceeds to step S106.

[0067] In step S106, the controller 11 determines whether or not the calculation processing has been completed for all learning layers L2x (L21 to L2n) included in the learning AI model m2 (ended when x = n), and if completed, proceeds to step S107, and if not completed, returns to step S103.

[0068] In step S107, the controller 11 (learning unit 113) performs a process of adjusting the learning parameters using, for example, the gradient descent method or the backpropagation method, based on the error between the estimated value PR, which is the output data of the learning target AI model m2 (layer L2n), and the correct data of the learning data, and then proceeds to step S108.

[0069] In step S108, the controller 11 judges whether the learning progress has reached a state where the degree of fusion should be changed. Specifically, it judges whether a predetermined number of learning times has been reached, or whether an error between the output data of the learning target AI model m2 and the correct answer data has reached a predetermined progress threshold. If it has been reached, the process proceeds to step S109, and if it has not been reached, the process proceeds to step S110. Note that the predetermined number of learning times and the predetermined progress threshold may be values ​​set by the AI ​​model developer or the like based on experiments, for example.

[0070] In step S109, the controller 11 changes the degree of fusion in the fusion process, and proceeds to step S110. Note that, as the value of the degree of fusion according to the learning progress, a value set by an AI model developer or the like based on, for example, an experiment may be used.

[0071] In step S110, the controller 11 determines whether or not learning for the learning object AI model m2 is completed. If it is completed, the process according to this flowchart is terminated, and if it is not completed, the process returns to step S101.

[0072] At this time, the controller 11 determines whether learning for the training object AI model m2 is completed based on whether the error between the output data of the training object AI model m2 and the correct answer data reaches a predetermined value, or whether the number of epochs, which is the number of training times, reaches a predetermined value.

[0073] In addition, in the fusion process, the degree of fusion may be gradually reduced as the number of times of learning of the training target AI model m2 increases. With this configuration, in the training of the training target AI model m2, the influence of the trained layer features of the trained AI model m1 can be gradually reduced (weakened). This makes it possible to control in a well-balanced manner the learning efficiency and the excessive influence of the fusion process due to the learning progress.

[0074] The fusion process may be stopped before the learning of the training target AI model m2 is completed. With this configuration, the fusion process is eliminated during the learning of the training target AI model m2, and the time required for the fusion process can be reduced.

[0075] <Notes, etc.> Various technical features disclosed as embodiments in this specification can be modified in various ways without departing from the spirit of the technical creation. In other words, the above embodiments are illustrative in all respects and are not restrictive. The technical scope of the present invention is indicated by the claims, not the description of the above embodiments, and includes all modifications that fall within the meaning and scope of the claims. In addition, the multiple embodiments shown in this specification may be combined as appropriate to the extent possible.

[0076] In the above embodiment, various functions are realized by software through the arithmetic processing of the CPU according to the program, but at least some of these functions may be realized by electrical hardware resources. Examples of hardware resources include ASICs (Application Specific Integrated Circuits) and FPGAs (Field Programmable Gate Arrays). Conversely, at least some of the functions realized by hardware resources may be realized by software.

[0077] The scope of this embodiment may also include a computer program that causes a processor (computer) to realize at least some of the functions of the AI ​​learning device 10. The scope of this embodiment may also include a computer-readable non-volatile recording medium that records such a computer program. The non-volatile recording medium may be, for example, the above-mentioned non-volatile memory, an optical recording medium (e.g., an optical disk), a magneto-optical recording medium (e.g., a magneto-optical disk), a USB memory, or an SD card. [Explanation of symbols]

[0078] 10 AI learning device 11 Controller 12 Control section 13 Display section 14 Communications Department 15 Storage section 111 Main processing unit 112 Fusion Processing Section 113 Learning Department F1, F2 fusion part L11, L12, L1n trained layers L21, L22, L2n learning layers p21, p22, p2n learning parameters pf1, pf2 fusion parameters m1 Trained AI model m2 AI model to be trained

Claims

1. An AI learning method for generating a new trained AI model by inputting training data into a training target AI model having layers, Input the learning data into an existing trained AI model, and obtain trained layer features output from a trained layer of the existing trained AI model; The trained layer feature is fused with a training layer feature output from a training layer of the training target AI model to generate a fusion feature; The fusion feature is input to a learning layer subsequent to the learning layer to generate the new trained AI model. AI learning methods.

2. The AI ​​learning method according to claim 1 , wherein in generating the fused features, the learned layer features and the learning target layer features are fused using a mutual attention mechanism.

3. The AI ​​learning method according to claim 2, wherein the degree of fusion is reduced as the learning progresses.

4. The AI ​​learning method according to claim 1 , wherein the generation of the fusion feature is stopped when the learning progress reaches a predetermined progress threshold.

5. An AI learning device that inputs learning data into a learning target AI model having layers to generate a new trained AI model, Input the learning data into an existing trained AI model, and obtain trained layer features output from a trained layer of the existing trained AI model; The trained layer feature is fused with a training layer feature output from a training layer of the training target AI model to generate a fusion feature; The fusion feature is input to a learning layer subsequent to the learning layer to generate the new trained AI model. AI learning device.

Citation Information

Patent Citations

  • Low-Rank Adaptation of Neural Network Models

    US20220383126A1

  • Learning model creation system and learning model creation method

    JP2021140400A

Cited By

  • Data management method

    CN122174279A

  • Data management method

    CN122174280A

  • Data management method

    JP2026099154A

  • Data management method

    JP2026099169A