Cross-food department federal learning transmission parameter quantity reduction system and method

By using non-complete neural networks and convolution kernel generation functions to generate training models in federated learning, and decomposing the models for uploading some modules, the problem of large amounts of transmission parameters is solved, efficient transmission and privacy security of food industry data are achieved, and reduced communication costs.

CN118586450AActive Publication Date: 2024-09-03JIANGNAN UNIV +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410636986.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing federated learning in the food industry transmits a large amount of parameters and consumes too much bandwidth resources. Moreover, the method of reducing transmission parameters can easily damage the model performance and is difficult to implement, and the degree of parameter reduction is limited.

Method used

Using the non-complete neural network building module, the convolution kernel generation training module and the sub-module upload combination module, the convolution kernel is generated through the generation function and federated learning training is performed. The generated convolution kernel is discarded, the model is decomposed and only some modules are uploaded, reducing Transfer parameter quantities and restructure the global model through the server.

Benefits of technology

It effectively reduces the amount of transmission parameters for federated learning, reduces communication costs, ensures model performance, and achieves privacy and security of food industry data and efficient cross-department data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586450A
    Figure CN118586450A
Patent Text Reader

Abstract

The invention relates to a cross-food department federated learning transmission parameter quantity reduction system and method, and relates to the technical field of artificial intelligence, and the system comprises an incomplete neural network construction module which is used for constructing an incomplete neural network model of which the parameter quantity is less than that of a complete neural network; the convolution kernel generation training module is used for generating a function by using a convolution kernel through the incomplete neural network model and performing federated learning training to obtain an updated incomplete neural network model; the sub-module uploading and combining module is used for randomly distributing numbers through a server and instructing each client to upload one module in the updated incomplete local model, and a new global model is recombined by the server, and the model evaluation module is used for testing by adopting a test data set after federal learning training is completed. And evaluating the model performance of the global model according to a test result. The problem of food data islands is solved, and meanwhile efficient communication of federal learning is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a system and method for reducing the amount of parameters transmitted by cross-food sector federated learning. Background Art

[0002] In today's digital age, the amount of data generated in the food industry continues to grow, and more and more companies are beginning to pay attention to and use food data. However, this data is often scattered across various companies, institutions and regions, forming the so-called "food data islands". The existence of these data islands has brought many challenges to the development of the food industry, including difficulty in conducting comprehensive data analysis, inability to fully tap the potential value of data, and protection of data privacy and security.

[0003] In order to solve the problem of food data islands and promote the digital transformation and intelligent development of the food industry, federated learning has entered the field of vision of R&D personnel as an emerging solution. Federated learning has been proven to be a powerful, privacy-protecting distributed machine learning framework with many applications in reality. In federated learning, each food department participates in training as a client and transmits local model parameters to the central server as the server. The server aggregates multiple local models into a global model, which enables the global model to learn data from multiple food departments and ensures that the privacy of the client is not leaked.

[0004] However, as models continue to grow and the number of model parameters multiplies, traditional federated learning faces challenges such as increased parameter transmission time, excessive bandwidth consumption, and reduced global model performance. For example, Resnet18 has about 11 million parameters, while YOLOX-L has 54.2 million parameters. If we have 10 clients, each deploying a YOLOX-L, then when using the traditional FL method (i.e., Fed-Avg), the total transmission parameters per round of communication are 54.2×10=542 million parameters. Assuming that one round of communication transmits 542 million parameters and takes one hour, 200 epochs will take 200 hours.

[0005] In recent years, researchers are focusing on how to reduce the transmission time of federated learning parameters and alleviate bandwidth resources by reducing network parameters. At present, there are three main methods for reducing transmission parameters in federated learning: quantization, sparsification, and a combination of quantization and sparsification. Quantization methods usually convert parameters from floating-point format to integer format. Since integer format takes up less storage space than floating-point format, researchers will use quantization technology to reduce the amount of parameters transmitted in federated learning. However, the low-precision data generated by the quantization method can easily lead to the loss of important information in the model, which will inevitably damage the performance of the global model. In the process of network model training, since a large number of parameters have limited contribution to model performance, it is also an effective method to reduce unimportant parameters in the model through sparsification and retain important parameters.

[0006] Most existing sparsification methods for federated learning use the top-k method to achieve sparsification of model parameters. However, although top-k can reduce the number of model parameters, the value of k is difficult to determine because different values ​​will lead to different performance. In addition, sparse data requires additional costs to calculate the index used to locate the location of sparse data in the network, so the reduction of model parameters is limited. The combination of quantization and sparsification often brings new problems such as technical difficulty in implementation, increased computing costs, and difficulty in reducing communication costs.

[0007] In summary, federated learning can solve the data island problem in the food industry while ensuring privacy. However, the current research methods for reducing transmission parameters have problems such as damaging the performance of the global model, limited parameter reduction, and difficulty in implementation. Therefore, it is urgent to propose an efficient federated learning system and method based on cross-departmental food data communication, which can reduce the amount of parameters required for federated learning communication and communication costs while learning food data across departments. This is of great significance to the development of the food industry and the application of federated learning in the food industry. Summary of the invention

[0008] This application is about a system and method for reducing the amount of parameters transmitted by federated learning across food sectors, which solves the problem of "food data islands" while ensuring efficient communication of federated learning. The technical solution is as follows:

[0009] In one aspect, a system for reducing the amount of parameters transmitted by federated learning across food sectors is provided, the system comprising:

[0010] A non-complete neural network building module, which is used to build a non-complete neural network model with fewer parameters than a complete neural network before starting federated learning;

[0011] The convolution kernel generation training module is used to generate convolution kernels using a convolution kernel generation function through an incomplete neural network model and perform federated learning training. After training, the generated convolution kernels are discarded to obtain an updated incomplete neural network model.

[0012] The module upload combination module is used to divide the updated incomplete neural network model into several modules equal to the client vector, and the server randomly assigns numbers and instructs each client to upload a module in the updated incomplete local model, and the server reconstructs a new global model, and,

[0013] The model evaluation module is used to test the model performance of the global model using the test data set after completing the federated learning training.

[0014] A further technical solution is that the convolution kernel generation function takes a small number of convolution kernels as input, and uses two tensors composed of random numbers as constants in the function for calculation, and obtains a tensor of equal size to the two random number tensors as the generated convolution kernel parameters. The function definition is:

[0015] w′=KGF(w)=sign(w)*(|w| β +α)

[0016] Among them, w is the original convolution kernel, that is, the parameter tensor of the convolution layer after copying the convolution kernel, sign() is used to extract the positive and negative parameters from the basic convolution kernel, β is a random number tensor used for exponential calculation, α is a random number tensor bias, and the final output w' is the generated convolution kernel.

[0017] On the other hand, a method for reducing the amount of transmission parameters of federated learning across food sectors is provided, the method being applied to a system for reducing the amount of transmission parameters of federated learning across food sectors, the method comprising:

[0018] Step S101: The server broadcasts the created random number seed and the incomplete neural network model to all clients, wherein the seed is the basic convolution kernel, and the incomplete neural network model refers to a model whose convolution layer lacks most of the convolution kernels;

[0019] Step S102: Based on the incomplete neural network model, a convolution kernel generation function is used to generate a convolution kernel through a convolution kernel generation training module and a federated learning training is performed. After the training, the generated convolution kernel is discarded to obtain an updated incomplete neural network model;

[0020] Step S103: Divide the updated incomplete neural network model into several modules equal to the client vector, randomly assign numbers through the server and instruct each client to upload a module of the updated incomplete neural network model, and reconstruct a new global model by the server;

[0021] Step S104: Repeat steps S101 to S103 until the loss function converges, and a trained global model can be obtained.

[0022] A further technical solution further includes the following steps before step S101:

[0023] Build a federated learning system consisting of a server and multiple clients, where the dataset on each client represents the dataset of each department. Federated learning training is performed after ensuring that all clients and servers are online through the federated learning system.

[0024] A further technical solution further includes the following steps between step S101 and step S102:

[0025] After receiving the random number seed and the incomplete neural network model through the server instruction client, a random number tensor is created and trained using the convolution kernel generation training method.

[0026] A further technical solution is that the convolution kernel generation training method adopts a convolution kernel generation function, which is used to generate sufficient convolution kernels based on a small number of basic convolution kernels until the model structure is complete for model training, wherein the model only updates the basic convolution kernels but not the generated convolution kernels.

[0027] According to a further technical solution, the process of generating a convolution kernel by the convolution kernel generation training method is as follows:

[0028] Replicate the basic convolution kernels proportionally to reach the number of convolution kernels required by the current layer of the network;

[0029] Performing a convolution kernel generation function operation on each element in the convolution kernel through the convolution kernel generation function to obtain a generated convolution kernel;

[0030] During the training process, forward propagation calculates the feature map that fits each network input by generating convolution kernels, while during the back propagation process, only the basic convolution kernels existing in the initial incomplete convolution network are updated, without updating the generated convolution kernels.

[0031] The beneficial effects of the technical solution provided by this application include at least:

[0032] (1) This application proposes a cross-food sector federated learning transmission parameter reduction system, which uses model parameters as information transmission media, so that food-related companies or departments can ensure data privacy and security when conducting cross-departmental and cross-institutional data analysis, data mining and other cooperation.

[0033] (2) The convolution kernel generation function used in the method for reducing the amount of parameters transmitted by cross-food sector federated learning proposed in this application can train an incomplete neural network with only a few convolution kernels like a complete model, ensuring that the model performance will not decrease due to the reduction of parameters, thus solving the problem of model performance being damaged when reducing the amount of parameters required for transmission in current federated learning.

[0034] (3) The module upload combination module proposed in this application adopts an upload combination transmission strategy. Unlike the traditional federated learning that deploys n complete models to n clients respectively, the module upload combination strategy only requires the client to upload one module in the local model. The entire transmission process is equivalent to transmitting only the parameters of an incomplete neural network, which greatly reduces the transmission cost. In addition, the module combination method also saves a certain amount of computing cost compared to calculating the average model parameters, and has good practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A schematic diagram of the structure of a system for reducing the amount of parameters transmitted by federated learning across food sectors provided by an exemplary embodiment of the present application is shown;

[0037] Figure 2 A schematic diagram of the structure of a sub-module uploading combination module provided by an exemplary embodiment of the present application is shown;

[0038] Figure 3 A flowchart of a method for reducing the amount of parameters transmitted by cross-food sector federated learning provided by an exemplary embodiment of the present application is shown;

[0039] Figure 4 A flowchart of a convolution kernel generation training method provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] Embodiment 1

[0042] An embodiment provides a system for reducing the amount of parameters transmitted by federated learning across food sectors.

[0043] Figure 1A cross-food sector federated learning transmission parameter reduction system provided by an exemplary embodiment of the present application is shown, please refer to Figure 1 A system for reducing the amount of parameters transmitted by federated learning across food sectors includes a non-complete neural network construction module 10, a convolution kernel generation and training module 20, a module upload and combination module 30, and a model evaluation module 40.

[0044] The non-complete neural network construction module 10 is used to construct a non-complete neural network model with fewer parameters than the complete neural network required for federated learning training before starting federated learning.

[0045] In the embodiment of the present application, the implementation process of the incomplete neural network building module is as follows:

[0046] Before starting federated learning, you need to select the neural network to be used for training and ensure that the number of output channels of each layer of the network is equal to the number of input channels of the next layer. At this time, the neural network can smoothly receive input data and output it. At this time, the neural network is a complete neural network.

[0047] Set the reduction ratio of the number of convolution kernels;

[0048] Use code to construct a non-complete neural network based on the selected complete neural network and reduction ratio;

[0049] During the code implementation, the number of output channels of the convolution layer in the network is reduced according to the reduction ratio of the number of convolution kernels. In a complete neural network: the number of output channels of the convolution layer = the number of input channels of the next layer. In an incomplete neural network: the number of output channels of the convolution layer × the reduction ratio = the number of input channels of the next layer;

[0050] After reducing the number of output channels of the convolutional layer, the output channels of the convolutional layer are less than the input channels of the next layer. If data is input into an incomplete neural network, the neural network cannot perform forward propagation smoothly because the number of channels of the output features of the convolutional layer is not equal to the number of features of the input channels of the next layer. The constructed neural network is called an incomplete neural network.

[0051] In summary, the non-complete neural network building module reduces the number of convolution kernels in each convolution layer in the complete neural network, or reduces the number of output channels of each convolution layer, so as to reduce the number of parameters of the entire model.

[0052] The convolution kernel generation training module 20 is used to generate a convolution kernel using a convolution kernel generation function through an incomplete neural network model and perform federated learning training, and discard the generated convolution kernel after training to obtain an updated incomplete neural network model.

[0053] In the embodiment of the present application, the convolution kernel generation training module implementation process is as follows:

[0054] When the client uses an incomplete neural network for training, it cannot be trained directly because the number of convolution kernels in the convolution layer is insufficient. A specific method is required to generate convolution kernels to complete the convolution layer in the network.

[0055] The convolution kernels of each convolution layer are copied according to the reduction ratio of the number of convolution kernels when building the incomplete neural network until the number of convolution kernels in the convolution layer is equal to the number of convolution kernels in the complete neural network.

[0056] During the training process, the model uses the convolution kernel generation training method, such as Figure 4 As shown in the figure, the convolution kernel generation training method uses the convolution kernel generation function to generate enough convolution kernels by calculation to make the model complete, so that the forward propagation can smoothly allow the input to pass through each layer of the model. Let the parameter tensor of the convolution layer after copying the convolution kernel be w. First, use a random number seed to generate two tensors α and β of the same size as the convolution layer parameter w for each convolution layer; secondly, according to the formula of the convolution kernel generation function w′=KGF(w)=sign(w)*(|w| β +α), and takes the sign sign(w) and the absolute value |w| of each element in w, both of which are tensors of the same size as w. Each element in |w| is first exponentially added to each element in β, and then added to each element in α. Finally, it is multiplied with each element in sign(w), and finally w′ is obtained, which has the same size as w but completely different internal parameters.

[0057] During the back propagation process in training, due to the chain derivation rule, the variables w, α, and β that participate in the convolution kernel generation function will be derived at the same time. In order to ensure that α and β do not change with the update, we freeze the parameters in α and β and only update the convolution kernel parameters before the convolution kernel is copied.

[0058] After the training is completed, the generated convolution kernel w′ is discarded, and only the convolution kernel parameters before the convolution kernel is copied are retained. At this time, the updated incomplete neural network is obtained.

[0059] Among them, the convolution kernel generation function takes a small number of convolution kernels as input, and uses two tensors composed of random numbers as constants in the function for calculation, and obtains a tensor of equal size to the two random number tensors as the generated convolution kernel parameters. The function definition is:

[0060] w′=KGF(w)=sign(w)*(|w| β +α)

[0061] w is the original convolution kernel, that is, the parameter tensor of the convolution layer after copying the convolution kernel. sign() is used to extract the positive and negative parameters from the basic convolution kernel. β is a random number tensor used for exponential calculation. α is a random number tensor bias. The final output w' is the generated convolution kernel.

[0062] In summary, the convolution kernel generation training module copies the convolution kernel, calculates parameters using the convolution kernel generation function, updates the convolution kernel parameters before copying, and discards the generated convolution kernel after training, so that the incomplete neural network that cannot be trained directly can complete the training, and the convolution kernel generation function maintains good performance.

[0063] The module upload combination module 30 is used to divide the updated incomplete neural network model into several modules equal to the client vector, and the server randomly assigns numbers and instructs each client to upload a module in the updated incomplete local model, and the server reconstructs a new global model.

[0064] In the embodiment of the present application, the convolution kernel generation training module implementation process is as follows:

[0065] The server divides the model into n modules equal to the number of clients participating in federated learning, and numbers each module from 1 to n.

[0066] After all clients have completed training, the server creates an array of n numbers and randomly arranges the n numbers to disrupt the order of the numbers.

[0067] The server sends the corresponding numbers to all clients in the order of the array. For example, if the second position in the array is 4, the number 4 is sent to the second client. The client finds the module corresponding to the number on the neural network according to the number and sends the module to the server.

[0068] After the server receives the modules sent by all clients, it sorts the modules in order from 1 to n to form the entire neural network as a new round of global model.

[0069] In each round of training, the server must re-randomize to prevent the client from transmitting only modules with a certain number.

[0070] It should be noted that uploading the combined modules in modules only requires each client to upload one module in the entire model, where the division of modules depends on the number of clients. The server will divide the model into several modules equal to the number of clients to ensure that each client can combine the entire model even if it uploads only one module. The position of the modules uploaded by each client in the model is different, and the order is determined by the random combination of the server, so as to ensure that during the entire federated learning training process, each client can upload modules at all positions. After random selection and arrangement, each client only needs to upload one module in the model. The server will combine the modules received from all clients to obtain the global model of the current communication round.

[0071] like Figure 2 The sub-module upload combination module shown in the embodiment of the present application takes 4 clients as an example. The server divides the model into 4 modules according to the number of clients, and generates a set of random values ​​​​as [2,4,1,3]. According to the reorganized random values, client 1, client 2, client 3 and client 4 will respectively select the 2nd module, 4th module, 1st module and 3rd module of the local model for upload. After all the selected modules are uploaded to the server, the server aggregates these modules into the entire model in the order of random values ​​as the new global model for the next round. Among them, the local model is the updated incomplete neural network model obtained by generating a training module through a convolution kernel.

[0072] In summary, the module-by-module upload combination module allows each client to upload only one module in the model. The server combines the modules to obtain a new global model, thereby reducing the amount of parameters required for client upload.

[0073] The model evaluation module 40 is used to use the test data set to perform testing after completing the federated learning training, and to evaluate the model performance of the global model based on the test results.

[0074] Embodiment 2

[0075] Embodiment 2 provides a method for reducing the amount of transmission parameters of cross-food department federated learning, which is applied to a system for reducing the amount of transmission parameters of cross-food department federated learning provided in Embodiment 1.

[0076] Figure 3 FIG. 1 is a flowchart of a method for reducing the amount of parameters transmitted by federated learning across food sectors provided by an exemplary embodiment of the present application. Figure 3 As shown, a method for reducing the amount of parameters transmitted by federated learning across food sectors provided in this application is applied to image classification tests for illustration, and the method includes the following steps:

[0077] Step S101: The server broadcasts the created random number seed and the incomplete neural network model to all clients, wherein the seed is the basic convolution kernel, and the incomplete neural network model refers to a model whose convolution layer lacks most of the convolution kernels.

[0078] In an embodiment of the present application, the server creates a random number seed and an incomplete neural network model, wherein the incomplete neural network model is an incomplete global model, which means that the convolution layer of the model lacks most of the convolution kernels, and the random number seed is used to combine with the random number generator to generate a random number tensor equal to the convolution layer parameters in the complete global model, and different devices can generate the same random number tensor with the same random number seed. After that, the server broadcasts the created random number seed and the incomplete global model to all clients.

[0079] Before step S101, the following steps are also included:

[0080] Build a federated learning system consisting of a server and multiple clients, where the dataset on each client represents the dataset of each department. Federated learning training is performed after ensuring that all clients and servers are online through the federated learning system.

[0081] Step S102: Based on the incomplete neural network model, a convolution kernel generation function is used to generate a convolution kernel through a convolution kernel generation training module and a federated learning training is performed. After the training, the generated convolution kernel is discarded to obtain an updated incomplete neural network model.

[0082] In an embodiment of the present application, the client uses the image data in the local data set as the input of the complete model obtained in step S102 for training. During the back propagation process, the model only updates a small number of convolution kernel parameters in the initial incomplete neural network, while the convolution kernel generated by the convolution kernel generation function is not updated. After completing the local training, the client deletes the generated convolution kernel to obtain an updated incomplete local model. The incomplete local model is the updated incomplete neural network model obtained by the convolution kernel generation training module 20.

[0083] The following steps are also included between step S101 and step S102:

[0084] After receiving the random number seed and the incomplete neural network model through the server instruction client, a random number tensor is created and trained using the convolution kernel generation training method.

[0085] In an embodiment of the present application, after receiving the random number seed, the client creates a random number tensor, and after receiving the global model, uses a convolution kernel generation training method for training. The convolution kernel generation training method uses a convolution kernel generation function, which can generate sufficient convolution kernels based on a small number of basic convolution kernels until the model structure is complete for model training, wherein the model only updates the basic convolution kernel but not the generated convolution kernel.

[0086] Step S103: Divide the updated incomplete neural network model into several modules equal to the client vector, randomly assign numbers through the server and instruct each client to upload a module in the updated incomplete local model, and the server reconstructs a new global model.

[0087] In the embodiment of the present application, after completing local training, each client selects a module from its own model and uploads it to the server. The module selection is obtained by the server through random arrangement to ensure that each client uploads modules in different positions. After receiving all the modules, the server reassembles the modules into a model, which is used as the global model for the new round.

[0088] Step S104: Repeat steps S101 to S103 until the loss function converges, and a trained global model can be obtained.

[0089] Specifically, this embodiment selects the public dataset CIFAR10, which includes 10 classification categories (image size 3×28×28); these datasets are selected to verify the test performance of the method proposed in this patent on the visual task of image classification.

[0090] The method and system for reducing the amount of transmission parameters of cross-food sector federated learning provided in this application are respectively applied to image classification tests. The test data set is the public data set CIFAR10, the model adopted is Resnet18, the number of clients set for federated learning is 10, and the data set is divided into 10 data subsets and deployed on each client. In order to simulate cross-sector federated learning in reality, we set the data set to be non-independent and identically distributed, that is, the categories of the data set on each client are mostly different. In the CIFAR10 data set, 80% of the pictures in the data subset on each client belong to the same category, which is called the main category, and the main category of each client is different, thereby realizing a non-independent and identically distributed data scenario.

[0091] In order to verify the effectiveness and innovation of the method, we prepared 6 benchmark methods for comparison with the method proposed in this patent, namely FedAvg (PMLR, 2017), DGC (ICLR, 2018), FedCOM (PMLR, 2021), FedCAMS (ICML, 2022), SmartIdx (AAAI, 2022), and FedPM (ICLR, 2023). The classification accuracy of the final global model is shown in Table 1. Obviously, Fed-KGF is better than other methods in classification performance under the setting of non-independent and identically distributed datasets, and only Fed-KGF has an accuracy of more than 60%, while the accuracy of others is less than 60%. The communication time consumed in a single round of training and the number of parameters required for transmission are shown in Table 2. The experimental results show that Fed-KGF requires the smallest transmission cost among all methods (that is, the communication time and the number of parameters required for transmission are the smallest among all methods). In addition, we recorded the communication time and the number of parameters required for transmission of Fed-KGF without uploading the combined module. It can be seen that its transmission cost has increased significantly compared with Fed-KGF, which proves the necessity of this module.

[0092] Table 1 Experimental results of various methods for image classification on CIFAR10 and CIFAR100

[0093] method CIFAR10 accuracy Fed-KGF 65.82% FedCAMS 20.48% SmartIdx 54.25% DGC 54.65% FedPM 41.50% FedCOM 57.78% Fed-Avg 51.77%

[0094] Table 2 Communication cost of each method using Resnet18 as the model

[0095] method Time (ms) Parameter size (MB) Parameter reduction ratio Fed-KGF 0.774 1.15 -99.60% Fed-KGF removal module upload combination 1.289 11.54 -96.01% FedCAMS 0.892 13.32 -95.40% SmartIdx 1.032 20.47 -92.92% DGC 0.838 36.16 -87.50% FedPM 1.14 91.55 -68.36% FedCOM 1.189 114.65 -60.37% Fed-Avg 1.189 289.31 0.00%

[0096] In summary:

[0097] This application proposes to use a federated learning system to solve the data island problem in the food industry. The system uses model parameters as a medium for information transmission, so that food-related companies or departments can ensure data privacy and security when conducting cross-departmental and cross-institutional data analysis, data mining and other cooperation.

[0098] This application proposes a convolution kernel generation function that can train an incomplete neural network with only a few convolution kernels like a complete model, ensuring that the model performance will not decrease due to the reduction of parameters, and solving the problem of model performance being damaged when reducing the amount of parameters required for transmission in current federated learning.

[0099] This application proposes a transmission strategy of uploading modules in combination. Different from the traditional federated learning that deploys n complete models to n clients respectively, the strategy of uploading modules in combination only requires the client to upload one module in the local model. The entire transmission process is equivalent to transmitting only the parameters of an incomplete neural network, which greatly reduces the transmission cost. Moreover, the module combination method also saves a certain amount of computing cost compared to calculating the average model parameters, and has good practicality.

[0100] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A system for reducing the amount of parameters transmitted by federated learning across food sectors, characterized in that: The system includes: A non-complete neural network building module, which is used to build a non-complete neural network model with fewer parameters than a complete neural network before starting federated learning; The convolution kernel generation training module is used to generate convolution kernels using a convolution kernel generation function through an incomplete neural network model and perform federated learning training. After training, the generated convolution kernels are discarded to obtain an updated incomplete neural network model. The module upload combination module is used to divide the updated incomplete neural network model into several modules equal to the client vector, and the server randomly assigns numbers and instructs each client to upload a module in the updated incomplete local model, and the server reconstructs a new global model, and, The model evaluation module is used to test the model performance of the global model using the test data set after completing the federated learning training.

2. The system according to claim 1, characterized in that The convolution kernel generation function takes a small number of convolution kernels as input, and uses two tensors composed of random numbers as constants in the function for calculation, and obtains a tensor of equal size to the two random number tensors as the generated convolution kernel parameters. The function definition is: w′=KGF(w)=sign(w)*(|w| β +α) Among them, w is the original convolution kernel, that is, the parameter tensor of the convolution layer after copying the convolution kernel, sign() is used to extract the positive and negative parameters from the basic convolution kernel, β is a random number tensor used for exponential calculation, α is a random number tensor bias, and the final output w' is the generated convolution kernel.

3. A method for reducing the amount of parameters transmitted by federated learning across food sectors, applied to the system of claim 1, characterized in that: The method comprises: Step S101: The server broadcasts the created random number seed and the incomplete neural network model to all clients, wherein the seed is the basic convolution kernel, and the incomplete neural network model refers to a model whose convolution layer lacks most of the convolution kernels; Step S102: Based on the incomplete neural network model, a convolution kernel generation function is used to generate a convolution kernel through a convolution kernel generation training module and a federated learning training is performed. After the training, the generated convolution kernel is discarded to obtain an updated incomplete neural network model; Step S103: Divide the updated incomplete neural network model into several modules equal to the client vector, randomly assign numbers through the server and instruct each client to upload a module of the updated incomplete neural network model, and reconstruct a new global model by the server; Step S104: Repeat steps S101 to S103 until the loss function converges, and a trained global model can be obtained.

4. The method according to claim 3, characterized in that: Before step S101, the following steps are also included: Build a federated learning system consisting of a server and multiple clients, where the dataset on each client represents the dataset of each department. Federated learning training is performed after ensuring that all clients and servers are online through the federated learning system.

5. The method according to claim 3, characterized in that: The following steps are also included between step S101 and step S102: After receiving the random number seed and the incomplete neural network model through the server instruction client, a random number tensor is created and trained using the convolution kernel generation training method.

6. The method according to claim 5, characterized in that The convolution kernel generation training method adopts a convolution kernel generation function, which is used to generate a sufficient number of convolution kernels based on a small number of basic convolution kernels until the model structure is complete for model training, wherein the model only updates the basic convolution kernels but not the generated convolution kernels.

7. The method according to claim 6, characterized in that The process of generating a convolution kernel by the convolution kernel generation training method is as follows: Replicate the basic convolution kernels proportionally to reach the number of convolution kernels required by the current layer of the network; Performing a convolution kernel generation function operation on each element in the convolution kernel through the convolution kernel generation function to obtain a generated convolution kernel; During the training process, forward propagation calculates the feature map that fits each network input by generating convolution kernels, while during the back propagation process, only the basic convolution kernels existing in the initial incomplete convolution network are updated, without updating the generated convolution kernels.

Citation Information

Patent Citations

  • Neural network model generation method oriented to strong robustness

    CN114595804A

  • Federal learning client scheduling method based on weight divergence and update increment

    CN115454608A

  • Group integrated distillation federated learning method in edge network

    CN115526342A

  • Model block aggregation privacy protection method for photoetching hot spot detection

    CN116756764A

  • Hybrid federal learning method based on model splitting

    CN116911408A