Federal learning-based privacy protection type large-scale model training and deployment method

Through technologies such as adaptive privacy protection layer and model robustness enhancement algorithm, the problem of data privacy protection and model performance optimization in large model training in federated learning is solved, efficient training and deployment in data-sensitive fields is achieved, and the model is improved. cross-domain applications and security.

CN118734360APending Publication Date: 2024-10-01HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 30 Cited by

Patent Information

Application Number
CN202410880877.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing federated learning methods face challenges in data privacy protection, model performance optimization, and system security in large-scale model training. In particular, they have limitations in uneven data distribution and domain differences, which limit their application in data-sensitive fields. .

Method used

Adopting adaptive privacy protection layer, model robustness enhancement algorithm, smart contract system, real-time performance monitoring system, cross-domain knowledge transfer framework and differential privacy automatic parameter adjustment tool, through encryption, data perturbation, outlier detection, and adversarial sample generation , blockchain verification, real-time performance optimization and cross-domain knowledge migration and other technologies to ensure data privacy and model performance.

Benefits of technology

Without sacrificing data privacy, it improves the training efficiency and performance of large-scale models, enhances the model's cross-domain application capabilities and system security, significantly improves the level of data privacy protection and the robustness of the model, and achieves a more efficient Model deployment and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734360A_ABST
    Figure CN118734360A_ABST
Patent Text Reader

Abstract

The invention relates to a privacy protection problem in distributed AI model training in federated learning, in particular to a privacy protection type large model training and deployment method based on federated learning. Data disturbance, access control and encryption strategies are dynamically adjusted through an adaptive privacy protection layer, and data security is ensured. A model robustness enhancement algorithm is combined with abnormal value detection and an adversarial sample, so that the model stability is improved. The intelligent contract and block chain technology realizes tampering-free recording and verification of model parameter updating, and the transparency and traceability are enhanced. The real-time performance monitoring and model interpretability technology improves the model reliability and decision transparency. A cross-domain knowledge migration framework and an automatic parameter adjustment tool solve the problems of uneven data distribution and domain differences, and the optimal balance between privacy protection and model performance is achieved. And the security starting technology ensures the starting security of the client. The method is applied to the industries of natural language processing, image recognition, medical health and the like, and has wide application prospects and value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of machine learning, distributed computing, data privacy protection and network security, and in particular to a privacy-preserving large-scale model training and deployment method based on federated learning. Background Art

[0002] With the rapid development of big data and artificial intelligence technologies, machine learning models, especially large models, have shown significant performance advantages in processing complex data analysis tasks. These models usually require a large amount of data for training, but the data sets often contain sensitive information, such as personal identity information, health records, or financial data. Traditional centralized training methods gather data in a single location, which poses a risk of privacy leakage, limiting the application of machine learning technology in data-sensitive fields.

[0003] To solve this problem, federated learning has been proposed as an emerging distributed learning method. Under the federated learning framework, multiple participants collaborate to train models while keeping data localized, avoiding centralized data sharing. Nevertheless, existing federated learning methods face many challenges when dealing with large models, including data privacy protection, model performance optimization, and system security. In addition, due to the uneven distribution of data and domain differences, existing methods are still limited in cross-domain knowledge transfer and model generalization capabilities.

[0004] The purpose of this invention is to propose an improved federated learning method, which is particularly suitable for the training and deployment of large models, and can improve the training efficiency and performance of the model without sacrificing data privacy, while enhancing the cross-domain application capabilities of the model. By introducing innovative mechanisms such as privacy protection enhancement technology, cross-domain knowledge transfer framework, and automated differential privacy parameter adjustment tools, this invention aims to overcome the shortcomings of the prior art and provide an effective solution for data privacy protection and the widespread application of machine learning models. Summary of the invention

[0005] The purpose of this invention is to solve the problem of data privacy protection in a distributed data environment and improve the performance and security of large machine learning models. Through a series of innovative technologies, this invention realizes the effective training and deployment of large models without sacrificing data privacy.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0007] Step 1: The central server initializes a pre-trained large model;

[0008] Step 2: The central server encrypts the pre-trained large model and distributes it to each client participating in federated learning;

[0009] Step 3: The client uses local data and synthetic data to personalize and fine-tune the model and generate updates;

[0010] Step 4: The client’s privacy protection layer processes the update, including data perturbation and encryption;

[0011] Step 5: The central server collects the encrypted updates and updates the global model using a secure aggregation algorithm;

[0012] Step 6: The smart contract system verifies the validity of the aggregation and records the update on the blockchain;

[0013] Step 7: The real-time performance monitoring system evaluates the model performance and performs necessary optimizations;

[0014] Step 8: The central server sends the updated model to the client, which decrypts and applies the update.

[0015] Preferably, the privacy protection layer includes the following subunits and their operation process is as follows:

[0016] 1) A data sensitivity assessment unit, whose operation process includes: receiving a local data set provided by a client; scoring each data point in the data set using a predefined feature set and a sensitivity scoring system, wherein the scoring system is based on the similarity between the features of the data point and known sensitive information; and classifying the data points into different sensitivity levels according to the scoring results;

[0017] 2) Risk analysis unit, whose operation process includes: receiving data sensitivity scores from the data sensitivity assessment unit; using statistical analysis and machine learning techniques to predict the privacy risks that the data may encounter during the model training process, including member inference attacks and data re-identification risks; based on the prediction results, assessing the privacy risk level and generating a risk report for each data point or data set;

[0018] 3) The strategy generation unit, whose operation process includes: receiving the risk report from the risk analysis unit; automatically selecting a strategy from a predefined privacy protection strategy library based on the privacy risk level in the risk report, which contains a variety of privacy protection technologies, such as random perturbations, homomorphic encryption, secure multi-party computing, etc.; adjusting the parameters of the selected strategy to adapt to the sensitivity and risk level of the data, and generating the final privacy protection strategy; applying the generated privacy protection strategy to the client's data set to ensure that the data is properly processed before model training;

[0019] 4) A privacy protection policy application unit, whose operation process includes: receiving the privacy protection policy from the policy generation unit; executing the operations defined in the policy on the client's local data set, such as adding noise to the data, implementing data perturbations, or performing encryption operations; ensuring that the processed data set not only meets the privacy protection requirements but also can be used for effective model training; using the processed data set for local model training and generating model updates that include privacy protection;

[0020] 5) Communication encryption unit, whose operation process includes: after the client generates the model update, encrypt the update content using a secure encryption algorithm; send the encrypted update to the central server to ensure that unauthorized access is prevented during the data transmission process; perform decryption operations on the central server to facilitate subsequent model update aggregation;

[0021] 6) Update audit unit, whose operation process includes: receiving encrypted model updates from clients; using smart contract system to verify the validity of updates, including the source, integrity and privacy protection compliance of updates; recording verified updates to the blockchain to provide transparent audit trail for model updates;

[0022] The data sensitivity assessment unit first performs sensitivity scoring on the client's local data set to identify sensitive information; the risk analysis unit then uses these scores to predict privacy risks and generate a risk assessment report; the policy generation unit automatically selects and adjusts the most appropriate privacy protection policy from the predefined policy library based on the risk assessment report; the privacy protection policy application unit executes the selected policy and performs necessary perturbations or encryption on the data to protect privacy while retaining the practicality of the data; then, the communication encryption unit encrypts the model update to ensure its security during transmission; finally, the update audit unit verifies these encrypted updates on the central server side and uses the smart contract system to ensure their legitimacy and integrity, providing an unalterable audit trail for the entire update process through blockchain technology; the design of the entire privacy protection layer forms a closed-loop system, in which the output of each sub-unit is the input of the next unit. Through a continuous processing chain and feedback mechanism, strict protection of data privacy is achieved, while optimizing the model performance in the federated learning process;

[0023] One of the cores of the present invention is an adaptive privacy protection layer, which can dynamically adjust the privacy protection strategy according to the sensitivity of the data. The data sensitivity assessment unit uses advanced machine learning algorithms, such as support vector machines (SVM) or deep neural networks (DNN), to analyze the similarity between the characteristics of data points and known sensitive information and generate sensitivity scores. The risk analysis unit uses statistical analysis methods, such as chi-square tests or Fisher's exact tests, to predict the privacy risks that the data may encounter during the training process, such as member inference attacks. The strategy generation unit automatically selects the most appropriate strategy from the predefined privacy protection strategy library based on the risk assessment results, such as random perturbations, homomorphic encryption, secure multi-party computing, etc.

[0024] Preferably, the operation process of the model robustness enhancement algorithm specifically includes:

[0025] In order to improve the robustness of the model, this paper proposes a model robustness enhancement algorithm. The model robustness enhancement algorithm is a key component of the present invention, which aims to improve the stability and security of large models in a federated learning environment. The algorithm is implemented through two main units: an outlier detection unit and an adversarial sample generation unit;

[0026] 1) Outlier detection unit: The purpose of this unit is to identify and process outliers in the training data before model training to prevent these outliers from having a negative impact on the model training process. The outlier detection unit uses two main statistical methods to identify outliers:

[0027] Z-Score method: This method calculates the degree of deviation of each data point from the mean of the data set and measures it through the Z-Score. The Z-Score of a data point is its difference from the mean divided by the standard deviation. The outlier detection unit sets a threshold, such as 1.5 or 3, and any data point with a Z-Score exceeding this threshold is considered an outlier;

[0028] IQR method: This method uses the interquartile range (IQR) to identify outliers. First, the first quartile (Q1) and the third quartile (Q3) are calculated, and then the IQR (Q3-Q1) is determined. The outlier detection unit marks any data point below (Q1-1.5*IQR) or above (Q3+1.5*IQR) as an outlier;

[0029] Once outliers are identified, the outlier detection unit takes appropriate actions, such as replacing these values ​​with the mean or median, or removing them completely from the training set to ensure the quality and consistency of the dataset.

[0030] 2) Adversarial Sample Generation Unit: The purpose of the adversarial sample generation unit is to enhance the model's defense against potential adversarial attacks. This unit uses the model's gradient information to create adversarial samples through the following two advanced generation methods:

[0031] Fast Gradient Sign Method (FGSM): FGSM is a method for quickly generating adversarial examples by calculating the gradient of the model output relative to the input data, and then making small perturbations to the input data based on the direction and magnitude of this gradient. The generated adversarial examples are visually almost indistinguishable from the original data, but will cause the model to output incorrect predictions;

[0032] Projected Gradient Descent (PGD): PGD is a more powerful adversarial sample generation method that generates more effective adversarial samples by iterating FGSM multiple times. In each iteration, PGD makes a small perturbation to the input data and updates the gradient until the generated sample can deceive the model;

[0033] The generated adversarial samples are included in the training set of the model, exposing the model to these samples during the training process. This forces the model to learn how to identify and resist these maliciously designed inputs, thereby improving the robustness of the model in the face of actual adversarial attacks. Through the collaborative work of these two units, the model robustness enhancement algorithm significantly improves the performance and security of large models in federated learning environments. The outlier detection unit ensures the quality of the training data, while the adversarial sample generation unit strengthens the model's defense capabilities by simulating attack scenarios. These two links together constitute a powerful robustness enhancement mechanism, providing the necessary security for large models in federated learning environments.

[0034] Preferably, the smart contract system includes the following sub-units and their operation process is as follows:

[0035] 1) Operation process of the verification unit: The unit is designed to receive model parameter update requests from clients; the verification unit verifies the validity of each update request through a series of predefined security protocols and algorithms, which may include checking whether the update comes from an authorized client, whether the update follows a predetermined format, and whether the update passes a security check; the verification process may involve the use of digital signatures, message authentication codes (MACs), or other cryptographic mechanisms to ensure the integrity and authenticity of the update; if the update request meets all verification conditions, the verification unit will approve the request for subsequent processing;

[0036] 2) Operation process of the recording unit: The recording unit is activated after the verification unit approves the update request. Its responsibility is to record the verified model parameter updates on the tamper-proof blockchain. The unit first formats the update information into a blockchain transaction, including necessary metadata such as timestamp, client identifier, updated model parameters, etc. Then, the recording unit uses blockchain technology to broadcast the transaction to other nodes in the network and wait for the consensus mechanism to confirm the validity of the transaction. Once the transaction is verified and consensus is reached by the nodes in the network, it will be added to the next block of the blockchain, thereby achieving permanent and transparent record of model parameter updates.

[0037] 3) Operation process of the smart contract execution unit: The smart contract execution unit is responsible for writing and deploying smart contracts. These self-executing programs run on the blockchain and automatically handle verification and recording tasks according to preset logic. This unit ensures that the smart contract can respond to the output of the verification unit and automatically trigger the function of the recording unit after the parameter update passes the verification. The smart contract execution unit is also responsible for monitoring the status of the contract to ensure that it runs according to the established rules and handles any abnormal situations.

[0038] The present invention uses blockchain technology to automatically verify and record model parameter updates through smart contracts. The verification unit uses cryptographic hash functions and digital signature technology to verify the validity of uploaded model parameter updates, ensuring the integrity of the updates and the verifiability of the source. The recording unit records the verified parameter updates on the blockchain, using the tamper-proof nature of the blockchain to provide a transparent audit trail for model updates.

[0039] Preferably, the specific operation process of the real-time performance monitoring system is as follows:

[0040] In order to monitor the performance of model training in real time, the present invention proposes a real-time performance monitoring system. The performance evaluation unit tracks the model accuracy, loss and other key performance indicators in real time, and transmits performance data through a secure communication channel between the client and the central server. The bottleneck identification unit identifies and reports the performance bottleneck of model training by analyzing the performance data. The bottleneck identification includes resource utilization analysis, network delay testing, etc.

[0041] 1) Operation process of the performance evaluation unit: This unit continuously monitors and collects key performance indicators during model training, such as accuracy, loss function value, iteration speed, etc. By deploying lightweight monitoring agents on the client and central server, the performance evaluation unit can capture training data in real time and transmit it to the analysis engine; using machine learning algorithms and statistical analysis, the performance evaluation unit analyzes the changing trends of performance indicators to evaluate the current status and efficiency of model training; the performance evaluation unit is also responsible for setting performance thresholds. When the actual performance indicators are lower than these thresholds, the system will automatically trigger an alarm to indicate possible performance problems;

[0042] 2) Operation process of the bottleneck identification unit: The bottleneck identification unit receives the alarm signal from the performance evaluation unit and starts to diagnose the performance bottleneck in the model training process; the unit performs a series of diagnostic tests, including resource utilization analysis (such as CPU and memory usage), network latency test, I / O performance evaluation, etc., to determine the cause of the performance bottleneck; the bottleneck identification unit may also involve analysis of the model architecture and algorithm complexity to identify whether there is room for optimization at the algorithm level; once the bottleneck is identified, the bottleneck identification unit will generate optimization suggestions, which may include increasing computing resources, adjusting network bandwidth, optimizing model parameters, or redesigning the model architecture; the unit outputs the optimization suggestions to the system administrator or automatically triggers the optimization process to resolve the performance bottleneck and restore or improve the performance of model training;

[0043] 3) Optimize the operation process of the execution unit: The optimization execution unit performs necessary optimization operations based on the optimization suggestions provided by the bottleneck identification unit; this may include dynamically adjusting the allocation of computing resources, reconfiguring network settings, and applying model optimization techniques such as pruning, quantization, or knowledge distillation; the optimization execution unit is also responsible for monitoring the effectiveness of the optimization measures to ensure that performance is actually improved and to prevent other problems caused by over-optimization; this unit works closely with the performance evaluation unit to form a closed-loop feedback system to continuously improve the overall performance of model training.

[0044] Preferably, the operation process of the model interpretability enhancement module is as follows:

[0045] 1) Operation process of the feature importance evaluation unit: This unit is responsible for evaluating the contribution of each feature in the model to the final decision, and quantifies the impact of each feature through algorithms such as SHAP or LIME; it generates a feature importance score for each data point, which can be used to identify the features that have the greatest impact on the model output; these scores are presented to the user in an intuitive way through visualization techniques such as heat maps or feature influence ranking lists;

[0046] 2) Operation process of the decision path visualization unit: This unit uses methods such as decision trees, rule sets or dependency graphs to convert the decision process of the model into a visual structure; for complex models, such as deep learning networks, this unit may use approximation techniques or simplified models to reveal the main decision paths; the visualization representation can use a graphical interface to allow users to interactively explore the internal working mechanism of the model, thereby improving the transparency and credibility of the model;

[0047] 3) Operational flow of the unit explaining the internal working mechanism of the model: This unit explains the internal working principle of the model through various explanatory algorithms, such as attention mechanism analysis and convolutional layer feature visualization. It helps users understand how the model processes input data and makes decisions through different levels of abstraction. For example, in a natural language processing model, this unit can show the keywords or phrases that the model focuses on when making sentiment analysis decisions.

[0048] 4) How the interactive explanation platform works: The platform allows users to interact with the model interpretability enhancement module, ask questions or upload sample data to get explanations for model decisions; users can get customized explanations through this platform, for example, to understand why the model makes a specific prediction for a specific input; the platform can also provide educational guidance to help users understand the basic working principles of the model and common machine learning concepts;

[0049] Through the collaborative work of the above sub-units, the Model Interpretability Enhancement Module provides a complete set of explanation tools and visualization interfaces for complex models; this not only enhances the user's understanding of model behavior, but also improves the credibility and transparency of the model, especially in scenarios where model decisions need to be explained, such as medical diagnosis or financial risk assessment.

[0050] Preferably, the cross-domain knowledge transfer framework for solving the problems of uneven data distribution and domain gaps specifically includes:

[0051] 1) Domain adapters are used to adjust model parameters to adapt to the data characteristics of different domains. The operation process includes: automatically adjusting the weights and biases of the model by learning the feature representations of data in different domains; the adapter can be an independent network module or integrated in a specific layer of the model; during the adaptation process, the adapter focuses on capturing the commonalities between domains while retaining domain-specific features;

[0052] 2) Transfer learning component, which is used to transfer knowledge from data-rich domains to data-scarce domains. Its operation process includes: pre-training models on data-rich domains (source domains) to extract common features; using transfer learning techniques such as model parameter initialization and feature space mapping, these common features are applied to data-scarce domains (target domains); through transfer learning, the model in the target domain can quickly learn and improve its performance, even if the amount of data in the target domain is limited;

[0053] 3) Adaptive algorithms are used to automatically adjust the migration strategy to optimize the model performance in the target domain. The operation process includes: dynamically adjusting the migration learning strategy according to the data characteristics of the target domain and the performance of the model in the target domain; the adaptive algorithm can use various machine learning methods, such as reinforcement learning or Bayesian optimization, to select the best migration strategy; the goal of the algorithm is to maximize the performance of the model in the target domain while reducing the dependence on the source domain data;

[0054] The domain adapter unit learns the commonalities and differences of data from different domains through an adapter network or converter. The adapter focuses on capturing the commonalities between domains while retaining domain-specific features. The transfer learning algorithm uses the knowledge of the source domain to enhance the model performance of the target domain by identifying and transferring useful feature representations from the source domain to the target domain.

[0055] Preferably, the specific operation process of the differential privacy automatic parameter adjustment tool for automatically adjusting the amount of noise added in differential privacy is as follows:

[0056] 1) Operation process of the noise level assessment unit: This unit is responsible for assessing the privacy risk level of the current model parameter update, which may be estimated by calculating gradients, sensitivities, or using statistical methods; the assessment results are used to determine the required noise level to meet specific privacy protection standards, such as ε-differential privacy;

[0057] 2) Operation process of the noise adding unit: Based on the information provided by the noise level assessment unit, the noise adding unit automatically selects a suitable noise distribution (such as Laplace distribution or Gaussian distribution); the unit adds noise to the model parameter update to ensure that the published or shared updates meet the privacy protection requirements; the noise adding process aims to balance privacy protection and model performance to ensure that the noise does not significantly reduce the accuracy of the model;

[0058] 3) Operation process of the performance monitoring unit: The performance monitoring unit tracks the accuracy and other performance indicators of the model after adding noise. The unit can adjust the noise addition strategy based on the model performance feedback to maintain the best balance between privacy and performance;

[0059] 4) Operation process of automatic parameter adjustment algorithm: Automatic parameter adjustment algorithm, such as Bayesian optimization or genetic algorithm, is used to dynamically adjust the noise level in different rounds of federated learning; the algorithm considers the constraints of model performance and privacy protection and automatically finds the optimal amount of noise addition; the parameter adjustment process can be iterative, and the noise addition strategy is continuously optimized as the model training progresses;

[0060] 5) Feedback mechanism operation process: Receive feedback from the performance monitoring unit and use it to adjust the noise level assessment and noise addition process; the feedback mechanism ensures that the tool can adapt to changes in different data sets and models, as well as dynamic changes in privacy risk levels;

[0061] In order to maximize model performance while protecting privacy, the present invention provides a differential privacy automatic parameter adjustment tool. The noise level assessment unit determines the required noise level to meet a specific privacy protection standard, such as ε-differential privacy, and the noise level assessment is based on the sensitivity of the model parameters. The automatic parameter adjustment algorithm dynamically adjusts the amount of noise addition in response to real-time feedback on model performance. The parameter adjustment algorithm can use Bayesian optimization or genetic algorithm to find the optimal noise addition strategy.

[0062] Preferably, secure boot technology: In order to ensure the security of the client at startup, the present invention provides a secure boot technology. The secure boot program is the first software component to run when the client device starts up, which verifies the integrity of the operating system and application programs that are subsequently started. The trusted execution environment provides an isolated execution space for securely loading and running critical startup code and applications.

[0063] Through the above technical scheme, the present invention not only improves the training efficiency and performance of large models in federated learning, but also enhances the privacy protection ability, cross-domain application ability and system security of the model, and has broad application prospects and practical value.

[0064] The present invention aims to solve a series of technical problems faced by large-scale model training and deployment in federated learning, including how to effectively protect sensitive data in a distributed environment without sacrificing data privacy, which is achieved through an adaptive privacy protection layer and a smart contract system; how to improve the robustness of the model against outliers and adversarial attacks, and use a model robustness enhancement algorithm to strengthen it; how to transfer knowledge between different fields to improve the generalization ability of the model, and use a cross-domain knowledge transfer framework to solve it; how to maintain model performance while introducing privacy protection measures, and achieve the best balance through differential privacy automatic parameter adjustment tools; how to ensure the security of the client at startup, and use secure startup technology to ensure it; and how to monitor the model training performance in real time and optimize it in time, and the real-time performance monitoring system provides performance feedback and optimization suggestions. Through these innovative technologies, the present invention overcomes the limitations of the existing technology, improves the capabilities of federated learning in privacy protection, model robustness, cross-domain applications, system security and performance optimization, and has important practical application value and broad application prospects.

[0065] The core protection points of the present invention are mainly concentrated in two key areas: first, how to achieve strong privacy protection of the data of the participants under the federated learning framework, which is accomplished by introducing an adaptive privacy protection layer, which uses advanced data sensitivity assessment and risk analysis technology to dynamically adjust the privacy protection strategy to ensure the security and privacy of the data during the training process; second, how to improve the robustness of large models in the face of outliers and potential adversarial attacks. The present invention uses a model robustness enhancement algorithm, combined with outlier detection and adversarial sample generation technology, to enhance the generalization ability of the model and the ability to resist attacks. These two innovative points are the focus of the protection of the present invention. Together, they constitute a federated learning training and deployment method that protects privacy and improves model robustness, and has significant application value and market potential.

[0066] The beneficial effect of the present invention is that it provides a comprehensive and efficient solution for the training and deployment of privacy-preserving large-scale models in federated learning. Through the adaptive privacy protection layer, the present invention can dynamically adjust the protection strategy under different data sensitivity and privacy risk levels, effectively prevent data leakage and member inference attacks, and greatly improve the privacy protection level of data. At the same time, the application of model robustness enhancement algorithms, including outlier detection and adversarial sample generation, significantly improves the model's defense capabilities against outliers and adversarial attacks, and enhances the generalization and robustness of the model. In addition, the introduction of smart contract-driven update verification and real-time performance monitoring systems further improves the security of model updates and the transparency of the training process. The design of the cross-domain knowledge transfer framework and the differential privacy automatic parameter adjustment tool enables the model to better adapt to the data distribution in different fields, while maximizing the model performance under the premise of protecting privacy. Finally, the application of secure startup technology ensures the security of the client at startup and prevents the infringement of malware. In general, through these innovative technologies, the present invention not only improves the training efficiency and performance of large models in federated learning, but also enhances the privacy protection ability, cross-domain application ability and system security of the model, and has broad application prospects and practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 This is a flow chart of the training and deployment method of the present invention;

[0068] Figure 2 It is a block diagram of the overall system architecture of the present invention;

[0069] Figure 3 A simplified diagram of the data flow and control flow inside the client of the present invention;

[0070] Figure 4 It is a block diagram of the adaptive privacy protection layer of the present invention. Specific implementation methods

[0072] 1. System architecture deployment (reference Figure 2 )

[0073] In the present invention, the system consists of the following components:

[0074] Central server: responsible for initializing the model, distributing model parameters, and aggregating client updates.

[0075] Clients: Multiple clients, each holding a local dataset and participating in the federated learning process.

[0076] Smart contract system: deployed on the blockchain network to verify and record model parameter updates.

[0077] Blockchain network: provides decentralized data records to ensure the immutability and transparency of updates.

[0078] 2. Data processing and model training (reference Figure 3 )

[0079] Inside the client, the data and control flow is as follows:

[0080] Data sensitivity assessment: Use a machine learning-based algorithm to score the sensitivity of each data point in the data set. Parameters include feature set size, similarity threshold, etc.

[0081] Outlier detection: Using the Z-Score method, the threshold is set to 3 to identify and process outliers in the training data.

[0082] Adversarial sample generation: Use the FGSM algorithm, set the learning rate and perturbation limit, and generate adversarial samples.

[0083] Model training: Use local datasets and synthetic data to train large models. Training parameters include learning rate, batch size, number of iterations, etc.

[0084] 3. Privacy protection policy generation (reference Figure 3 )

[0085] The workflow of the adaptive privacy protection layer is as follows:

[0086] Data Sensitivity Assessment Unit: Receives a data set and outputs a sensitivity score for each data point.

[0087] Risk analysis unit: Assess privacy risks based on sensitivity scores and output risk assessment reports.

[0088] Strategy generation unit: According to the risk assessment report, select a privacy protection strategy, such as a random perturbation strategy, whose parameters include the distribution and size of the perturbation.

[0089] 4. Model robustness enhancement (reference Figure 1 )

[0090] The detailed steps of the model robustness enhancement algorithm are as follows:

[0091] Step 1: Data preprocessing, including standardization and normalization.

[0092] Step 2: Initialize model parameters, set initial learning rate and weight initialization strategy.

[0093] Step 3: Input the dataset to the model and start training.

[0094] Step 4: Use the Z-Score method to detect outliers and set the Z-Score threshold to 3.

[0095] Step 5: Process the detected outliers, such as replacing them with the mean or median.

[0096] Step 6: Continue model training until convergence.

[0097] Step 7: Calculate model gradients for adversarial sample generation.

[0098] Step 8: Apply the FGSM algorithm to generate adversarial samples, set the learning rate to 0.01, and the perturbation limit to 0.03.

[0099] Step 9: Include adversarial samples into the training set to enhance the robustness of the model.

[0100] Step 10: Complete model training and evaluate model performance.

[0101] result:

[0102] In the specific embodiment of the present invention, the expected quantitative results significantly reflect the performance improvement and privacy protection effect of the system. First, the adaptive privacy protection layer can identify sensitive data points with an accuracy of more than 95%, and significantly reduce the success rate of member inference attacks to less than 10% of the original. Secondly, the model robustness enhancement algorithm reduces the error rate of the model under adversarial attacks from 30% to 5% through outlier detection and adversarial sample generation. In addition, the accuracy of the model trained by the client using the present invention is improved by an average of 15% on multiple standard data sets, and the training time is shortened by 20%. The smart contract system and blockchain network significantly improve the efficiency of parameter update verification, reducing the time from 2 minutes to 5 seconds. In terms of security, the secure startup technology and the smart contract system have achieved a record of zero safety accidents. The cross-domain knowledge transfer framework has improved the accuracy of the new domain data set by 10%, while reducing the training data requirements by 50%. The optimization of the performance monitoring system has improved the training efficiency by 30%. Finally, the differential privacy automatic parameter adjustment tool controls the decline of model performance within 5% while meeting the privacy protection standards. These quantitative results not only confirm the technical advantages of the present invention, but also provide a clear direction for future research and application.

Claims

1. A privacy-preserving large-scale model training and deployment method based on federated learning, characterized by: The following steps are involved: Step 1: The central server initializes a pre-trained large model; Step 2: The central server encrypts the pre-trained large model and distributes it to each client participating in federated learning; Step 3: The client uses local data and synthetic data to personalize and fine-tune the model and generate updates; Step 4: The client's privacy protection layer processes the update, including data perturbation and encryption; Step 5: The central server collects the encrypted updates and updates the global model using a secure aggregation algorithm; Step 6: The smart contract system verifies the validity of the aggregation and records the update on the blockchain; Step 7: The real-time performance monitoring system evaluates the model performance and performs necessary optimizations; Step 8: The central server sends the updated model to the client, which decrypts and applies the update.

2. A privacy-preserving large-scale model training and deployment method based on federated learning as described in claim 1, characterized in that: The privacy protection layer described in step 4 includes the following sub-units and their operation process is as follows: 1) Data sensitivity assessment unit, whose operation process includes: receiving a local dataset provided by the client; scoring each data point in the dataset using a predefined feature set and a sensitivity scoring system based on the similarity between the data point's features and known sensitive information; and classifying the data point into different sensitivity levels based on the scoring results; 2) Risk Analysis Unit, whose operational process includes: receiving data sensitivity scores from the Data Sensitivity Assessment Unit; using statistical analysis and machine learning techniques to predict privacy risks that the data may encounter during model training, including membership inference attacks and data re-identification risks; based on the predicted results, assessing the privacy risk level and generating a risk report for each data point or data set; 3) The policy generation unit, whose operation process includes: receiving the risk report from the risk analysis unit; automatically selecting a policy from a predefined privacy protection policy library based on the privacy risk level in the risk report. The policy library contains a variety of privacy protection technologies, such as random perturbation, homomorphic encryption, and secure multi-party computation; adjusting the parameters of the selected policy to adapt to the sensitivity and risk level of the data to generate the final privacy protection policy; applying the generated privacy protection policy to the client's dataset to ensure that the data is properly processed before model training; 4) The privacy protection policy application unit, whose operation process includes: receiving the privacy protection policy from the policy generation unit; executing the operations defined in the policy on the client's local dataset, such as adding noise to the data, implementing data perturbations, or performing encryption operations; ensuring that the processed dataset not only meets the privacy protection requirements but also can be used for effective model training; using the processed dataset for local model training and generating model updates that include privacy protection; 5) Communication encryption unit, which operates as follows: after the client generates a model update, it encrypts the update using a secure encryption algorithm; sends the encrypted update to the central server to ensure that unauthorized access is prevented during data transmission; and performs decryption operations on the central server to facilitate subsequent model update aggregation; 6) Update Audit Unit, whose operation process includes: receiving encrypted model updates from clients; using the smart contract system to verify the validity of the updates, including the source, integrity and privacy protection compliance of the updates; recording the verified updates to the blockchain, providing a transparent audit trail for model updates; The data sensitivity assessment unit first performs a sensitivity score on the client's local data set to identify sensitive information; the risk analysis unit then uses these scores to predict privacy risks and generate a risk assessment report; the policy generation unit automatically selects and adjusts the most appropriate privacy protection policy from the predefined policy library based on the risk assessment report; the privacy protection policy application unit executes the selected policy and performs necessary perturbations or encryption on the data to protect privacy while retaining the practicality of the data; then, the communication encryption unit encrypts the model updates to ensure their security during transmission; finally, the update audit unit verifies these encrypted updates on the central server side and uses the smart contract system to ensure their legitimacy and integrity, providing an unalterable audit trail for the entire update process through blockchain technology; the design of the entire privacy protection layer forms a closed-loop system, and the output of each sub-unit is the input of the next unit. Through a continuous processing chain and feedback mechanism, strict protection of data privacy is achieved, while optimizing the model performance in the federated learning process.

3. The privacy-preserving large-scale model training and deployment method based on federated learning according to claim 1, characterized in that: The operation process of the model robustness enhancement algorithm specifically includes: 1) Operational process of the outlier detection unit: After receiving the local dataset from the client, the unit performs a series of statistical tests, such as the Z-Score or IQR (interquartile range) method, to identify data points that are significantly different from the majority of points in the dataset. It determines which data points are considered outliers by setting a threshold. This threshold can be fixed or dynamically calculated based on the characteristics of the dataset. Once outliers are identified, the unit marks or removes these points to prevent them from adversely affecting the model training process. 2) Operational process of the adversarial sample generation unit: This unit uses the model's gradient information and adversarial attack techniques, such as the fast gradient sign method (FGSM) or projected gradient descent (PGD), to generate adversarial samples. These samples are intentionally designed to cause the model to output incorrect results while maintaining the appearance of the data. The generated adversarial samples are included in the model's training set to train and test the model and enhance its robustness against potential adversarial attacks. Through this training, the model learns to recognize and resist these maliciously designed inputs, thereby improving its stability and reliability in the face of attacks. Throughout the entire process, the outlier detection unit and the adversarial sample generation unit work together to improve the robustness of the model; the outlier detection unit ensures the quality of the training data, while the adversarial sample generation unit strengthens the model's defense capabilities by simulating attack scenarios; these two links together constitute a powerful robustness enhancement mechanism, providing the necessary security guarantees for large models in federated learning environments.

4. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: The smart contract system described in step 6 includes the following sub-units and their operation process is as follows: 1) Operational process of the verification unit: This unit is designed to receive model parameter update requests from clients. The verification unit verifies the validity of each update request through a series of predefined security protocols and algorithms. This may include checking whether the update comes from an authorized client, whether the update follows a predetermined format, and whether the update passes security checks. The verification process may involve the use of digital signatures, message authentication codes (MACs), or other cryptographic mechanisms to ensure the integrity and authenticity of the update. If the update request meets all verification conditions, the verification unit will approve the request for subsequent processing. 2) Operational process of the recording unit: The recording unit is activated after the verification unit approves the update request. Its responsibility is to record the verified model parameter update on the tamper-proof blockchain. The unit first formats the update information into a blockchain transaction, including necessary metadata such as timestamp, client identifier, updated model parameters, etc. The recording unit then uses blockchain technology to broadcast the transaction to other nodes in the network, waiting for the consensus mechanism to confirm the validity of the transaction. Once the transaction is verified and consensus is reached by the nodes in the network, it will be added to the next block of the blockchain, thus achieving a permanent and transparent record of the model parameter update. 3) Operational Process of the Smart Contract Execution Unit: The Smart Contract Execution Unit is responsible for writing and deploying smart contracts. These self-executing programs run on the blockchain and automatically handle verification and recording tasks according to preset logic. This unit ensures that the smart contract can respond to the output of the verification unit and automatically triggers the function of the recording unit after the parameter update passes verification. The Smart Contract Execution Unit is also responsible for monitoring the status of the contract to ensure that it operates according to the established rules and handles any abnormal situations. Through the collaborative work of the above sub-units, the smart contract system provides a secure, transparent, and automated verification and recording mechanism for model parameter updates in federated learning; this not only enhances the credibility of model updates, but also provides a complete audit trail for the federated learning process, thereby improving the transparency and traceability of the entire system.

5. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: The specific operation process of the real-time performance monitoring system described in step 7 is as follows: 1) Performance evaluation unit operation process: This unit continuously monitors and collects key performance indicators during model training, such as accuracy, loss function value, iteration speed, etc. By deploying lightweight monitoring agents on the client and central server, the performance evaluation unit can capture training data in real time and transmit it to the analysis engine; Using machine learning algorithms and statistical analysis, the performance evaluation unit analyzes performance indicator trends to assess the current state and efficiency of model training. It also sets performance thresholds. When actual performance indicators fall below these thresholds, the system automatically triggers alerts, indicating possible performance issues. 2) Operational process of the bottleneck identification unit: The bottleneck identification unit receives alarm signals from the performance evaluation unit and begins to diagnose performance bottlenecks during model training. The unit performs a series of diagnostic tests, including resource utilization analysis (such as CPU and memory usage), network latency testing, and I / O performance evaluation to determine the cause of the performance bottleneck. The bottleneck identification unit may also involve analyzing the model architecture and algorithm complexity to identify whether there is room for algorithmic optimization. Once a bottleneck is identified, the bottleneck identification unit will generate optimization suggestions. These suggestions may include increasing computing resources, adjusting network bandwidth, optimizing model parameters, or redesigning the model architecture. This unit outputs optimization suggestions to system administrators or automatically triggers optimization processes to resolve performance bottlenecks and restore or improve model training performance; 3) Optimize the execution unit's operational process: The optimization execution unit performs necessary optimization operations based on the optimization recommendations provided by the bottleneck identification unit. This may include dynamically adjusting computing resource allocation, reconfiguring network settings, and applying model optimization techniques such as pruning, quantization, or knowledge distillation. The optimization execution unit is also responsible for monitoring the effectiveness of optimization measures to ensure actual performance improvements and prevent other problems caused by over-optimization. This unit works closely with the performance evaluation unit to form a closed-loop feedback system to continuously improve the overall performance of model training. Through the collaborative work of the above sub-units, the real-time performance monitoring system provides a comprehensive performance guarantee mechanism for large-scale model training in the federated learning environment; The system can detect and resolve performance issues in a timely manner, ensuring high efficiency and stability of model training.

6. A privacy-preserving large-scale model training and deployment method based on federated learning as claimed in claim 1, characterized in that: The operation process of the model interpretability enhancement module is as follows: 1) Operational process of the feature importance evaluation unit: This unit is responsible for evaluating the contribution of each feature in the model to the final decision, quantifying the impact of each feature through algorithms such as SHAP or LIME. It generates a feature importance score for each data point, which can be used to identify the features that have the greatest impact on the model output. These scores are presented to the user in an intuitive manner through visualization techniques such as heat maps or feature influence ranking lists. 2) Operational process of the decision path visualization unit: This unit uses methods such as decision trees, rule sets, or dependency graphs to convert the model's decision process into a visual structure. For complex models, such as deep learning networks, this unit may use approximation techniques or simplified models to reveal the main decision paths. The visualization can use a graphical interface to allow users to interactively explore the internal workings of the model, thereby improving the model's transparency and credibility. 3) Operational flow of the model's internal working mechanism explanation unit: This unit explains the model's internal working principles through various explanatory algorithms, such as attention mechanism analysis and convolutional layer feature visualization. It helps users understand how the model processes input data and makes decisions through different levels of abstraction. For example, in a natural language processing model, this unit can show the keywords or phrases that the model focuses on when making sentiment analysis decisions. 4) How the Interactive Explanation Platform works: This platform allows users to interact with the Model Explainability Enhancement module, asking questions or uploading example data to obtain explanations for model decisions. Users can obtain customized explanations through this platform, for example, to understand why the model made a specific prediction for a particular input. The platform also provides educational guidance to help users understand the basic working principles of the model and common machine learning concepts. Through the collaborative work of the above sub-units, the Model Interpretability Enhancement Module provides a complete set of explanation tools and visualization interfaces for complex models; this not only enhances users' understanding of model behavior, but also improves the credibility and transparency of the model, especially in scenarios where model decisions need to be explained, such as medical diagnosis or financial risk assessment.

7. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: The cross-domain knowledge transfer framework that addresses data imbalance and domain gaps specifically includes: 1) Domain adapters, which are used to adjust model parameters to adapt to the data characteristics of different domains. Their operation process includes: automatically adjusting the model weights and biases by learning the feature representations of data from different domains. Adapters can be independent network modules or integrated into specific layers of the model. During the adaptation process, adapters focus on capturing commonalities between domains while retaining domain-specific features. 2) Transfer learning, which is used to transfer knowledge from data-rich domains to data-scarce domains. Its operational process involves: pre-training a model in a data-rich domain (the source domain) to extract common features; using transfer learning techniques, such as model parameter initialization and feature space mapping, to apply these common features to a data-scarce domain (the target domain). Through transfer learning, the model in the target domain can quickly learn and improve its performance, even if the target domain has limited data. 3) Adaptive algorithms, which automatically adjust the transfer strategy to optimize model performance in the target domain. Their operational process involves dynamically adjusting the transfer learning strategy based on the data characteristics of the target domain and the model's performance in that domain. Adaptive algorithms can employ various machine learning methods, such as reinforcement learning or Bayesian optimization, to select the optimal transfer strategy. Their goal is to maximize the model's performance in the target domain while reducing reliance on data from the source domain. Through the collaborative work of these three components, the cross-domain knowledge transfer framework can effectively solve the problems of uneven data distribution and domain gaps, and improve the adaptability and performance of the model in new domains.

8. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: The specific operation process of the differential privacy automatic parameter adjustment tool that automatically adjusts the amount of noise added in differential privacy is as follows: 1) Operational process of the noise level assessment unit: This unit is responsible for assessing the privacy risk level of the current model parameter update, which may be estimated by calculating gradients, sensitivities, or using statistical methods. The assessment results are used to determine the required noise level to meet specific privacy protection standards, such as ε-differential privacy. 2) Operation of the noise addition unit: Based on the information provided by the noise level assessment unit, the noise addition unit automatically selects an appropriate noise distribution (such as Laplace distribution or Gaussian distribution); this unit adds noise to the model parameter updates to ensure that the published or shared updates meet the privacy protection requirements; The noise addition process aims to balance privacy protection and model performance, ensuring that the noise does not significantly reduce the accuracy of the model; 3) Operation of the performance monitoring unit: The performance monitoring unit tracks the accuracy and other performance indicators of the model after adding noise; This unit can adjust the noise addition strategy based on model performance feedback to maintain the best balance between privacy and performance; 4) Automatic parameter tuning algorithm operation process: Automatic parameter tuning algorithms, such as Bayesian optimization or genetic algorithms, are used to dynamically adjust the noise level in different rounds of federated learning. These algorithms automatically find the optimal amount of noise to add, taking into account model performance and privacy protection constraints. The parameter tuning process can be iterative, continuously optimizing the noise addition strategy as model training progresses. 5) Feedback mechanism operation process: receiving feedback from the performance monitoring unit and using it to adjust the noise level assessment and noise addition process; Feedback mechanisms ensure that the tool can adapt to changes in different datasets and models, as well as dynamic changes in privacy risk levels; Through the collaborative work of the above sub-units, the differential privacy automatic parameter tuning tool provides a dynamic adjustment of the privacy protection level for large-scale model training in a federated learning environment; the tool can automatically adapt to the balance between different privacy protection requirements and model performance without manual intervention.

9. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: The specific operation process of the secure boot technology to ensure the security of the client at startup is as follows: 1) Secure boot process: When a client device boots up, the secure boot process is the first software component to run. It verifies the integrity of the operating system and applications that are subsequently launched. This process ensures that the launched software has not been tampered with or infected with malware by checking pre-set security flags or hash values. 2) Trusted Execution Environment (TEE) Operational Process: Secure boot technology uses a trusted execution environment (TEE) to provide an isolated execution space for securely loading and running critical startup code and applications. TEE provides anti-tampering and anti-leakage protection, ensuring that sensitive operations can be executed securely even on an insecure operating system. 3) Operation of the Hardware Security Module: The Hardware Security Module (HSM) is used to store keys and perform cryptographic operations. These keys are used to verify the signatures of software components during the boot process. The physical security of the HSM ensures that the key cannot be leaked or misused at the software level; 4) Boot-time malware detection process: During the boot process, secure boot technology also includes real-time scanning of the boot environment to detect possible malware or abnormal behavior. This may involve performing heuristic analysis or behavior-based detection algorithms to identify and block potential attacks. 5) System integrity verification process: After booting, secure boot technology verifies the integrity of the system to ensure that all critical components have been correctly loaded and have not been replaced by unauthorized third-party software; Integrity checks may include verifying hashes of the operating system, drivers, and other critical system files; 6) User notification mechanism operation process: If the secure boot technology detects an anomaly or potential security threat, it will alert the user through the user notification mechanism and provide appropriate security recommendations or automatically take security measures. This mechanism may involve displaying a warning message, sending a security report, or preventing the system from booting if necessary. Through the collaborative work of the above sub-units, secure boot technology provides a secure boot environment for clients participating in federated learning, ensuring the security of the client system and the integrity of the data before model training begins.

10. The method for training and deploying a privacy-preserving large-scale model based on federated learning according to claim 1, wherein: A computer program product for executing the method according to any one of claims 1 to 9, wherein the product is stored on a computer-readable medium; and a computer system configured with the computer program product according to any one of claims 1 to 9.

Citation Information

Cited By

  • AI model private domain and public domain cooperative processing system based on data security and privacy protection

    CN119106450A

  • Multi-dimensional customer data analysis and accurate customer searching method

    CN119312149A

  • A multi-dimensional customer data analysis and precise customer search method

    CN119312149B

  • Multi-private-domain visitor portrait sharing and privacy protection routing method based on federal learning

    CN119383014A

  • Information importance cognitive defense method based on interpretable learning in automatic modulation identification

    CN119416030A