Longitudinal federal learning training acceleration method, electronic equipment, storage medium and product

By adding feature selectors and adaptive adjustment algorithms to the client model of vertical federated learning, the problem of prolonged training time and inconsistent model convergence caused by heterogeneity is solved, efficient vertical federated learning training is achieved, the model training process is accelerated, and Improved resource utilization.

CN118627596AActive Publication Date: 2024-09-10WUHAN UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410764433.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

The heterogeneity of clients in vertical federated learning leads to problems of extended training time and inconsistent model convergence, especially when hardware computing power and data feature distribution are uneven.

Method used

Add a feature selector to the local model of each client, quantify the feature influence through model weights, use sigmoid approximation and binary mask to filter unimportant features, and update the feature selector during the gradient backpropagation process, combined with adaptive adjustment algorithm optimization feature dimension to balance training efficiency and model accuracy.

Benefits of technology

Without sacrificing model performance, it significantly improves training efficiency and reduces computing costs. It is suitable for heterogeneous distributed architectures and is scalable in other distributed architectures, achieving improved model training efficiency and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627596A
    Figure CN118627596A
Patent Text Reader

Abstract

The invention discloses a longitudinal federated learning training acceleration method, electronic equipment, a storage medium and a product. An entity comprises a server and a plurality of clients; adding a feature selector to the local model of each client; the feature selector quantifies the influence of corresponding features according to the model weight of the feature selector, then filters out unimportant features in a binary mask mode through sigmoid approximation, and rebuilds a local training data set; the model weight of the feature selector and the model weight of the local model of the client are updated together in the gradient reverse transmission process. The technology involved in the invention comprises a feature weight evaluation technology, a feature selection technology, a transmission control protocol thought-based adaptive feature quantity adjustment technology and the like. According to the method, the training efficiency can be improved on the premise that the accuracy of the model is hardly influenced, and meanwhile, the negative influence of a lagging person on model synchronization is resisted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer distributed learning technology, and relates to a vertical federated learning training acceleration method, electronic device, storage medium and product, and specifically to a vertical federated learning training acceleration method, electronic device, storage medium and product based on vertical federated learning and feature selection technology. Background Art

[0002] In order to solve the problems of privacy protection and "data islands", federated learning (FL) was proposed, which allows each client to train a global model without sharing the original training data to generate an efficient global model. According to the data distribution method, FL can be divided into horizontal federated learning (HFL) and vertical federated learning (VFL). In HFL, the training data of each client is divided by the sample ID of the data set, that is, the sample space is different but the data feature space is the same; in VFL, the training data held by different clients have the same sample ID, but the feature subsets do not intersect, that is, the data feature space is different but the sample space is the same. The VFL deployment diagram is shown below. Figure 1 As shown in Figure 2. Different from HFL, VFL is particularly suitable for joint modeling scenarios with multiple overlapping users and complementary features, and is widely used in the financial and medical fields.

[0003] However, a key challenge facing VFL is the heterogeneity of clients. On the one hand, due to hardware differences (i.e., system heterogeneity), clients may have different computing capabilities and communication bandwidths, which can lead to the straggler effect and prolong the training time. On the other hand, existing VFL works mainly focus on uniform feature distribution across clients, but in practice, the features of data are often distributed across clients in an unbalanced manner (i.e., statistical heterogeneity), which can adversely affect the convergence behavior of the model.

[0004] In order to improve the training efficiency of VFL in heterogeneous scenarios, the current solution is usually to adjust the number of local updates or learning rates of each client. However, different local update times between clients may cause the global model to converge to a stable point that does not match the objective function, resulting in inconsistent goals and thus affecting the model effect. Therefore, how to improve the training efficiency in a heterogeneous vertical federated learning system without affecting the model accuracy is a challenge that needs to be solved urgently. Summary of the invention

[0005] In order to solve the technical problem of selecting a suitable feature subset for heterogeneous clients to achieve a balance between training efficiency and model accuracy, the present invention provides a vertical federated learning training acceleration method, system and device.

[0006] The technical solution adopted by the method of the present invention is: a vertical federated learning training acceleration method, the entities include a server and a plurality of clients; a feature selector is added to the local model of each client; the feature selector quantifies the influence of the corresponding feature according to its model weight, and then filters out unimportant features in a binary mask manner through sigmoid approximation to reshape the local training data set; the model weight of the feature selector is updated together with the model weight of the local model of the client during the gradient backpropagation process.

[0007] Preferably, the feature selector is added to the local model of each client by adding an input layer that is one-to-one with the data feature x, and the output of the layer is w⊙x; wherein w is the weight vector of the data feature x, and ⊙ represents the vector dot product operation; by updating the weight vector w during the training process, it is converted into a sparse vector according to the value of the vector, and only the features corresponding to the non-zero weight values ​​in w will be selected for model training.

[0008] As a preference, the feature selector F for client k k , using a binary Bernoulli variable hardcoded as the feature selector F k The weight value F k,i , D k represents the feature dimension of client k; where where w i Represents the weight of the i-th feature, which is optimized during the training process.

[0009] As a preference, in the feature selector F for client k k After optimization, feature subset selection is performed based on probability, for each feature x k,i Assign a probability p k,i , the likelihood of feature selection is proportional to the probability.

[0010] Preferably, during the training process, the server caches the training performance indicators of each client, adaptively adjusts the feature dimensions for the client based on the cached information, and sends the results to the client;

[0011] Among them, the feature dimension D selected for client k k Adjust according to the following strategy:

[0012]

[0013] Among them, fk represents the rate at which the feature dimension decreases, and K represents the number of clients; represents the time required for client k in the i-th global round, a o Represents the front T ex The performance metric of the global model of longitudinal federated learning with global rounds, a n It represents the performance measurement indicator of the global model of longitudinal federated learning in the current global round, and T is a pre-set threshold.

[0014] The technical solution adopted by the electronic device of the present invention is: an electronic device, including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the vertical federated learning training acceleration method when executing the program.

[0015] The technical solution adopted by the storage medium of the present invention is: a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the vertical federated learning training acceleration method is implemented.

[0016] The technical solution adopted by the product of the present invention is: a computer program product, including a computer program, which implements the vertical federated learning training acceleration method when executed by a processor.

[0017] Compared with the prior art, the beneficial effects of the present invention include:

[0018] (1) The present invention improves the model training efficiency without sacrificing model performance based on the imbalanced distribution of client data features and differences in computing power.

[0019] (2) The efficient selection algorithm of important features proposed in the present invention adds a feature selector to the local model of each client. The feature selector quantifies the influence of the corresponding feature according to its model weight, and then filters out unimportant features in a binary mask manner through sigmoid approximation. The model weight of the feature selector is updated together with the model weight of the client's local model during the gradient back propagation process, and the additional computational cost brought about is negligible.

[0020] (3) The present invention uses an adaptive adjustment algorithm to further optimize the balance between model accuracy and training efficiency. The algorithm adjusts the number of selected features in an adaptive manner. When the server detects different computing times of heterogeneous clients, the algorithm slowly reduces the feature dimensions of the heterogeneous clients, thereby improving training efficiency and client resource utilization while ensuring the stability of model training performance.

[0021] (4) The vertical federated learning training acceleration method proposed in the present invention is not only applicable to heterogeneous distributed architectures, but can also be extended to other distributed architectures, such as homogeneous and asynchronous, and has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The technical solution of the present invention is further described below using embodiments and specific implementation methods. In addition, in the process of describing the technical solution, some drawings are also used. For those skilled in the art, other drawings and the intention of the present invention can also be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic diagram of general vertical federated learning deployment in the prior art;

[0024] Figure 2 A schematic diagram of the method principle of an embodiment of the present invention;

[0025] Figure 3 Schematic diagram of the experimental effect of an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0027] First, we give the formal definition of the symbols involved in the tth round of training of this system:

[0028] Client Collection

[0029] A disjoint subset of client features {X k |i=1,2,3,…,K};

[0030] Local (linear or nonlinear) embedding function k (·);

[0031] Local feature selector {F i |i=1,2,3,…,K};

[0032] Low-dimensional embedding vector of the client

[0033] Please see Figure 2This embodiment provides a method for accelerating vertical federated learning training, in which entities include a server and several clients; a feature selector is added to the local model of each client; the feature selector quantifies the influence of the corresponding feature according to its model weight, and then filters out unimportant features in a binary mask manner through sparse processing to reshape the local training data set; the model weight of the feature selector is updated together with the model weight of the local model of the client during the gradient backpropagation process.

[0034] In one embodiment, in order to improve the efficiency of the feature weight evaluation process, a feature selection layer is embedded in the neural network architecture to select important features at a low cost and reshape the local training data set. The basic principle of this method is to add an input layer that is one-to-one with the data features, so the output of this layer is w⊙x; where w is the weight vector of the data feature x, and ⊙ represents the vector dot product operation. By updating the weight vector w during the training process, it can be converted into a sparse vector according to the value of the vector, and only the features corresponding to the non-zero weight values ​​in w will be selected for model training.

[0035] In one embodiment, in order to reduce the cost of model training, including computational cost and communication cost, the feature selector F must be updated while training the VFL model. k Considering F k Use a hard-coded binary Bernoulli variable, i.e. For the feature selector F k The binary Bernoulli variable F in k,i Smoothing is performed and it is approximated as where w i Represents the weight of the i-th feature, which can be optimized during the training process D k represents the feature dimension of client k. To ensure that the selector is initialized to Choose a large constant vector as the initial value of w;

[0036] In one embodiment, when the feature selector F for client k k After optimization, feature subset selection is performed based on probability, for each feature x k,i Assign a probability p k,i , considering the weight value F k,i The higher the value, the more important the corresponding feature may be, so the probability p of selecting this feature is k,i The higher it is.

[0037] Due to the contradiction between training efficiency and model accuracy brought by feature selection, in one embodiment, an adaptive feature quantity adjustment algorithm is designed to achieve a balance between model accuracy and training efficiency. Considering that only the server can obtain the time spent by the client on training and communication in each global training round, as well as the accuracy of the global model. Based on this information, the server adaptively adjusts the selected feature dimensions for each client participating in global model training through the following two processes:

[0038] 1) Cache the average training performance of the client. The training process of each global training round is divided into two phases: client calculation phase and client-server communication phase. In the i-th global round, use represents the calculation time, represents the communication time required for client k to transmit the locally calculated low-dimensional embedding vector to the server. Usually, With the characteristic dimension D k There is a certain proportional relationship: And for Since the dimensions of the low-dimensional embedding vectors finally calculated by each client are not significantly different, it is assumed that the communication time of each client is the same in each global round i, which is In order to improve the training efficiency and client resource utilization during model training, the following goals are aimed at achieving: After all clients have communicated with the server, the server can cache the training performance of each client.

[0039] 2) Adaptively adjust the selected feature dimensions. When the server detects different computation times of heterogeneous clients, the algorithm will slowly reduce the feature dimensions of the heterogeneous clients, improving the training efficiency and client resource utilization while ensuring the stability of the model training performance.

[0040] Specifically, during the training process, each T ex The feature dimension D selected by client k in a global round k Adjust according to the following strategy:

[0041]

[0042] Among them, f k represents the rate at which the feature dimension decreases, and K represents the number of clients; represents the time required for client k in the i-th global round, a o Represents the front T ex The performance metric of the global model of longitudinal federated learning with global rounds, a nrepresents the performance measurement indicator of the global model of longitudinal federated learning in the current global round, and T is a pre-set threshold. When there is a significant difference in the value, in order to make the client feature dimension decrease more slowly and thus ensure the stability of the global model, a larger f should be determined. k If the server observes that the performance of the model has dropped by more than the preset threshold T, the client can appropriately increase the feature dimension to ensure the model performance of the global model finally obtained. The above-mentioned adaptive feature dimension adjustment process not only ensures the performance of the model, but also significantly improves the training efficiency, while reducing the idle time of the client during the training process, thereby improving the utilization of the client's computing resources.

[0043] In one embodiment, the method comprises the following steps:

[0044] Step 1: Local training and feature weight evaluation;

[0045] At the beginning of the tth round of training, after each client receives the gradients of the feature dimension and the low-dimensional embedding vector from the server, it updates the local model E times according to the gradients; at the same time, it updates the local feature selector to evaluate the weight of the feature;

[0046] Step 2: The client selects an important feature subset through a local feature selector for forward propagation, calculates a local low-dimensional embedding vector and sends it to the server; in each round of training, the server caches the training performance indicators of each client, adaptively adjusts the feature dimension for the client based on the cached information, and sends the result to the client;

[0047] Step 3: Aggregate low-dimensional embedding vectors and calculate;

[0048] After receiving the low-dimensional embedding vector from the client, the server performs a forward pass to calculate the loss l(Θ) of the model training, and then performs a backward pass to calculate the server model And the gradient of the embedding vector, and send the gradient of the embedding vector to the client, and perform E updates according to the gradient of the model parameters.

[0049]

[0050]

[0051] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the longitudinal federated learning training acceleration method when executing the program.

[0052] This embodiment also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the vertical federated learning training acceleration method is implemented.

[0053] This embodiment also provides a computer program product, including a computer program, which implements the longitudinal federated learning training acceleration method when executed by a processor.

[0054] The technologies involved in the present invention include feature weight evaluation technology, feature selection technology, adaptive feature quantity adjustment technology, etc. The embodiment of the present invention conducts experiments on the CIFAR10 dataset, and the benchmark algorithm is as follows:

[0055] FedBCD: Federated random block coordinate descent training algorithm, which uses all features for model training when the number of client features is unbalanced.

[0056] Please see Figure 3 The embodiment of the present invention can resist the negative impact of lagging behind on model training and improve training efficiency (achieving 55%-78% end-to-end acceleration) without affecting the accuracy of the model (the reduction in model performance does not exceed 4%).

[0057] It should be understood that the embodiments described above are part of the embodiments of the present invention, rather than all of the embodiments. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.

[0058] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.

Claims

1. A method for accelerating vertical federated learning training, the entity comprising a server and a plurality of clients; characterized in that: Add feature selectors to each client's local model; The feature selector quantifies the influence of the corresponding features according to its model weight, and then filters out unimportant features in a binary mask manner through sigmoid approximation to reshape the local training data set; the model weight of the feature selector is updated together with the model weight of the local model of the client during the gradient backpropagation process.

2. The vertical federated learning training acceleration method according to claim 1, characterized in that: The feature selector is added to the local model of each client, and an input layer is added that is one-to-one with the data feature x, and the output of the input layer is w⊙x; wherein w is the weight vector of the data feature x, and ⊙ represents the vector dot product operation; by updating the weight vector w during the training process, it is converted into a sparse vector according to the value of the vector, and only the features corresponding to the non-zero weight values ​​in w will be selected for model training.

3. The vertical federated learning training acceleration method according to claim 1, characterized in that: Feature selector F for client k k , using a binary Bernoulli variable hardcoded as the feature selector F k The weight value F k,i , D k represents the feature dimension of client k; where where w i Represents the weight of the i-th feature, which is optimized during the training process.

4. The vertical federated learning training acceleration method according to claim 1, characterized in that: In the feature selector F for client k k After optimization, feature subset selection is performed based on probability, for each feature x k,i Assign a probability p k,i , the likelihood of feature selection is proportional to the probability.

5. The method for accelerating vertical federated learning training according to any one of claims 1 to 4, characterized in that: During the training process, the server caches the training performance indicators of each client, adaptively adjusts the feature dimensions for the client based on the cached information, and sends the results to the client; Among them, the feature dimension D selected for client k k Adjust according to the following strategy: Among them, f k represents the rate at which the feature dimension decreases, and K represents the number of clients; represents the time required for client k in the i-th global round, a o Represents the front T ex The performance metric of the global model of longitudinal federated learning with global rounds, a n It represents the performance measurement indicator of the global model of longitudinal federated learning in the current global round, and T is a pre-set threshold.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the longitudinal federated learning training acceleration method as described in any one of claims 1 to 5.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the longitudinal federated learning training acceleration method as described in any one of claims 1 to 5.

8. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, it implements the longitudinal federated learning training acceleration method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data protection method based on WOE mask in multi-party longitudinal federated learning LightGBM training

    CN113779608A

  • Client selection method for edge-side federal learning under heterogeneous data

    CN114385376A

  • Safe feature selection method applied to longitudinal federated learning

    CN114726496A

  • Improved transverse synchronous federated learning aggregation acceleration method

    CN116629350A

  • Method and device for constructing cross-island heterogeneous federated learning system based on homomorphic encryption

    CN117892322A