Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Heterogeneous model aggregation method and system based on federated learning

A technology of heterogeneous models and aggregation methods, which is applied in neural learning methods, biological neural network models, neural architectures, etc., can solve the problem of poor fairness, does not consider the difference in client model performance, and does not better solve client data anomalies. quality and other issues, to achieve the effect of high quality and reduced communication volume

Pending Publication Date: 2021-11-26
GUANGZHOU UNIVERSITY
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. This method still does not solve the problem of client data heterogeneity. Under the condition that the local data sets of each client are not independent and identically distributed, the model performance of each client is quite different, and the fairness is poor.
[0006] 2. Only the simple average method is used to calculate the average prediction score of all client models on the shared data set, without considering the performance differences of each client model, resulting in poor performance of some client models, which will seriously affect the average prediction score quality
[0008] 1. The client still needs to upload and download model parameters to the server, and the traffic problem has not been effectively resolved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Heterogeneous model aggregation method and system based on federated learning
  • Heterogeneous model aggregation method and system based on federated learning
  • Heterogeneous model aggregation method and system based on federated learning

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] Such as figure 1 As shown, the heterogeneous model aggregation method based on federated learning in this embodiment uses the Mnist data set, including the following steps:

[0053] S1. Set up local data set D on each client i And initialize a neural network model M i , where i is the serial number of the client, initialize a neural network model M on the server side; where, the neural network model M of each client i The model structure and model parameters are allowed to be different, and each client's local data set D i The distribution of data is not the same.

[0054] In this embodiment, the client is a computer with a certain computing power. For the client numbered i, the local data set D i The neural network model M initialized for a part of the data in the Mnist dataset i The structure is shown in Table 1:

[0055] Table 1

[0056]

[0057] The server is a data center with strong performance and large communication volume. The model is M, and its stru...

Embodiment 2

[0101] Based on the same inventive concept as Embodiment 1, this embodiment also proposes a heterogeneous model aggregation system based on federated learning, including:

[0102] The enhanced iteration module is used to ensure that the data categories owned by the client model in the batch iteration process are complete and the distribution of each category is even, so that the client model can continuously correct the direction of gradient descent during the training process, making the gradient towards The direction of the optimal solution is descending.

[0103] The knowledge distillation module is used to solve the reliability problem of the client model under heterogeneous conditions. In each round, each client sends prediction scores to the server, and the server uses JS functions to calculate the weight of each client model prediction score, and then calculates the global prediction score by weighted average. The server-side model performs knowledge distillation throu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of federated learning, in particular to a heterogeneous model aggregation method and system based on federated learning, and the method comprises the steps of initializing a neural network model; the method also includes that each client contributes a part of local data and uploads the local data to the server to form a shared data set, and a CGAN model is trained; the client uses a local data set and a data set generated by the CGAN model to train a local model, predicts each data in the shared data set and uploads a prediction score to the server; the server calculates the prediction score deviation degree of each client, takes the reciprocal of a calculation result as a weight, calculates a global prediction score, and uses the global prediction score to perform knowledge distillation on the server model; the client downloads the prediction scores of other client models from the server for cooperative training; and model convergence is performed after multiple iterations. According to the invention, the problem of data heterogeneity of the client side can be solved, the client side model uploads and downloads the prediction score of the shared data set, and the communication traffic between the client side and the server side is reduced.

Description

technical field [0001] The invention relates to the field of federated learning, in particular to a federated learning-based heterogeneous model aggregation method and system. Background technique [0002] Today's deep learning field is developing rapidly, but deep learning has an obvious disadvantage, that is, it requires a large amount of data for training to achieve better performance. In recent years, it has become a worldwide trend to pay attention to data privacy and security. At the same time, most industry data presents the phenomenon of data islands. How to jointly train an excellent model, federated learning is the key technology to solve this problem. [0003] The development of federated learning still faces many challenges. Two of the most important aspects are heterogeneity of client models and differences in local data. Since each client is not necessarily the same and is in a different space, this leads to great differences in the communication volume, com...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06K9/62G06N3/04G06N3/08
CPCG06N3/08G06N3/045G06F18/214
Inventor 陈孔阳张炜斌陈卓荣严基杰黄耀李进
Owner GUANGZHOU UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products