Privacy protection type distributed optimization method and system based on optimal control
By reconstructing the least squares problem into a discrete-time optimal control problem and introducing a regularization matrix, the computational failure caused by the singularity of the Hessian matrix is solved, and fast convergence and stable training in federated learning are achieved.
Patent Information
- Application Number
- CN202610030249.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-12
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2046-01-12
AI Technical Summary
Existing distributed second-order optimization methods suffer from computational failures and training instability in federated learning scenarios due to the singularity of the Hessian matrix, and cannot effectively utilize second-order information to accelerate convergence.
The least squares problem is reconstructed into a discrete-time optimal control problem. By introducing a control regularization matrix, the direct inversion of the Hessian matrix is avoided, and the model parameters are updated using the optimal control input.
It maintains robustness under singular or ill-conditioned matrix conditions, achieves fast convergence and stable model training, and significantly improves the numerical stability and efficiency of the algorithm.
Smart Images

Figure CN121503734A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of privacy protection, in particular to a privacy protection type distributed optimization method and system based on optimal control. BACKGROUND
[0002] The statements in this section merely provide background information related to the present application and do not necessarily constitute prior art.
[0003] As a new paradigm that can realize distributed data collaborative model training under privacy constraints, federated learning is often used in data-sensitive fields such as intelligent medical care and intelligent transportation. In these applications, multiple clients need to update information with the center server to jointly optimize the global model without sharing local raw data.
[0004] At present, optimization algorithms based on first-order gradient (such as federated average algorithm FedAvg and its variants) have the advantages of simple communication and calculation. However, the first-order algorithm only uses gradient information, and the convergence speed is slow (usually sub-linear convergence), and a large number of communication rounds are needed to reach the expected accuracy when facing high-dimensional and large-scale optimization problems, causing serious waste of communication and calculation resources.
[0005] Second-order optimization methods (such as Newton's method) can theoretically achieve faster linear or super-linear convergence than first-order methods by using curvature information of the objective function. This makes second-order methods more potential than traditional first-order methods in scenarios that pursue high efficiency and high accuracy. However, existing distributed second-order optimization schemes have significant limitations in the federated learning scenario. Traditional second-order algorithms usually directly rely on the explicit inversion operation of the Hessian matrix to calculate the update step. When facing uneven data distribution, local loss function ill-conditioned or high-noise data, the Hessian matrix often presents singularity. This singularity causes the matrix to be unable to be inverted, making the existing algorithm directly invalid or divergent, and unable to guarantee the stability of the training. The existing technology fails to effectively solve the problem of how to retain the second-order acceleration advantage while avoiding the calculation collapse problem caused by the singularity of the Hessian matrix, making it difficult to improve the overall performance. SUMMARY
[0006] In order to solve the above problems, the present application proposes a privacy protection type distributed optimization method and system based on optimal control, which reconstructs the original least squares problem into a discrete-time optimal control problem, updates the model parameters by solving the optimal control input, and avoids the direct inversion of the Hessian matrix by introducing a control regularization matrix, ensuring the robustness under the condition of matrix singularity or ill-conditioning.
[0007] In order to achieve the above purpose, the present application adopts the following technical solutions: In a first aspect, the present invention provides a privacy-preserving distributed optimization method based on optimal control, applied to a client, comprising: The model parameters for each client are divided into local private components and globally shared components; Using model parameters as state variables, update step size as control input, and minimizing local least squares loss function as objective, construct an optimal control model; At the start of each round of communication between the client and the server, the client receives the globally shared component broadcast by the server, combines it with the local private component, and assembles the current state variable; performs local update, calculates the gradient and Hessian matrix based on the current state variable, corrects the Hessian matrix according to the regularization matrix, and then uses the optimal control model to solve for the updated model parameters. The globally shared components in the updated model parameters are uploaded to the server so that the server can perform aggregation operations to generate a global model until the termination condition is met, at which point the optimal model is obtained.
[0008] As an alternative implementation method, the first The client in the first Cost function of the optimal control model for round-robin communication for: ; in, It is the least squares loss function; For the first A client, in the t-th round of communication, the control input to be solved in the k-th local update; It is a preset positive definite diagonal matrix; For the first A client, in the t-th round of communication, updates the model parameters locally for the K-th time; K is the maximum number of iterations for local updates; For the first A client updates the model parameters locally during the t-th round of communication.
[0009] As an alternative implementation, the process of modifying the Hessian matrix based on the regularization matrix involves adding a positive definite diagonal matrix to the original Hessian matrix.
[0010] As an alternative implementation, the local update process includes: recursively calculating approximate control inputs to update model parameters. ; ; ; in, For the first A client, in the t-th round of communication, updates the model parameters locally for the k-th time; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; the t-th round of communication, the k-th local update, the (k-1)-th recursive calculation of the approximate control input; a preset positive diagonal matrix; a least square loss function.
[0011] As an optional implementation, after completing the k-th local update, the client separates the updated global shared component and uploads it to the server, and the server generates the next round of model using an average aggregation strategy; n is the number of clients. As an optional implementation, the termination condition is to reach a preset number of communication rounds or the global loss function converges to a preset threshold.
[0012] In a second aspect, the application provides a privacy protection type distributed optimization system based on optimal control, applied to a client, comprising:
[0013] a decoupling module configured to divide the model parameters of each client into a local private component and a global shared component; a modeling module configured to construct an optimal control model with the model parameters as state variables, the update step as control input, and minimizing the local least square loss function as the target; an updating module configured to, at the beginning of each round of communication between the client and the server, receive the global shared component broadcast by the server, combine the local private component to assemble the current state variable, perform local update, calculate the gradient and Hessian matrix based on the current state variable, correct the Hessian matrix according to the regularization matrix, and then solve the updated model parameters using the optimal control model; an uploading module configured to upload the global shared component in the updated model parameters to the server, so that the server performs an aggregation operation to generate a global model, until a termination condition is reached to obtain an optimal model.
[0014] In a third aspect, the present application provides an electronic device comprising a memory and a processor, and computer instructions stored on the memory and running on the processor, when the computer instructions are run by the processor, the method of the first aspect is completed.
[0015] In a fourth aspect, the present application provides a computer readable storage medium for storing computer instructions, when the computer instructions are executed by the processor, the method of the first aspect is completed.
[0016] In a fifth aspect, the present application provides a computer program product comprising a computer program, when the computer program is executed by the processor, the method of the first aspect is completed.
[0017] Compared with the prior art, the present application has the following beneficial effects: In order to overcome the dependence of the traditional second-order algorithm on the explicit inversion of the Hessian matrix and solve the instability of the traditional second-order algorithm in the ill-conditioned problem, the present application proposes a federal learning framework based on optimal control. The original least squares problem is reconstructed as an optimal control problem in discrete time, and the updating process of the model parameters is converted into the process of finding the optimal control input sequence. At the same time, by introducing the control regularization matrix, the direct inversion of the Hessian matrix is avoided, and the robustness under the condition of singular or ill-conditioned matrix is ensured. The defects of slow convergence speed, unstable training and calculation failure of the traditional second-order algorithm caused by the ill-conditioned local loss function or singular Hessian matrix in the existing federal learning algorithm when processing the least squares problem are solved.
[0018] The present application proposes a federal learning framework based on optimal control, which reconstructs the least squares problem in federal learning using optimal control theory, converts the local optimization task of each client into an optimal control problem, and updates the model parameters by solving the optimal control input, providing a new perspective for solving federal optimization problems.
[0019] The present application introduces the control regularization matrix technology, which accelerates the convergence using the second-order curvature information, avoids the need for explicit inversion of the Hessian matrix in the traditional Newton method from a mathematical principle, effectively solves the algorithm failure problem caused by the singular Hessian matrix, and significantly improves the numerical stability of the algorithm in the ill-conditioned and high-noise environment.
[0020] The advantages of the additional aspects of the present application will be partially given in the following description, partially will become apparent from the following description, or will be understood by the practice of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only constitute the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of the provided drawings.
[0022] Figure 1 The flow chart of the privacy protection type distributed optimization method based on optimal control provided for the embodiment 1 of the present application is shown in the following table. Figure 2 The principle diagram of the privacy protection type distributed optimization method based on optimal control provided for the embodiment 1 of the present application is shown in the following table. Figure 3 The experimental result graph of the global loss function value change curve provided for the embodiment 1 of the present application is shown in the following table. Figure 4 The experimental result graph of the L1 residual curve provided for the embodiment 1 of the present application is shown in the following table. Figure 5 The experimental result graph of the L2 residual curve provided for the embodiment 1 of the present application is shown in the following table. DETAILED DESCRIPTION
[0023] The present application will be further described below in combination with the drawings and embodiments.
[0024] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs.
[0025] It should be noted that the terms used herein are only for the purpose of describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present application. As used herein, the singular form is intended to include the plural form unless the context clearly indicates otherwise, and it should also be understood that the terms "comprise" and "include" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0026] The embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0027] Embodiment 1 The present embodiment provides a privacy protection type distributed optimization method based on optimal control, which is applied to a distributed system comprising a server and a plurality of clients. AsFigure 1 As shown, it includes: The model parameters for each client are divided into local private components and globally shared components; Using model parameters as state variables, update step size as control input, and minimizing local least squares loss function as objective, construct an optimal control model; At the start of each round of communication between the client and the server, the client receives the globally shared component broadcast by the server, combines it with the local private component, and assembles the current state variable; performs local update, calculates the gradient and Hessian matrix based on the current state variable, corrects the Hessian matrix according to the regularization matrix, and then uses the optimal control model to solve for the updated model parameters. The globally shared components in the updated model parameters are uploaded to the server so that the server can perform aggregation operations to generate a global model until the termination condition is met, at which point the optimal model is obtained.
[0028] The following is combined with Figure 2 The above methods will be explained in detail.
[0029] Step 1: Initialization and variable decoupling.
[0030] Server initializes global model parameters And set the total number of communication rounds. Local iteration count and positive definite control regularization matrix .
[0031] To balance global consensus and personalized adaptation, the model parameters are decoupled and divided into local private components and globally shared components for each client. The local private components are updated only on the client to adapt to data characteristics and protect privacy, while the globally shared components are used for cross-client collaborative optimization.
[0032] Specifically: for the first For each client, the model parameters are updated locally during the t-th round of communication. (State variables) are: (1); in, For the first For each client, the local private components (such as personalized prediction heads) of the k-th local update during the t-th round of communication are retained only during the local iteration; For the first For each client, the globally shared component (such as the feature extractor) updated locally in the t-th round of communication needs to be uploaded to the server for aggregation.
[0033] Step 2: Construct an optimal control model for local updates, reconstructing the client's local loss optimization process into an optimal control problem for a discrete-time linear dynamic system.
[0034] Specifically: This embodiment abandons the traditional gradient descent perspective, modeling local updates as a dynamic control process. Using model parameters as state variables, the update step size as control input, and minimizing the local least squares loss function as the objective, an optimal control model is constructed. The state equation is defined as follows: , For the first A client has a control input to be solved in the t-th round of communication and the k-th local update.
[0035] To find the optimal This refactors the optimization problem into a discrete-time optimal control problem. Within this framework, the cost function of the optimal control model... Defined as: (2); in, It is the least squares loss function; To control the energy regularization term, Given a pre-defined positive definite diagonal matrix, the introduction of a control energy regularization term not only constrains the update step size, but more importantly, it enables... The positive definiteness is used to correct the eigenvalue distribution of the Hessian matrix; For the first A client updates the model parameters locally in the t-th round of communication, where K is the maximum number of iterations for local updates.
[0036] To address the aforementioned dynamic constraints, a sequence of costate variables (Lagrange multipliers) is introduced. Construct the augmented objective function: (3); Applying the variational method, let For control input The partial derivatives are zero, thus deriving the optimality condition.
[0037] Utilizing the backward recursive property of costate equations, Essentially, it represents the cumulative effect of gradients over all future moments, i.e. ; For the first The client communicates in round t. The model parameters are updated locally.
[0038] Substituting this result back into the control equation, we can obtain the theoretically optimal control law: (4). However, this theoretical formula is computationally infeasible because of the current control variables. Dependent on future states The future state, in turn, is determined by the present state. This decision created a non-causal circular dependency.
[0039] To break this dependency cycle, a first-order Taylor expansion is used: (5); in, For the first The client communicates in round t, and in round t... The model parameters are updated locally.
[0040] The gradient terms of the future are approximated. Through algebraic derivation, the original reliance on the future is transformed into the utilization of historical information, ultimately resulting in a fully forward, explicit iterative process.
[0041] Specifically, the update direction is recursively calculated using the gradient at the current time step, the Hessian matrix, and the update direction at the previous time step.
[0042] set up For the first The client, the first The approximate control input obtained from the recursive calculation has the following update formula: (6); (7); (8); in, For the first A client, in the t-th round of communication, updates the model parameters locally for the k-th time; For the first The client, in the first Round communication, the first The model parameters are updated locally next time; For the first For client t, during the t-th round of communication and the k-th local update, the t-th... Approximate control input obtained from recursive calculations; For the first For client t, during the t-th round of communication and the k-th local update, the t-th... Approximate control input obtained from recursive calculations; For the first The initial value of each client is recursively calculated in the t-th round of communication; For the first The initial model parameters for each client in the t-th round of communication.
[0043] In this step, because It is positive definite, even if It is a singular matrix (non-invertible), a matrix It remains strictly positive definite and invertible, fundamentally ensuring the stability of numerical calculations.
[0044] This derivation process transforms the theoretical optimal solution, which depends on the sum of future gradients, into a practical numerical algorithm that incorporates second-order information and utilizes historical data.
[0045] Step 3: Federated learning iterative process.
[0046] At the start of each round of communication between the client and server, the client receives the globally shared components broadcast by the server and assembles them with its local private components to obtain the current state variables. Then, a local update is performed, calculating the gradient and Hessian matrix based on the current state variables, and solving for the model parameters using an iterative method based on optimal control. During this calculation process, the Hessian matrix is corrected using a regularization matrix to ensure matrix invertibility. Finally, the client uploads the updated globally shared components to the server, and the server performs an aggregation operation to generate a new global model until the model converges.
[0047] like Figure 2 As shown, each round of communication includes the following sub-steps: 1) Broadcast and State Assembly: The server will broadcast the current globally shared components. The broadcast is sent to all clients. Each client then combines this with the local private components retained from the previous training round. Assemble into the current state variable .
[0048] 2) Local optimization based on optimal control: parallel execution on the client side This is the second local update. In this update, the gradient under the current state variable is first calculated. Hessian matrix Subsequently, in order to avoid the possible singularity of the Hessian matrix and reduce the computational complexity, the control input is calculated recursively using equations (6)-(8).
[0049] 3) Global aggregation: Completed After the local update, the client separates the updated globally shared component. And upload it to the server. The server uses an average aggregation strategy to generate the next round of models: n is the number of clients; For the first The client communicates in round t. The globally shared component updated locally.
[0050] Step 4: Determine the termination condition.
[0051] Repeat step 3 until the preset number of communication rounds is reached. Alternatively, the global loss function converges to a preset threshold, and the final optimized model is output.
[0052] Through the above implementation method, when processing high-noise data (such as cryo-electron microscopy image alignment tasks), second-order information can be effectively utilized to achieve fast convergence, while the computational stability of the entire process is guaranteed by the control regularization mechanism.
[0053] The aforementioned method employs a data-decentralized mechanism in federated learning, allowing each client to process the raw data locally and exchange only optimization-related parameters, thus forming a collaborative computing approach with privacy protection features. During computation, each client's least-squares optimization problem is reconstructed as an optimal control problem for a nonlinear dynamic system. The local loss function is minimized by finding the optimal control input, and a regularization matrix is introduced into the control cost to avoid explicit inversion of the Hessian matrix, resulting in a second-order optimization method that is stable and efficient in multi-node environments.
[0054] To verify the effectiveness and superiority of the Federated Optimal Control (FedOC) algorithm proposed in this embodiment in practical applications, numerical experiments were conducted based on a cryo-electron microscopy (Cryo-EM) image alignment task. The experiments used a bundle adjustment framework as the basic model, constructing the alignment task as a nonlinear least-squares optimization problem, and tested it using a real Vibrio dataset (containing 121 camera views and 80 labeled 3D points). The Fed-Grad algorithm using standard gradient descent and the FedNewton algorithm using standard Newton's method were selected as benchmarks for comparison. In terms of specific experimental parameter settings, the regularization matrix of the method in this embodiment was set as follows: The learning rate of the comparison method Fed-Grad is fixed at 1. Both perform 5 local iterations in each round of federated optimization.
[0055] Experimental results show that, Figure 3 The global cost curve shown in this embodiment demonstrates that, compared to the gradient-descent-based Fed-Grad method, the objective function value of the FedOC method exhibits a sharp downward trend, rapidly converging to a lower level. This intuitively verifies that the algorithm has a significant advantage in convergence speed. Figure 4 L1 residual curve and Figure 5As shown in the L2 residual curve, the method in this embodiment also exhibits a steeper descent slope and a better final convergence value in terms of various indicators reflecting alignment accuracy, indicating that it can achieve high-precision alignment results faster.
[0056] Specifically, the numerical results show that the method in this embodiment can reduce the L1 residual to 1.1228, which is far superior to the Fed-Grad method's 4.9678; and reduce the L2 residual to 1.8185, which is significantly superior to the Fed-Grad method's 8.2453; the global cost is also reduced to The comparison method is still in its early stages. The high-order bits. Meanwhile, in the experiment, the FedNewton algorithm failed to produce effective optimization results due to the singularity of the Hessian matrix during the calculation process. In contrast, the method in this embodiment effectively avoids the computational failure problem caused by the singularity or ill-conditioned nature of the Hessian matrix by introducing a regularization control term, proving that this embodiment has stronger robustness in handling such complex optimization problems.
[0057] Thus, this embodiment achieves a balance between superlinear convergence and global stability, theoretically proving that it has superlinear convergence speed under standard assumptions. Furthermore, in high-noise practical tasks such as cryo-electron microscopy image alignment, it significantly reduces alignment error and maintains robust convergence performance compared to existing first-order and second-order baseline algorithms.
[0058] Example 2 This embodiment provides a privacy-preserving distributed optimization system based on optimal control, applied to a client, including: The decoupling module is configured to divide the model parameters of each client into local private components and globally shared components; The modeling module is configured to construct an optimal control model with model parameters as state variables, update step size as control input, and minimizing the local least squares loss function as the objective. The update module is configured to, at the beginning of each round of communication between the client and the server, have the client receive the globally shared component broadcast by the server, combine it with the local private component, assemble the current state variable, perform a local update, calculate the gradient and Hessian matrix based on the current state variable, correct the Hessian matrix according to the regularization matrix, and then use the optimal control model to solve for the updated model parameters. The upload module is configured to upload the globally shared components of the updated model parameters to the server, so that the server can perform an aggregation operation to generate a global model until the termination condition is met, and then obtain the optimal model.
[0059] It should be noted that the above modules correspond to the steps described in Embodiment 1, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should also be noted that the above modules, as part of the system, can be executed in a computer system such as a set of computer-executable instructions.
[0060] In further embodiments, the following is also provided: An electronic device includes a memory and a processor, as well as computer instructions stored in the memory and running on the processor, wherein the computer instructions, when executed by the processor, perform the method described in Embodiment 1. For brevity, further details are omitted here.
[0061] It should be understood that in this embodiment, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0062] Memory may include read-only memory and random access memory, and provides instructions and data to the processor. A portion of memory may also include non-volatile random access memory. For example, memory may also store information about the device type.
[0063] A computer-readable storage medium for storing computer instructions, which, when executed by a processor, perform the method described in Embodiment 1.
[0064] The method in Example 1 can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor. The software modules can reside in readily available storage media in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, a detailed description is not provided here.
[0065] A computer program product includes a computer program that, when executed by a processor, implements the method described in Embodiment 1.
[0066] The present invention also provides at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes computer-executable instructions, such as instructions included in program modules, which execute in a device on a target real or virtual processor to perform the processes / methods described above. Typically, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., that perform specific tasks or implement specific abstract data types. In various embodiments, the functionality of program modules can be combined or divided among program modules as needed. The machine-executable instructions for the program modules can execute within a local or distributed device. In a distributed device, the program modules can reside in both local and remote storage media.
[0067] The computer program code used to implement the methods of the present invention may be written in one or more programming languages. This computer program code may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the computer or other programmable data processing device, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a computer, partially on a computer, as a stand-alone software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server.
[0068] In the context of this invention, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like. Examples of signals may include electrical, optical, radio, sound, or other forms of propagation signals, such as carrier waves, infrared signals, etc.
[0069] Those skilled in the art will recognize that the units and algorithm steps described in connection with the various examples of this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0070] It should be noted that all data acquisition is conducted in accordance with laws and regulations and with user consent, and the data is used legally.
[0071] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.
Claims
1. A privacy-preserving distributed optimization method based on optimal control, characterized in that, Applied to the client side, including: The model parameters for each client are divided into local private components and globally shared components; Using model parameters as state variables, update step size as control input, and minimizing local least squares loss function as objective, construct an optimal control model; At the start of each round of communication between the client and the server, the client receives the globally shared component broadcast by the server, combines it with the local private component, and assembles the current state variable; performs local update, calculates the gradient and Hessian matrix based on the current state variable, corrects the Hessian matrix according to the regularization matrix, and then uses the optimal control model to solve for the updated model parameters. The globally shared components in the updated model parameters are uploaded to the server so that the server can perform aggregation operations to generate a global model until the termination condition is met, at which point the optimal model is obtained.
2. The privacy-preserving distributed optimization method based on optimal control as described in claim 1, characterized in that, No. The client in the first Cost function of the optimal control model for round-robin communication for: ; in, It is the least squares loss function; For the first A client, in the t-th round of communication, the control input to be solved in the k-th local update; This is a pre-defined positive definite diagonal matrix; For the first A client, in the t-th round of communication, updates the model parameters locally for the K-th time; K is the maximum number of iterations for local updates; For the first A client updates the model parameters locally during the t-th round of communication.
3. The privacy-preserving distributed optimization method based on optimal control as described in claim 1, characterized in that, The process of modifying the Hessian matrix based on the regularization matrix is to add a positive definite diagonal matrix to the original Hessian matrix.
4. The privacy-preserving distributed optimization method based on optimal control as described in claim 1, characterized in that, The local update process includes: recursively calculating approximate control inputs to update model parameters. ; ; ; in, For the first A client, in the t-th round of communication, updates the model parameters locally for the k-th time; For the first The client, in the first Round communication, the first The model parameters are updated locally next time; For the first For client t, during the t-th round of communication and the k-th local update, the t-th... Approximate control input obtained from recursive calculations; For the first For client t, during the t-th round of communication and the k-th local update, the t-th... Approximate control input obtained from recursive calculations; For the first The initial value of each client is recursively calculated in the t-th round of communication; For the first For each client, the initial model parameters for the t-th round of communication; This is a pre-defined positive definite diagonal matrix; It is the least squares loss function.
5. The privacy-preserving distributed optimization method based on optimal control as described in claim 1, characterized in that, Finish After the local update, the client separates the updated globally shared component. The model is then uploaded to the server, which uses an average aggregation strategy to generate the next round of models. n represents the number of clients.
6. The privacy-preserving distributed optimization method based on optimal control as described in claim 1, characterized in that, The termination condition is reaching a preset number of communication rounds or the global loss function converging to a preset threshold.
7. A privacy-preserving distributed optimization system based on optimal control, characterized in that, Applied to the client side, including: The decoupling module is configured to divide the model parameters of each client into local private components and globally shared components; The modeling module is configured to construct an optimal control model with model parameters as state variables, update step size as control input, and minimizing the local least squares loss function as the objective. The update module is configured to, at the beginning of each round of communication between the client and the server, have the client receive the globally shared component broadcast by the server, combine it with the local private component, assemble the current state variable, perform a local update, calculate the gradient and Hessian matrix based on the current state variable, correct the Hessian matrix according to the regularization matrix, and then use the optimal control model to solve for the updated model parameters. The upload module is configured to upload the globally shared components of the updated model parameters to the server, so that the server can perform an aggregation operation to generate a global model until the termination condition is met, and then obtain the optimal model.
8. An electronic device, characterized in that, It includes a memory and a processor, as well as computer instructions stored in the memory and running on the processor, which, when executed by the processor, perform the method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, Used to store computer instructions, which, when executed by a processor, perform the method described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the method described in any one of claims 1-6.
Citation Information
Patent Citations
Infrared image enhancement method and device, equipment and medium
CN114782289A
Heterogeneous federated learning adaptive privacy protection method and device based on momentum optimization
CN120145456A
Distributed power battery energy transaction and scheduling method and system for smart power grid
CN120262388A
Efficient intelligent network attack classification tool based on federated learning framework
CN120296476A
Using local geometry when creating a neural network
US20230044087A1