A master-dual distributed acceleration optimization method based on iterative processing

By introducing Nesterov gradient acceleration technology and the principal dual distributed optimization method of momentum parameters into the undirected communication network, the problems of slow convergence speed and poor robustness of distributed optimization algorithms in the existing technology are solved, and more efficient computing performance is achieved. and widely used.

CN112000920BActive Publication Date: 2024-09-24SOUTHWEST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010793221.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-09-24
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

Existing centralized optimization technology cannot meet the growing industrial needs, and has problems with single points of failure and poor robustness. Moreover, the convergence speed of existing distributed optimization technology needs to be improved, especially when processing large-scale data, which performs poorly. Nesterov gradient acceleration technology is not introduced.

Method used

Using the principal dual distributed acceleration optimization method based on iterative processing, combined with Nesterov gradient acceleration technology, by decomposing the objective function in the undirected connected communication network and introducing momentum parameters, a more efficient distributed optimization algorithm is designed, which improves the convergence of the algorithm. speed and computing performance.

Benefits of technology

Under the undirected communication network, the convergence speed of the distributed optimization algorithm is significantly improved, its application scope is expanded, and it provides better computing performance and robustness. It is suitable for fields such as machine learning, signal and information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000920B
    Figure CN112000920B
Patent Text Reader

Abstract

The present invention relates to a main-dual distributed acceleration optimization method based on iterative processing, and belongs to the technical field of large-scale machine learning distributed optimization. The method is based on a distributed computing method of iterative processing, adopts the Nesterov gradient acceleration technology, and mainly includes the following steps: S1: determine the objective function; S2: build a communication network; S3: variable initialization; S4: select a suitable step size and momentum parameter; S5: variable update. The method adopts a distributed computing method and has a wide range of application fields, such as machine learning, signal and information processing, resource allocation, etc.; at the same time, the Nesterov gradient acceleration technology is adopted to greatly improve the convergence speed of the proposed algorithm. The method lays a theoretical foundation for the application of distributed optimization under undirected communication networks and expands its scope of application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of large-scale machine learning distributed optimization, and relates to a master-dual distributed acceleration optimization method based on iterative processing. Background Art

[0002] Centralized system and distributed system are two typical control processing methods, which are widely used in various fields. A centralized system refers to a central node composed of one or more main computers, where data is stored in this central node, and all business units of the entire system are centrally deployed on this central node, and all functions of the system are centrally processed by it. In the early days, the centralized system received extensive attention from experts and scholars due to the excellent computing performance of its central node processor. However, with the rapid development of various industries, industrial data has the following characteristics: large volume, high dimension, and many types. At the same time, due to the development bottleneck of physical hardware, the computing performance of the central node processor has been difficult to improve. Therefore, the processing capacity of centralized algorithms for current industrial data has been stretched, and researchers have begun to shift their research direction to distributed optimization algorithms. Distributed optimization algorithms can decompose a complex computing task into multiple simple and easy-to-process small tasks, thereby effectively solving the problem. In a distributed communication network, nodes only need to communicate with neighboring nodes and then combine the information they carry to process distributed optimization problems. Therefore, distributed optimization algorithms can effectively protect user privacy, balance network load, enhance system robustness, and avoid single point failures.

[0003] At present, a number of primal-dual distributed optimization algorithms have been produced, but these algorithms have ignored the negative impact of the original error on the dual error. At the same time, the Nesterov gradient acceleration technology has good acceleration characteristics, but most distributed optimization algorithms have not introduced this technology, so the convergence speed needs to be improved.

[0004] In summary, in the prior art, the common problems are:

[0005] 1) The existing centralized optimization technology cannot meet the growing industrial needs and has problems such as single point failure and poor robustness.

[0006] 2) The convergence speed of existing distributed optimization technology needs to be improved, and its processing capability for actual large-scale data is low.

[0007] The difficulty in solving the above technical problems lies in: 1) how to design a distributed optimization algorithm with faster convergence speed and theoretically prove the improvement of its convergence speed; 2) introduce Nesterov gradient acceleration technology to increase the choice of momentum parameters.

[0008] Based on this, the present invention aims to provide an efficient distributed acceleration optimization method, so as to overcome the above-mentioned related technical problems existing in this field, lay a theoretical foundation for the application of distributed optimization in unidirectional communication networks, and expand its scope of application. Summary of the invention

[0009] In view of this, the purpose of the present invention is to provide a main-dual distributed accelerated optimization method based on iterative processing, which adopts a distributed computing mode and Nesterov gradient acceleration technology, which greatly improves the convergence speed of the algorithm, has better computing performance, can solve general distributed convex optimization problems in an undirected connected communication network, and has a broad range of applications.

[0010] In order to achieve the above object, the present invention provides the following technical solutions:

[0011] A main-dual distributed acceleration optimization method based on iterative processing, which is based on the distributed computing mode of iterative processing and adopts the Nesterov gradient acceleration technology, and mainly includes the following steps:

[0012] S1: Determine the objective function; S2: Build a communication network; S3: Initialize variables; S4: Select appropriate step size and momentum parameters; S5: Update variables.

[0013] Further, in step S1, the objective function and the strong convex coefficient μ and the Lipschitz constant l of the objective function are determined, wherein ≥μ>0, specifically including: setting the objective function:

[0014]

[0015] Among them, each local objective function, f i : R n →R, is only known by node i; at the same time, each local objective function f i is strongly convex and Lipschitz continuous, the strong convexity coefficient and Lipschitz constant are μ and l, that is: and x1,x2∈R n ,have as well as in represents f i The gradient of problem P1 is Expressed; the equivalent form of the analysis problem P1 is as follows:

[0016]

[0017] Constraint x i =x j The purpose is to make the local optimal solution of each node consistent.

[0018] Further, in step S2, an undirected communication network is constructed Construct a doubly random matrix W related to the network topology; consider an undirected connected communication network with m nodes, in represents the node set, ε represents the undirected edge set, that is: for If there is a communication link between nodes i and j, represented by (i, j), (i, j)∈ε; represents the set of neighbor nodes of node i, which also includes node i itself; if And (j, i)∈ε, there is W ij >0 and Definition L = I m -W and adjustable matrix Where B is a symmetric matrix and satisfies: * ∈R n , there exists a constant c∈R such that

[0019] Further, in step S3, each node Set k = 0 and a maximum number of iterations k max ; Each node i holds three variables: s i , x i ,u i ; Main variable s i and x i They are all estimates of the local optimal solution, and the dual variable u i is an auxiliary variable; at the kth iteration, the values ​​of the three variables are expressed as For each node Initialize all variables held: Set Definition parameter: σ=||WJ m ||,ε=||I m -W||,φ=||I m -J m ||, Choose any constants θ3, θ4>0, and then choose a constant θ1 that satisfies Finally, we select the constant θ2 to satisfy

[0020] Further, in step S4, the maximum step length is calculated using the following formula:

[0021]

[0022] Then select the constant △ α , which represents the difference between the maximum step length and the minimum step length, so that it satisfies:

[0023]

[0024] Finally, the maximum Nesterov momentum parameter is calculated using the following formula:

[0025]

[0026] Furthermore, each node Choose a constant step size α i and the constant momentum term β i , so that they satisfy: and

[0027] Furthermore, each node Receive neighbor node j, Information sent And update the variables based on the information it carries The specific iterative calculation expression is as follows:

[0028]

[0029] Further, in step S5, each node Based on the latest variables Update variables The update rules are as follows:

[0030]

[0031] Furthermore, the node The neighbor node j receives the node Information sent Then, according to the information carried by node j itself, it is processed by the system and integrated into information Finally, the information is sent to node i, and node i updates the dual variable according to the following iterative calculation rules based on the information and the information it carries

[0032]

[0033] Furthermore, each node i sets the number of iterations k = k + 1 until k ≥ k max The algorithm stops running.

[0034] The beneficial effects of the present invention are:

[0035] The method proposed in the present invention adopts a distributed computing mode and has a wide range of application fields, such as machine learning, signal and information processing, resource allocation, etc. At the same time, the Nesterov gradient acceleration technology is adopted to greatly improve the convergence speed of the proposed algorithm. This method lays a theoretical foundation for the application of distributed optimization in undirected communication networks and expands its application scope.

[0036] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0038] Figure 1 is a flow chart of the method of the present invention;

[0039] Figure 2 The example provided contains 30 nodes and r p = 0.1 undirected communication network graph;

[0040] Figure 3 The example provided contains 30 nodes and r p = 0.3 undirected communication network graph;

[0041] Figure 4 For example, the Figure 2 A comparison chart of algorithm performance between the embodiment and various comparative examples under the depicted communication network;

[0042] Figure 5 For example, the Figure 3 A comparison chart of algorithm performance between the embodiment and various comparative examples under the depicted communication network;

[0043] Figure 6 The embodiment provides a network with 30 nodes and r p =0.1 in an undirected communication network, a comparison chart of algorithm performance between the embodiment and the comparative example;

[0044] Figure 7 The embodiment provides a network with 30 nodes and r p =0.1 in an undirected communication network, a comparison chart of the algorithm performance of the embodiment and the comparative example. DETAILED DESCRIPTION

[0045] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0046] Symbol Definition: Unless otherwise specified, lowercase italic letters in this invention represent column vectors, and uppercase italic letters represent matrices. For any vector x and matrix x, x T and X T denote their transposes respectively. 0 denotes a zero vector, whose dimension can be known from the context. m represents the m-dimensional identity matrix, 1 m represents an m-dimensional all-1 vector. i represents the i-th element of vector x, X i represents the i-th row element of matrix X, X ij Represents the element in the i-th row and j-th column of matrix X.

[0047] Figure 1 This is a flow chart of the main-dual distributed accelerated optimization method based on iterative processing described in the present invention. The distributed Nesterov accelerated optimization algorithm designed by the present invention can solve general distributed convex optimization problems in an undirected connected communication network. The Nesterov acceleration technology is used to greatly improve the convergence speed of the algorithm, thereby having better computing performance. The method includes the following steps:

[0048] In the first step, a logistic regression problem is used to verify the performance advantage of the algorithm proposed in the present invention. The problem format is as follows:

[0049]

[0050] Its objective function can be written in the form of problem P1:

[0051]

[0052] Each node i can access m i training samples (c ij ,y ij )∈R n ×{-1, 1}, where c ij represents the feature vector, y ij is the corresponding binary classification label. In addition, The role of is to prevent overfitting of data. Set the strong convex coefficient μ and Lipschitz constant l of the objective function to satisfy ≥μ>0.

[0053] In the second step, the present invention utilizes The model builds two undirected communication networks with different connectivity rates, such as Figure 2 , Figure 3 As shown, where r pIndicates the probability of whether any two nodes in the network are connected. In addition, the present invention uses the following Metropolis-Hastings protocol to generate a double random weight matrix related to the communication network:

[0054]

[0055] Here, deg i express Set L = I m -W, and the adjustable matrix B of the present invention adopts two settings: 1) B = lW;

[0056] 2)

[0057] The third step is to make each node Set k = 0 and a maximum number of iterations k max Each node i holds three variables: s i , x i ,u i . Main variable s i and x i They are all estimates of the local optimal solution, and the dual variable u i is an auxiliary variable. At the kth iteration, the values ​​of the three variables are expressed as

[0058] The fourth step is to perform Initialize all variables held. That is, set

[0059] Step 5: Define the parameter: σ=||WJ m ||,ε=||I m -W||,φ=||I m -J m ||, Choose any constants θ3, θ4>0, and then choose a constant θ1 that satisfies Finally, we select the constant θ2 to satisfy

[0060] Step 6: Based on the parameters and matrices set in steps 1, 2, and 5, calculate the maximum step length using the following formula:

[0061]

[0062] Then select the constant △α (representing the difference between the maximum step length and the minimum step length) to satisfy:

[0063]

[0064] Finally, the maximum Nesterov momentum parameter is calculated using the following formula:

[0065]

[0066] Step 7: Each node Choose a constant step size α i and the constant momentum term β i , so that they satisfy: and

[0067] Step 8: Each node Receive neighbor node j (ie: ) And update the variables based on the information it carries The specific iterative calculation expression is as follows:

[0068]

[0069] Step 9: Each node Based on the latest variables Update variables The update rules are as follows:

[0070]

[0071] Step 10, Node The neighbor node j receives the node Information sent Then, according to the information carried by node j itself, it is processed by the system and integrated into information Finally, the information is sent to node i, and node i updates the dual variable according to the following iterative calculation rules based on the information and the information it carries

[0072]

[0073] In the eleventh step, each node i sets the number of iterations k = k + 1, and then returns to the eighth step to continue running until k ≥ k max The algorithm stops running.

[0074] In the first simulation experiment, we set m=30, m i =20, n = 100, and λ = 0.01. Strong convexity coefficient μ = 5 and Lipschitz constant l = 15. All elements of vector v (ground truth) are generated using standard normal distribution. Feature vector c ij Each element of follows a standard normal distribution, and the corresponding binary label y ijGenerate it as follows:

[0075]

[0076] In this simulation experiment, the algorithm proposed in the present invention will be compared with the EXTRA algorithm proposed in the literature "EXTRA: An exact first-order algorithm for decentralized consensus optimization, SIAM Journal on Optimization, 25 (2), 944-966", the algorithm proposed in the literature "Harnessing smoothness to accelerate distributed optimization, IEEE Transactions on Control of Network Systems, 5 (3), 1245-1260" and the algorithm proposed in the literature "A unification and generalization of exact distributed first-order methods, IEEE Transactions on Signal and Information Processing over Networks, 5 (1), 31-46". As an optimality measure, for the convenience of description, the algorithm proposed in the second document is called HSADO in the present invention, and the algorithm proposed in the last document is called UGFOM in the present invention.

[0077] Example 1

[0078] The algorithm of the present invention is used for calculation, wherein the parameters are set as: α=0.01, β=0.3, B=15W;

[0079] Example 2

[0080] The algorithm of the present invention is used for calculation, wherein the parameters are set as: α = 0.01, β = 0.3, B = 10I m ;

[0081] Comparative Example 1

[0082] The EXTRA algorithm was used for calculation, where the parameters were set as: α = 0.01;

[0083] Comparative Example 2

[0084] The HSADO algorithm was used for calculation, where the parameters were set as: α = 0.01;

[0085] Comparative Example 3

[0086] The UGFOM algorithm was used for calculation, where the parameters were set as: α = 0.01, B = 15W;

[0087] Comparative Example 4

[0088] The UGFOM algorithm is used for calculation, where the parameters are set as: α = 0.01, B = 10I m ;

[0089] It should be noted that the parameters set in the above embodiments 1-2 and comparative examples 1-4 are obtained by jointly optimizing the modulation under the same communication network environment. When the network environment changes, the parameter modulation results may be different.

[0090] The algorithm performance comparison results of the above examples 1-2 and comparative examples 1-4 are as follows: Figure 4 , Figure 5 As shown in Table 1, Table 2 is used to record the E calculated by all algorithms within 1000 iterations. k Values ​​as follows:

[0091] Table 1: E within 1000 iterations k Value (r p =0.1)

[0092]

[0093] * This table shows the E k Small differences in value.

[0094] Table 2: E within 1000 iterations k Value (r p =0.3)

[0095]

[0096] * This table shows the E k Small differences in value.

[0097] The results show that the algorithm proposed in this invention can achieve 10 -10 The measured values ​​indicate that the algorithm proposed in the present invention has better computing performance. In addition, the comparison results of Examples 1-2 and Comparative Examples 3-4 also demonstrate that the Nesterov gradient method has good acceleration characteristics.

[0098] In the second simulation experiment, the present invention uses a Parkinson's disease classification dataset containing 754 features (source: https: / / archive.ics.uci.edu / ml / datasets / Parkinson%27s+Disease+Classification) to verify the practical application performance of the algorithm proposed in the present invention. In this simulation experiment, a simple preprocessing is performed on the dataset, and the specific processing method is as follows: First, delete the first column id number of the dataset and scale all feature values ​​to between 0 and 1. Then, convert the label from {1, 0} to {1, -1}. Finally, distribute all the data evenly to all nodes. In addition, use the strategy in the second step to generate a dataset containing 100 nodes and r p =0.1 communication network.

[0099] In this simulation experiment, the algorithm proposed in the present invention will be compared with UGFOM in two groups of experiments.

[0100] The first set of experiments:

[0101] Example 1

[0102] The algorithm of the present invention is used for calculation, wherein the parameters are set as: α=0.0001, β=0.3, B=15W;

[0103] Comparative Example 1

[0104] The UGFOM algorithm was used for calculation, where the parameters were set as: α = 0.0001, B = 15W;

[0105] The second set of experiments:

[0106] Example 1

[0107] The algorithm of the present invention is used for calculation, wherein the parameters are set as: α = 0.0001, β = 0.3, B = 10I m ;

[0108] Comparative Example 1

[0109] The UGFOM algorithm is used for calculation, and the parameters are set as follows: α = 0.0001, B = 10I m ;

[0110] The algorithm comparison results of the two groups of experiments are as follows: Figure 6 , Figure 7 The results show that for the processing of actual data sets, the algorithm proposed in the present invention has better computing performance than UGFOM, and thus has better practicality.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A master-dual distributed acceleration optimization method based on iterative processing, characterized in that: The method is based on distributed computing in iterative processing and uses Nesterov gradient acceleration technology. It mainly includes the following steps: S1: Determine the objective function; S2: Build a communication network; S3: Initialize variables; S4: Select appropriate step size and momentum parameters; S5: Update variables; In step S1, the objective function and the strong convex coefficient μ and the Lipschitz constant l of the objective function are determined, where l≥μ>0, specifically including: setting the objective function: Pl Among them, each local objective function, f i :Rn→R is only known by node i; at the same time, each local objective function fi is strongly convex and Lipschitz continuous, the strong convex coefficient and Lipschitz constant are μ and l, that is: for and x1,x2∈R n have as well as in represents the gradient of fi; the optimal solution of problem P1 is Expressed; the equivalent form of the analysis problem P1 is as follows: Constraint x i =x j This is to make the local optimal solution of each node consistent; In step S2, an undirected communication network is constructed Construct a doubly random matrix W related to the network topology; consider an undirected connected communication network with m nodes, in represents the node set, ε represents the undirected edge set, that is: for If there is a communication link between nodes i and j, represented by (i, j), (i, j)∈ε; represents the set of neighbor nodes of node i, which also includes node i itself; if And (j,i)∈ε, there is W ij >0 and Definition L = I m -W and adjustable matrix Where B is a symmetric matrix and satisfies: * ∈R n , there exists a constant c∈R such that In step S3, each node Set k = 0 and a maximum number of iterations k max ; Each node i holds three variables: s i , x i ,u i ; Main variable s i and x i They are all estimates of the local optimal solution, and the dual variable u i is an auxiliary variable; at the kth iteration, the values ​​of the three variables are expressed as For each node Initialize all variables held: Set Definition parameter: σ=||WJ m ||,ε=||I m -W||, Choose any constants θ3, θ4>0, and then choose a constant θ1 that satisfies Finally, we select a constant θ2 to satisfy In step S4, the maximum step length is calculated using the following formula: Then select the constant Δα, which represents the difference between the maximum step size and the minimum step size, so that it satisfies: Finally, the maximum Nesterov momentum parameter is calculated using the following formula: Each node Choose a constant step size α i and the constant momentum term β i , so that they satisfy: and Each node Receive neighbor node j, Information sent And update the variables based on the information it carries The specific iterative calculation expression is as follows: In step S5, each node Based on the latest variables Update variables The update rules are as follows: node The neighbor node j receives the node Information sent Then, according to the information carried by node j itself, it is processed by the system and integrated into information Finally, the information is sent to node i, and node i updates the dual variable according to the following iterative calculation rules based on the information and the information it carries Each node i sets the number of iterations k = k + 1 until k ≥ k max The algorithm stops running.