Distributed sparse constraint optimization method and system, computer system and medium
Through the distributed sparse constraint optimization method, using the l2,0 norm and Stiefel manifold constraints, combined with the Newton-enhanced Lagrangian algorithm, the problems of low high-dimensional data processing efficiency and insufficient processing capabilities for non-convex problems in the existing technology are solved. Efficient optimization effects and broad application potential are achieved.
Patent Information
- Application Number
- CN202410623608.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing distributed optimization methods have insufficient computational efficiency when processing large-scale high-dimensional data, and do not fully utilize the sparsity and structure of the data. In particular, they have limited processing capabilities on non-convex constraints and non-smooth problems, and cannot be directly applied to Riemannian manifold spaces.
The distributed sparse constrained optimization method is adopted, by constructing the distributed sparse constrained optimization equation and Lagrangian equation, and solving it using the alternating minimization method and Newton's enhanced Lagrangian algorithm, introducing l2,0 norm and Stiefel manifold constraints. , combined with the penalty term and the augmented Lagrange multiplier, to achieve iterative solution of the optimization framework.
It improves optimization efficiency and performance, can obtain high-quality solutions at lower computational costs, robustly handles different types of sparse constrained optimization problems, is suitable for non-convex problems, and expands the application scope of distributed optimization methods.
Smart Images

Figure CN118535839A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a distributed sparse constraint optimization method, system, computer system and medium. The present invention can be applied to high-dimensional data analysis, distributed computing and other fields. Background Art
[0002] In the era of big data, the explosive growth of user data makes it difficult to process all the data. Existing distributed optimization methods may be insufficient in computational efficiency, especially when large-scale data sets need to be processed. With the rapid development of data science, the number of features in data sets continues to increase, resulting in an exponential growth in data dimensions. High-dimensional data usually has a certain structure, such as sparsity. Existing methods may not fully utilize this underlying structure to more effectively capture the characteristics of the data. Existing methods have certain challenges in dealing with models with non-convex constraints. Some methods may not have sufficient convergence proofs in theory or may only converge under specific conditions. Existing methods are widely used in Euclidean space, but cannot be directly used for Riemann manifold space. Summary of the invention
[0003] In view of some or all of the problems in the prior art, the present invention provides a distributed sparse constraint optimization method, which comprises the following steps:
[0004] Construct distributed sparse constrained optimization equations;
[0005] Constructing the Lagrangian equation of the distributed sparse constrained optimization equation;
[0006] Solving the Lagrangian equations using an alternating minimization method to obtain an optimization framework;
[0007] Solving the optimization framework using Newton-augmented Lagrangian algorithm;
[0008] Calculate and iterate in sequence to obtain the optimization result.
[0009] Furthermore, constructing a distributed sparse constrained optimization equation includes:
[0010] Construct optimization equations for distributed systems,
[0011]
[0012]
[0013] Among them, st represents constraints, Y represents the data set matrix, represents a real matrix with n rows and p columns, f i (Y) represents the function that maps Y to the set of positive real numbers, ||Y|| 2,0represents the l2,0 norm of the matrix Y, and s represents the sparsity;
[0014] M np represents the Stiefel manifold, which is defined as follows:
[0015]
[0016] Among them, I p represents the p×p identity matrix;
[0017] Considering the sparsity constraint of data, the optimization equation of the distributed system is reconstructed into a penalty form.
[0018]
[0019] st||Y|| 2,0 ≤s,
[0020] in, represents the square of the F norm of the matrix, μ represents the penalty coefficient;
[0021] Introducing g(Y) and X i ,
[0022]
[0023] The distributed sparse constrained optimization equation is obtained as follows:
[0024]
[0025]
[0026] |Y|| 2,0 ≤s
[0027] Among them, f i (X i ) represents the function mapping Xi to the set of positive real numbers, and d represents d agents.
[0028] Furthermore, the Lagrangian equations for constructing the distributed sparse constrained optimization equations include:
[0029] Constructing the Lagrangian equation of the distributed sparse constrained optimization equation,
[0030]
[0031] Among them, d represents d agents;
[0032] The definition is,
[0033]
[0034] Among them, Λ i represents the augmented Lagrange multiplier, and the penalty parameter β i >0, <·> represents the inner product of the matrix, Represents the square of the F-norm of the matrix.
[0035] Furthermore, the Lagrangian equation is solved by using an alternating minimization method, and an optimization framework is provided, including:
[0036] The Lagrangian equations are solved using the alternating minimization method, and the optimization framework is obtained as follows:
[0037]
[0038] Among them, arg min means to find the minimum value, Y k+1 Indicates the algorithm update of the Y matrix this time, Indicates the algorithm update of the X matrix this time, represents the algorithm update of Λ this time, represents an n×p matrix, d represents d agents;
[0039] S represents the row sparse constraint set of sparsity s, which is defined as:
[0040]
[0041] Where X represents the data set matrix, represents an n×p matrix, ||X|| 2,0 represents the l2,0 norm of the matrix X.
[0042] Further, the using Newton enhanced Lagrangian algorithm to solve the optimization framework includes:
[0043] fixed and The distributed sparse constrained optimization equation is rewritten as,
[0044]
[0045] st||Y|| 2,0 ≤s
[0046] The gradient of h(Y) is,
[0047]
[0048] The Hessian of h(Y) is,
[0049]
[0050] Among them, μ represents the penalty coefficient, and the formula of ψ(Y) is,
[0051]
[0052] The permutation matrix P is composed of Y T The gradient of represents the Kronecker product;
[0053] make is an index set covering the s largest component indices, with a size of The step size is α;
[0054] For a given T belongs to Satisfy the following formula
[0055]
[0056] Among them, O and represents an all-zero matrix with corresponding dimensions, T is The complement of , the definition of the nonlinear equation satisfied by T is:
[0057]
[0058] D is calculated by the following formula k ,
[0059]
[0060] Among them, D k Indicates the Newton search direction, vec(D k ) represents the matrix D k Arrange the resulting vector by columns;
[0061] represents H(Y;T k ) in Y k The Jacobian of
[0062]
[0063] Pick Get the formula,
[0064]
[0065]
[0066] Use the following formula to solve,
[0067] Y k+1 =Y k (η k ),
[0068]
[0069] Among them, η k represents the step length, η k Determined by Amijio line search technology.
[0070] Furthermore, the sequentially iterative calculation to obtain the optimization result includes:
[0071] The criterion for stopping the calculation iteration is,
[0072]
[0073] where Y is the optimization variable, ||·|| F represents the F-norm of the matrix, obj is the objective function, and k is the number of iterations; or
[0074] The number of iterations reaches 100.
[0075] The present invention also provides a distributed sparse constraint optimization system, which includes the following modules:
[0076] an optimization equation building module, configured to build a distributed sparse constrained optimization equation;
[0077] A Lagrangian equation building module, configured to build the Lagrangian equation of the distributed sparse constrained optimization equation;
[0078] An optimization framework building module is configured to solve the Lagrangian equation using an alternating minimization method to obtain an optimization framework;
[0079] A Newton-enhanced Lagrangian algorithm module configured to solve the optimization framework using a Newton-enhanced Lagrangian algorithm; and
[0080] The optimization result module is configured to calculate and iterate in sequence to obtain the optimization result.
[0081] The present invention also provides a computer system, comprising:
[0082] a processor configured to execute machine-readable instructions;
[0083] A graphics card with an artificial intelligence chip configured to train an optimization method; and
[0084] The memory is configured to store machine-readable instructions, which, when executed by a processor and / or a graphics card, perform the steps of the distributed sparse constrained optimization method.
[0085] The present invention also provides a computer-readable storage medium on which machine-readable instructions are stored. When the machine-readable instructions are executed by a processor, the steps of the distributed sparse constraint optimization method are executed.
[0086] The present invention proposes a distributed sparse constrained optimization method and develops an efficient algorithm based on Newton-augmented Lagrangian, which solves the problem that the existing distributed optimization methods mainly focus on convex optimization problems in Euclidean space and have limited processing capabilities for non-convex and non-smooth problems.
[0087] Compared with the prior art, the present invention has the following advantages:
[0088] 1. The optimization method proposed in the present invention integrates the l2,0 norm and Stiefel manifold constraints, ensuring the effectiveness of the constraints in the entire optimization process, thereby improving the optimization efficiency and performance.
[0089] 2. The optimization method proposed in this invention utilizes the sparsity and manifold structure of data and can obtain high-quality solutions at a lower computational cost, especially when processing large-scale high-dimensional data.
[0090] 3. The Newton-augmented Lagrangian algorithm proposed in this invention can robustly handle different types of sparse constrained optimization problems and maintain performance even in the presence of imperfect data or noise.
[0091] 4. The optimization method proposed in the present invention can handle optimization problems with non-convex sparse constraints and has potential application value in multiple fields, including but not limited to image processing, privacy protection, intelligent control, etc., which expands the application scope of distributed optimization methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0092] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.
[0093] Figure 1 A schematic diagram of a process flow of a distributed sparse constraint optimization method according to an embodiment of the present invention;
[0094] Figure 2 A schematic diagram of a process for solving a distributed sparse constrained optimization equation according to an embodiment of the present invention;
[0095] Figure 3a Performance comparison of different methods on USPS dataset;
[0096] Figure 3b To compare the performance of different methods on the MUSIC dataset; and
[0097] Figure 4A schematic diagram of a distributed sparse constrained optimization system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0098] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that various embodiments may be implemented without one or more specific details or with other replacement and / or additional methods or components. In other cases, well-known structures or operations are not shown or described in detail to avoid obscuring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of embodiments of the present invention. However, the present invention is not limited to these specific details.
[0099] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.
[0100] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.
[0101] In the present invention, each module of the system according to the present invention can be implemented using software, hardware, firmware or a combination thereof. When the module is implemented using software, the function of the module can be implemented by a computer program flow, for example, the module can be implemented by a code segment (such as a code segment of a language such as C, C++) stored in a storage device (such as a hard disk, a memory, etc.), wherein the corresponding function of the module can be implemented when the code segment is executed by a processor. When the module is implemented using hardware, the function of the module can be implemented by setting a corresponding hardware structure, for example, the function of the module can be implemented by hardware programming a programmable device such as a field programmable gate array (FPGA), or the function of the module can be implemented by designing an application-specific integrated circuit (ASIC) including electronic devices such as a plurality of transistors, resistors and capacitors. When the module is implemented using firmware, the function of the module can be written into a read-only memory such as an EPROM or EEPROM of the device in the form of a program code, and the corresponding function of the module can be implemented when the program code is executed by a processor. In addition, certain functions of the module may need to be implemented by separate hardware or by collaboration with the hardware, for example, the detection function is implemented by corresponding sensors (such as proximity sensors, acceleration sensors, gyroscopes, etc.), the signal transmission function is implemented by corresponding communication devices (such as Bluetooth devices, infrared communication devices, baseband communication devices, Wi-Fi communication devices, etc.), the output function is implemented by corresponding output devices (such as displays, speakers, etc.), and so on.
[0102] The present invention proposes a novel distributed sparse constrained optimization method, namely DREAM (effective and robust distributed optimization framework), and develops an efficient algorithm based on Newton-augmented Lagrangian, which solves the problem that existing distributed optimization methods mainly focus on convex optimization problems in Euclidean space and have limited processing capabilities for non-convex and non-smooth problems.
[0103] The technical solutions in the embodiments of the present invention are described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Figure 1 FIG. 1 is a flow chart of a distributed sparse constraint optimization method according to an embodiment of the present invention. In an embodiment of the present invention, the distributed sparse constraint optimization method can be executed by a computer. Figure 1 As shown, the distributed sparse constraint optimization method includes the following steps:
[0104] First, a distributed sparse constrained optimization equation is constructed.
[0105] Construct optimization equations for distributed systems,
[0106]
[0107]
[0108] Among them, st represents constraints, Y represents the data set matrix, represents a real matrix with n rows and p columns, f i (Y) represents the function that maps Y to the set of positive real numbers, ||Y|| 2,0 represents the l2,0 norm of the matrix Y, and s represents the sparsity.
[0109] The capital letter X represents a matrix, and x represents a vector.
[0110] The second norm l2 of x is defined as
[0111] Among them, x i Represents the i-th element of a vector.
[0112] The F-norm of X is defined as
[0113] Among them, X ij Represents the element in the i-th row and j-th column of matrix X.
[0114] The definition of l2,0 norm is,
[0115]
[0116] Among them, X represents the matrix, X i The elements of the i-th row of matrix X, ||(.) represents the indicator function.
[0117] M np represents the Stiefel manifold, which is defined as follows:
[0118]
[0119] Among them, I p Denotes the p×p identity matrix.
[0120] In order to deal with the optimization problem in the distributed system, the sparsity constraint of the data is taken into account. Since this problem is a non-convex sparse constraint problem, the optimization equation of the distributed system is reconstructed into a penalty form.
[0121]
[0122] st||Y|| 2,0 ≤s,
[0123] in, represents the square of the F-norm of the matrix, and μ represents the penalty coefficient.
[0124] Introducing g(Y) and X i , and let
[0125]
[0126] The distributed sparse constrained optimization equation is obtained as follows:
[0127]
[0128]
[0129] Y|| 2,0 ≤s
[0130] Among them, f i (X i ) represents the function mapping Xi to the set of positive real numbers, and d represents d agents.
[0131] Introducing the l2,0 norm as a penalty term for sparsification in the optimization problem, passing ||Y|| 2,0 ≤s sparse optimization effectively ensures the sparsity of variables and can efficiently screen out variables that contribute more to the problem, while reducing redundant information and improving the interpretability and generalization ability of the optimization method.
[0132] Using the properties of Stiefel manifolds to define constraints for an optimization problem helps keep the solution valid for a specific geometry.
[0133] Next, the Lagrangian equation of the distributed sparse constrained optimization equation is constructed.
[0134] The Lagrange equation is,
[0135]
[0136] Among them, d represents d agents.
[0137] The definition is,
[0138]
[0139] Among them, Λ i represents the augmented Lagrange multiplier, and the penalty parameter β i >0, <·> represents the inner product of the matrix, Represents the square of the F-norm of the matrix.
[0140] Next, the Lagrangian equation is solved using an alternating minimization method to obtain an optimization framework. In one embodiment of the present invention, the Lagrangian equation can also be solved using an alternating minimization method.
[0141] The optimization framework is:
[0142]
[0143] Among them, arg min means to find the minimum value, Y k+1 Indicates the algorithm update of the Y matrix this time, Indicates the algorithm update of the X matrix this time, represents the algorithm update of Λ this time, represents an n×p matrix, and d represents d agents.
[0144] S represents the row sparse constraint set of sparsity s, which is defined as:
[0145]
[0146] Where X represents the data set matrix, represents an n×p matrix, ||X|| 2,0 represents the l2,0 norm of the matrix X.
[0147] Next, the optimization framework is solved using the Newton-augmented Lagrangian algorithm.
[0148] The alternating minimization method or the alternating direction multiplier method is mainly used to give the overall optimization framework of the Lagrangian equation. The Newton enhanced Lagrangian algorithm is the engine for executing the optimization process, which is mainly used to solve the solution of the subproblem Y.
[0149] fixed and The distributed sparse constrained optimization equation can be rewritten as,
[0150]
[0151] st||Y|| 2,0 ≤s
[0152] The gradient of h(Y) is,
[0153]
[0154] The Hessian of h(Y) is,
[0155]
[0156] Among them, μ represents the penalty coefficient, and the formula of ψ(Y) is,
[0157]
[0158] The permutation matrix P is composed of Y T The gradient of represents the Kronecker product.
[0159] make is an index set covering the s largest component indices, with a size of The step size is α.
[0160] For a given T belongs to Satisfy the following formula
[0161]
[0162] Among them, O and represents an all-zero matrix with corresponding dimensions, T is The complement of T, the definition of the nonlinear equation satisfied by T is,
[0163]
[0164] Once T is determined, the above nonlinear equations can also be solved.
[0165] Next, the augmented Newton-type method is used to calculate this nonlinear equation.
[0166] D is calculated by the following formula k ,
[0167]
[0168] Among them, D k Indicates the Newton search direction, vec(D k ) represents the matrix D k Arrange the resulting vector in columns.
[0169] represents H(Y;T k ) in Y k The Jacobian of
[0170]
[0171] Pick Get the formula,
[0172]
[0173]
[0174] Use the following formula to solve,
[0175] Y k+1 =Y k (η k ),
[0176]
[0177] Among them, ηk represents the step length, η k Determined by Amijio line search technology.
[0178] Finally, the iterations are calculated in sequence to obtain the optimization result.
[0179] Figure 2 FIG. 1 is a flow chart of solving a distributed sparse constraint optimization equation according to an embodiment of the present invention. Figure 2 As shown in the figure, the l2,0 norm sparse constraint and the Stiefel manifold constraint define the specific constraints of the problem, which are embedded in the optimization framework. The Newton enhanced Lagrangian algorithm is used to perform the optimization process, iteratively update Y, X, Λ until the convergence condition is met or the predetermined performance index is reached, then the calculation iteration is stopped and the optimization result is output.
[0180] The criterion for stopping the calculation iteration is:
[0181]
[0182] where Y is the optimization variable, ||·|| F represents the F-norm of the matrix, obj is the objective function, and k is the number of iterations; or
[0183] The number of iterations reaches 100.
[0184] The distributed sparse constraint optimization method provided by the present invention is applicable to a variety of optimal use states, mainly including:
[0185] 1. Large-scale high-dimensional data analysis. When the processed data set is very large and has high dimensions, traditional optimization methods may encounter performance bottlenecks. For example, analyzing gene expression data in bioinformatics, or processing a large number of high-resolution images in image processing. The optimization method provided by the present invention utilizes the sparsity and manifold structure of the data to reduce the computational complexity and can effectively process these data.
[0186] 2. In a distributed computing environment, data may be distributed on different nodes, and each node is responsible for a part of the computing task. For example, big data analysis is performed in a cluster consisting of multiple servers. The optimization method provided by the present invention allows each node to update its local information independently and coordinate the overall optimization process through communication, thereby improving computing efficiency and scalability.
[0187] The effect of the optimization method provided by the present invention can be further illustrated by the following experimental results.
[0188] Figure 3a Performance comparison of different methods on the USPS dataset. Figure 3bThe performance of different methods on the MUSIC dataset is compared. The optimization method provided by the present invention is experimentally verified using the orthogonal least squares method (0LSR). The experiment uses two real datasets, USPS and MUSIC. The experimental indicator uses the root mean square error, and the calculation formula is as follows:
[0189]
[0190] in, represents the square of the F norm of the matrix, d represents d agents, n represents the total number of samples, m i represents the number of samples corresponding to the i-th agent, A i represents the design matrix corresponding to the ith agent, B i represents the actual value matrix corresponding to the i-th agent, Represents the prediction value matrix.
[0191] like Figure 3a and 3b As shown, compared with DPLAM, DPCPG and DESTINY methods, the distributed sparse constrained optimization method provided by the present invention, namely DREAM, has the best optimization effect.
[0192] DREAM is experimentally validated for linear discriminant analysis (LDA) using YALE, ORL, CAR, AR, Vegetable, and CIFAR-10 datasets. Principal component analysis (PCA) is first performed to retain 95% of the original data information. For all selected datasets, 50% of the samples are randomly selected for training, and the nearest neighbor classifier is used to obtain the classification accuracy.
[0193] Table 1 shows the classification accuracy (%) of different methods for data sets. As shown in Table 1, for YALE, ORL, CAR, AR, Vegetable and CIFAR-10 data sets, the distributed sparse constrained optimization method DREAM provided by the present invention has a higher classification accuracy than DPLAM, DPCPG and DESTINY methods.
[0194] Table 1 Classification accuracy for the data set (%)
[0195]
[0196] Table 2 shows the classification accuracy (%) of different methods for data sets with added noise. As shown in Table 2, for ORL+G, ORL+S, AR+G, and AR+S data sets, the distributed sparse constrained optimization method provided by the present invention, namely DREAM, has a higher classification accuracy than DPLAM, DPCPG, and DESTINY methods.
[0197] Table 2 Classification accuracy for the data set with noise added (%)
[0198]
[0199] The distributed sparse constrained optimization method proposed in the present invention integrates the l2,0 norm and Stiefel manifold constraints, ensuring the effectiveness of the constraints in the entire optimization process, thereby improving the optimization efficiency and performance; utilizing the sparsity and manifold structure of the data, it is possible to obtain high-quality solutions at a lower computational cost; the Newton-augmented Lagrangian algorithm proposed in the present invention is able to robustly handle different types of sparse constrained optimization problems, and can maintain performance even when the data is imperfect or noisy; the optimization method proposed in the present invention is able to handle optimization problems with non-convex sparse constraints, has potential application value in multiple fields, and expands the application scope of distributed optimization methods.
[0200] The invention also provides a distributed sparse constraint optimization system. Figure 4 FIG. 1 is a schematic diagram of a distributed sparse constraint optimization system according to an embodiment of the present invention. Figure 4 As shown, the system includes the following modules:
[0201] an optimization equation building module, configured to build a distributed sparse constrained optimization equation;
[0202] A Lagrangian equation building module, configured to build the Lagrangian equation of the distributed sparse constrained optimization equation;
[0203] An optimization framework building module is configured to solve the Lagrangian equation using an alternating minimization method to obtain an optimization framework;
[0204] A Newton-enhanced Lagrangian algorithm module configured to solve the optimization framework using a Newton-enhanced Lagrangian algorithm; and
[0205] The optimization result module is configured to calculate and iterate in sequence to obtain the optimization result.
[0206] In one embodiment of the present invention, the present invention also provides a computer system, which includes a processor, a graphics card with an artificial intelligence chip, and a memory, wherein the memory is configured to store machine-readable instructions, the graphics card is configured to train the optimization method, and the processor is configured to execute the machine-readable instructions. When the processor and / or the graphics card execute the machine-readable instructions, the following processing steps are implemented: constructing a distributed sparse constrained optimization equation; constructing the Lagrangian equation of the distributed sparse constrained optimization equation; solving the Lagrangian equation using an alternating minimization method to obtain an optimization framework; solving the optimization framework using the Newton enhanced Lagrangian algorithm; calculating iterations in sequence to obtain an optimization result.
[0207] The graphics card may preferably have a GPU computing power higher than 5.0. Since the amount of data to be trained is large, providing a graphics card configuration can significantly increase the training speed.
[0208] The memory includes: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store machine-readable instructions.
[0209] It can be understood that in addition to the memory and processor mentioned above, the above-mentioned computer system also includes other software and hardware components not listed in this specification. The specific components can be determined according to the model of specific data processing equipment in different application scenarios, and this specification will not list them one by one in detail.
[0210] In one embodiment, a computer-readable storage medium is also provided, on which machine-readable instructions are stored. When the machine-readable instructions are executed by a processor, the following processing steps are implemented: constructing a distributed sparse constrained optimization equation; constructing a Lagrangian equation of the distributed sparse constrained optimization equation; solving the Lagrangian equation using an alternating minimization method to obtain an optimization framework; solving the optimization framework using a Newton enhanced Lagrangian algorithm; and calculating and iterating in sequence to obtain an optimization result.
[0211] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.
Claims
1. A distributed sparse constrained optimization method, characterized in that: The steps include: Construct distributed sparse constrained optimization equations; Constructing the Lagrangian equation of the distributed sparse constrained optimization equation; Solving the Lagrangian equations using an alternating minimization method to obtain an optimization framework; Solving the optimization framework using Newton-augmented Lagrangian algorithm; Calculate and iterate in sequence to obtain the optimization result.
2. The distributed sparse constraint optimization method according to claim 1, characterized in that: The constructing of the distributed sparse constrained optimization equation comprises: Construct optimization equations for distributed systems, s.t.||Y|| 2,0 ≤s, Among them, st represents constraints, Y represents the data set matrix, represents a real matrix with n rows and p columns, f i (Y) represents the function that maps Y to the set of positive real numbers, ||Y|| 2,0 represents the l2,0 norm of the matrix Y, and s represents the sparsity; M np represents the Stiefel manifold, which is defined as follows: Among them, I p represents the p×p identity matrix; Considering the sparsity constraint of data, the optimization equation of the distributed system is reconstructed into a penalty form. s.t.||Y|| 2,0 ≤s, in, represents the square of the F norm of the matrix, μ represents the penalty coefficient; Introducing g(Y) and X i , X i =And The distributed sparse constrained optimization equation is obtained as follows: s.t.X i =Y, ||And|| 2,0 ≤s Among them, f i (X i ) represents the function mapping Xi to the set of positive real numbers, and d represents d agents.
3. The distributed sparse constraint optimization method according to any one of claims 1-2, characterized in that: The Lagrangian equations for constructing the distributed sparse constrained optimization equations include: Constructing the Lagrangian equation of the distributed sparse constrained optimization equation, Among them, d represents d agents; The definition is, Among them, Λ i represents the augmented Lagrange multiplier, and the penalty parameter β i >0, <·> represents the inner product of the matrix, Represents the square of the F-norm of the matrix.
4. The distributed sparse constrained optimization method according to any one of claims 1 to 3, characterized in that: The Lagrangian equation is solved by using the alternating minimization method to obtain an optimization framework including: The Lagrangian equations are solved using the alternating minimization method, and the optimization framework is obtained as follows: Among them, arg min means to find the minimum value, Y k+1 Indicates the algorithm update of the Y matrix this time, Indicates the algorithm update of the X matrix this time, represents the algorithm update of Λ this time, represents an n×p matrix, d represents d agents; S represents the row sparse constraint set of sparsity s, which is defined as: Where X represents the data set matrix, represents an n×p matrix, ||X|| 2,0 represents the l2,0 norm of the matrix X.
5. The distributed sparse constrained optimization method according to any one of claims 1 to 4, characterized in that: The use of Newton enhanced Lagrangian algorithm to solve the optimization framework includes: fixed and The distributed sparse constrained optimization equation is rewritten as, s.t.||Y|| 2,0 ≤s The gradient of h(Y) is, The Hessian of h(Y) is, Among them, μ represents the penalty coefficient, and the formula of ψ(Y) is, The permutation matrix P is composed of Y T The gradient of represents the Kronecker product; make is an index set covering the s largest component indices, with a size of The step size is α; For a given T belongs to Satisfy the following formula Among them, O and represents an all-zero matrix with corresponding dimensions, T is The complement of T, the definition of the nonlinear equation satisfied by T is, D is calculated by the following formula k , Among them, D k Indicates the Newton search direction, vec(D k ) represents the matrix D k Arrange the resulting vector by columns; represents H(Y;T k ) in Y k The Jacobian of Pick Get the formula, Use the following formula to solve, AND k+1 =And k (η k ), Among them, η k represents the step length, η k Determined by Amijio line search technology.
6. The distributed sparse constraint optimization method according to claim 1, characterized in that: The sequential calculation iterations to obtain the optimization results include: The criterion for stopping the calculation iteration is, where Y is the optimization variable, ‖·‖F is the F-norm of the matrix, obj is the objective function, and k is the number of iterations; or The number of iterations reaches 100.
7. A distributed sparse constrained optimization system, characterized in that: Includes the following modules: an optimization equation building module, configured to build a distributed sparse constrained optimization equation; A Lagrangian equation building module, configured to build the Lagrangian equation of the distributed sparse constrained optimization equation; An optimization framework building module is configured to solve the Lagrangian equation using an alternating minimization method to obtain an optimization framework; A Newton-enhanced Lagrangian algorithm module is configured to solve the optimization framework using a Newton-enhanced Lagrangian algorithm; as well as The optimization result module is configured to calculate and iterate in sequence to obtain the optimization result.
8. A computer system, characterized in that: include: a processor configured to execute machine-readable instructions; A graphics card with an AI chip configured to train an optimized method; as well as A memory configured to store machine-readable instructions, wherein the machine-readable instructions, when executed by a processor and / or a graphics card, perform the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Machine-readable instructions are stored thereon, and when the machine-readable instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are performed.
