Privacy leakage detection method and device based on multi-objective optimization
By introducing a multi-objective optimization algorithm into federated learning and selecting target clients to participate in training, the cross-architecture problem of privacy leakage detection in a heterogeneous IoT environment is solved, the accuracy and efficiency of the detection model are improved, and the stability of the model is ensured. sex and resource utilization.
Patent Information
- Application Number
- CN202411171669.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-09-20
AI Technical Summary
In a heterogeneous IoT environment, how to effectively detect and prevent privacy leaks becomes a challenge, especially due to the diversity of device architectures, which makes it difficult for existing technologies to detect cross-architecture privacy leaks.
A privacy leak detection method based on multi-objective optimization is adopted, and the target clients participating in the training are selected through federated learning. The optimization goals include minimizing architecture selection bias, maximizing learning effectiveness and minimizing time consumption to ensure the cross-architecture generalization ability of the model. and training stability.
It improves the accuracy and efficiency of the privacy leakage detection model, ensures the generalization ability of the model in different architectural environments, reduces resource waste, and optimizes detection performance.
Smart Images

Figure CN118673534A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things security technology, and in particular to a privacy leakage detection method and device based on multi-objective optimization. Background Art
[0002] In recent years, technologies such as 5G, artificial intelligence, cloud computing and big data have continuously accelerated the process of interconnection of all things. The Internet of Things (IoT) has significantly changed the development model of many public fields.
[0003] With the popularization of the Internet of Things in various industries, privacy leaks are increasingly occurring on a large number of IoT devices that lack adequate protection.
[0004] Due to the diversity of device architectures (including but not limited to instruction set architectures, processor architectures, etc.), how to implement privacy leakage detection in heterogeneous Internet of Things has become a current research hotspot. Summary of the invention
[0005] In view of this, the present application provides a privacy leakage detection method and device based on multi-objective optimization.
[0006] Specifically, the present application is implemented through the following technical solutions: According to a first aspect of an embodiment of the present application, a privacy leakage detection method based on multi-objective optimization is provided, comprising: When it is determined that the training conditions of the privacy leakage detection model are met, a target client participating in federated learning is selected from the candidate client set by using a multi-objective optimization algorithm according to the acquired state information of each candidate client in the candidate client set; wherein the candidate client set includes clients of multiple different architectures; the optimization goal in the multi-objective optimization algorithm includes minimizing the architecture selection bias, and the optimization goal also includes: maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. According to the target client, a privacy leakage detection model is trained using a federated learning method to obtain a trained privacy leakage detection model; wherein the trained privacy leakage detection model is used to perform privacy leakage detection on IoT devices.
[0007] According to a second aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method provided in the first aspect.
[0008] The privacy leakage detection method based on multi-objective optimization in the embodiment of the present application takes into account the heterogeneity of IoT devices. When using federated learning to train a privacy leakage detection model for IoT devices, a multi-objective optimization algorithm is introduced to select target clients participating in federated learning. The optimization goal of the multi-objective optimization algorithm may include minimizing the architecture selection bias. By minimizing the architecture selection bias, the number of clients of each architecture participating in the training can be as balanced as possible to ensure the model's cross-architecture generalization ability. In addition, the optimization goal of the multi-objective optimization algorithm may also include maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. Maximizing learning effectiveness can improve the accuracy of the trained model, minimizing time consumption can improve the model training efficiency, and maximizing training stability can improve the model training efficiency and reduce resource waste. Through the above-mentioned target client selection method, the performance of the trained model can be optimized, and then the detection performance when using the trained privacy leakage detection model for detection can be optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flowchart of a privacy leakage detection method based on multi-objective optimization is shown as an exemplary embodiment of the present application; Figure 2 A schematic diagram of a cross-architecture IoT privacy leakage detection system architecture is shown as an exemplary embodiment of the present application; Figure 3 A schematic diagram of an implementation process of cross-architecture Internet of Things privacy leakage detection shown as an exemplary embodiment of the present application; Figure 4 A schematic diagram of the structure of a privacy leakage detection device based on multi-objective optimization is shown as an exemplary embodiment of the present application; Figure 5 The figure is a schematic diagram of the hardware structure of an electronic device shown as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0010] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0011] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0012] In order to enable those skilled in the art to better understand the technical solution provided in the embodiments of the present application, the relevant implementation of federated learning is briefly described below.
[0013] Federated learning is a distributed machine learning method that aims to achieve model training and inference while protecting data privacy by performing localized model training on devices or distributed data sources and aggregating the updated model parameters.
[0014] The specific steps for model training using federated learning can be as follows: 1) Determine the federated model: Define the type and structure of the model to be trained in federated learning. The model can include various machine learning models such as neural networks and decision trees.
[0015] 2) Initialize model parameters: Before starting training, you need to initialize the model parameters. For example, you can use random initialization to initialize the model parameters.
[0016] 3) Client selection: Determine the clients participating in federated learning; each client holds a portion of data for local training.
[0017] 4) Local model training: Each client uses local data to train the model. This process is performed locally on the client and does not involve data sharing. The training process can use various optimization algorithms, such as stochastic gradient descent (SGD).
[0018] 5) Model parameter aggregation: After local training is completed, each client sends the updated model parameters to the centralized server.
[0019] After receiving the updated parameters from each client, the centralized server aggregates these parameters. Common aggregation methods include simple averaging, weighted averaging, or more complex methods such as FedAvg.
[0020] 6) Update the global model: After the aggregation is completed, the generated global model parameters will be sent to each client participating in the next round of training for the next round of local training.
[0021] 7) Repeated iteration: The above steps will be iteratively executed multiple times until the preset stopping condition is reached, such as reaching a certain number of training rounds or model performance convergence.
[0022] 8) Model evaluation and deployment: After training is completed, the final global model can be evaluated and deployed and used where needed.
[0023] In order to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application are further described in detail below with reference to the accompanying drawings.
[0024] See also Figure 1 , which is a flowchart of a privacy leakage detection method based on multi-objective optimization provided in an embodiment of the present application. Exemplarily, the privacy leakage detection method based on multi-objective optimization can be applied to a centralized server in a federated learning architecture, such as Figure 1 As shown, the privacy leakage detection method based on multi-objective optimization may include the following steps: Step S100: When it is determined that the training conditions of the privacy leakage detection model are met, a target client participating in federated learning is selected from the candidate client set by using a multi-objective optimization algorithm based on the acquired status information of each candidate client in the candidate client set; wherein the candidate client set includes clients of various different architectures; the optimization objectives in the multi-objective optimization algorithm include minimizing the architecture selection bias, and the optimization objectives also include: maximizing learning effectiveness, minimizing time consumption, and maximizing at least one of training stability.
[0025] In the embodiments of the present application, taking into account the heterogeneity of IoT devices, in order to optimize the detection effect of privacy leakage detection for IoT devices, it is necessary to ensure the generalization ability of the privacy leakage detection model across architectures, and to ensure that the privacy leakage detection model can have a good detection effect on IoT devices of different architectures.
[0026] Based on this, when using federated learning to train the privacy leakage detection model, when selecting clients to participate in the training, it is necessary to try to ensure that clients of different architectures can participate in the training, and that the number of clients of each architecture participating in the training does not deviate too much.
[0027] Accordingly, in an embodiment of the present application, a multi-objective optimization algorithm is proposed to select a client (which may be referred to as a target client) to participate in federated learning.
[0028] Exemplarily, the optimization goal in the multi-objective optimization algorithm may include minimizing the architecture selection bias, and by minimizing the architecture selection bias, the generalization ability of the model in a cross-architecture environment is improved.
[0029] Exemplarily, architecture selection bias is used to characterize the difference in the number of target clients of different architectures participating in federated learning.
[0030] Minimizing architectural bias aims to minimize the difference in the number of target clients of different architectures participating in federated learning, making the number of target clients of different architectures participating in federated learning more balanced and improving the generalization ability of the model in a cross-architecture environment.
[0031] When it is determined that the training conditions of the privacy leakage detection model are met, the target client participating in federated learning can be selected from the candidate client set by using a multi-objective optimization algorithm based on the status information of each candidate client in the obtained candidate client set.
[0032] Exemplarily, satisfying the privacy leakage detection model training condition may include requiring initial training of the privacy leakage detection model, or the privacy leakage detection model satisfying an update condition.
[0033] For example, security managers can pay attention to the latest developments in the field of cybersecurity, especially new privacy leakage patterns and data attack technologies. When new threats or attack patterns are discovered, they can confirm whether the detection model needs to be updated to respond to new data leakage and data attack threats.
[0034] Accordingly, when the centralized server detects the privacy leakage detection model update instruction, it determines that the privacy leakage detection model needs to be updated and trained to meet the privacy leakage detection model training conditions.
[0035] Exemplarily, the optimization goal of the multi-objective optimization algorithm may include, in addition to minimizing the architecture selection bias, at least one of maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. The learning effect of the client can be characterized by the detection accuracy of the privacy leakage detection model (which can be called a local model or local model) trained locally on the client. By maximizing the learning effect, the accuracy of the detection model can be improved.
[0036] Exemplarily, for any target client selection scheme, the learning effectiveness of the target client selection scheme may be determined based on the sum of the detection accuracy rates of the local models of the target clients in the selection scheme.
[0037] The time consumption may include the time it takes for the client to communicate with the central server and the time it takes for the client to perform model training locally.
[0038] By minimizing time consumption, training efficiency can be improved.
[0039] Training stability can be used to characterize the success rate of the client completing training. It means that the client can perform training relatively stably and will not be unable to continue or fail due to lack of computing resources or system crash.
[0040] Exemplarily, the higher the training stability, the higher the success rate of the selected client completing the training.
[0041] By maximizing training stability, resource waste during training can be reduced.
[0042] Step S110: According to the target client, a privacy leakage detection model is trained by using a federated learning method to obtain a trained privacy leakage detection model; wherein the trained privacy leakage detection model is used to perform privacy leakage detection on IoT devices.
[0043] In an embodiment of the present application, when the target client participating in federated learning is determined in the above manner, the privacy leakage detection model can be trained using the federated learning method based on the selected target client to obtain a trained privacy leakage detection model.
[0044] It should be noted that, in an embodiment of the present application, model training using a federated learning method includes multiple rounds. For each round, the target client can be selected in the manner described in step S100, that is, the target clients participating in federated learning may be different for different rounds of training; or, the target client can be selected once in the manner described in S100, that is, the target clients participating in federated learning are the same for different rounds of training.
[0045] For example, when the target client participating in the privacy leakage detection model is determined, the specific implementation of model training using the federated learning method based on the target client can refer to the relevant instructions in the above-mentioned federated learning process, and the embodiments of the present application will not go into details.
[0046] In an embodiment of the present application, when the model training is completed, for example, the number of training rounds reaches a preset maximum number of training rounds, or the model performance converges, the trained privacy leakage detection model can be used to perform privacy leakage detection on IoT devices.
[0047] It can be seen that in Figure 1In the method flow shown, taking into account the heterogeneity of IoT devices, when using federated learning to train a privacy leakage detection model for IoT devices, a multi-objective optimization algorithm is introduced to select target clients participating in federated learning. The optimization goal of the multi-objective optimization algorithm may include minimizing the architecture selection bias. By minimizing the architecture selection bias, the number of clients of each architecture participating in the training can be balanced as much as possible to ensure the model's cross-architecture generalization ability; in addition, the optimization goal of the multi-objective optimization algorithm may also include maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. Maximizing learning effectiveness can improve the accuracy of the trained model, minimizing time consumption can improve model training efficiency, and maximizing training stability can improve model training efficiency and reduce resource waste. Through the above-mentioned target client selection method, the performance of the trained model can be optimized, and then the detection performance when using the trained privacy leakage detection model for detection can be optimized.
[0048] In some embodiments, for any target client selection scheme, the architecture selection bias is determined by: Determine the number of target clients of each architecture according to the target clients selected by the selection scheme; Determine the current selection bias for each architecture based on the number of target clients for each architecture; The architecture selection bias of the selection scheme is determined based on the current selection bias of each architecture.
[0049] Exemplarily, for any target client selection scheme, the architecture selection bias may be determined according to the number of target clients of each architecture in the target clients selected by the selection scheme.
[0050] For example, based on the number of target clients of each architecture, the architecture with the largest number of target clients (which may be called the target architecture) may be determined, and the absolute value of the difference between the number of target clients of each architecture and the number of clients of the target architecture may be determined as the corresponding selection deviation.
[0051] For example, assuming that the selected target clients include clients of three different architectures, the number of target clients of architecture 1 is 10, the number of target clients of architecture 2 is 7, and the number of target clients of architecture 3 is 8, then the current selection bias of architecture 1 is 0, the current selection bias of architecture 2 is 3, and the current selection bias of architecture 3 is 2.
[0052] Exemplarily, the architecture selection bias of the selection scheme may be determined based on the current selection bias of each architecture.
[0053] For example, the sum of the current selection biases of each architecture can be determined as the architecture selection bias of the selection scheme.
[0054] Still taking the previous example, the architecture selection bias of this selection scheme can be 5 (0+2+3=5).
[0055] In one example, model training using a federated learning approach includes multiple rounds, and for each round, a target client is selected anew; Determining the architecture selection bias of the selection scheme based on the current selection bias of each architecture may include: For the first round, the current selection bias of each architecture is determined as the architecture selection bias of the selection scheme; For non-first rounds, the architecture selection bias of the selection scheme is determined based on the current selection bias of each architecture and the historical selection bias of each architecture.
[0056] For example, in order to optimize the effect of federated learning, the target client can be reselected in each round of federated learning.
[0057] In the first round of federated learning, for any target client selection scheme, the selection bias of each architecture in the selection scheme can be determined as the architecture selection bias of the selection scheme.
[0058] In a non-first round of federated learning, for any target client selection scheme, the architecture selection bias of the selection scheme can be determined based on the current selection bias of each architecture and the historical selection bias of each architecture.
[0059] Exemplarily, in a non-first round of federated learning, for any target client selection scheme, the current selection bias of each architecture and the historical selection bias of each architecture can be used to determine the total selection bias of each architecture.
[0060] For example, suppose that in the third round of federated learning, for any target client selection scheme, the current selection bias of architecture 1 is pc1x, the selection bias of architecture 2 in the first round (which can be determined based on the final target client selection scheme in the first round) is pc1, and the selection bias of architecture 3 in the second round is pc2, then the total selection bias of the architecture is pc1x+pc2+pc3.
[0061] Exemplarily, the architecture selection bias of the selection scheme may be determined based on the total selection bias of each architecture.
[0062] For example, the maximum value of the total selection deviation of each architecture can be determined, and the difference between the total selection deviation of each architecture and the maximum value can be determined, and the sum of the differences corresponding to each architecture is determined as the architecture selection deviation of the selection scheme.
[0063] It can be seen that by maintaining the historical selection bias, the historical selection bias can be used to measure the preference for different architecture devices during model training. It is calculated by recording the number of times each architecture was selected in the previous round and used to guide the device selection in subsequent rounds to ensure that the model can generalize on different architectures.
[0064] Exemplary effects of historical selection bias may include: 1. Avoid architecture selection bias: If only devices of a specific architecture are selected during model training, the model will overfit to the characteristics of that architecture, thereby reducing the detection performance on other architectures. Historical selection bias can help identify and avoid this bias, ensuring that the model can learn the characteristics of different architectures fairly.
[0065] 2. Improve generalization ability: By selecting devices with different architectures during training, the model can learn more general features, thereby improving its detection performance on different architectures. This is crucial for cross-architecture privacy leakage detection, because the characteristics of private information on different architectures may be different.
[0066] 3. Balanced architecture selection: Historical selection bias can help ensure that devices with different architectures are reasonably selected during model training, thereby avoiding over- or under-use of certain architectures. This helps improve the efficiency and stability of model training.
[0067] In some embodiments, when the optimization goal includes maximizing the learning effect, for any target client selection scheme, the learning effect is determined based on the historical average accuracy of the target client selected by the selection scheme, and is positively correlated with the historical average accuracy of the target client; wherein: For any target client, if the target client has not participated in training, the historical average accuracy of the target client is the initial accuracy of the target client; wherein the initial accuracy of the target client is a set value; In the case that the target client has completed at least one round of training, the historical average accuracy of the target client is determined according to the accuracy of the target client in the latest round and the historical average accuracy before the latest round.
[0068] Exemplarily, the learning performance of the client may be characterized based on the historical average accuracy of the client.
[0069] For any target client selection scheme, the learning effect is determined according to the historical average accuracy of the target clients selected by the selection scheme, and is positively correlated with the historical average accuracy of the target clients.
[0070] For any target client, when the target client has not participated in training, the historical average accuracy of the target client is the initial accuracy of the target client.
[0071] Exemplarily, the initial accuracy of the target client is a set value, for example, 100%.
[0072] In the case that the target client has completed at least one round of training, the historical average accuracy of the target client is determined according to the accuracy of the target client in the latest round and the historical average accuracy before the latest round.
[0073] For example, the latest round accuracy of the target client and the historical average accuracy before the latest round may be weighted averaged to obtain the latest historical average accuracy of the target client.
[0074] In the process of selecting the target client in the i-th (i≥2) round, the latest round may be the i-1-th round.
[0075] The weighted coefficient for weighted averaging the latest round accuracy of the target client and the historical average accuracy before the latest round can be preset.
[0076] Exemplarily, the weighted coefficient of the latest round of accuracy may be greater than the weighted coefficient of the historical average accuracy before the latest round.
[0077] As training progresses, the client's historical average accuracy can be continuously updated to more accurately reflect the client's training effect and serve as an important reference for client selection.
[0078] The continuous update of the historical average accuracy ensures that the client selection is closer to the actual training situation, which helps the model select better clients for federated learning, thereby improving the overall training effect.
[0079] In some embodiments, when the optimization goal includes minimizing time consumption, for any target client selection scheme, the time consumption is determined by: Determine the time consumption for each target client to complete a round of training according to the target client selected by the selection scheme; The time consumption of the target client with the longest time consumption among the target clients selected by the selection scheme is determined as the time consumption of the target client selection scheme.
[0080] Exemplarily, the time consumed by the target client to complete a round of training may include communication time consumption and local processing time consumption.
[0081] Exemplarily, the communication time consumption may be determined according to the bandwidth allocated to the target client, the signal status, and the network parameters.
[0082] Exemplarily, the local processing time consumption may be determined based on one or more of the size of the training data set of the target client, the number of CPU cycles required per unit data set, the CPU cycle frequency, and the occupancy status.
[0083] Exemplarily, the occupancy status refers to how much resources are occupied by the task currently being performed by the device.
[0084] Exemplarily, occupancy status may generally include: 1. CPU usage: how much CPU resources are occupied by the tasks currently being performed on the device.
[0085] 2. Memory usage: how much memory resources are occupied by the tasks currently being performed on the device.
[0086] 3. Bandwidth occupancy rate: how much network bandwidth resources are occupied by the tasks currently being performed by the device.
[0087] Exemplarily, for any target client selection scheme, the time consumption for each target client to complete a round of training can be determined respectively, and the time consumption of the target client with the longest time consumption among the target clients selected by the selection scheme is determined as the time consumption of the target client selection scheme.
[0088] In some embodiments, when the optimization goal includes maximizing training stability, the training stability of the target client is determined based on one or more of the available bandwidth, available computing resources, maintenance status, and entity attributes of the target client.
[0089] For example, the basic mechanism of federated learning is to perform local training on the client side and then aggregate the model on the server side. It inherently requires the client to remain stable for a considerable period of time to support the completion of model training. Clients with potential instability (such as lack of computing resources or system crashes) may cause resource waste and delays in the experimental process because they cannot support network training, resulting in abandoning the current learning round.
[0090] Therefore, improving the stability of client training can effectively improve model training efficiency and reduce resource waste.
[0091] Exemplarily, the training stability of the target client is determined based on one or more of the available bandwidth, available computing resources, maintenance status, and entity attributes of the target client.
[0092] For example, if the available bandwidth and computing resources are sufficient, the maintenance is normal, and the device hardware (physical attributes) is reliable, the client's training stability is high.
[0093] In some embodiments, the above-mentioned selecting a target client participating in federated learning from the candidate client set based on the acquired state information of each candidate client in the candidate client set by using a multi-objective optimization algorithm may include: According to the obtained status information of each candidate client in the candidate client set and the preset constraints, a target client participating in federated learning is selected from the candidate client set using a multi-objective optimization algorithm; The preset constraints include one or more of the following: The number of target clients, the minimum bandwidth ratio of the target clients, the minimum resource redundancy of the target clients, and the objective function weight; the objective function includes optimization objective functions corresponding to each optimization objective respectively.
[0094] Exemplarily, the objective function may include minimizing the architecture selection bias function. The objective function also includes at least one of maximizing the learning achievement function, minimizing the time consumption function, and maximizing the training stability function.
[0095] Exemplarily, objective function weights are used to characterize the importance of different objective functions in the optimization process, and the larger the weight, the higher the importance.
[0096] In one example, the preset constraints include: the number of target clients, the minimum bandwidth ratio of the target clients, the minimum resource redundancy of the target clients, and the objective function weight; The above-mentioned method of selecting a target client participating in federated learning from the candidate client set based on the obtained status information of each candidate client in the candidate client set and the preset constraints using a multi-objective optimization algorithm may include: Determining a candidate target client selection scheme according to the number of target clients, the minimum bandwidth ratio of the target clients, and the minimum resource redundancy of the target clients; wherein the number of candidate clients in any candidate target client selection scheme is consistent with the number of target clients, and the candidate clients meet the minimum bandwidth ratio and minimum resource redundancy requirements; According to the objective function weight, the optimal target client selection scheme is determined from the candidate target client selection schemes using a multi-objective optimization algorithm; Determine the target clients participating in federated learning based on the optimal target client selection plan.
[0097] Exemplarily, the preset constraint conditions include: the number of target clients, the minimum bandwidth ratio of the target clients, the minimum resource redundancy of the target clients, and the objective function weight.
[0098] The candidate target client selection scheme may be determined according to the number of target clients, the minimum bandwidth ratio of the target clients, and the minimum resource redundancy of the target clients.
[0099] The number of candidate clients in any candidate target client selection scheme is consistent with the number of target clients, and the candidate clients meet the minimum bandwidth ratio and minimum resource redundancy requirements.
[0100] When the candidate target client selection schemes are determined, the optimal target client selection scheme can be determined from the candidate target client selection schemes based on the objective function weights and using a multi-objective optimization algorithm. The target clients participating in federated learning can then be determined based on the optimal target client selection scheme.
[0101] As an example, the objective function includes: minimizing the architecture selection bias function; the objective function also includes one or more of maximizing the learning effectiveness function, minimizing the time consumption function, and maximizing the training stability function.
[0102] The above-mentioned method of determining the optimal target client selection scheme from the candidate target client selection schemes based on the objective function weight and using the multi-objective optimization algorithm may include: According to the objective function weight, determine the designated objective function with the largest objective function weight; Determine respectively the specified objective function value corresponding to the specified objective function and the non-specified objective function value corresponding to the non-specified objective function of each candidate target client selection scheme; The candidate target client selection scheme whose non-specified objective function value meets the requirements and whose specified objective function value is optimal is determined as the optimal target client selection scheme.
[0103] Exemplarily, the objective function corresponds to an optimization goal.
[0104] For example, if the optimization goal includes maximizing learning effectiveness, the objective function may include maximizing the learning effectiveness function.
[0105] For another example, if the optimization goal includes minimizing time consumption, the objective function may include minimizing the time consumption function.
[0106] Exemplarily, based on the objective function weights of the objective functions, the objective function with the largest objective function weight may be determined as the designated objective function, and the remaining objective functions may be determined as non-designated objective functions.
[0107] When the candidate target client selection schemes are determined in the above manner, for any candidate target client selection scheme, the function value of the specified objective function (which may be referred to as the specified objective function value) corresponding to the candidate target client selection scheme and the function value of the non-specified objective function (which may be referred to as the non-specified objective function value) corresponding to the non-specified objective function of the candidate target client selection scheme can be determined, and the candidate target client selection scheme whose non-specified objective function value meets the requirements and whose specified objective function value is optimal is determined as the optimal target client selection scheme.
[0108] For example, assuming that the specified objective function is to minimize the architecture deviation function, and the non-specified objective functions include maximizing the learning effectiveness function, minimizing the time consumption function, and maximizing the training stability function, then for a candidate target client selection scheme, the minimum architecture deviation function value (that is, the above-mentioned specified objective function value), the maximum learning effectiveness function value, the minimum time consumption function value, and the maximum training stability function value of the candidate target client selection scheme can be determined respectively (these three function values are the above-mentioned non-specified objective function values). When the maximum learning effectiveness function value exceeds a preset threshold (which can be called the first threshold, the larger the function value, the better the learning effectiveness), the minimum time consumption function value is less than a preset threshold (which can be called the second threshold, the smaller the function value, the smaller the time consumption), and the maximum training stability function value exceeds the preset threshold (which can be called the third threshold, the larger the function value, the higher the training stability), it can be determined that the non-specified objective function value of the candidate target client selection scheme meets the conditions.
[0109] According to the non-specified objective function value of each candidate target client selection scheme, a candidate target client selection scheme whose non-specified objective function value meets the requirements can be determined, and from the candidate target client selection schemes whose non-specified objective function value meets the requirements, a candidate target client selection scheme with the best objective function value is selected, and the candidate target client selection scheme is determined as the best target client selection scheme.
[0110] or, The candidate target client selection schemes can be sorted in order from best to worst according to their designated objective function values, and the sorted candidate target client selection schemes are traversed in turn, and the first traversed candidate target client selection scheme whose non-designated objective function value meets the requirements is determined as the optimal target client selection scheme.
[0111] In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the technical solutions provided in the embodiments of the present application are described below with reference to specific examples.
[0112] In this embodiment, a privacy leakage joint detection framework based on high-dimensional multi-objective optimization is proposed. First, the framework provides a cross-platform compatible foundation with a federated mechanism as the backbone, while avoiding the sharing of raw data to improve privacy protection. Second, a client selection method based on intelligent optimization is designed for the four goals of learning effectiveness, architecture selection bias, time consumption, and training stability, so that privacy leakage detection can retain a high cross-architecture generalization while enhancing training efficiency.
[0113] See also Figure 2 , is a schematic diagram of a cross-architecture IoT privacy leakage detection system architecture provided in an embodiment of the present application, such as Figure 2 As shown, the cross-architecture IoT privacy leakage detection system can include a centralized server and clients of multiple different architectures.
[0114] Exemplarily, the above-mentioned clients of different architectures may include IoT devices of various different architectures, such as smart cameras, smart home appliances, etc.
[0115] During the training process of the privacy leakage detection model, the centralized server can select the target client participating in the federated learning according to the method provided in the embodiment of the present application, and train the privacy leakage detection model using the federated learning method based on the selected target client to obtain a trained privacy leakage detection model.
[0116] It should be noted that the trained privacy leakage detection model can be deployed to IoT devices that have privacy leakage detection needs, and the IoT devices that have privacy leakage detection needs can use the trained privacy leakage detection model to perform privacy leakage detection.
[0117] Exemplarily, the IoT device participating in the privacy leakage detection model and the IoT device having the privacy leakage detection requirement mentioned above may be different IoT devices.
[0118] For example, the centralized server can proactively send the trained privacy leakage detection model to IoT devices that have privacy leakage detection needs based on configuration instructions; or, upon receiving a model acquisition request sent by an IoT device that has privacy leakage detection needs, the centralized server can send the trained privacy leakage detection model to the corresponding IoT device.
[0119] In this embodiment, if Figure 3 As shown, the implementation steps of cross-architecture IoT privacy leakage detection may include: S1. Demand confirmation.
[0120] For example, as new privacy leakage patterns emerge, detection engines that respond to the new privacy leakage patterns need to evolve to remain effective.
[0121] Security managers can pay attention to the security landscape and new data attack techniques in each area to keep updating detection models at a certain rhythm.
[0122] Exemplarily, the steps of requirement confirmation may be as follows: S1.1. Security managers should stay tuned: Security managers need to pay attention to the latest developments in the field of cybersecurity, especially new privacy leakage patterns and data attack technologies.
[0123] S1.2. Continuously update the detection model: With the emergence of privacy leakage patterns and data attack techniques, it is necessary to update the detection model at a certain rhythm to maintain the effectiveness of the detection engine.
[0124] S1.3. Discover new threats and attack patterns: By continuously paying attention to the field of cybersecurity, security managers need to promptly discover emerging privacy leakage patterns and data attack techniques.
[0125] S1.4. Confirm update requirements: Once a new threat or attack pattern is discovered, it is necessary to confirm whether the detection model needs to be updated to respond to new data leakage and data attack threats.
[0126] S1.5. Execution requirement confirmation: After confirming the need to update the detection model, the detection model update can be triggered to ensure the implementation of the model update requirement.
[0127] The main purpose of this step is to ensure that the detection model can be updated in a timely manner to address new privacy leakage threats that continue to emerge, thereby maintaining the effectiveness of the detection engine.
[0128] It should be noted that in the embodiments of the present application, the designated device may also maintain the current existing privacy leakage mode and data attack technology information, and periodically capture the latest privacy leakage mode and data attack technology information to determine whether there is a new privacy leakage mode or data attack technology. If so, the detection model update is triggered. That is, the model update can be automatically triggered without manual triggering.
[0129] S2. Equipment organization.
[0130] Exemplarily, based on the detection indicator requirements, candidate clients assigned to this task are filtered according to device (devices with clients installed) distribution and application scenarios.
[0131] Exemplarily, the detection indicator requirement refers to a clear demand analysis and definition of the detection target, detection model performance, etc. before training the detection model.
[0132] For example, based on the device distribution, clients in the same local area network as the central server may be preferentially selected as candidate clients.
[0133] Based on the application scenario, clients deployed on devices that have less impact on the business when executing training tasks can be prioritized as candidate clients.
[0134] Exemplarily, the steps of device organization may be as follows: S2.1. The central server sends an intention notification to the client: The central server sends an intention notification to the client (embedded in the terminal device) to participate in the training, conveying the desire to use the device for model training.
[0135] S2.2. Analyze feedback and constraints: Analyze whether the client is suitable for model training based on the feedback from the terminal device to which the client belongs and its own constraints.
[0136] Exemplarily, the information fed back by the terminal device may include information related to the optimization target, such as architecture information, available bandwidth information, resource occupancy information, etc.
[0137] S2.3. Screen candidate clients (terminal devices): Screen a set of candidate clients (terminal devices) suitable for this training task based on factors such as device distribution and application scenarios.
[0138] S2.4. Establish a joint training communication connection: Establish a joint training communication connection with the selected candidate clients (terminal devices) to establish a communication basis for them to participate in this training task.
[0139] S2.5. Form a candidate client (terminal device) set: The clients (terminal devices) of joint training are formed into a candidate client set to prepare for subsequent model training.
[0140] S2.6. Final determination of the clients (terminal devices) participating in the training: Before the model training begins, the clients (terminal devices) that will eventually participate in the training are determined from the candidate client set.
[0141] The main purpose of this step is to select the appropriate client to ensure that the model training can proceed smoothly. At the same time, ensure that the client participating in the training meets the requirements and lays the foundation for subsequent training.
[0142] S3. Model training.
[0143] Exemplarily, model training is a cumulative feature learning process, which is divided into multiple communication rounds.
[0144] A multi-objective mathematical model can be established to evaluate the client selection scheme to ensure the model training efficiency and the cross-architecture generalization ability of the model.
[0145] The specific steps of model training can be as follows: Initialization phase: Initialize the number of communication rounds t to 1, initialize the state information to an empty set, select the client set to an empty set, and initialize the global model to w0.
[0146] Cyclic training phase: When the stop condition is not met, the cyclic training phase begins.
[0147] S3.1. Status information upload: Each client uploads status information to the server (i.e., centralized server).
[0148] S3.2. Select client (i.e., the target client mentioned above): The server selects the training client set for the current round based on the multi-objective optimization model.
[0149] S3.3. Model parameter delivery: The server delivers the current global model parameters to the selected client set.
[0150] S3.4, Local training: Each client uses the local data set for local training to obtain local model parameters.
[0151] S3.5, model parameter upload: the client uploads the local model parameters to the server.
[0152] S3.6, Model parameter aggregation: The server aggregates all uploaded model parameters to obtain new global model parameters.
[0153] S3.7. Evaluate the model: Use the validation dataset to evaluate the global model parameters and determine whether the stopping conditions are met.
[0154] S3.8. Update the number of communication rounds: t plus 1, and enter the next round of training.
[0155] S3.9, Ending stage: When the stopping condition is met, the training is ended and the final detection model is obtained.
[0156] S4. Model deployment.
[0157] Exemplarily, new detection models are subject to the standard model release process for deployment in actual scenarios, including manual quality assurance and A / B testing.
[0158] Exemplarily, the model deployment can be deployed in stages, that is, first verify the deployment in a small range, and then deploy in large batches when the effect is verified, so as to ensure maintenance cost and effectiveness.
[0159] The specific steps for model deployment can be as follows: S4.1, Manual quality assurance and A / B testing: New detection models must go through the standard model release process, including manual quality assurance and A / B testing. This helps ensure that the model performs as expected in actual deployment scenarios.
[0160] Exemplarily, manual quality assurance can include methods to ensure model quality through manual inspection and testing. It includes processes such as manual testing, automated testing, and code review, aiming to discover and fix errors and defects in the model.
[0161] The goal of manual quality assurance is to ensure that the model's quality in terms of functionality, performance, security, and user experience meets the expected standards.
[0162] A / B testing is a method of comparing different versions of a product or feature after the model is released to determine which version can bring better results. It randomly divides users into two or more groups, each group uses a different version (Group A uses the original version, Group B uses the variant version), and then analyzes user behavior and feedback data to evaluate the performance of different versions.
[0163] S4.2. Model deployment to actual scenarios: After completing quality assurance and testing, the new detection model will be deployed to the actual scenario. To ensure maintenance costs and effectiveness, model deployment will be carried out in stages.
[0164] S4.3. Detection model evaluation: After deployment, the performance of the model in the actual scenario needs to be evaluated to ensure that it meets the expected detection effect.
[0165] S4.4. Regular updates: As new privacy leakage patterns emerge, the detection model needs to be updated regularly to maintain its effectiveness.
[0166] S4.5, Monitoring and Optimization: Continuously monitor the performance of the model in actual scenarios and optimize it to ensure the detection effect.
[0167] The following is a detailed description of the implementation of the client that chooses to participate in federated learning (i.e., the target client mentioned above).
[0168] Federated learning is adopted to obtain a structurally compatible detection model, where the quality of the clients selected in each round affects the overall training efficiency and the performance of the final model.
[0169] Client selection for federated learning is a very complex problem. In a typical case of federated learning on mobile devices, the total number of devices used to train a model can be close to 100,000, and the number of devices selected in a training round is usually between 50 and 5,000.
[0170] What is different about IoT privacy leakage detection in other fields is that the model updates driven by security status cannot support high frequency, and it is necessary to consider the resource redundancy and business stability of the IoT system.
[0171] Therefore, a high-dimensional multi-objective optimization model is applied to detection model training, with the goal of reliably training an environment-friendly model with excellent cross-structure detection performance.
[0172] For example, factors such as architecture information, data set size, allocated bandwidth, energy, computing resources, and historical accuracy can be considered to evaluate the quality of the client from multiple aspects. This high-dimensional multi-objective optimization model reduces the time and resource consumption of neural network training and transmission processes while considering as many factors as possible that affect the training performance to improve the detection accuracy of the fusion model while taking into account its stability.
[0173] Optimization goal 1. Minimize architecture selection bias.
[0174] Maintaining client-side architectural diversity is critical to ensure the model's ability to generalize across architectures.
[0175] Considering that adopting an absolute architecture balance selection strategy may lead to a decline in the overall performance of the network, because it is difficult for candidate devices in each round to have advantages in architecture, data set, bandwidth and other factors at the same time, a bias queue can be established for each historically selected architecture, and this measure of architecture imbalance is iterated throughout the federated learning process. That is, the fairness of architecture selection becomes a long-term soft constraint, by retaining the decision space in a single round during the training process, that is, in each training round, the model's selection space is not overly restricted, but the model is allowed to make flexible decisions within a certain range. This ensures that the model maintains a certain diversity between different rounds, so that it can better adapt to various data distributions and situations, and maintains the overall balance of the device architecture throughout the training process, so that it has the ability to generalize across architectures.
[0176] To minimize the architecture selection bias, the specific steps can be as follows: 1) Establish a historical selection bias queue for each architecture to record the historical selection of the architecture.
[0177] 2) At each round of client selection, the current selection bias of each architecture is calculated.
[0178] 3) Update the current selection bias to the historical selection bias queue.
[0179] 4) The sum of the current selection biases of all architectures is used as one of the objective functions to minimize the architecture selection bias.
[0180] 5) During the client selection process, multiple optimization objectives are considered simultaneously, and the optimization of each objective is balanced through a multi-objective optimization algorithm.
[0181] 6) By setting the objective function weight, the optimization priority of the architecture selection bias can be adjusted.
[0182] 7) In multiple rounds of training, long-term architectural selection balance is achieved through iterative updates of the historical selection bias queue.
[0183] This long-term soft constraint mechanism can preserve the decision space in a single round of training and maintain the overall balance of the device architecture throughout the training process.
[0184] Goal 2: Maximize learning outcomes.
[0185] Federated learning is a distributed learning method that accumulates rounds, focusing on the learning performance of a single learning round to improve the overall process efficiency.
[0186] Improve the overall learning effect by maximizing the dataset size and average historical accuracy of each client in each learning round.
[0187] The size of the dataset affects the performance of the trained model; the larger the dataset, the better the model performance generally is. The coupling between device performance and resources, in addition to the noise level of the dataset, actually also affects training, but quantifying these intrinsic qualities is challenging.
[0188] Therefore, the historical average accuracy At can be introduced as an important reference for the client's comprehensive performance. The initial accuracy of each client (the initial value of the historical average accuracy) is set to 100%. As more learning rounds are completed, the historical average accuracy is updated regularly. The specific steps are as follows: Initially, the accuracy of each client is set to 100%.
[0189] As more learning rounds are completed, the client's historical average accuracy is updated periodically.
[0190] Exemplarily, the specific method of updating may include: taking a weighted average of the accuracy of the current learning round and the historical accuracy.
[0191] The weighted average calculation formula is: At k = (1-α)At k-1 + αAt k Among them, At k Indicates the historical average accuracy of the current round (when participating in the calculation, that is, At on the right side of the above formula k is the accuracy of the current round), At k-1 It represents the historical average accuracy of the previous round, and α is the weighting coefficient.
[0192] As training progresses, the client's historical average accuracy can be continuously updated to more accurately reflect the client's training effect and serve as an important reference for client selection.
[0193] The continuous update of the historical average accuracy ensures that the client selection is closer to the actual training situation, which helps the model select better clients for federated learning, thereby improving the overall training effect.
[0194] Goal 3: Minimize time consumption.
[0195] Federated learning is executed cyclically in rounds, and each round consists of three parts: global model distribution, local training, and local model upload.
[0196] The time consumed for each round of training is determined by the client that spends the most time.
[0197] Exemplarily, the bandwidth allocated to the client, the channel status, and the size of the network parameters are key factors that affect the difference in time consumption between the server and the client during network distribution and uploading.
[0198] The time required to train the model locally is related to the CPU cycle frequency, occupancy status, the number of CPU cycles required per unit dataset, and the current client dataset size.
[0199] A client selection scheme that minimizes time consumption can be selected based on the above data.
[0200] Goal 4: Maximize training stability.
[0201] The basic mechanism of federated learning is to perform local training on the client side and then aggregate the model on the server side. It inherently requires the client to remain stable for a considerable period of time to support the completion of model training. Clients with potential instability (such as lack of computing resources or system crashes) may cause resource waste and delays in the experimental process because they cannot support network training, resulting in abandoning the current learning round.
[0202] The stability of the current learning round is closely related to the client's available bandwidth and computing resource status, as well as the entity attributes and related maintenance level of the client provider.
[0203] For example, if the available bandwidth and computing resources are sufficient, the maintenance is normal, and the device hardware (physical attributes) is reliable, the client's training stability is high.
[0204] The entire high-dimensional multi-objective problem is as follows: The first constraint condition includes the constraint on the number of selected clients, that is, the number of selected clients in each round must meet the predetermined number S.
[0205] The second constraint includes the client bandwidth constraint, that is, the bandwidth allocated to the client meets the minimum bandwidth ratio (bmin) requirement.
[0206] In order to ensure communication between the client and the server, the ratio of bandwidth allocated to each client to the total bandwidth in each round of training needs to meet the following constraints: bmin≤bt≤ 1 That is, when allocating bandwidth, the ratio of each client's bandwidth to the total bandwidth should at least reach the minimum bandwidth ratio and not exceed 1 (i.e. 100%). This constraint ensures the communication needs between the client and the server during training and avoids insufficient bandwidth allocation in extreme cases.
[0207] The third constraint includes the client resource redundancy constraint, that is, the minimum resource requirement, which requires that the client resource redundancy must be greater than the minimum resource requirement Emin required for training to ensure initial stability.
[0208] Among them, the minimum resource requirement Emin refers to the minimum resource (such as computing resources) requirement that the client needs to meet when participating in training.
[0209] For example, Emin can be a pre-set computing resource value to ensure that the client maintains sufficient computing resources during the training process to support the training of the model. This constraint ensures the stability of the client when participating in the training and prevents training failure or interruption due to insufficient resources.
[0210] The fourth constraint includes the objective function weight constraint, that is, the sum of the weights of all objective functions is 1.
[0211] For example, different objective functions may be assigned different weights when adapting to different decision preferences.
[0212] For example, in a cluster of mobile devices with higher risks (such as mobile intelligent robots, warehouse robots, handheld mobile cameras, etc.), more attention needs to be paid to training stability. Accordingly, the weight of "maximizing training stability" in the optimization objective can be higher.
[0213] For example, taking the use of genetic algorithms to achieve multi-objective optimization as an example, the specific steps of the client selection method based on multi-objective optimization based on four objectives can be as follows: 1) Initialization: Randomly generate an initial population of size N. An individual in the population is a client selection scheme (or selection strategy).
[0214] 2) Evaluation: Calculate the fitness of each individual in the population.
[0215] Exemplarily, the fitness of an individual can be determined based on the four objective function values of the individual.
[0216] For example, the weighted sum of the four objective function values of an individual is determined as the fitness of the individual.
[0217] 3) Matching selection: According to the fitness of the individuals, matching selection operations are performed to select excellent individuals to enter the next round of crossover mutation. For example, excellent individuals may include individuals whose fitness exceeds a preset fitness threshold, or the first several individuals ranked in descending order according to fitness.
[0218] 4) Crossover and mutation: Perform crossover and mutation operations on the matched selected individuals to generate a new generation of population.
[0219] 5) Environmental selection: merge the new generation population with the parent population, conduct environmental selection, and select excellent individuals to enter the next round of iteration.
[0220] 6) Correcting individuals: Correct the selected individuals and retain a preset number of the best individuals to meet the requirements of the decision space.
[0221] 7) Iteration: Repeat steps 2)-6) until the maximum number of iterations Gmax is reached.
[0222] 8) Output result: According to the decision preference, the optimal individual is selected from the final population as the client selection strategy.
[0223] The algorithm simulates the natural evolution process, makes trade-offs and searches among multiple objectives, and finally finds a relatively optimal solution. Compared with traditional single-objective optimization methods, multi-objective evolutionary algorithms can better handle conflicts and trade-offs among multiple objectives.
[0224] For the selected client, the client local training process is as follows: The client processes the network traffic data into a matrix format similar to a grayscale image, which is used as the data input for the model (such as the CNN network model). The network weight parameters are updated by backpropagation through the loss function between the network output and the sample label, and data is continuously fed into the neural network to update the network until a predefined number of iterations is reached. At this point, the client's local network training is considered completed.
[0225] The server receives multiple local networks whose accuracy meets the minimum threshold and performs federation aggregation, otherwise the round is declared invalid.
[0226] The specific steps for client local training can be as follows: 1) Divide the client’s local training dataset Dk into multiple batches, each of size B.
[0227] 2) Perform iterative training on each batch b, with the number of iterations being E.
[0228] 3) In each iteration, forward propagation is performed on batch b to obtain the output of the network.
[0229] 4) Calculate the loss function between the output and the sample label.
[0230] 5) Calculate the gradient of the loss function with respect to the network weights.
[0231] 6) Update the network weights according to the learning rate η.
[0232] 7) Continue iterating until E iterations are completed.
[0233] 8) After completing local training, upload the local model to the server.
[0234] 9) The server receives local models from multiple clients and performs federated aggregation.
[0235] 10) If the accuracy of the local model meets the minimum threshold, federation aggregation is performed; otherwise, the current round of training is invalid.
[0236] 11) The server generates a new global model for the next round of training.
[0237] The method provided by the present application is described above. The device provided by the present application is described below: See also Figure 4 , is a structural diagram of a privacy leakage detection device based on multi-objective optimization provided in an embodiment of the present application, such as Figure 4 As shown, the privacy leakage detection device based on multi-objective optimization may include: A selection unit 410 is used to select a target client participating in federated learning from the candidate client set by using a multi-objective optimization algorithm based on the acquired state information of each candidate client in the candidate client set when it is determined that the training conditions of the privacy leakage detection model are met; wherein the candidate client set includes clients of multiple different architectures; the optimization goal in the multi-objective optimization algorithm includes minimizing the architecture selection bias, and the optimization goal also includes: maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. The training unit 420 is used to train the privacy leakage detection model according to the target client by using a federated learning method to obtain a trained privacy leakage detection model; wherein the trained privacy leakage detection model is used to perform privacy leakage detection on the IoT device.
[0238] An embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the adaptive cross-domain code stream cryptographic security protection method described above.
[0239] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 501 and a memory 502 storing machine executable instructions. The processor 501 and the memory 502 may communicate via a system bus 503. In addition, by reading and executing the machine executable instructions corresponding to the vehicle camera calibration logic in the memory 502, the processor 501 may execute the vehicle camera calibration method described above.
[0240] The memory 502 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0241] In some embodiments, a machine-readable storage medium is also provided. Figure 5 The memory 502 in the machine readable storage medium stores machine executable instructions, and when the machine executable instructions are executed by the processor, the vehicle camera calibration method described above is implemented. For example, the storage medium can be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Claims
1. A privacy leakage detection method based on multi-objective optimization, characterized in that: include: When it is determined that the training conditions of the privacy leakage detection model are met, a target client participating in federated learning is selected from the candidate client set by using a multi-objective optimization algorithm according to the acquired state information of each candidate client in the candidate client set; wherein the candidate client set includes clients of multiple different architectures; the optimization goal in the multi-objective optimization algorithm includes minimizing the architecture selection bias, and the optimization goal also includes: maximizing learning effectiveness, minimizing time consumption, and maximizing training stability. According to the target client, a privacy leakage detection model is trained using a federated learning method to obtain a trained privacy leakage detection model; wherein the trained privacy leakage detection model is used to perform privacy leakage detection on IoT devices.
2. The method according to claim 1, characterized in that For any target client selection scenario, the architecture selection bias is determined as follows: Determine the number of target clients of each architecture according to the target clients selected by the selection scheme; Determine the current selection bias for each architecture based on the number of target clients for each architecture; The architecture selection bias of the selection scheme is determined based on the current selection bias of each architecture.
3. The method according to claim 2, characterized in that Model training using federated learning includes multiple rounds, and for each round, the target client is reselected; Determining the architecture selection bias of the selection scheme according to the current selection bias of each architecture includes: For the first round, the current selection bias of each architecture is determined as the architecture selection bias of the selection scheme; For non-first rounds, the architecture selection bias of the selection scheme is determined based on the current selection bias of each architecture and the historical selection bias of each architecture.
4. The method according to claim 1, characterized in that: Model training using federated learning includes multiple rounds, and for each round, the target client is reselected; When the optimization goal includes maximizing the learning effect, for any target client selection scheme, the learning effect is determined according to the historical average accuracy of the target client selected by the selection scheme, and is positively correlated with the historical average accuracy of the target client; wherein: For any target client, if the target client has not participated in training, the historical average accuracy of the target client is the initial accuracy of the target client; wherein the initial accuracy of the target client is a set value; In the case that the target client has completed at least one round of training, the historical average accuracy of the target client is determined according to the accuracy of the target client in the latest round and the historical average accuracy before the latest round.
5. The method according to claim 1, characterized in that In the case where the optimization goal includes minimizing time consumption, for any target client selection scheme, the time consumption is determined by: According to the target clients selected by the selection scheme, the time consumption for each target client to complete a round of training is determined respectively; wherein the time consumption for the target client to complete a round of training includes communication time consumption and local processing time consumption, the communication time consumption is determined according to the bandwidth allocated to the target client, the signal state and the network parameters; the local processing time consumption is determined according to the size of the training data set of the target client, the number of CPU cycles required for the unit data set, the CPU cycle frequency, and one or more of the occupancy state; The time consumption of the target client with the longest time consumption among the target clients selected by the selection scheme is determined as the time consumption of the target client selection scheme.
6. The method according to claim 1, characterized in that In the case where the optimization goal includes maximizing training stability, the training stability of the target client is determined based on one or more of the available bandwidth, available computing resources, maintenance status, and entity attributes of the target client.
7. The method according to any one of claims 1 to 6, characterized in that: The method of selecting a target client participating in federated learning from the candidate client set based on the acquired state information of each candidate client in the candidate client set and using a multi-objective optimization algorithm includes: According to the acquired state information of each candidate client in the candidate client set and the preset constraints, a target client participating in federated learning is selected from the candidate client set by using a multi-objective optimization algorithm; The preset constraints include one or more of the following: The number of target clients, the minimum bandwidth ratio of the target clients, the minimum resource redundancy of the target clients, and the objective function weight; the objective function includes optimization objective functions corresponding to each optimization objective respectively.
8. The method according to claim 7, characterized in that The preset constraint conditions include: the number of target clients, the minimum bandwidth ratio of the target clients, the minimum resource redundancy of the target clients, and the objective function weight; The method of selecting a target client participating in federated learning from the candidate client set based on the acquired state information of each candidate client in the candidate client set and preset constraints using a multi-objective optimization algorithm includes: Determining a candidate target client selection scheme according to the number of target clients, the minimum bandwidth ratio of the target clients, and the minimum resource redundancy of the target clients; wherein the number of candidate clients in any candidate target client selection scheme is consistent with the number of target clients, and the candidate clients meet the minimum bandwidth ratio and the minimum resource redundancy requirements; Determine the optimal target client selection scheme from the candidate target client selection schemes using a multi-objective optimization algorithm according to the objective function weight; According to the optimal target client selection scheme, the target client participating in the federated learning is determined.
9. The method according to claim 8, characterized in that The objective function includes: minimizing the architecture selection bias function; the objective function also includes one or more of maximizing the learning effectiveness function, minimizing the time consumption function, and maximizing the training stability function; The method of determining the optimal target client selection scheme from the candidate target client selection schemes by using a multi-objective optimization algorithm based on the objective function weights includes: Determine, according to the objective function weight, a designated objective function with the largest objective function weight; Respectively determine the designated objective function value of each candidate target client selection scheme corresponding to the designated objective function and the non-designated objective function value corresponding to the non-designated objective function; The candidate target client selection scheme whose non-specified objective function value meets the requirements and whose specified objective function value is optimal is determined as the optimal target client selection scheme.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Client selection method and device applied to federated learning and storage medium
CN117176729A
Cited By
Anti-poisoning federal privacy leakage detection method based on local personalized learning
CN119377949A
