Node selection method, electronic device, storage medium

By selecting candidate nodes that meet the security level from the distributed cluster and evaluating node performance by combining historical and current state information, the problems of data leakage and insufficient performance in neural network model training are solved, and safe and stable model training is achieved.

CN123145261APending Publication Date: 2026-11-20MOORE THREADS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611545623.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-08
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing neural network model training operations suffer from high data leakage risks and poor performance in distributed clusters, making it impossible to execute model training safely and stably.

Method used

By selecting candidate nodes that meet the preset security level from multiple nodes, combining the historical and current node status information of the target system, the required number of nodes is determined, and the target node set is selected based on the node performance information to ensure security and performance.

Benefits of technology

It enables the accurate selection of high-performance and secure nodes in a distributed cluster, avoiding the risks of data leakage and poor performance, and ensuring the safe and stable operation of the target system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145261A_ABST
    Figure CN123145261A_ABST
Patent Text Reader

Abstract

The present disclosure provides a node selection method, an electronic device and a storage medium. The method comprises: selecting a candidate node from a plurality of obtained nodes, wherein the candidate node is a node satisfying a preset security level; determining a required number of nodes of a target system according to historical node state information of the target system and current node state information of the candidate node, wherein the number of nodes satisfies a preset fault tolerance requirement of the target system; obtaining node performance information of the candidate node, and evaluating the candidate node according to the node performance information to obtain a node evaluation result; and selecting a target node set required by the target system from the candidate nodes according to the node evaluation result and the number of nodes. According to embodiments of the present disclosure, a node with better performance can be accurately selected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a node selection method, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] With the continuous development of artificial intelligence technology, neural network models are widely used in various business scenarios to solve users' actual business needs; however, neural network models need to be trained before they can be applied.

[0003] Currently, model training and execution for neural network models can be performed using distributed clusters. However, due to potential risks of data leakage and poor performance among nodes in distributed clusters, model training cannot be performed securely and stably. Therefore, accurately selecting high-performance and secure nodes from a distributed cluster has become a pressing technical problem to be solved. Summary of the Invention

[0004] This disclosure provides a node selection method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.

[0005] In a first aspect, this disclosure provides a node selection method, which includes: selecting candidate nodes from a plurality of obtained nodes, wherein the candidate nodes are nodes that meet a preset security level; determining the number of nodes required by the target system based on historical node status information of the target system and current node status information of the candidate nodes, wherein the number of nodes meets the preset fault tolerance requirements of the target system; obtaining node performance information of the candidate nodes and evaluating the candidate nodes based on the node performance information to obtain node evaluation results; and selecting a target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes.

[0006] Secondly, this disclosure provides a node selection device, which includes: a first node selection module, a node quantity determination module, a node evaluation module, and a second node selection module.

[0007] The first node selection module is used to select candidate nodes from multiple obtained nodes, wherein the candidate nodes are nodes that meet a preset security level.

[0008] The node quantity determination module is used to determine the number of nodes required by the target system based on the historical node status information of the target system and the current node status information of the candidate nodes, wherein the number of nodes meets the preset fault tolerance requirements of the target system.

[0009] The node evaluation module is used to obtain the node performance information of the candidate nodes, evaluate the candidate nodes based on the node performance information, and obtain the node evaluation results.

[0010] The second node selection module is used to select the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes.

[0011] Thirdly, this disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, the one or more computer programs being executed by the at least one processor to enable the at least one processor to perform the node selection method described above.

[0012] Fourthly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described node selection method.

[0013] Fifthly, this disclosure provides a computer program product comprising computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device executes the node selection method described above.

[0014] The node selection method provided in this disclosure aims to accurately select high-performance and secure nodes. It performs detailed analysis and testing of multiple nodes in the system from multiple aspects. First, based on the historical node status information of the target system and the current node status information of candidate nodes, it accurately determines the number of nodes required by the target system and meeting the preset fault tolerance requirements. Then, it evaluates the candidate nodes based on node performance information to obtain node evaluation results, preparing for the subsequent selection of nodes with better performance. After completing the detailed analysis and testing of nodes from multiple aspects, based on the node evaluation results and the number of nodes, it selects the target node set corresponding to the model task from the multiple candidate nodes that have been pre-screened. This ensures the security and performance of the target nodes in the target node set, accurately selecting higher-performance and more secure nodes for the model task, and avoiding problems such as high data leakage risk or poor performance that could prevent the target system from operating safely and stably.

[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0016] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the embodiments of the present disclosure to explain the disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the detailed description of exemplary embodiments with reference to the accompanying drawings, in which:

[0017] Figure 1 A flowchart illustrating a node selection method provided in this embodiment of the disclosure;

[0018] Figure 2 A flowchart illustrating the selection of a target training node set in a node selection method provided in this embodiment of the disclosure;

[0019] Figure 3 This is a schematic diagram illustrating the application of a node selection method provided in an embodiment of the present disclosure;

[0020] Figure 4 A block diagram of a node selection device provided in an embodiment of this disclosure;

[0021] Figure 5 This is a block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0022] To enable those skilled in the art to better understand the technical solutions of this disclosure, exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments of this disclosure to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0023] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0024] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0025] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Words such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0026] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.

[0027] The node selection method according to embodiments of this disclosure can be executed by an electronic device such as a terminal device or a server. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a computing device, etc. The method can be implemented by a processor calling computer-readable program instructions stored in memory. Alternatively, the method can be executed by a server.

[0028] The technical terms used in the embodiments of this disclosure are explained below.

[0029] Security Node List: A collection of nodes that have undergone trustworthiness verification, including node identifier, status (trustworthy / suspicious / malicious), reputation score, weight, and other information. This list can be provided by the upstream verification system or configured by the system administrator.

[0030] Training subset: A set of nodes that are dynamically selected from the list of safe nodes and meet the Byzantine fault tolerance requirements, used to perform model training for the current round.

[0031] 2f+1 redundancy: To tolerate f Byzantine fault nodes, the system requires at least 2f+1 nodes to ensure that the number of correct nodes is strictly greater than the number of faulty nodes.

[0032] Multi-Brain Collaboration: Multiple audit nodes (Brains) work together to reach a consensus on subset selection decisions through a consensus mechanism.

[0033] Dynamic switching strategy: A mechanism that dynamically adjusts subset members during training based on factors such as node status changes, resource availability, and training performance.

[0034] Raft consensus algorithm: It is a consensus algorithm for managing replicated logs, providing a distributed consensus mechanism that is easier to understand and implement.

[0035] PBFT (Practical Byzantine Fault Tolerance) is a consensus algorithm for distributed systems, designed to help honest nodes in a distributed system reach a consensus in the presence of malicious or faulty nodes.

[0036] With the continuous development of artificial intelligence technology, neural network models are widely used in various business scenarios to solve users' actual business needs. However, before application, neural network models need to be trained. Currently, model training operations for neural network models can be executed through distributed clusters. However, due to the potential for data leakage risks and poor performance of training nodes in distributed clusters, model training cannot be executed securely and stably.

[0037] For example, in distributed AI (artificial intelligence) training, node selection and scheduling directly affect training efficiency and model quality. Therefore, the following schemes can be used for node selection.

[0038] (1) Scheme for random node selection.

[0039] Specifically, this method randomly selects a certain proportion of nodes to participate in training each round without distinguishing between them. This approach cannot identify trusted nodes from potentially malicious nodes; malicious nodes are selected with the same probability as honest nodes, lacking a Byzantine fault tolerance mechanism, meaning a single malicious node can pollute the entire model.

[0040] (2) Resource-based node selection scheme.

[0041] Specifically, the algorithm selects nodes with sufficient resources based on factors such as computing power, network bandwidth, and battery status to improve training efficiency. However, this approach focuses solely on system efficiency while neglecting security, failing to identify attackers posing as high-resource nodes and lacking a node trustworthiness assessment mechanism.

[0042] (3) Node selection scheme based on data quality.

[0043] Specifically, nodes are selected by evaluating the quality of local data (such as data entropy and distribution similarity). This approach relies on data quality metrics reported by the nodes themselves, which are easily tampered with maliciously. It does not consider the malicious behavior of nodes and lacks a dynamic adjustment mechanism, resulting in the selected nodes remaining fixed throughout the training process.

[0044] (4) Compare the elimination schemes.

[0045] Given 2f+1 redundant nodes, this method compares gradients and removes the f nodes with the largest deviations to ensure that at least f+1 honest nodes remain. However, this method requires the total number of nodes to satisfy N≥2f+1, making it unsuitable for small-scale networks; it only passively filters during the aggregation phase without pre-planning a safe subset; and it struggles to handle dynamic changes in node states.

[0046] (5) Dynamic scheduling scheme driven by reinforcement learning.

[0047] This method uses deep reinforcement learning to dynamically adjust participating nodes based on their historical performance and resource status. However, it requires a large amount of data and computational resources to train the reinforcement learning model, lacks security constraints, may select high-performance but untrustworthy nodes, and lacks the theoretical guarantee of Byzantine fault tolerance.

[0048] The above-mentioned technical solutions all have significant technical defects, specifically including the following four defects.

[0049] (1) Security and efficiency are separated: the above technical solutions either focus on efficiency (resource scheduling) and ignore security, or focus on security and sacrifice efficiency, lacking the organic combination of the two.

[0050] (2) Static subset selection: Most schemes determine the participating nodes at the beginning of training, which cannot cope with the dynamic changes in the node state (such as nodes becoming malicious, disconnecting, or degrading in performance during training).

[0051] (3) Fixed redundancy: The 2f+1 redundancy assumes that f is a fixed value, which cannot be dynamically adjusted according to the actual threat level, resulting in excessive redundancy (waste of resources) or insufficient redundancy (security risk).

[0052] (4) Insufficient support for multi-model scenarios: Existing solutions are mostly designed for training a single model and cannot handle scenarios where multiple models compete for resources.

[0053] Based on this, this disclosure provides a node selection method, an electronic device, a computer-readable storage medium, and a computer program product, as detailed in the following embodiments.

[0054] Figure 1 A flowchart illustrating a node selection method provided in an embodiment of this disclosure. (Refer to...) Figure 1 The method includes steps S11 to S14.

[0055] Step S11: Select candidate nodes from the multiple obtained nodes, wherein the candidate nodes are nodes that meet the preset security level.

[0056] Specifically, when this disclosure is applied to a model training scenario, selecting candidate nodes from multiple obtained nodes includes: selecting multiple candidate nodes from multiple nodes in a training system based on the model training task to be executed, wherein the nodes in the training system are used to train the target model. When this disclosure is applied to a model running scenario, selecting candidate nodes from multiple obtained nodes includes: selecting multiple candidate nodes from multiple nodes in a distributed system, wherein the nodes in the distributed system are used to run the target model.

[0057] The model training task can be understood as the task of training the target model. The target model can be set according to the scenario. For example, the target model can be a neural network model, a large model, a spiking network model, etc. The target model can be used to perform any one of the following tasks: image processing, speech processing, text processing, and video processing.

[0058] The training system can be understood as the system that executes the model training task. After completing the model training task through the training system, the trained target model can be obtained. This node can be understood as the node in the training system that is actually used to train the model.

[0059] This node can be a node in a distributed cluster (such as a worker node); or, it can be a virtual machine on a server (i.e., the host machine). A candidate node can be understood as a node selected from multiple nodes.

[0060] The preset security level can be understood as a pre-set security level for a node. For example, the preset security level can be a first security level, a second security level, or a third security level; or, the preset security level can be a trusted level, a suspicious level, or a malicious level.

[0061] In some embodiments, the preset security level includes a first security level and a second security level; selecting candidate nodes from the obtained plurality of nodes includes: determining a node list corresponding to the target system, and determining node attribute information of the nodes in the node list, wherein the nodes include nodes of the first security level, nodes of the second security level, and nodes of the third security level; the first security level is higher than the second security level, and the second security level is higher than the third security level; verifying the accuracy of the node attribute information of the nodes, and determining the nodes that pass the accuracy verification as accurate nodes; deleting the nodes of the third security level from the accurate nodes to obtain candidate nodes.

[0062] The target system can be a training system during model training or a distributed system (e.g., a distributed cluster) during model execution. The target system includes multiple nodes; the nodes in the training system can also be called training nodes.

[0063] The nodes at the first security level, the second security level, and the third security level can be understood as multiple nodes with different security levels. The higher the security level of a node, the more secure it is. For example, nodes at the first security level have the lowest risk of data leakage.

[0064] Among them, node attribute information can be understood as information used to represent the specific attributes of a node. This node attribute information includes, but is not limited to, node identifier, status, reputation value, weight, and timestamp.

[0065] Taking the node selection method provided in this disclosure in a distributed machine learning scenario as an example, this paper explains the node selection method. The target system can be a training system, which includes, but is not limited to, a federated learning network. The node can be a node in the federated learning network (i.e., a server or terminal device). Based on this, taking a federated learning network with 20 nodes as an example, the specific implementation of dynamic node subset scheduling is explained. The federated learning network of this disclosure provides a subset scheduling architecture of "reputation-driven + constraint optimization + dynamic switching," which can receive a list of secure nodes (provided by the verification system or configured by the administrator), select a training subset through a multi-objective optimization algorithm, and dynamically adjust it according to state changes during training. The initial state of the federated learning network is: 12 trusted nodes (i.e., nodes of the first security level), 5 suspicious nodes (i.e., nodes of the second security level), and 3 malicious nodes (i.e., nodes of the third security level).

[0066] This disclosure proposes a training node selection system (i.e., a dynamic subset scheduling system) for multiple nodes in a training system. This system may include: an input interface module, a threat assessment module, a subset selection module, a multi-brain collaboration module, and a dynamic switching module. Through the interaction and cooperation between these modules, a corresponding target training node set can be selected for the model training task. In this process, malicious nodes are first filtered through a verification system, and the remaining 17 nodes (i.e., trusted nodes and suspicious nodes) constitute a candidate node pool.

[0067] The candidate node pool can be constructed through the input interface module. The specific execution method for the candidate node pool is as follows.

[0068] The input interface module is used to receive and process a list of secure nodes (i.e., a node list), which is provided by the verification system or configured by the administrator.

[0069] The input interface module parses the node attribute information of each node in the list. The node attribute information includes, but is not limited to, node identifier, status, reputation value, weight and timestamp. Among them, the node status is divided into trusted, suspicious or malicious. Based on this, the nodes can be divided into trusted nodes, suspicious nodes or malicious nodes.

[0070] This input interface module can verify the accuracy of node attribute information, ensuring its accuracy. This accuracy verification includes, but is not limited to, completeness and format validity (e.g., determining whether tampering has occurred through format and consensus signature `consensus_signature`). After successful verification, malicious nodes are completely excluded, and only nodes with a trusted or suspicious status are included in the candidate pool for subsequent scheduling. It should be noted that this candidate pool (also called the candidate node pool) includes the aforementioned multiple candidate nodes. The determination of a malicious node relies on the status field of the upstream (such as the verification system or administrator). This input interface module can determine whether a node is malicious without verifying its behavior, reducing the computational burden on this module.

[0071] As can be seen from the above embodiments, this disclosure effectively prevents misjudgments caused by configuration errors, transmission corruption, or forged data by using structured node classification, strict attribute verification, and hierarchical candidate pool management, ensuring that subsequent node selection can be based on trusted data and improving system robustness.

[0072] Step S12: Determine the number of nodes required for the target system based on the historical node status information of the target system and the current node status information of the candidate nodes, wherein the number of nodes meets the preset fault tolerance requirements of the target system.

[0073] Node status information can be understood as information used to characterize the risk or performance status of a node. For example, this node status information could be the probability of data leakage, the average security level, or the probability of failure. In some embodiments, this node status information could be the ratio of malicious nodes to trusted nodes and / or suspicious nodes in the target system. Historical node status information can be understood as historically collected node status information; current node status information is the node status information of multiple candidate nodes.

[0074] A preset fault tolerance requirement can be understood as a requirement or risk resistance standard for the number of nodes. By setting a preset fault tolerance requirement, it can be ensured that the entire system can still operate normally and stably when some nodes experience hardware or software failures. For example, a preset fault tolerance requirement could be: ensuring that "tasks cannot be interrupted if any two computing nodes fail simultaneously" or "system performance degradation cannot exceed 10% when one node fails." In some embodiments, the preset fault tolerance requirement includes fault tolerance information used to constrain the number of nodes.

[0075] Specifically, after selecting candidate nodes, this disclosure can obtain the historical node status information of the target system and the current node status information of the candidate nodes, for example, by retrieving the historical node status information and the current node status information from a storage unit such as a database or memory. Then, based on the historical node status information and the current node status information, the number of nodes required for the target system is determined. When this disclosure is applied to a model training scenario, the number of nodes can be the number of training nodes required to perform a model training task for the target model; when this disclosure is applied to a model running scenario, the number of nodes can be the number of nodes required to run the target model.

[0076] In some embodiments, determining the number of nodes required by the target system based on the historical node status information of the target system and the current node status information of the candidate nodes includes steps one and two.

[0077] Step 1: Determine the risk information of the multiple candidate nodes based on the historical node status information of the target system and the current node status information of the multiple candidate nodes.

[0078] Risk information can be understood as information used to indicate whether a candidate node has a risk; for example, the risk information can be a risk probability, risk indicator, or risk label.

[0079] In some embodiments, determining the risk information of the multiple candidate nodes based on the historical node status information of the target system and the current node status information of the multiple candidate nodes includes: determining a first ratio corresponding to nodes of the third security level based on the number of nodes of the first security level, the number of nodes of the second security level, and the number of nodes of the third security level in the historical node status information; determining a second ratio corresponding to nodes of the second security level based on the number of the multiple candidate nodes and the number of nodes of the second security level in the current node status information; and determining the risk information of the multiple candidate nodes based on the first ratio and the second ratio.

[0080] Following the previous example, this training node selection system includes a threat assessment module. It can calculate the threat index (i.e., risk information) by statistically analyzing the current proportion of suspicious nodes (i.e., the second ratio) and combining it with the historical attack frequency. Subsequently, based on this threat index, the fault tolerance parameter f and the minimum available subset size n_min of the training system can be dynamically determined. The specific process for determining the threat index is as follows: steps 1 to 3.

[0081] Step 1: Statistical analysis of node status and calculation of the percentage of suspicious nodes. (i.e., the second ratio):

[0082]

[0083] in, This indicates the number of suspicious nodes among multiple candidate nodes; This indicates the number of candidate nodes.

[0084] Step 2: Determine the ratio between the number of malicious nodes in the historical attack records and the total number of all nodes (i.e., malicious nodes, trusted nodes, and suspicious nodes). (i.e., the first ratio). Regarding the number of malicious nodes, the threat assessment module can maintain a sliding window record, count the number of nodes marked as malicious nodes from the list of safe nodes received in each round, and then calculate the ratio of the last 10 rounds (i.e., the first ratio) and store it persistently.

[0085] Step 3, through and Calculate the threat index: .

[0086] As can be seen from the above embodiments, this disclosure possesses the ability to adapt to dynamic changes in network threats. The threat assessment module calculates a threat index based on the proportion of suspicious nodes monitored in real time and the historical attack rate, thereby facilitating subsequent dynamic adjustment of the system's fault tolerance parameter f. This enhances redundancy protection in high-threat scenarios and reasonably reduces resource consumption in low-threat scenarios.

[0087] Based on the historical node status information of the target system and the current node status information of multiple candidate nodes, the risk information of the multiple candidate nodes is determined.

[0088] Step 2: Determine the fault tolerance information of the target system based on the risk information, and determine the number of nodes required for the target system based on the fault tolerance information.

[0089] In this context, fault tolerance information can be understood as a constraint on the number of nodes. By using this information, the number of nodes can be constrained to a safe range, thereby ensuring that the target system has better fault tolerance. For example, this fault tolerance information can be fault tolerance parameters or fault tolerance indicators.

[0090] The fault tolerance parameter can be any value in the range [0,1]. The smaller the fault tolerance parameter, the higher the probability that the target system can safely execute the model training task or run the target model. This means that fewer nodes can be used to execute the model training task or run the target model. Therefore, the smaller the fault tolerance parameter, the fewer nodes are required.

[0091] Specifically, in order to accurately select nodes with good performance and security, this disclosure can perform detailed analysis and testing on multiple nodes from multiple aspects. First, based on historical node status information and the current node status information of multiple candidate nodes, the risk information of multiple candidate nodes is accurately determined. Second, based on the risk information, the fault tolerance information of the model training task is determined, and based on the fault tolerance information, the appropriate number of nodes is accurately determined, so that the nodes with better security and performance can be accurately selected based on the number of nodes.

[0092] In some embodiments, the fault tolerance information includes fault tolerance parameters; determining the fault tolerance information of the target system based on the risk information, and determining the number of nodes required for the target system based on the fault tolerance information, includes: determining the target weight corresponding to the risk information from a plurality of preset weights, and using the target weight to weight the number of the plurality of candidate nodes to obtain the fault tolerance parameters; and determining the number of nodes required for the target system based on the Byzantine fault tolerance algorithm and the fault tolerance parameters.

[0093] Following the previous example, the threat assessment module in this system (i.e., the training node selection system) can determine the fault tolerance parameter f based on the threat index. This fault tolerance parameter f can be determined by the following formula.

[0094]

[0095] The default values ​​for 0.1, 0.2, etc. in this formula can be configured according to the deployment environment, and the 33% upper limit is derived from the Byzantine fault tolerance theory.

[0096] The minimum subset size is calculated based on the Byzantine fault tolerance principle, and the fault tolerance parameter f and the minimum subset size are output. (i.e., the number of training nodes).

[0097]

[0098] Among them, the above It can be understood as a computational algorithm built on the Byzantine fault tolerance principle (i.e., the Byzantine fault tolerance algorithm).

[0099] As can be seen from the above embodiments, this disclosure possesses the ability to adapt to dynamic changes in network threats. The threat assessment module dynamically adjusts the system's fault tolerance parameter f based on real-time monitoring of the proportion of suspicious nodes and historical attack rates. This enhances redundancy protection in high-threat scenarios and reasonably reduces resource consumption in low-threat scenarios, thereby avoiding resource waste or security risks that may result from fixed redundancy strategies.

[0100] Step S13: Obtain the node performance information of the candidate node, and evaluate the candidate node based on the node performance information to obtain the node evaluation result.

[0101] The node performance information can be understood as information used to represent the performance of candidate nodes; the node evaluation result can be understood as the result obtained after evaluating multiple candidate nodes. The node evaluation result can be a node evaluation score, node performance level, node performance type, etc., and this disclosure does not make specific limitations in this regard.

[0102] In some embodiments, the node performance information includes node computation parameters, data quality parameters, and reputation scores; the node evaluation result includes a node evaluation score; and there are multiple candidate nodes. The step of evaluating the candidate nodes based on the node performance information to obtain a node evaluation result includes: weighting the node computation parameters according to a first weight corresponding to the node computation parameters to obtain weighted node computation parameters; weighting the data quality parameters according to a second weight corresponding to the data quality parameters to obtain weighted data quality parameters; weighting the reputation scores according to a third weight corresponding to the reputation scores to obtain a weighted reputation score; adding the weighted node computation parameters, the weighted data quality parameters, and the weighted reputation scores to obtain initial node evaluation scores for the multiple candidate nodes; and obtaining the final node evaluation score based on the initial node evaluation scores.

[0103] The node's computational parameters can be understood as parameters used to characterize the computational capabilities of the candidate node.

[0104] In some embodiments, obtaining the node evaluation score based on the initial node evaluation score includes: determining the initial node evaluation score as the node evaluation score.

[0105] Following the example above, the training node selection system provided in this disclosure includes a subset selection module. This module is used to select the optimal training subset that meets the Byzantine fault tolerance requirements from the candidate node pool. Its core is to comprehensively consider the node's reputation (i.e., reputation score), computing power, and data quality (where computing power and data quality need to be collected by this module) to maximize the training efficiency of federated learning while ensuring system security constraints.

[0106] First, calculate the overall score (i.e. the initial node evaluation score) for each node: score[i] = 0.6 × reputation score + 0.2 × computing power + 0.2 × data quality.

[0107] In this calculation formula, 0.6 (the third weight) / 0.2 (the second weight) / 0.2 (the first weight) can be defined as the default weight; furthermore, this weight can be adaptively adjusted according to the threat index. i represents each node.

[0108] The comprehensive score calculated for each of the above nodes is used as the final score (i.e., node evaluation score) of each candidate node, score[i]∈[0,1]. It is acceptable for the final score to exceed the range (the upper limit after adding points is 1.05). In other words, it is also acceptable for the final score to exceed the range, because the score is only used for sorting and does not require strict normalization.

[0109] In some embodiments, obtaining the node evaluation score based on the initial node evaluation score further includes: determining a node of a first security level from among the plurality of candidate nodes, and determining a fourth weight corresponding to the node of the first security level; and weighting the initial node evaluation scores corresponding to the nodes of the first security level among the plurality of candidate nodes using the fourth weight to obtain the node evaluation scores of the plurality of candidate nodes.

[0110] Following the example above, the training node selection system provided in this disclosure includes a subset selection module. This module is used to select the optimal training subset that meets the Byzantine fault tolerance requirements from the candidate node pool. Its core is to comprehensively consider the node's reputation (i.e., reputation score), computing power, and data quality (where computing power and data quality need to be collected by this module) to maximize the training efficiency of federated learning while ensuring system security constraints.

[0111] First, calculate the overall score (i.e. the initial node evaluation score) for each node: score[i] = 0.6 × reputation score + 0.2 × computing power + 0.2 × data quality.

[0112] If a subsequent node is in a trusted state (i.e., a trusted node), the score corresponding to that trusted node (the initial node evaluation score) will be increased by 5 points (i.e., the fourth weight) as a state-independent reward to enhance its priority and ensure that "trusted nodes are preferentially selected into subsets".

[0113] Based on the above weighting operation, the final score (i.e. node evaluation score) score[i]∈[0,1] of each candidate node is obtained, and it is acceptable to exceed this range (the upper limit after the score is added is 1.05). That is to say, it is also acceptable for the final score to exceed the range, because the score is only used for sorting and does not require strict normalization.

[0114] Based on the above embodiments, it can be seen that the dynamic subset scheduling system in this disclosure can effectively balance the security, efficiency, and adaptability of federated learning. Its main beneficial effects are reflected in the following two aspects: (1) Achieving a synergistic improvement in security and training efficiency. The system uses a reputation-weighted multi-objective optimization mechanism to prioritize nodes with good reputation, strong computing power, and high data quality for training, while satisfying Byzantine fault tolerance constraints. (2) Providing strict Byzantine fault tolerance theoretical guarantees. The system design is based on the 2f+1 redundancy theory, which mandates that the number of trustworthy nodes meets the lower limit constraint in subset selection, thereby ensuring that honest nodes always occupy a majority in the subset under any circumstances. Theoretical analysis shows that the system can still withstand attacks from f Byzantine faulty nodes in the worst case.

[0115] In some embodiments, the node’s reputation score is provided by the verification system or historical behavior records and ranges from 0 to 100; the computing power is normalized to the [0,1] range based on CPU / GPU performance (input interface module); and the data quality is normalized according to the data volume and category distribution, also mapped to the [0,1] range.

[0116] In some embodiments, obtaining the node performance information of the candidate nodes includes: receiving resource parameters of various computing resources submitted by the multiple candidate nodes; weighting the resource parameters using the resource weights corresponding to the various computing resources to obtain weighted resource parameters; and normalizing the weighted resource parameters to obtain the node computing parameters of the multiple candidate nodes; verifying the data quality of the data information submitted by the multiple candidate nodes; if the data information passes the data quality verification, calculating the data volume score and distribution balance score of the data information; and calculating the data quality parameters of the multiple candidate nodes based on the data volume score and the distribution balance score.

[0117] Following the example above, the method for obtaining node computing parameters in this disclosure includes: 1. Receiving local resource snapshots actively reported by the nodes; 2. Calculating the comprehensive capability value by weighting the three indicators of CPU, GPU, and bandwidth in the local resource snapshot according to preset weights; 3. Normalizing the weighted comprehensive capability value to obtain the node computing parameters.

[0118] Specifically, this disclosure targets the acquisition and normalization of computing capabilities (node ​​computing parameters) of nodes. The computing capabilities are mainly obtained through active reporting by the nodes, supplemented by active detection by the modules. The specific steps for performing the acquisition and normalization operations include the following steps 1 to 4.

[0119] Step 1: Nodes actively report (carried in heartbeat messages).

[0120] Each node carries a snapshot of its local resources in its periodic heartbeat messages:

[0121] {

[0122] "node_id (node ​​ID)": "node_001".

[0123] "cpu_cores (number of CPU cores)": 8.

[0124] "cpu_util": 0.35, # Current CPU utilization.

[0125] "gpu_mem_gb": 16, # Current GPU memory usage (in GB).

[0126] "gpu_util": 0.40, # Current GPU utilization.

[0127] "bandwidth_mbps": 100, # Network bandwidth value in megabits per second (Mbps).

[0128] "timestamp": "2025-...".

[0129] }

[0130] Step 2: Module active detection (auxiliary verification).

[0131] Every K rounds (consistent with the dynamic switching monitoring cycle), the scheduling module sends a lightweight benchmark task (such as matrix multiplication) to each node and records the actual completion time. With node reporting capability Compare: If If the detection result is not accurate, the reported value will be overwritten, and the node's reported reliability will be recorded as abnormal.

[0132] Step 3: Normalize computational power.

[0133] The weighted overall performance value is calculated by combining three metrics: CPU, GPU, and bandwidth. :

[0134]

[0135] Where α=0.1, β=0.6, γ=0.3 (default values ​​for GPU-intensive training scenarios). Indicates GPU utilization. This indicates the percentage of GPU idle time, using "idle resources" instead of "total resources" to reflect the actual available capacity of the node. The α / β / γ weights can be configured according to the task type.

[0136] Step 4: Node normalization to obtain node computation parameters. .

[0137]

[0138] If a node never passes the probe verification, its C value is multiplied by a penalty coefficient of 0.8.

[0139] The methods for obtaining data quality parameters disclosed herein include: 1. Receiving statistical summaries reported by nodes and performing integrity and consistency checks on the statistical summaries; 2. If the checks pass, calculating data quality scores and distribution balance scores based on the statistical summaries; 3. Determining the data quality scores of nodes based on the data quality scores and distribution balance scores.

[0140] Specifically, this disclosure describes the acquisition and normalization of data quality (i.e., data quality parameters) for nodes. The acquisition of this computing power is achieved through methods including node self-reporting of statistical summaries and audit node sampling verification. The specific steps for performing the acquisition and normalization operations include steps 1 to 3 below.

[0141] Step 1: Node self-report statistical summary.

[0142] Nodes submit a statistical summary of their local data (excluding the original data to protect data privacy) upon registration or at the start of each round:

[0143] {

[0144] "node_id": "node_001".

[0145] "data_count": 5000, # Total number of local samples.

[0146] "class_dist": [0.2, 0.18, 0.21, 0.19, 0.22], # Class distribution.

[0147] "data_hash": "sha256:abc..." # Dataset hash for sampling verification.

[0148] }

[0149] Step 2: Sampling verification of audit nodes.

[0150] To prevent nodes from falsifying data quality reports, the audit node (Brain) performs sampling verification on candidate nodes before each round of subset selection. The specific execution method is as follows:

[0151] a) Randomly select 20% of the nodes in the candidate pool as verification targets.

[0152] b) Send a hash query request for the specified subset of data to the extracted node.

[0153] c) Compare the consistency between the local hash returned by the node and the data_hash.

[0154] d) If inconsistent, determine that the data quality statement of the node is untrustworthy, force its data quality D value to be set to 0, and report the anomaly to the reputation management module.

[0155] Step 3: Calculate the data quality score.

[0156] For nodes that pass verification, a data quality score is calculated based on two metrics:

[0157] a) Data volume score :

[0158]

[0159] Where data_count_max is the data size of the node with the largest sample size in the candidate pool.

[0160] b) Balanced distribution score (Based on L1 distance):

[0161]

[0162] c) Overall Data Quality Score (i.e., data quality parameters):

[0163]

[0164] In this scenario, the D value of nodes that fail the sampling verification is forced to 0. This does not affect their status score in the comprehensive score calculation, but it significantly reduces their overall score. The sampling verification ratio (20%) is consistent with the K-round cycle to avoid additional communication overhead.

[0165] Based on the above steps, it can be seen that by receiving local resource snapshots actively reported by nodes, this disclosure can grasp the current resource status of each node in real time, avoid relying on static configuration or outdated information, and thus support more accurate scheduling. In addition, in the process of calculating the data quality score, a distribution balance score is introduced to avoid model bias caused by data skew, which helps to select high-quality and representative nodes to participate in training or analysis.

[0166] Step S14: Based on the node evaluation results and the number of nodes, select the target node set required by the target system from the candidate nodes.

[0167] Specifically, when this disclosure is applied to a model training scenario, the step of selecting the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes includes: selecting the target training node set (the target node set in this example) corresponding to the model training task from multiple candidate nodes based on the node evaluation results and the number of training nodes, wherein the target training node set is used to execute the model training task.

[0168] The target training node set includes multiple target training nodes, which are used to perform model training tasks and obtain the trained target model after the model training tasks are completed.

[0169] Following the previous example, in the final step of this disclosure, after all nodes are sorted in descending order of their comprehensive scores, a greedy strategy is used to sequentially select the nodes with the highest scores to form a training subset (i.e., the target training node set) until the size of the subset reaches the minimum requirement. .

[0170] It should be noted that, in some embodiments, after selecting a training subset, it is necessary to verify whether the following constraints are met simultaneously: 1. The size of the subset is not less than 2. The number of trusted nodes in the subset is no less than f+1 to ensure that honest nodes constitute the majority in the system; 3. The number of nodes from any geographical region does not exceed 50% of the total number of nodes in the subset to avoid single-point risks caused by regional concentration.

[0171] If any condition is not met, the system automatically adjusts the node selection and re-verifies until all constraints are satisfied. Specifically, if any condition is not met, the system automatically adjusts the training subset according to pre-set priorities. Priority P1 includes: prioritizing emergency expansion and reducing the threat parameter f to meet the scale requirements; priority P2 includes: forcibly adding trusted nodes (even if their overall scores are low) to meet the number of trusted nodes; priority P3 includes: replacing low-scoring nodes in the same region with nodes from other regions to optimize geographical distribution. The system iteratively adjusts and re-verifies accordingly until all constraints are satisfied.

[0172] Furthermore, if the total number of trusted nodes in the candidate pool is less than f+1, then no matter how it is adjusted, the P2 constraint cannot be satisfied. In this case, an alert should be sent upstream, the current round of training should be paused, and the node verification system should be allowed to update the list of safe nodes.

[0173] The final output is a training subset S (i.e., the target training node set) that meets the requirements of safety and efficiency.

[0174] In some embodiments, based on Figure 2It can be seen that, based on the node evaluation results and the number of nodes, the target node set required by the target system is selected from the candidate nodes, including steps S21 to S22.

[0175] Step S21: Select an initial node set from the candidate nodes based on the node evaluation results and the number of nodes.

[0176] For example, this disclosure can select an initial node set corresponding to the model training task from multiple candidate nodes, or select an initial node set for running the target model from multiple candidate nodes, based on the node evaluation results and the number of nodes.

[0177] In some embodiments, the node evaluation result includes a node evaluation score, and there are multiple candidate nodes; the step of selecting an initial node set from the candidate nodes based on the node evaluation result and the number of nodes includes: sorting the multiple candidate nodes in descending order according to the node evaluation score to obtain a candidate node sequence; selecting an initial node from the candidate node sequence in top-to-bottom order according to the number of nodes, and constructing the initial node set based on the initial node.

[0178] The initial node set can be understood as the set of nodes that need to be verified by the security verification node.

[0179] Following the previous example, after calculating the comprehensive score for each node, all nodes are sorted in descending order of their comprehensive scores. Then, a greedy strategy is used to sequentially select the nodes with the highest scores to form a training subset (i.e., the initial node set) until the size of the subset reaches the minimum requirement. .

[0180] As can be seen from the above embodiments, this disclosure enables the system to perform a unified quantitative evaluation of nodes by calculating a comprehensive score for each node (typically incorporating multiple dimensions such as computing power, data quality, reputation, and stability). After sorting in descending order, the node with the highest score is selected first, ensuring that the selected training subset achieves optimal performance in terms of overall performance, data reliability, or resource efficiency, thereby improving the quality and efficiency of subsequent training tasks.

[0181] Step S22: Using the security verification node in the target system, perform security verification on the initial node set, and if the initial node set passes the security verification, determine the initial node set as the target node set required by the target system.

[0182] Specifically, when this disclosure is applied to a model training scenario, the security verification node in the training system can be used to perform security verification on the initial node set, and if the initial node set passes the security verification, the initial node set can be determined as the target training node set corresponding to the model training task.

[0183] In this context, the security verification node can be understood as a node used to perform security verification on the initial node set, such as an audit node in a distributed cluster.

[0184] As can be seen from the above embodiments, this disclosure can effectively identify potential risks by conducting secondary evaluation of a subset of nodes through independent audit nodes, thereby improving the security depth defense capability of the entire training process, enhancing the security and trustworthiness of nodes, and preventing internal threats.

[0185] In some embodiments, there are multiple security verification nodes; the step of using the security verification nodes in the target system to perform security verification on the initial node set, and determining the initial node set as the target node set required by the target system if the initial node set passes the security verification, includes: using the multiple security verification nodes to perform local security verification on the initial node set respectively, obtaining a candidate node set output by each security verification node, wherein each candidate node set is the initial node set that has passed the verification; determining the similarity of each obtained candidate node set; determining at least one set of similar node sets based on the similarity of each candidate node set, wherein each set of similar node sets includes multiple candidate node sets with a similarity greater than or equal to a preset similarity threshold; if the number of candidate node sets in any first set of similar node sets is greater than a security number threshold, determining one candidate node set from the first set of similar node sets as the target node set.

[0186] This local security verification can be understood as the operation performed by the security verification node itself on the initial node set. This local security verification operation includes, but is not limited to, verifying whether the following constraints are met simultaneously: 1. The size of the subset is not less than 2. The number of trusted nodes in the subset is no less than f+1 to ensure that honest nodes constitute the majority in the system; 3. The number of nodes from any geographical region does not exceed 50% of the total number of nodes in the subset to avoid single-point risks caused by regional concentration.

[0187] If the initial set of nodes passes the local security verification, it can be used as a candidate set of nodes that has passed the local security verification.

[0188] Following the example above, the training node selection system disclosed herein includes a multi-Brain collaboration module, which can run on audit nodes (i.e., security verification nodes). One multi-Brain collaboration module runs on one audit node; through this multi-Brain collaboration module, multiple audit nodes can work together.

[0189] In other words, in the architecture of multiple audit nodes working together, the multi-Brain collaboration module is used to coordinate the training subset schemes proposed by each node and form a unified decision through a consensus mechanism; the execution flow of the multi-Brain collaboration module in any audit node (i.e. the target security verification node) is as follows: Step 1 to Step 2.

[0190] Step 1: Collect the training subset candidate schemes proposed by each audit node (i.e., the candidate node set output by each security verification node) to form the scheme set {S1,S2,...,Sk}.

[0191] Step 2: Then calculate the Jaccard similarity (S_i, S_j) between each scheme as a consistency index:

[0192]

[0193] Here, S_i and S_j represent different schemes.

[0194] If a solution is proposed by more than 2 / 3 of the audit nodes, then the solution is directly adopted. That is, if the similarity between a solution and other solutions (i.e., candidate node sets) is greater than a preset similarity threshold (e.g., 0.7, 0.9), then the solutions are considered similar, and these similar solutions form at least one set of similar node sets. If the number of a solution and its corresponding similar solutions is greater than 2 / 3 of the number of audit nodes (i.e., the preset similarity threshold), meaning if the number of candidate node sets in a set of similar node sets is greater than 2 / 3 of the number of audit nodes, then the solution has been proposed by more than 2 / 3 of the audit nodes, and the solution is directly adopted (i.e., the target node set is obtained).

[0195] It should be noted that if multiple solutions are proposed by more than 2 / 3 of the audit nodes, it is necessary to count the number of similar solutions for each solution; and select the solution with the largest number of similar solutions (i.e., the set of nodes to be verified with the largest number of similar nodes). Since the number of similar solutions can represent how many audit nodes agree with the solution, this disclosure selects to adopt the solution most agreed upon by multiple audit nodes (i.e., the solution with the largest number of similar solutions).

[0196] Based on the above embodiments, it can be seen that this disclosure, through parallel decision-making by multiple Brain nodes, combined with Jaccard similarity evaluation, result fusion, and PBFT consensus mechanism, can tolerate no more than A malicious brain significantly improves the reliability of scheduling decisions. Among them, It refers to the floor function, which means taking the largest integer not greater than a certain number.

[0197] In some embodiments, after determining at least one set of similar nodes based on the similarity of each of the candidate node sets, the method further includes: if the number of candidate node sets in any first set of similar nodes is less than or equal to a safe number threshold, constructing a core set based on common nodes extracted from each of the candidate node sets, and constructing a dispute set based on the remaining nodes, wherein the remaining nodes are the nodes in each of the candidate node sets excluding the common nodes; determining the frequency of occurrence of the remaining nodes in the dispute set in each of the candidate node sets; selecting the remaining nodes in the dispute set in descending order of their frequency of occurrence and adding them to the core set, until the number of nodes in the core set meets the required number; and using the core set as the target node set.

[0198] Following the previous example, after calculating the similarity, if no solution is proposed by more than 2 / 3 of the audit nodes, then the fusion strategy stage begins. A training subset is reconstructed using the solution set {S1,S2,…,Sk}, and re-validated using multiple audit nodes until a solution is proposed by more than 2 / 3 of the audit nodes, thus obtaining the final solution.

[0199] Specifically, when entering the integration strategy phase, the specific execution method of the integration strategy phase includes the following steps 1 to 5.

[0200] Step 1: Extract the common nodes of all schemes to form the core set: And the remaining nodes will form a dispute set. .

[0201] Step 2: Sort the nodes in dispute in descending order according to their frequency of occurrence in each scheme to obtain the remaining node sequence.

[0202] Step 3: Based on the minimum size Based on the current number of public nodes, determine the number of nodes that need to be added to the core set.

[0203] Step 4: From the remaining node sequence, select the nodes corresponding to the number of nodes that need to be added, from high to low, and add them to the core set to meet the minimum size requirement. .

[0204] Step 5: The final subset scheme is confirmed across the entire network using the PBFT consensus protocol. The scheme becomes effective after obtaining the consent of more than 2 / 3 of the audit nodes, and the output is the consensus subset. (i.e., the target node set).

[0205] It should be noted that in the design of the multi-Brain collaboration module, the scheme similarity threshold is set to 0.7, and can tolerate a maximum of A malicious audit node, whose fusion mechanism ensures that even when opinions differ, an effective subset that meets security and scalability requirements can still be generated.

[0206] Furthermore, multi-Brain collaboration is the recommended implementation method, while single-Brain (i.e., a single security verification node) is a simplified implementation method. Single-Brain collaboration is suitable for scenarios where "the Brain itself is already trusted through other mechanisms" (such as TEE trusted execution environments, hardware signatures, etc.).

[0207] As can be seen from the above embodiments, this disclosure enhances the robustness of scheduling decisions through a multi-Brain collaboration mechanism. The system introduces multiple audit nodes to propose and reach consensus on subset solutions, and coordinates decisions through voting and fusion strategies. This allows it to tolerate no more than one-third of the total number of malicious or faulty nodes, significantly improving the reliability of scheduling results. By using parallel decision-making by multiple Brain nodes, combined with Jaccard similarity assessment, result fusion, and the PBFT consensus mechanism, the robustness of scheduling decisions is enhanced, significantly improving the reliability of scheduling results.

[0208] In some embodiments, the node is a training node, the target node set is a target training node set, and the target training node set is used to perform model training tasks; after selecting the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes, the method further includes: during the execution of the model training task by the target training node set, obtaining the current running information of each target training node in the target training node set; updating the target training node set according to the current running information to obtain an updated training node set, wherein the updated training node set is used to replace the target training node set to continue executing the model training task.

[0209] Following the previous example, during the federated learning training process, the node status may change. This method can continuously monitor the running status and reputation indicators of each node in the training subset, and dynamically adjust each node in the training subset when the preset switching conditions are met to obtain an updated training subset (i.e., an updated training node set). This updated training subset will replace the original training subset to perform federated learning training.

[0210] Specifically, during the federated learning training process, the node status may change. This module is used to continuously monitor the running status and reputation indicators of each node in the training subset, and trigger dynamic adjustment of members when preset switching conditions are met, so as to maintain the security and training efficiency of the system.

[0211] Based on this, the dynamic switching module in the training node selection system of this disclosure adopts a periodic monitoring mechanism, evaluating a subset of nodes at intervals of every K rounds of training (K is typically set to 5 to 10) (the risk of the K-round cycle is collaboratively defended by the downstream Byzantine robust aggregation algorithm). The K-round monitoring cycle means that malicious nodes have at most a K-round "window" before being detected. However, it should be clarified that the deterioration of a node's reputation score is usually gradual; it takes multiple rounds of cumulative deduction to drop from trustworthy (R≥90) to the isolation threshold (R<60), and it will not abruptly change within a single round.

[0212] The system triggers a node switch (i.e., updates the target training node set) when any of the following conditions occur.

[0213] 1) The reputation score of any node in the subset drops below the isolation threshold, i.e., R < 60.

[0214] 2) The proportion of suspicious nodes in the subset exceeds 30%.

[0215] 3) The size of the subset is lower than the minimum requirement due to node offline or failure. .

[0216] 4) A new node with high reputation appears in the candidate node pool, with a reputation score R>95.

[0217] In addition, the specific switching operation adopts different strategies depending on the specific triggering conditions, such as the following three strategies.

[0218] 1. If triggered due to a decline in node reputation or the proportion of suspicious nodes exceeding a threshold, the problematic node will be immediately removed, and the subset will be supplemented based on the comprehensive score of the remaining candidate nodes to restore the subset size to normal. .

[0219] 2. If the subset size is insufficient due to node offline, it will be urgently supplemented from the standby trusted nodes (candidate pool nodes that have not been selected into the training subset after the current round of subset selection is completed, but are still online).

[0220] 3. If a performance optimization switch is triggered due to a high-reputation node, a gradual replacement approach will be adopted, replacing no more than 20% of the members in each subset to avoid drastic fluctuations in the training process. Newly added nodes will synchronize the global model parameters from the most recent N training rounds (N should be consistent with the dynamic switching monitoring period K (N=K=5-10) to ensure that the new node obtains the complete recent training state. If resources are limited, this can be simplified to N=1 (only synchronizing the latest round of global model) to reduce synchronization overhead). Nodes that are removed will retain their training data for possible subsequent data recovery.

[0221] Finally, the output is the updated training subset. (That is, update the training node set).

[0222] In this module design, the K-round monitoring cycle balances system response speed and stability; the replacement ratio is limited to 20% to effectively avoid training divergence; and security risk conditions are given the highest priority to ensure that the system responds to threats in a timely manner.

[0223] Regarding the determination of node offline / fault status, this disclosure adds the following status determination mechanism before the original "monitoring strategy" and "triggering conditions"; the specific determination method includes two stages: initial judgment of heartbeat timeout + active retry confirmation, and the specific execution method can be found in steps 1 to 3 below.

[0224] Step 1: Initial assessment of heart rate timeout.

[0225] Specifically, the scheduling module maintains the last heartbeat timestamp last_heartbeat[i] for each node: if If so, node i will be marked as "suspected offline". The default value of T_timeout is 2 × heartbeat sending period (the heartbeat period is usually 30 seconds, so T_timeout = 60 seconds).

[0226] Step 2: Actively retry and confirm.

[0227] For suspected offline nodes, the scheduling module actively sends connectivity probes (ping), with 3 retries at 10-second intervals.

[0228] The determination rules include: if a node fails to respond after three consecutive retries, it is determined to be in an offline state and is immediately removed from the current subset (if it exists), triggering dynamic switching, and at the same time notifying the upstream node to verify the system to update the list of safe nodes; if there is at least one successful response during the retry process, the suspected offline mark is revoked, normal monitoring is restored, and this timeout event is recorded and included in the node stability history.

[0229] Step 3: Differentiating and handling faults and offline status.

[0230] Node status is divided into two categories: offline and faulty. When a node is unresponsive and the reason is unknown, it is determined to be offline. At this time, it is removed from the current subset and transferred to the standby pool to retain its candidate status. After the node comes back online, it needs to re-register via heartbeat before it can re-enter the candidate pool.

[0231] When a node responds but exhibits an anomaly (such as an incorrect return format or verification failure), it is considered to be in a fault state. Such nodes must also be removed from the subset, and the abnormal behavior must be reported to the upstream verification system. The upstream system will then decide whether to lower its reputation score or mark it as a malicious node. This module does not directly modify the node's reputation score to ensure clear boundaries of module responsibilities.

[0232] Furthermore, the offline judgment (T_timeout=60s) and the dynamic switching monitoring cycle (K rounds) are independent of each other: heartbeat timeout can trigger immediate switching at any time without waiting for the K-round checkpoint, thus ensuring the real-time response of the system. Node stability history (such as timeout frequency) can be added as a new dimension to the comprehensive score in subsequent versions and incorporated into the computing power evaluation system.

[0233] As can be seen from the above embodiments, this disclosure uses K rounds of continuous monitoring (K=5~10), sets four types of node state triggering conditions, and adopts a hierarchical switching strategy, which can complete the replacement within 5~10 rounds after the node performance deteriorates, effectively avoiding the long-term impact of low-quality nodes on the training process.

[0234] In some embodiments, the training node selection system provided in this disclosure further includes an output interface module. This output interface module is responsible for outputting scheduling decisions in a structured format to the downstream aggregation system as input to the federated learning gradient aggregation process.

[0235] Its output includes complete member information of the training subset, key system parameters, and consensus verification data, ensuring that downstream systems can safely and reliably execute subsequent aggregation operations. The output uses standard JSON format, with the following structure:

[0236] {"subset_id (subset ID)":"round_42_subset_v2".

[0237] "timestamp": "2025-12-24T14:30:00Z".

[0238] "f (fault tolerance parameter)": 3.

[0239] "n_min (minimum subset size)": 7.

[0240] "n_selected (actual number of selected nodes)": 12.

[0241] "threat_index": 0.15.

[0242] "nodes":{

[0243] {"node_id (unique identifier of a node)":"node_003"}

[0244] "reputation score": 95.

[0245] "weight (aggregate weight)":1.

[0246] "role": "trusted".

[0247] "region":"xxx-west"}

[0248] },

[0249] "consensus_signature":"OxAB12..."}.

[0250] The node list details key information for each selected node, including its unique identifier (node_id), reputation score, aggregation weight, and role attributes. The output data directly includes core system parameters such as the Byzantine fault tolerance parameter f, minimum subset size n_min, actual number of selected nodes n_selected, and threat index (threat_index) used in the current scheduling cycle. The consensus signature is generated jointly by multiple audit nodes to verify the legality and completeness of the scheduling results. The aggregation weight is a recalculated continuous weight based on the comprehensive score: weight_i = score_i / Σscore_j.

[0251] The node selection method provided in this disclosure aims to accurately select high-performance and secure nodes. It performs detailed analysis and testing of multiple nodes in the system from multiple aspects. First, based on the historical node status information of the target system and the current node status information of candidate nodes, the number of nodes required by the target system and meeting its preset fault tolerance requirements is accurately determined. Then, candidate nodes are evaluated based on node performance information to obtain node evaluation results, preparing for the subsequent selection of nodes with better performance. After completing the detailed analysis and testing of nodes from multiple aspects, based on the node evaluation results and the number of nodes, the target node set corresponding to the model task is selected again from the multiple candidate nodes that have been pre-screened. This ensures the security and performance of the target nodes in the target node set, achieving accurate selection of higher-performance and more secure nodes for the model task. This avoids problems such as high data leakage risk and poor performance that could prevent the target system from operating safely and stably.

[0252] Taking the node selection method provided in this disclosure in a distributed machine learning scenario as an example, this paper explains the node selection method. The training system can be a federated learning network, and the node can be a node (i.e., a server or terminal device) within the federated learning network. Based on this, taking a federated learning network containing 20 nodes as an example, the specific implementation of dynamic node subset scheduling is explained. The federated learning network of this disclosure provides a subset scheduling architecture of "reputation-driven + constraint optimization + dynamic switching," which can receive a list of secure nodes (provided by the verification system or configured by the administrator) and select a training subset through a multi-objective optimization algorithm, dynamically adjusting it according to state changes during training. The initial state of the federated learning network is: 12 trusted nodes (i.e., training nodes at the first security level), 5 suspicious nodes (i.e., training nodes at the second security level), and 3 malicious nodes (i.e., training nodes at the third security level).

[0253] This disclosure proposes a training node selection system (i.e., a dynamic subset scheduling system) for multiple nodes in a training system. This training node selection system may include: an input layer, an input interface module, a threat assessment module, a subset selection module, a multi-brain collaboration module, a dynamic switching module, and an output interface module (i.e.,...). Figure 3 The output layer (of the system) consists of an input interface module, a threat assessment module, a subset selection module, a multi-brain collaboration module, and a dynamic switching module. Figure 3 The core scheduling module in the system.

[0254] Through the interaction and cooperation of multiple modules, a corresponding target training node set can be selected for the model training task. During this process, malicious nodes can be filtered out through a verification system. Then, a candidate node pool is formed from the remaining 17 nodes (trustworthy and suspicious nodes). That is to say, this candidate node pool includes trustworthy and suspicious nodes, but does not contain malicious nodes.

[0255] Based on this, the input interface module receives a list of security nodes provided by the input layer and performs parsing and verification on this list. This list of security nodes can be in JSON format, meaning it can be JSON data. The source of the security node list is either provided by the verification system or configured by the administrator; that is, the security node list is provided by the verification system or configured by the administrator.

[0256] The input interface module can parse information about each node in the security node list, including node identifier, status, reputation value, weight, and timestamp. The node status is divided into trusted, suspicious, or malicious. The input interface module can also verify the integrity and format validity of the received data. After successful verification, malicious nodes are completely excluded, and only nodes with a trusted or suspicious status are included in the candidate node pool for subsequent scheduling.

[0257] The threat assessment module in the system can assess the threat situation based on the status distribution of nodes in the candidate node pool: calculating the proportion of suspicious nodes as 5 / 20 = 0.25, and combining it with the historical attack rate of 0.15 (detection rate in the last 10 rounds), a threat index of 0.295 is obtained. Based on a preset threshold, the system is determined to be at a medium threat level, and the fault tolerance parameter f = 4 and the minimum subset size are determined. .

[0258] Subsequently, the subset selection module in the system performs multi-objective optimization based on the node list in the candidate node pool, thereby selecting the initial training subset (i.e. Figure 3 (In the preliminary scheme) Specifically, the subset selection module calculates a score for each node by comprehensively evaluating node reputation, computing power, and data quality, and then applies a trust weighting. The top 9 nodes are selected in descending order of score to form the initial training subset, which has been verified to meet the constraints of size, number of trustworthy nodes, and geographical distribution.

[0259] After the subset selection module forms the initial training subset, the multi-Brain collaboration module enters the processing stage, where the final subset is selected through a consensus mechanism; for example, three audit nodes each propose a subset scheme. After similarity calculation and voting, the scheme {node_001~009} receives more than 2 / 3 support and is confirmed as the final subset (i.e., the consensus subset) through the PBFT consensus mechanism.

[0260] After obtaining the final subset, the system can send the final subset as a stable subset to the output layer; the output layer performs the distribution operation of the training subset, outputting standardized data of subset member information, fault tolerance parameters and consensus signatures contained in the stable subset, for use by the gradient aggregation system (i.e., downstream module).

[0261] It should be noted that during training, this system can also implement dynamic switching through a dynamic switching module. Specifically, when the state of a node in the candidate node pool is updated, the state update information is provided to the dynamic switching module. This dynamic switching module can monitor the node state during training according to a preset monitoring period (K rounds). A safe switching mechanism will be triggered if a node's reputation score decreases or its state is updated to malicious. The K rounds can be set according to requirements. For example, in round 15, if the reputation score of node #007 drops to 58, below the isolation threshold, the system immediately triggers the safe switching mechanism, removing the problematic node and replacing it with node #012, the highest-scoring node in the candidate node pool. After synchronizing the model parameters from the last 5 rounds, the new node officially participates in training in round 16.

[0262] Based on the above, the node selection method of this disclosure provides a dynamic safe subset scheduling method for AI training oriented towards Byzantine fault tolerance. This disclosure relates to the fields of distributed machine learning, task scheduling and resource optimization, and specifically to a technical solution for dynamically selecting a safe training subset from a global node pool and scheduling tasks under Byzantine fault tolerance constraints.

[0263] This disclosure aims to provide a dynamic safe subset scheduling method for AI training with Byzantine fault tolerance. By comprehensively utilizing multi-dimensional information such as node credibility, resource status, and training contribution, it dynamically selects the optimal training subset while satisfying Byzantine fault tolerance constraints, achieving a balance between security and efficiency. It should be noted that this disclosure can be used independently or in conjunction with a node verification system (such as a dynamic reputation management system), receiving its output list of safe nodes as input.

[0264] Specifically, based on the above embodiments, this disclosure solves the problem of how to achieve dynamic, efficient, and adaptive scheduling from the global node pool to the safe training subset under Byzantine fault tolerance constraints. Specifically, it includes: (1) how to select the optimal subset that balances security and training efficiency based on node trust information while satisfying 2f+1 redundancy. (2) how to dynamically adjust subset members according to real-time changes in node status to achieve "hot switching" during the training process. (3) how to form a unified subset scheduling decision through a consensus mechanism in multi-Brain collaboration scenarios. (4) how to dynamically adjust redundancy according to the threat situation to balance security and resource utilization.

[0265] In other words, the dynamic subset scheduling system described in this disclosure can effectively balance the security, efficiency and adaptability of federated learning, and its beneficial effects include, but are not limited to, the following five aspects.

[0266] (1) Achieve synergistic improvement in security and training efficiency. The system uses a reputation-weighted multi-objective optimization mechanism to prioritize nodes with good reputation, strong computing power, and high data quality for training, while satisfying Byzantine fault tolerance constraints.

[0267] (2) It has the ability to adapt to the dynamic changes of network threats. The threat assessment module dynamically adjusts the system's fault tolerance parameter f based on the proportion of suspicious nodes monitored in real time and the historical attack rate. It enhances redundancy protection in high-threat scenarios and reasonably reduces resource consumption in low-threat scenarios, thereby avoiding resource waste or security risks that may be caused by fixed redundancy strategies.

[0268] (3) Supports real-time response and smooth switching to node status changes. The dynamic switching module uses periodic monitoring to detect events such as node reputation decline, offline status, or new node addition, and can complete the response within an average training cycle. By limiting the single replacement ratio to no more than 20%, the smooth switching mechanism effectively avoids drastic fluctuations caused by node changes during the training process.

[0269] (4) Enhance the robustness of scheduling decisions through a multi-brain collaboration mechanism. The system introduces multiple audit nodes to propose and reach consensus on subset solutions. Through voting and fusion strategies, the system can tolerate no more than one-third of the total number of malicious or faulty nodes, which significantly improves the reliability of scheduling results.

[0270] (5) Provides strict Byzantine fault tolerance theory guarantees. The system design is based on the 2f+1 redundancy theory, which mandates that the number of trusted nodes meets the lower bound constraint in subset selection, thereby ensuring that honest nodes always occupy a majority in the subset under any circumstances. Theoretical analysis shows that the system can still withstand attacks from f Byzantine faulty nodes in the worst case.

[0271] In some embodiments, this disclosure provides a reputation-driven multi-objective subset selection algorithm that achieves safe and efficient node selection through node comprehensive scores and constraint optimization. It provides a threat situation-driven dynamic redundancy adjustment mechanism that adaptively determines fault tolerance parameters and minimum subset size based on the threat index. It provides a dynamic subset switching strategy during training, triggering tiered switching and controlling the replacement ratio based on node state changes. It provides a multi-brain collaborative consensus protocol that forms reliable scheduling decisions through similarity evaluation, fusion strategies, and consensus confirmation. It provides a standardized interface design that defines input and output formats. Furthermore, while maintaining the "reputation-driven, constraint optimization, and dynamic switching" mechanism, this disclosure also provides solutions for subset selection, threat assessment, consensus mechanisms, dynamic switching, and data quality calculation, as detailed in the following five methods.

[0272] (1) Selection of subsets.

[0273] In the process of subset selection, this disclosure can also use a genetic algorithm for global optimization, or use a simulated annealing algorithm to avoid getting trapped in local optima. It can also learn the optimal node selection strategy online through a reinforcement learning mechanism to adapt to the scheduling needs of different network environments.

[0274] (2) Threat assessment.

[0275] In the process of threat assessment, this disclosure can use machine learning classification models to intelligently predict threat levels, or use time series analysis to predict future threat trends, and can also use Bayesian networks to infer the probability of threat occurrence, thereby achieving more refined threat perception.

[0276] (3) Regarding consensus mechanisms.

[0277] In scenarios where the fault model allows, this disclosure may employ the Raft consensus algorithm to improve efficiency, or select an asynchronous consensus protocol to enhance the robustness of the system in asynchronous network environments. Alternatively, a hybrid mechanism combining voting and arbitration may be designed to balance performance and security.

[0278] (4) For dynamic switching.

[0279] This disclosure may also employ a predictive switching mechanism, which predicts and executes switching in advance based on node behavior characteristics; or a fixed-period rotation strategy to achieve periodic resource updates; or an event-driven mechanism, which triggers switching operations only when a clear abnormal event is detected, in order to reduce system overhead.

[0280] (5) Calculation of data quality.

[0281] This disclosure allows the use of information entropy, variance, or extreme value indices to replace the original L1 distance method.

[0282] Compared with current technical solutions, the node selection method provided in this disclosure has advantages including, but not limited to, the following six advantages.

[0283] Advantage 1: Achieving a quantitative balance between security and training efficiency. Existing methods neglect security due to random node selection, while some methods improve security at the expense of efficiency. This solution constructs a multi-objective optimization function (including node reputation weight of 0.6, computing power weight of 0.2, and data quality weight of 0.2) and solves it using a constrained optimization method. This effectively improves the training convergence speed of the model while satisfying the 2f+1 Byzantine fault tolerance condition.

[0284] Advantage 2: Dynamic redundancy adjustment based on threat awareness optimizes resource utilization. Traditional solutions typically assume a fixed Byzantine node ratio f, leading to conservative resource allocation or insufficient redundancy. This solution introduces a threat index-driven piecewise adjustment function, dynamically setting f within the range of 10% to 33%. Only 10% redundant nodes are needed in low-threat environments, increasing to 33% in high-threat environments, thus significantly improving resource utilization.

[0285] Advantage 3: Supports dynamic node switching with an average response time of less than one cycle. Existing static subset selection mechanisms struggle to adapt to real-time changes in node states. This solution employs K rounds of continuous monitoring (K=5~10), sets four types of node state trigger conditions, and adopts a tiered switching strategy. This allows for replacement within 5~10 rounds after node performance deteriorates, effectively avoiding the long-term impact of low-quality nodes on the training process.

[0286] Advantage 4: Multi-Brain collaborative decision-making mechanism enhances system robustness. Addressing the vulnerability of single-point schedulers to attacks or failures, this solution deploys multiple Brain nodes for parallel decision-making, combining Jaccard similarity assessment, result fusion, and PBFT consensus mechanisms, tolerating no more than [missing information - likely referring to a specific vulnerability or failure rate]. A malicious brain significantly improves the reliability of scheduling decisions.

[0287] Advantage 5: Modular integration capability, constructing a complete secure training chain. In existing methods, the verification and scheduling modules are independent and do not fully share trust information. This solution receives a list of secure nodes through a standardized interface, outputs an optimized training subset to the aggregation system, forming an integrated "verification-scheduling-aggregation" process, and is compatible with various verification and aggregation methods.

[0288] Advantage 6: Theoretical guarantee of the system's Byzantine fault tolerance performance. Unlike heuristic methods that lack theoretical support, this scheme rigorously proves from a mathematical perspective that the system can still maintain correct training when there are f Byzantine nodes by constraining the number of trusted nodes to be no less than f+1 and the total number of nodes in the system to be no less than 2f+1.

[0289] The node selection method according to the embodiments of this disclosure can be applied to application scenarios where neural networks are accelerated through many-core systems. The target model can be any type of neural network model such as an artificial neural network (ANN) or a spiking neural network (SNN). The target model is used to perform any of the processing tasks such as image processing, speech processing, text processing, and video processing. The data processed by the target model includes any of the following: images, speech, text, and video. This disclosure does not limit the types of data processed.

[0290] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step should be determined by its function and possible internal logic.

[0291] In addition, this disclosure also provides a node selection device, an electronic device, and a computer-readable storage medium, all of which can be used to implement any of the node selection methods provided in this disclosure. The corresponding technical solutions and descriptions are described in the corresponding section of the method and will not be repeated here.

[0292] Figure 4 This is a block diagram of a node selection device provided in an embodiment of the present disclosure.

[0293] Reference Figure 4 This disclosure provides a node selection device, which includes: a first node selection module 41, a node quantity determination module 42, a node evaluation module 43, and a second node selection module 44.

[0294] The first node selection module 41 is used to select candidate nodes from multiple obtained nodes, wherein the candidate nodes are nodes that meet a preset security level.

[0295] The node quantity determination module 42 is used to determine the number of nodes required by the target system based on the historical node status information of the target system and the current node status information of the candidate nodes, wherein the number of nodes meets the preset fault tolerance requirements of the target system.

[0296] The node evaluation module 43 is used to obtain the node performance information of the candidate node, and evaluate the candidate node based on the node performance information to obtain the node evaluation result.

[0297] The second node selection module 44 is used to select the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes.

[0298] The node selection device provided in this disclosure, in order to accurately select high-performance and secure nodes, can perform detailed analysis and testing on multiple nodes of the system from multiple aspects. First, based on the historical node state information of the target system and the current node state information of candidate nodes, the number of nodes required by the target system and meeting the preset fault tolerance requirements of the target system is accurately determined. Then, the candidate nodes are evaluated based on the node performance information to obtain node evaluation results, which prepares for the subsequent selection of nodes with better performance. After completing the detailed analysis and testing of nodes from multiple aspects, based on the node evaluation results and the number of nodes, the target node set corresponding to the model task is selected again from the multiple candidate nodes that have been pre-screened. This ensures the security and performance of the target nodes in the target node set, and achieves accurate selection of nodes with better performance and greater security for the model task, avoiding problems such as high risk of data leakage and poor performance that could lead to the target system's inability to operate safely and stably.

[0299] The above is a schematic scheme of a node selection device according to this embodiment. It should be noted that the technical solution of this node selection device and the technical solution of the node selection method described above belong to the same concept. For details not described in detail in the technical solution of the node selection device, please refer to the description of the technical solution of the node selection method described above.

[0300] Figure 5 This is a block diagram of an electronic device provided in an embodiment of the present disclosure.

[0301] Reference Figure 5 This disclosure provides an electronic device, which includes: at least one processor 501; at least one memory 502; and one or more I / O interfaces 503 connected between the processor 501 and the memory 502; wherein the memory 502 stores one or more computer programs that can be executed by the at least one processor 501, and the one or more computer programs are executed by the at least one processor 501 to enable the at least one processor 501 to perform the node selection method described above.

[0302] This disclosure also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the node selection method described above. The computer-readable storage medium may be volatile or non-volatile.

[0303] This disclosure also provides a computer program product including computer-readable code, which, when run in a processor of an electronic device, executes the node selection method described above.

[0304] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0305] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0306] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0307] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0308] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0309] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0310] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0311] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0312] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0313] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in connection with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A node selection method, characterized in that, include: Candidate nodes are selected from the multiple obtained nodes, wherein the candidate nodes are nodes that meet the preset security level; Based on the historical node status information of the target system and the current node status information of the candidate nodes, the number of nodes required by the target system is determined, wherein the number of nodes meets the preset fault tolerance requirements of the target system; Obtain the node performance information of the candidate nodes, and evaluate the candidate nodes based on the node performance information to obtain node evaluation results; Based on the node evaluation results and the number of nodes, the target node set required by the target system is selected from the candidate nodes.

2. The method according to claim 1, characterized in that, Determining the required number of nodes for the target system based on the historical node status information of the target system and the current node status information of the candidate nodes includes: Based on the historical node status information of the target system and the current node status information of multiple candidate nodes, the risk information of the multiple candidate nodes is determined; Based on the risk information, the fault tolerance information of the target system is determined, and based on the fault tolerance information, the number of nodes required for the target system is determined.

3. The method according to claim 1, characterized in that, The step of selecting the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes includes: Based on the node evaluation results and the number of nodes, an initial node set is selected from the candidate nodes; Using the security verification nodes in the target system, the initial node set is security verified, and if the initial node set passes the security verification, the initial node set is determined as the target node set required by the target system.

4. The method according to claim 3, characterized in that, There are multiple security verification nodes; The step of using the security verification nodes in the target system to perform security verification on the initial node set, and determining the initial node set as the target node set required by the target system if the initial node set passes the security verification, includes: The initial node set is locally verified using multiple security verification nodes to obtain a candidate node set output by each security verification node, wherein each candidate node set is the initial node set that has passed verification. Determine the similarity of each of the obtained candidate node sets; At least one set of similar nodes is determined based on the similarity of each candidate node set, wherein each set of similar nodes includes multiple candidate node sets with a similarity greater than or equal to a preset similarity threshold. If the number of candidate node sets in any first set of similar nodes is greater than a safe number threshold, a candidate node set is determined from the first set of similar nodes as the target node set.

5. The method according to claim 4, characterized in that, After determining at least one set of similar nodes based on the similarity of each of the candidate node sets, the method further includes: If the number of candidate nodes in any first set of similar nodes is less than or equal to the safe number threshold, a core set is formed based on the common nodes extracted from each candidate node set, and a dispute set is formed based on the remaining nodes, wherein the remaining nodes are the nodes in each candidate node set other than the common nodes. Determine the frequency of occurrence of the remaining nodes in the dispute set within each candidate node set; The remaining nodes in the dispute set are selected and added to the core set in descending order of frequency of occurrence, until the number of nodes in the core set meets the specified number. The core set is used as the target node set.

6. The method according to claim 3, characterized in that, The node evaluation result includes a node evaluation score, and there are multiple candidate nodes; The step of selecting an initial node set from the candidate nodes based on the node evaluation results and the number of nodes includes: Based on the node evaluation scores, multiple candidate nodes are sorted in descending order to obtain a candidate node sequence; Based on the number of nodes, initial nodes are selected from the candidate node sequence in a top-to-bottom order, and the initial node set is constructed based on the initial nodes.

7. The method according to any one of claims 1 to 6, characterized in that, The preset security level includes a first security level and a second security level; The step of selecting candidate nodes from the obtained multiple nodes includes: A node list corresponding to the target system is determined, and the node attribute information of the nodes in the node list is determined, wherein the nodes include nodes of a first security level, nodes of a second security level, and nodes of a third security level; the first security level is higher than the second security level, and the second security level is higher than the third security level; The accuracy of the node attribute information of the node is verified, and the nodes that pass the accuracy verification are determined as accurate nodes; Delete the nodes with the third security level from the accurate nodes to obtain candidate nodes.

8. The method according to claim 2, characterized in that, The step of determining the risk information of the multiple candidate nodes based on the historical node status information of the target system and the current node status information of the multiple candidate nodes includes: Based on the number of nodes at the first security level, the number of nodes at the second security level, and the number of nodes at the third security level in the historical node status information, determine the first ratio corresponding to the nodes at the third security level. Based on the number of candidate nodes in the current node status information and the number of nodes at the second security level, determine the second ratio corresponding to the nodes at the second security level; Based on the first ratio and the second ratio, the risk information of the plurality of candidate nodes is determined.

9. The method according to claim 2, characterized in that, The fault tolerance information includes fault tolerance parameters; The step of determining the fault tolerance information of the target system based on the risk information, and determining the number of nodes required for the target system based on the fault tolerance information, includes: The target weight corresponding to the risk information is determined from multiple preset weights, and the number of multiple candidate nodes is weighted using the target weight to obtain the fault tolerance parameter; Based on the Byzantine fault-tolerant algorithm and the fault-tolerant parameters, the number of nodes required for the target system is determined.

10. The method according to any one of claims 1 to 6, characterized in that, The node performance information includes node computation parameters, data quality parameters, and reputation score; the node evaluation result includes node evaluation score; and there are multiple candidate nodes. The step of evaluating the candidate nodes based on the node performance information to obtain node evaluation results includes: Based on the first weight corresponding to the node calculation parameters, the node calculation parameters are weighted to obtain the weighted node calculation parameters; The data quality parameters are weighted according to the second weight corresponding to the data quality parameters to obtain weighted data quality parameters; The reputation score is weighted according to the third weight corresponding to the reputation score to obtain a weighted reputation score; The weighted node calculation parameters, the weighted data quality parameters, and the weighted reputation scores are added together to obtain the initial node evaluation scores for multiple candidate nodes. Based on the initial node evaluation scores, the node evaluation scores are obtained.

11. The method according to claim 10, characterized in that, The step of obtaining the node evaluation score based on the initial node evaluation score further includes: Nodes of the first security level are determined from the plurality of candidate nodes, and the fourth weight corresponding to the nodes of the first security level is determined; The initial node evaluation scores corresponding to the nodes of the first security level among the plurality of candidate nodes are weighted by the fourth weight to obtain the node evaluation scores of the plurality of candidate nodes.

12. The method according to claim 10, characterized in that, The step of obtaining the node performance information of the candidate nodes includes: The system receives resource parameters of various computing resources submitted by the multiple candidate nodes, weights the resource parameters using the resource weights corresponding to the various computing resources to obtain weighted resource parameters, and normalizes the weighted resource parameters to obtain node computing parameters of the multiple candidate nodes. The data information submitted by the multiple candidate nodes is verified for data quality. If the data information passes the data quality verification, the data volume score and distribution balance score of the data information are calculated. Based on the data volume score and the distribution balance score, the data quality parameters of the multiple candidate nodes are calculated.

13. The method according to any one of claims 1 to 6, characterized in that, The node is a training node, and the target node set is a target training node set, which is used to perform model training tasks; After selecting the target node set required by the target system from the candidate nodes based on the node evaluation results and the number of nodes, the method further includes: During the execution of the model training task in the target training node set, the current running information of each target training node in the target training node set is obtained; The target training node set is updated based on the current running information to obtain an updated training node set, wherein the updated training node set is used to replace the target training node set to continue executing the model training task.

14. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs that can be executed by the at least one processor, the one or more computer programs being executed by the at least one processor to enable the at least one processor to perform the method as described in any one of claims 1-13.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by a processor, implements the method as described in any one of claims 1-13.

16. A computer program product, characterized in that, Includes computer-readable code, which, when executed in a processor of an electronic device, causes the processor in the electronic device to perform the method as described in any one of claims 1-13.