Federated learning system, federated learning method, and federated learning device

By introducing the validity judgment mechanism of the display operation module and data processing module into the federated learning system, the problem of insufficient data caused by unfiltered reception of training requests in traditional federated learning is solved, and more efficient data utilization and resource saving are achieved.

WO2024212418A1PCT designated stage expired Publication Date: 2024-10-17CETC BIGDATA RES INST CO LTD

Patent Information

Application Number
PCT/CN2023/114857
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2023-08-25
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

When traditional federated learning systems receive model training requests from demanders without filtering, the data may be unavailable or insufficient to support model training, which reduces the efficiency of the platform and consumes a lot of manpower, material and time resources.

Method used

Provide a federated learning system, including a display operation module and a data processing module. By receiving task requests and information from the demander, it makes validity judgments, and performs federated training when conditions are met to generate a global task model. The system also includes an early warning module to alert demand parties of potential problems.

Benefits of technology

Through the effectiveness judgment and federated training mechanism, the data utilization rate is improved, the demand side's data adaptation trial and error rate is reduced, the efficiency of the data platform is improved, and manpower, material resources and time resources are saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023114857_17102024_PF_FP_ABST
    Figure CN2023114857_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a federated learning system, a federated learning method, and a federated learning device. A specific implementation solution is as follows: a display operation module, used for displaying data resource information and model algorithm names of multiple parties, receiving task information inputted by a demand party and an operation of the demand party for the data resource information and the model algorithm names, and generating a task request on the basis of the operation; and a data processing module, used for receiving the task request and the task information, determining a demand task of the demand party, performing validity judgment on the demand task, and in response to the demand task being valid, performing federated training on models of the parties corresponding to the demand task so as to obtain a global task model. By means of the present embodiments, the efficiency of federated learning is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Federated learning system, federated learning method and device Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a federated learning system, a federated learning method and apparatus, and a computer-readable storage medium. Background Art

[0002] Federated learning methods based on privacy-preserving computing technologies are mostly based on blockchain, secure multi-party computing, and other technologies. They have extensive application experience in social governance, digital government, healthcare, and other fields, and to a certain extent, they are compatible with both data security and open sharing. However, in a data-available-but-invisible model, unfiltered acceptance of model training requests from users can result in data being unavailable or insufficient to support model training, reducing platform efficiency and consuming significant human, material, and time resources. Technical issues

[0003] The embodiments described herein provide a federated learning system, a federated learning method and apparatus, and a computer-readable storage medium storing a computer program. Technical Solutions

[0004] According to a first aspect of the present invention, a federated learning system is provided, which includes: a display operation module for displaying data resource information and model algorithm names of multiple parties, receiving task information input by the demander and the demander's operations on the data resource information and model algorithm names, and generating a task request based on the operations; a data processing module for receiving task requests and task information, determining the demand task of the demander, and making a validity judgment on the demand task; in response to the demand task being valid, the models of the parties corresponding to the demand task are federated trained to obtain a global task model.

[0005] In some embodiments of the present invention, the above-mentioned data processing module is also used to send model training status data to the display operation module, so as to display the model training status of each party in real time on the display operation module.

[0006] In some embodiments of the present invention, the above system further includes: an early warning module; the early warning module is used to send warning information to the demander.

[0007] In some embodiments of the present invention, the above-mentioned display operation module includes: a resource operation interface, which is used to display data resource information of multiple parties and display corresponding first operable controls around the data resource information of each party; a model algorithm interface, which is used to display at least one model algorithm name and display corresponding second operable controls around each model algorithm name; a task description interface, which is used to display a task name input box and a task content input box; an aggregation operation interface, which determines the corresponding data resource information of each party based on the operation information of the demand party operating the first operable controls of each party; determines the corresponding model algorithm name based on the operation information of the demand party operating the second operable controls; obtains task information based on the information of the task name input box and the information of the task content; and a request generation submodule, which generates a task request based on the aggregated data resource information and model algorithm name.

[0008] According to a second aspect of the present invention, a federated learning method is provided, which includes: receiving a task request and task information sent by a display operation module, wherein the task request is obtained by the demander through an operation on the data resource information and model algorithm name of multiple parties displayed on the display operation module; based on the task request and task information, determining the demand task of the demander, and judging the validity of the demand task; in response to the judgment result that the demand task is valid, performing federated training on the models of the parties corresponding to the demand task to obtain a global task model.

[0009] In some embodiments of the present invention, the above-mentioned task request includes: data resource information; based on the task request and the task information, determining the demand party's demand task, and judging the validity of the demand task includes: based on the task information, determining multiple task parties of the demand task; based on the data resource information, obtaining encrypted resource data from each task party; aligning the resource data, and counting the size of the aligned data; in response to the size of the data satisfying the set threshold, determining that the demand task is valid.

[0010] In some embodiments of the present invention, the above-mentioned data resource information includes: label feature attributes and feature fields of the data, and the task request also includes: model algorithm name. Before determining that the required task is valid, the required task of the demander is determined based on the task request and task information. The validity judgment of the required task also includes: determining the task type of the required task based on the label feature attributes and feature fields of the data; detecting whether the task type is applicable to the algorithm corresponding to the model algorithm name; and determining that the required task is valid in response to the task type being applicable to the algorithm corresponding to the model algorithm name.

[0011] In some embodiments of the present invention, before performing federated training on the models of the parties corresponding to the required task, the above method also includes: detecting whether there is a new task party among the parties corresponding to the required task that is to perform federated learning; in response to detecting that there is a new task party among the parties of the required task, based on a pre-set confidentiality agreement, obtaining the original data of the data resource information corresponding to the new task party, and preprocessing the original data.

[0012] According to a third aspect of the present invention, a federated learning device is provided. The device includes: a receiving unit configured to receive a task request and task information sent by a display operation module, wherein the task request is obtained by a demander operating on data resource information and model algorithm names displayed on the display operation module from multiple parties; a determining unit configured to determine the demander's required task based on the task request and task information, and to determine the validity of the required task; and a training unit configured to, in response to a determination that the required task is valid, perform federated training on the models of the parties corresponding to the required task to obtain a global task model.

[0013] In some embodiments of the present invention, the above-mentioned task request includes: data resource information; the above-mentioned determination unit is further configured to: determine multiple task parties of the required task based on the task information; obtain encrypted resource data from each task party based on the data resource information; align the resource data and count the size of the aligned data; in response to the size of the data satisfying the set threshold, determine that the required task is valid.

[0014] In some embodiments of the present invention, the above-mentioned data resource information includes: label feature attributes and feature fields of the data, and the task request also includes: model algorithm name. Before determining that the required task is valid, the above-mentioned determination unit is further configured to: determine the task type of the required task based on the label feature attributes and feature fields of the data; detect whether the task type is applicable to the algorithm corresponding to the model algorithm name; and determine that the required task is valid in response to the task type being applicable to the algorithm corresponding to the model algorithm name.

[0015] In some embodiments of the present invention, the above-mentioned device also includes: a processing unit, which is configured to detect whether there is a new task party performing federated learning among the parties corresponding to the required task, and in response to detecting that there is a new task party among the parties corresponding to the required task, obtain the original data of the data resource information corresponding to the new task party based on a pre-set confidentiality agreement, and pre-process the original data.

[0016] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method according to the second aspect of the present invention when executed by a processor. Beneficial effects

[0017] The federated learning system provided by the present invention has a display operation module that receives operations on data resource information and model algorithm names from the demander and generates a task request. The data processing module determines the demander's required task based on the task information and task request entered by the demander in the display operation module and performs a validity judgment on the required task. In response to the required task being valid, the models of the parties corresponding to the required task are trained to obtain a global task model. Thus, through the display operation module, users can better understand and utilize the federated platform data resources. By judging the validity of the required task, the trial-and-error rate of data adaptation on the demander can be reduced, thereby improving data utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present invention and are not intended to limit the present invention.

[0019] FIG1 is a schematic diagram of the structure of an embodiment of a federated learning system according to the present invention;

[0020] FIG2a is a schematic diagram of display content in a display operation module according to the present invention;

[0021] FIG2 b is another schematic diagram of display content in a display operation module according to the present invention;

[0022] FIG3 is a flow chart of an embodiment of a federated learning method according to the present invention;

[0023] FIG4 is a schematic structural diagram of an embodiment of a federated learning device according to the present invention. Modes for Carrying Out the Invention

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present invention.

[0025] Federated Learning (FL) refers to a machine learning setup in which multiple clients collaboratively train models on a central server, while ensuring the decentralization of training data. FL leverages the principles of local data collection and minimization to mitigate some of the systemic privacy risks and costs associated with traditional centralized machine learning and data science methods. In the FL process, all parties' data remains locally, ensuring privacy and regulatory compliance. Multiple participants combine their data to build a virtual global task model, benefiting from it all. Within the FL system, all participants have the same identity and status, and the modeling effect of FL is comparable to modeling the entire dataset together.

[0026] Traditional federated learning lacks standardized data preprocessing in a unified manner without aggregation of data from multiple parties, and receives model training requests from demanders without screening, which may result in data unavailability or insufficient aligned data to support global task model training.

[0027] In response to the problem of unreliable demand task modeling caused by receiving training requests sent by the demand side without screening, the present invention provides a federated learning system. See Figure 1, which shows a structural diagram 100 of a federated learning system according to the present invention. The federated learning system includes: a display operation module 101 and a data processing module 102.

[0028] In this embodiment, the display operation module 101 is used to display data resource information and model algorithm names of multiple parties, receive task information input by the demander and the demander's operations on the data resource information and model algorithm names, and generate task requests based on the operations.

[0029] In this embodiment, the data resource information of multiple parties can be a data resource table input by the display operation module of each participating party. Due to the information security requirements of federated learning, the data resource table of each party is simply an empty table used to describe the data resources of each party, and each data resource table has field information. To obtain the data resource information of each party, the display operation module can communicate with each participating party, obtain the data resource table representing each party's data resources, and display it.

[0030] In this embodiment, the multi-party data resource information refers to the resource information of all task parties that can participate in the federated learning task. The resource information includes: datasets from different aspects of each party. As shown in Figure 2a, A, B, and C are credit datasets for different task parties. In this embodiment, the datasets are not the actual local data of each party, but rather reflect the data characteristics of each party's local data. Specifically, they can be displayed in the form of feature fields. The data resource information of each party displayed in the operation module is data resource information obtained after pre-communication with all parties. It can be all data of the demand task of the participating party, or it can be partial data of the participating party. The data resource information required for the demand task can be determined through the operation of the demand party in the display operation module.

[0031] Optionally, the display operation module also includes: a resource loading sub-module. When the data resource information on the display operation module does not meet the demand task of the demander, the demander can publish the resource demand through the resource loading sub-module; at the same time, the user can also publish data resource information through the resource loading sub-module and display it on the display operation module.

[0032] In this embodiment, the demander is the initiator of federated learning. The display operation module can display multi-party data resource information related to the demander's required tasks. The demander's data resource information includes: data feature fields and label feature attributes. The feature fields are used to represent the demander's data features, and the label feature attributes are the task objectives required by the demander. For example, if the demander is a bank, the bank's fields include the customer's name, size, creditworthiness, and subsidiaries. If the demander needs to evaluate personal creditworthiness, personal creditworthiness is the label feature attribute.

[0033] It's important to note that both feature fields and label feature attributes are dimensions recorded in the data details of each dataset within the data resource information. Each party's dataset has at least one feature field in its data details. Compared to the data resource information of other parties, the demander also has label feature attributes. As shown in Figure 2b, demander A's data resource information is: customer fund transaction data for XX year. A's data details record five dimensions: Y, X0, X1, X2, and X3. Y represents personal credit status, X0 represents the total amount of credit card and personal loan balances, X1 represents the borrower's age, X2 represents monthly income, and X3 represents the number of mortgage and real estate loans.

[0034] In this embodiment, the display operation module 101 can display data resource information in the form of multiple pages, and when displaying data resource information, the data resource information can also be grouped in different grouping forms, for example, grouped by data requirements, or grouped by task requirements, grouped by topic, grouped by the industry in which the parties are located, etc.

[0035] In this embodiment, the task information is the information input by the user of the demand side to the display operation module to describe the demand task. Specifically, the task information may include: the demand task name and the demand task goal; the model algorithm name is the name of the algorithm adopted by the model corresponding to the demand task. Through these algorithms, the data processing module can realize the training of the global task model.

[0036] In this embodiment, the data processing module 102 is used to receive task requests and task information, determine the demand party's demand tasks, and judge the validity of the demand tasks; in response to the demand tasks being valid, the models of the parties corresponding to the demand tasks are federated trained to obtain a global task model.

[0037] In this embodiment, after receiving the task request, the data processing module analyzes the data resource information of the parties to the required task, the participants of the required task, and the model algorithm name recorded in the task request, determines the participants and participating algorithms of the required task of the demander, obtains the required task name from the task information, and obtains the required task with the required task name.

[0038] Optionally, after receiving the task information, the data processing module can determine some information in the required task based on the description of the task by the demander, such as the purpose of the required task and the participants of the required task. Information other than some information in the required task can be determined through the data resource information of the participants and the name of the model algorithm.

[0039] In this embodiment, the data processing module can determine whether the required task is valid based on the received task information and task request. The task information is used to describe the task goal, and the task request is data information related to the demand. When the data processing module detects that the quantity of the data information meets the task goal, it determines that the required task is valid.

[0040] In one example, a task request includes: data resource information; based on the task request and the task information, determining the demand party's demand task, and judging the validity of the demand task includes: based on the task information, determining multiple task parties of the demand task; based on the data resource information, obtaining encrypted resource data from each task party; aligning the resource data and counting the size of the aligned data; in response to the size of the data satisfying a set threshold, determining that the demand task is valid.

[0041] In another example, the data resource information includes: label feature attributes and feature fields of the data, and the task request also includes: the model algorithm name. Before determining that the required task is valid, the required task of the demander is determined based on the task request and task information. The validity judgment of the required task also includes: determining the task type of the required task based on the label feature attributes and feature fields of the data; detecting whether the task type is applicable to the algorithm corresponding to the model algorithm name; and determining that the required task is valid in response to the task type being applicable to the algorithm corresponding to the model algorithm name.

[0042] In this embodiment, after a demand task initiated by a demander becomes effective, the data processing module establishes a federated learning task corresponding to the task request. This allows each party involved in the demand task to deploy its own model in its own specific local environment. The training parameters are then trained based on their own local data, resulting in their own parameter and gradient information. This information is then encrypted and uploaded to the data processing module, which decrypts and integrates the uploaded information. Based on the error set as the target, the module determines whether further training is necessary until the training conditions are met. This completes the training of all parties involved in the demand task, resulting in a global task model that integrates the information from all the models involved in the demand task. Furthermore, the global task model can implement the demand task initiated by the demander, where each party performs the corresponding task based on their own trained models.

[0043] In the federated learning system provided in this embodiment, the display operation module receives the demander's operations on data resource information and model algorithm names and generates a task request. The data processing module determines the demander's required task based on the task information and task request entered by the demander in the display operation module and performs a validity judgment on the required task. In response to the required task being valid, the models of the parties corresponding to the required task are trained to obtain a global task model. Thus, through the display operation module, users can better understand and utilize the federated platform data resources. By judging the validity of the required task, the trial-and-error rate of data adaptation on the demander side can be reduced, thereby improving data utilization.

[0044] In order to enable the demand side to better understand the model training status of each party, in some optional implementations of this embodiment, the above-mentioned data processing module is also used to send model training status data to the display operation module to display the model training status of each party in real time on the display operation module.

[0045] In this embodiment, the model training status data includes the model training status data of all parties involved in the demand task. The model training status data is used to reflect the model training process. For example, the model training status data includes: the model training progress of each party, the completion percentage of the global task model, etc.

[0046] In this embodiment, during the model training process of each party, the data processing module obtains model training status information from each party in real time, and converts the model training status information of each party into model training status data and displays it on the display operation module for viewing by all parties involved in the required task.

[0047] The federated learning system provided in this embodiment enables all parties involved in the required task to understand the progress of the entire global task model by displaying the model training status of each party in real time on the display operation module, providing a reliable status query window for federated learning.

[0048] Optionally, in this embodiment, the data processing module is also used to calculate the first accuracy of the model training of each party and the second accuracy of the joint training of all parties of the required task. The above-mentioned data processing module is also used to send the first accuracy and second accuracy of each party to the display operation module to display the first accuracy and second accuracy of each party in real time on the display operation module.

[0049] In another embodiment of the present invention, the above-mentioned federated learning system further includes: an early warning module, which is used to issue warning information to the demander.

[0050] In this embodiment, the warning message may have different operation contents based on the different operations of the demander. For example, if the task information input by the demander does not have the name of the required task, the warning message issued by the early warning module includes: Please fill in the name of the required task.

[0051] Optionally, when the required task is invalid, the data processing module sends a warning message to the early warning module, so that the early warning module issues an invalid warning that the required task is invalid.

[0052] In this embodiment, the early warning module may be a submodule of the display operation module, or may be a module independent of the display operation module.

[0053] The federated learning system provided in this embodiment includes an early warning module, which can effectively remind the demander and provide reliable guarantee for the implementation of the demand task.

[0054] In some optional implementations of the present invention, the display operation module includes multiple interfaces. When a user on the demand side has a demand, they can operate different interfaces to input task information and generate a task request. The task information includes the task name and description. The task information can be used to determine the specific content of the task requested by the demand side, for example, the task information may include a customer personal credit assessment. The task request includes data resource information of all parties involved in the task request and the name of the model algorithm for the task request.

[0055] Specifically, the display operation module may include: a resource operation interface, a model algorithm interface, a task description interface, an aggregation operation interface, and a request generation submodule. The resource operation interface, model algorithm interface, task description interface, and aggregation operation interface are all user-operable interfaces for the demander. These interfaces allow the demander to input task information and obtain the data resource information and model algorithm name corresponding to the task through their operations.

[0056] In this embodiment, the resource operation interface is used to display the data resource information of multiple parties and display the corresponding first operable controls around the data resource information of each party. The model algorithm interface is used to display at least one model algorithm name and display the corresponding second operable controls around each model algorithm name. The task description interface is used to display a task name input box and a task content input box. The aggregation operation interface determines the corresponding data resource information of each party based on the operation information of the demander on the first operable controls of each party; determines the corresponding model algorithm name based on the operation information of the demander on the second operable controls; and obtains the task information based on the information in the task name input box and the information in the task content. The request generation submodule generates a task request based on the aggregated data resource information and model algorithm name.

[0057] In this embodiment, the resource operation interface, model algorithm interface and aggregation operation interface can be displayed on a web page using multiple pages. For example, the resource operation interface includes a first operable control and a second operable control as shown in Figure 2a, which can be specifically set according to the user's operation requirements. For example, the first controllable operation control and the second controllable operation control are both buttons. As shown in Figure 2b, there is a first operable control "Add to Cart" button in the data details of A. When the user on the demand side clicks the "Add to Cart" button, the data resource information corresponding to A is selected.

[0058] In this embodiment, a task request is information describing the requested task. It also requests the data processing module to initiate federated learning of the models of all parties. The request generation submodule obtains the characteristic fields and names of the parties in the data resource information, as well as the label feature attributes of the requesting party, and generates the task request.

[0059] The display operation module provided in this embodiment can obtain effective task requests through the user operation resource operation interface, model algorithm interface, task description interface and aggregation operation interface, and send the task request and task information to the data processing module, so that the data processing module can quickly determine the task requirements of the demander, and verify the validity of the demander's demand task based on the task request and task information output by the display operation module, thereby improving the reliability of demand task modeling and ensuring the reliability of the implementation of federated learning.

[0060] To address the problem in conventional technologies of unreliable task modeling caused by receiving training requests from demand parties without screening, the present invention further provides a simple and efficient federated learning method. FIG3 shows a process 300 of an embodiment of the federated learning method according to the present invention. The federated learning method includes the following steps:

[0061] Step 301: Receive a task request and task information sent by a display operation module.

[0062] In this embodiment, the task request is obtained by the demander through the operation of the data resource information and model algorithm names displayed on the display operation module. Through the display operation module, the user of the demander can simply and reliably initiate the task request.

[0063] In this embodiment, the demander inputs task information through the display operation module, and determines the data resources and model algorithms corresponding to the demand task based on the data resource information and model algorithm names of each party displayed on the display operation module. The display operation module generates a task request based on the determined data resources and model algorithm, and sends the task request to the execution entity on which the federated learning method runs.

[0064] Step 302: Based on the task request and task information, determine the task required by the demander and make a validity judgment on the task required.

[0065] In this embodiment, after receiving the task request, the execution entity on which the federated learning runs analyzes the data resource information of the parties to the required task, the participants of the required task, and the model algorithm name recorded in the task request, determines the participants and participating algorithms of the required task of the demander, obtains the required task name from the task information, and obtains the required task with the changed required task name.

[0066] In this embodiment, the execution entity on which federated learning runs determines whether the required task is valid based on the received task information and task request. The task information is used to describe the task goal, and the task request is data information related to the demand. When the data processing module detects that the quantity of the data information meets the task goal, it is determined that the required task is valid.

[0067] In step 303 , in response to the judgment result that the required task is valid, the models of the parties corresponding to the required task are federated trained to obtain a global task model.

[0068] In this embodiment, after the demand task initiated by the demander is validated, the execution entity establishes a federated learning task corresponding to the task request, allowing each party to deploy their own model in their own specific local environment. The training parameters are then trained based on their own local data, obtaining their own parameter information and gradient information. This information is then encrypted and uploaded to the data processing module, which decrypts and integrates the uploaded information. Based on the error set target, the data processing module determines whether further training is needed until the training conditions are met, confirming that the training of the models of all parties involved in the demand task is complete, and obtaining a global task model that integrates the information of the models of all parties involved in the demand task. Furthermore, the global task model can implement the demand task initiated by the demander, under which each party performs the corresponding task based on their own trained models.

[0069] The federated learning method provided in this embodiment first receives a task request and task information sent by a display operation module. Second, based on the task request and task information, it determines the task required by the demander and determines the validity of the task. Finally, if the task is determined to be valid, federated training is performed on the models of the parties corresponding to the task to obtain a global task model. Thus, the demander can quickly and conveniently transmit task information through the display operation module, and measure the effectiveness of the task based on the task request and task information submitted by the user. This avoids data scarcity caused by blindly selecting partner data, which can lead to the inability to train a global task model. This fundamentally reduces the user's trial-and-error rate, saves human, material, and time resources in the federated learning process, and improves the data utilization rate of the federated learning platform.

[0070] In some optional implementations of this embodiment, the task request includes: data resource information; based on the task request and the task information, determining the demand party's demand task, and judging the validity of the demand task includes: based on the task information, determining multiple task parties of the demand task; based on the data resource information, obtaining encrypted resource data from each task party; aligning the resource data and counting the size of the aligned data; in response to the size of the data satisfying the set threshold, determining that the demand task is valid.

[0071] In this embodiment, the encrypted resource data is the actual data of each party locally, and the actual data corresponds to each field in the data resource information. For example, a field of the data resource information includes a credit value, and the resource data is the actual value corresponding to the credit value.

[0072] To reduce the trial-and-error rate of federated learning and improve data utilization efficiency, this paper implements a validity judgment mechanism for federated learning. This validity judgment mechanism relies on obtaining user-submitted task requests. These task requests are provided by federated learning demanders, such as governments, public utilities, enterprises, and research institutes. Task request information includes the model algorithm name, label feature attributes, participant data name, data organization category, and data feature fields.

[0073] In this embodiment, the commonly used model algorithms in the federated learning system include logistic regression, decision tree, convolutional neural network, convolutional neural network, etc. The model training process of each party corresponding to the required task requires the participation of a large number of labeled training sets. If there are no large number of labeled training sets, the models of each party may not converge. Therefore, it is necessary to determine whether the size of the aligned data can meet the model training requirements.

[0074] In this embodiment, in a federated learning system, considering that data from multiple parties may not completely overlap, encrypted sample alignment is required before model training. Predictive mechanisms in data resource development and utilization scenarios also require encrypted sample alignment. This ensures that shared users are identified without exposing overlapping users, without disclosing their data.

[0075] For example, carrier A submits a task request to the execution entity running federated learning. This task requires combining its own mobile phone signaling data with user mobile phone signaling data provided by carrier B to perform federated learning to analyze travel behavior, distribution, and contact characteristics. The data features of carrier A's data (X1, X2, X3, X4, X5, and Y') overlap with the data features of carrier B (X2, X3, X4, X5, X6, and X7). X2, X3, X4, X5, and X6 are overlapping. After receiving the task request from carrier A, the execution entity uses encrypted user sample alignment techniques (such as RSA) to integrate the data from multiple sources without leaking the data of either party. The entity then calculates the amount of data overlap. Data alignment can be categorized as horizontal or vertical alignment; the example above is a horizontal alignment example.

[0076] For example, Bank A submits a task request to an execution entity. This task requires federated learning to combine its own corporate loan information with the annual information provided by Enterprise B. The goal is to predict the corporate credit score, which serves as the primary basis for loan decisions. The data features X1, X2, X3, X4, X5, and Y' of the bank's corporate loan data differ from the data features X1, X5, X6, X7, X8, and X9 of the annual information provided by the enterprise. After receiving the task request from Bank A, the execution entity integrates the data from multiple sources using encrypted user sample alignment technology, without leaking the data of either party. The system then calculates the amount of data overlap, representing the size of the aligned data. The above example illustrates vertical alignment. The aligned data features X1, X2, X3, X4, X5, X6, X7, X8, X9, and Y' represent overlapping data from multiple sources covering these data features. The amount of overlap is also calculated. The system sets a threshold. When the data volume is less than the threshold, it means that the aligned data cannot support model training. The executing entity needs to provide a warning to Bank A to stop the federated learning task in time, saving time and cost for Bank A to reselect the joint object and reducing the trial and error rate.

[0077] In this embodiment, the set threshold corresponding to the data volume can be determined based on the model algorithms of each party. Since different algorithms correspond to different data volumes, after the required task is determined, the model algorithm corresponding to the required task is also determined accordingly, and the set threshold is greater than the data volume corresponding to the model algorithm.

[0078] The method for judging the validity of a demand task provided in this embodiment determines multiple task parties of the demand task based on task information, and obtains encrypted resource data from each task party based on data resource information; aligns the resource data and counts the size of the aligned data; and determines that the demand task is valid in response to the size of the data satisfying a set threshold, thereby measuring the validity of the demand task from the direction of the data volume of the resource data, providing an optional method for judging the validity of the demand task.

[0079] In some optional implementations of this embodiment, the data resource information includes: tag feature attributes and feature fields of the data, and the task request also includes: a model algorithm name. Before determining the validity of the required task, the required task of the demander is determined based on the task request and the task information. The validity judgment of the required task also includes:

[0080] Based on the label feature attributes and the feature fields of the data, the task type of the required task is determined; whether the task type is applicable to the algorithm corresponding to the model algorithm name is detected; in response to the task type being applicable to the algorithm corresponding to the model algorithm name, the required task is determined to be valid.

[0081] In this embodiment, the accuracy of federated learning can be analyzed based on the task request and the task objectives provided by the demander. To reduce the user's trial-and-error rate, the system needs to estimate the effectiveness of the task requested. This is a low-cost, high-efficiency method for determining the effectiveness of the task based on whether the task request matches the task objectives in the task information. Warnings are issued for invalid task requests to alert the user that the model training may be ineffective.

[0082] In this embodiment, task types include horizontal federation, vertical federation, and federation migration. Different types of demand tasks can use different model algorithms. If the algorithms corresponding to the demand tasks of the current task type are inconsistent as determined from the data resource information and the task information, the demand task is determined to be invalid. Conversely, if the algorithms corresponding to the demand tasks of the current task type are consistent as determined from the data resource information and the task information, the demand task is determined to be valid.

[0083] Based on the label feature attributes and the data's characteristic fields, the federation request is determined to be a horizontal or vertical federation task. Since data is invisible in federation modeling, the federation form is determined based on the overlap of the characteristic fields and label feature attributes of the data from multiple parties. If the overlap reaches a certain threshold and the label features do not overlap, it indicates horizontal federation; otherwise, it indicates vertical federation.

[0084] Horizontal federation often occurs in the joint modeling of multi-party data within the same organization, while vertical federation often occurs in the joint modeling of data within the same region across different organizations. Therefore, after determining that the task type of the required task is horizontal federation, check whether the task organization names of the different participants included in the task information are the same organization name. If so, ensure that they are consistent with the task organization name. After determining that the task type of the required task is vertical federation, check whether the task organization names of the different participants included in the task information are different organization names. If so, ensure that they are consistent with the task organization name.

[0085] For example, a model is constructed using mobile phone signaling data from operators A and B to analyze travel behavior, distribution, and contact characteristics. This task requires similar data from the same organization to share highly similar feature fields. Operator A's data features are: X1, X2, X3, X4, X5, X6, and Y'; Operator B's data features are: X2, X3, X4, X5, X6, and X7. While X2, X3, X4, X5, and X6 overlap, the active demographics differ significantly, thus meeting the requirements for horizontal joint modeling.

[0086] For example, a bank wants to combine its own loan data with local provident fund data to jointly model and predict the credit information of loan users. The data in this task comes from different institutions, and the characteristics of multiple data vary greatly. Bank data features: X1, X2, X3, X4, X5, X6, Y'; provident fund data features: X6, X7, X8, X9, X10. The feature label attribute Y' only exists on the task initiator. However, the provident fund data in the same area is relatively complete, basically covering all local staff. Therefore, the ID objects of the data from multiple parties have a high degree of overlap, meeting the conditions for vertical joint modeling.

[0087] The method for determining the effectiveness of a demand task provided in this embodiment detects whether the task type is applicable to the algorithm corresponding to the model algorithm name based on the task type of the demand task, and determines that the demand task is valid in response to the task type being applicable to the algorithm. This embodiment measures the effectiveness of the demand task from the direction of whether the task request satisfies the target corresponding to the task information, and provides another optional method for determining the effectiveness of the demand task.

[0088] Regarding the federated learning method provided by the present invention, in another embodiment of the present invention, the above method also includes: during the model training process of each party, overall scheduling of the required tasks, including status checking, data preparation, parameter configuration, task startup, status query and model evaluation.

[0089] Among them, status check is used to send service status check instructions to all parties to check whether the federated learning tasks on the computing resources of each participant are started normally; data preparation is used to send data format conversion instructions to each participant; parameter configuration is used to send the set parameters to the computing resources of each participant, instructing each participant to generate the corresponding parameter configuration file and save it under a fixed address of the computing resources; task start initiates a task start instruction to the computing resources of each participant; status query is used to initiate a task status query instruction to the computing resources of each participant; model evaluation is used to initiate a model evaluation instruction to the computing resources of each participant as a performance measurement of the currently trained model.

[0090] In another embodiment of the present invention, after the judgment result of the required task is that the required task is valid, and before the models of the parties corresponding to the required task are federated trained, the above-mentioned federated learning method may also include: detecting whether there is a new task party among the parties corresponding to the required task for federated learning, in response to detecting that there is a new task party among the parties of the required task, based on a pre-set confidentiality agreement, obtaining the original data of the data resource information corresponding to the new task party, and performing unified and standardized preprocessing on the original data.

[0091] Specifically, the preprocessing includes: cleaning special symbols and abnormal data of the original data to obtain cleaned data; performing data quantization processing on the cleaned data to obtain quantized data; and performing data standardization processing on the quantized data.

[0092] Data preprocessing involves cleaning raw data of special symbols and abnormal data, quantifying data, and normalizing data. This step isn't limited to user data; all data providers participating in federated learning should perform data preprocessing before data access, ensuring that available data is quickly available when federated learning services are needed.

[0093] In this embodiment, special symbols indicate that symbols other than commonly used symbols are filtered and deleted to avoid affecting data quantification and data standardization. Abnormal data includes missing data, erroneous data, and duplicate data. The causes of such data are divided into mechanical reasons and human reasons. Mechanical reasons are data missing due to mechanical problems that lead to failure in data collection or storage. Human reasons are mainly data anomalies caused by subjective mistakes, historical limitations, or concealment of data. For example, in the statistics of personal provident fund data, the "monthly payment amount" attribute is empty and the "age" attribute is a negative number, which are all data anomalies caused by mechanical or human reasons.

[0094] Missing data means that there is a gap in a certain attribute for a certain identity ID. The solution is to set a threshold Q = (1 / 10) × M, where M represents the number of IDs in the table. When the number of missing values ​​is greater than the threshold Q, it means that the attribute has too many missing values ​​and cannot be used for model training. The attribute should be deleted. When the number of missing values ​​is less than the threshold Q, the average value, hot card, K nearest neighbor, decision tree and other methods can be used to fill it.

[0095] Duplicate data refers to data with multiple attributes that repeat for the same ID. Deduplication reduces model computational costs while also constructing features into a non-reversible matrix to facilitate the proper functioning of various algorithms. By processing missing values, outliers, and duplicate values ​​for each participant, data quality is improved while maintaining the same data distribution, providing data support for subsequent model training.

[0096] To ensure the normal operation of the model, the data provided by each participant must be computable data. Therefore, the data after missing values, outliers, and duplicate values ​​must be processed for data quantification. Data quantification is mainly aimed at data with non-numeric characteristic attributes. At the same time, considering the model's dependence on the original data, the quantitative operation must also reflect the logical relationship of the original data, rather than a simple correspondence between text and numbers.

[0097] In this embodiment, considering the application scenarios of data development and utilization, quantitative processing includes two methods: data quantification and data increment. Data quantification refers to converting a list of text-based feature attributes into quantifiable data features. Data quantification includes two-category quantification and multi-category quantification. Two-category quantification targets attributes such as "gender" and "whether" in the data. For example, based on mobile phone signaling data recording the provinces, cities (domestic), and countries and regions (international), to analyze whether a person has visited other provinces, cities, or countries, two-category quantification can be used to replace the original two-category feature attributes with "0" or "1" respectively. Alternatively, fields such as "gender," "loan," and "mortgage" in individual provident fund data can be replaced with "0" or "1" respectively. Multi-category quantification refers to the quantification of additional feature attributes in addition to two-category quantification. For example, the "remittance status" of an individual provident fund is divided into three states: "normal remittance," "sealed," and "frozen." There is no obvious correlation between these states, so different values ​​can be assigned to each of these three states during the multi-category quantification process.

[0098] For example, for feature attributes such as "date," there's a clear order of magnitude between dates when viewed vertically. Therefore, this order of magnitude must be reflected in the time quantization process. Original time representations such as "December 20, 2020" and "2020.12.20" are uniformly quantized to "20201220." This not only uniformly quantifies date-related attribute features, but also preserves the logical relationships of the original data, minimizing information loss caused by data quantization. Data increment refers to adding new feature data to the original data and performing quantization processing. Simple data quantization cannot fully reflect the implicit information of the original data. The purpose of data increment processing is to enable the model to learn meaningful information implicit in the original data.

[0099] For example, simply quantizing the "start time" and "end time" of travel information recorded in mobile phone signaling data, and the "payment start date" and "payment end date" in personal provident fund data, only yields the quantified form of the two date attributes. However, simply subtracting the two attributes and then quantizing them yields a new attribute—"travel duration" or "payment duration." During model training, for specific Y values, the model may be insensitive to the original data attributes but sensitive to the new attribute. This is primarily because the new features fully reflect implicit information, making model training more accurate. Quantification is the core of data preprocessing. Both data quantization and data increment operations must be combined with the application scenario and business needs to select appropriate data quantization and data increment methods to achieve high-precision model training.

[0100] In this embodiment, data normalization is the final step in data preprocessing. Data normalization involves scaling the data so that it falls within a specific, small range. The goal of data normalization is to remove unit constraints from feature attributes and convert them into pure, unquantified values, facilitating weighted calculations of features with different unit magnitudes. Furthermore, in federated learning, data normalization can accelerate model training while effectively protecting data privacy.

[0101] In this example, due to the varying unit magnitudes of the various feature attributes, the numerical values ​​varied significantly, resulting in a zigzag gradient descent during model training and slow model iteration. In contrast, the gradient descent using standardized data is smoother, leading to faster and more accurate model iterations. Furthermore, the standardized and compressed data differs significantly from the original data, making it more suitable for federated learning applications from a privacy perspective. This effectively protects data while enabling faster model training.

[0102] In this embodiment, there are many methods for data standardization, including Min-max (maximum-minimum) standardization, z-score (z-score) standardization, decimal scaling standardization, etc. Considering that the data of each participant in the federated learning scenario is basically stable, the Min-max standardization method can be selected for processing, and the data can be uniformly compressed into the range of [-1, 1], and the original data can be converted into a scale-free hardened value, so that each indicator is on the same order of magnitude, so that it can participate in the comprehensive model training.

[0103] The preprocessing method for new task parties provided in this embodiment can effectively process the original data of all parties in federated learning, thereby improving the reliability of global task model training.

[0104] Continuing to refer to FIG4 , as an implementation of the method shown in FIG3 , the present application provides a federated learning device, which corresponds to the method embodiment shown in FIG3 , and can be applied to various electronic devices.

[0105] As shown in Figure 4, the federated learning device 400 of this embodiment may include: a receiving unit 401, a determining unit 402, and a training unit 403. The receiving unit 401 may be configured to receive a task request and task information sent by a display operation module. The task request is obtained by the demander by operating the multi-party data resource information and model algorithm name displayed on the display operation module. The determining unit 402 may be configured to determine the demander's required task based on the task request and task information, and to determine the validity of the required task. The training unit 403 may be configured to, in response to the determination result that the required task is valid, perform federated training on the models of the parties corresponding to the required task to obtain a global task model.

[0106] In some embodiments of the present invention, the above-mentioned task request includes: data resource information; the above-mentioned determination unit is further configured to: determine multiple task parties of the required task based on the task information; obtain encrypted resource data from each task party based on the data resource information; align the resource data and count the size of the aligned data; in response to the size of the data satisfying the set threshold, determine that the required task is valid.

[0107] In some embodiments of the present invention, the above-mentioned data resource information includes: label feature attributes and feature fields of the data, and the task request also includes: model algorithm name. Before determining that the required task is valid, the above-mentioned determination unit is further configured to: determine the task type of the required task based on the label feature attributes and feature fields of the data; detect whether the task type is applicable to the algorithm corresponding to the model algorithm name; and determine that the required task is valid in response to the task type being applicable to the algorithm corresponding to the model algorithm name.

[0108] In some embodiments of the present invention, the above-mentioned device also includes: a processing unit, which is configured to detect whether there is a new task party performing federated learning among the parties corresponding to the required task, and in response to detecting that there is a new task party among the parties corresponding to the required task, obtain the original data of the data resource information corresponding to the new task party based on a pre-set confidentiality agreement, and pre-process the original data.

[0109] The federated learning device provided in this embodiment first receives the task request and task information sent by the display operation module. Second, the determination unit 402 determines the task requested by the demander based on the task request and task information, and determines the validity of the task. Finally, the training unit 403, in response to the determination that the task is valid, performs federated training on the models of the parties corresponding to the task to obtain a global task model. Thus, the demander can quickly and conveniently transmit task information through the display operation module, and measure the validity of the task based on the task request and task information submitted by the user. This avoids data scarcity caused by blindly selecting partner data, which can lead to the inability to train a global task model. This fundamentally reduces the user's trial-and-error rate, saves human, material, and time resources in the federated learning process, and improves the data utilization rate of the federated learning platform.

[0110] The federated learning device provided in the embodiment of the present invention can be applied to any product with a display function, such as electronic paper, mobile phones, tablet computers, televisions, laptops, digital photo frames, wearable devices, or navigation devices.

[0111] In other embodiments of the present invention, a computer-readable storage medium storing a computer program is further provided, wherein the computer program, when executed by a processor, can implement the steps of the method shown in FIG. 1 to FIG. 2 .

[0112] The federated learning method provided by the present invention first receives a task request and task information sent by a display operation module; secondly, based on the task request and task information, determines the task required by the demander and determines the validity of the task; finally, in response to the determination that the task is valid, federated training is performed on the models of the parties corresponding to the task to obtain a global task model. Thus, the demander can quickly and conveniently transmit task information through the display operation module, and measure the validity of the task based on the task request and task information submitted by the user. This avoids data scarcity caused by blindly selecting partner data, which can lead to the inability to train a global task model. This fundamentally reduces the user's trial and error rate, saves human, material, and time resources in the federated learning process, and improves the data utilization rate of the federated learning platform.

[0113] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the apparatus and method according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0114] Unless the context clearly indicates otherwise, as used herein and in the appended claims, the singular includes the plural, and vice versa. Thus, when referring to the singular, the plural of the corresponding term is generally included. Similarly, the words "include" and "comprising" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it follows a group of terms, "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.

[0115] Further aspects and scope of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present invention can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended to be illustrative only and are not intended to limit the scope of the present invention.

[0116] Several embodiments of the present invention have been described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present invention without departing from the spirit and scope of the present invention. The scope of protection of the present invention is defined by the appended claims.

Claims

1. A federated learning system, wherein include: A display operation module, used for displaying data resource information and model algorithm names of multiple parties, receiving task information input by a demander and the operation of the demander on the data resource information and the model algorithm name, and generating a task request based on the operation; A data processing module is used to receive the task request and task information, determine the demand task of the demand party, and judge the validity of the demand task; in response to the demand task being valid, perform federated training on the models of the parties corresponding to the demand task to obtain a global task model, wherein the task information is information describing the demand task, and the data resource information includes: label feature attributes and feature fields of data, and the feature fields are used to represent the data features of the demand party; Based on the task request and task information, the demand party's demand task is determined, and the validity judgment of the demand task includes: based on the task information, multiple task parties of the demand task are determined; based on the data resource information, encrypted resource data is obtained from each task party; the resource data is aligned, and the size of the aligned data volume is counted; in response to the size of the data volume meeting the set threshold, the task type of the demand task is determined based on the tag feature attribute and the feature field; whether the task type is applicable to the algorithm corresponding to the model algorithm name; in response to the task type being applicable to the algorithm corresponding to the model algorithm name, the demand task is determined to be valid; The task types include: horizontal federation and vertical federation. The task type of the required task determined based on the label feature attributes and the feature fields includes: in response to the overlap of the feature fields of multiple parties reaching a certain threshold and the label feature attributes do not overlap, it is represented as the horizontal federation, otherwise it is the vertical federation.

2. The system according to claim 1, in, The data processing module is also used to send model training status data to the display operation module so as to display the model training status of each party in real time on the display operation module.

3. The system according to claim 1, further comprising: include: Early warning module; The early warning module is used to send warning information to the demander.

4. The system according to claim 1, in, The display operation module includes: A resource operation interface, used to display data resource information of multiple parties and display corresponding first operable controls around the data resource information of each party; A model algorithm interface, used to display at least one model algorithm name and display corresponding second operable controls around each model algorithm name; Task description interface, used to display the task name input box and the task content input box; The convergence operation interface determines the corresponding data resource information of each party based on the operation information of the demander on the first operable control of each party; determines the corresponding model algorithm name based on the operation information of the demander on the second operable control; and obtains the task information based on the information of the task name input box and the information of the task content; The request generation submodule generates task requests based on the aggregated data resource information and model algorithm name.

5. A federated learning method, the method include: Receiving a task request and task information sent by a display operation module, wherein the task request is obtained by the demander through operating the data resource information and model algorithm names of multiple parties displayed on the display operation module; Determine the required task of the demander based on the task request and the task information, and judge the validity of the required task; In response to the judgment result that the demand task is valid, the models of the parties corresponding to the demand task are federated trained to obtain a global task model, wherein the task information is information describing the demand task, and the data resource information includes: label feature attributes and feature fields of data, and the feature fields are used to represent data features of the demand party; Based on the task request and task information, the demand party's demand task is determined, and the validity of the demand task is judged, including: based on the task information, multiple task parties of the demand task are determined; based on the data resource information, encrypted resource data is obtained from each task party; the resource data is aligned, and the size of the aligned data volume is counted; in response to the size of the data volume meeting the set threshold, the task type of the demand task is determined based on the label feature attribute and the feature field; it is detected whether the task type is applicable to the algorithm corresponding to the model algorithm name; in response to the task type being applicable to the algorithm corresponding to the model algorithm name, the demand task is determined to be valid; the task types include: horizontal federation and vertical federation, and the task type of the demand task is determined based on the label feature attribute and the feature field, including: in response to the overlap of the feature fields of multiple parties reaching a certain threshold and the label feature attributes do not overlap, it is represented as the horizontal federation, otherwise it is the vertical federation.

6. The method according to claim 5, in, Before performing federated training on the models of the parties corresponding to the required tasks, the method further includes: Detect whether there is a new task party performing federated learning among the parties corresponding to the required task. In response to detecting that there is a new task party among the parties corresponding to the required task, obtain original data of data resource information corresponding to the new task party based on a pre-set confidentiality agreement, and pre-process the original data.

7. A federated learning device, wherein include: A receiving unit is configured to receive a task request and task information sent by the display operation module, wherein the task request is obtained by the demander operating the data resource information and model algorithm names of multiple parties displayed on the display operation module; A determination unit, configured to determine the required task of the demander based on the task request and the task information, and to make a validity judgment on the required task; The training unit is configured to, in response to a judgment result that the demand task is valid, perform federated training on the models of the parties corresponding to the demand task to obtain a global task model, wherein the task information is information describing the demand task, and the data resource information includes: a label feature attribute and a feature field of the data, and the feature field is used to represent the data feature of the demand party; Among them, based on the task request and task information, the demand party's demand task is determined, and the validity judgment of the demand task includes: based on the task information, multiple task parties of the demand task are determined; based on the data resource information, encrypted resource data is obtained from each task party; the resource data is aligned, and the size of the aligned data volume is counted; in response to the size of the data volume meeting the set threshold, the task type of the demand task is determined based on the tag feature attribute and the feature field; whether the task type is applicable to the algorithm corresponding to the model algorithm name; in response to the task type being applicable to the algorithm corresponding to the model algorithm name, the demand task is determined to be valid; The task types include: horizontal federation and vertical federation. The task type of the required task determined based on the label feature attributes and the feature fields includes: in response to the overlap of the feature fields of multiple parties reaching a certain threshold and the label feature attributes do not overlap, it is represented as the horizontal federation, otherwise it is the vertical federation.

8. A computer-readable storage medium storing a computer program, in, The computer program implements the steps of the method according to claim 5 or 6 when executed by a processor.

Citation Information

Patent Citations

  • Data processing method and device based on federated learning

    CN111985649A

  • Cross-industry data joint modeling method and system based on block chain and federal learning

    CN113836809A

  • Federal learning-based data processing system and method between bank and government affairs

    CN115330524A

  • Federal learning system, federal learning method and federal learning device

    CN116108934A

  • Federated learning method, computing device and storage medium

    US20220366320A1

Cited By

  • A real-time data processing method and system for multi-party risk labels

    CN119766418A

  • Training task scheduling method, server, storage medium and program product

    CN120851249A

  • Credit investigation data collaborative sharing method and system

    CN121037140A