Research Article  Open Access
Yongbin Zheng, Yuzhuang Yan, Sheng Liu, Xinsheng Huang, Wanying Xu, "An Efficient Approach to Solve the LargeScale Semidefinite Programming Problems", Mathematical Problems in Engineering, vol. 2012, Article ID 764760, 12 pages, 2012. https://doi.org/10.1155/2012/764760
An Efficient Approach to Solve the LargeScale Semidefinite Programming Problems
Abstract
Solving the largescale problems with semidefinite programming (SDP) constraints is of great importance in modeling and model reduction of complex system, dynamical system, optimal control, computer vision, and machine learning. However, existing SDP solvers are of large complexities and thus unavailable to deal with largescale problems. In this paper, we solve SDP using matrix generation, which is an extension of the classical column generation. The exponentiated gradient algorithm is also used to solve the special structure subproblem of matrix generation. The numerical experiments show that our approach is efficient and scales very well with the problem dimension. Furthermore, the proposed algorithm is applied for a clustering problem. The experimental results on real datasets imply that the proposed approach outperforms the traditional interiorpoint SDP solvers in terms of efficiency and scalability.
1. Introduction
Semidefinite programming (SDP) is a technique widely used in modeling of complex systems and some important issues in computer vision and machine learning. Examples of application include model reduction [1], modeling of nonlinear systems [2, 3], optimal control [4], clustering [5–7], robust Euclidean embedding [8], kernel matrix learning [9], and metric learning [10]. It can be seen in [5, 7] that SDP relaxation can produce more accurate estimates than spectral methods. However, the SDP optimization suffers extremely high time complexity. Current SDP solvers utilizing interiorpoint methods scale as or worse [1, 6, 10], where is the number of rows (or columns) of the semidefinite matrix. As a result, SDP can only run on small datasets. It is meaningful to propose a scalable SDP solver.
Inspired by column generation [11], which is a classical technology in optimization literature for solving large scale problem, Shen et al. proposed matrix generation in [10] for solving a semidefinite metric learning problem. By using matrix generation, the particular semidefinite program in metric learning was converted into a sequence of linear programs, and it is possible to use the welldeveloped linear programming technology.
In this paper, we propose the matrix generationbased iteration approach to solve general SDP optimization problems. At each iteration, the exponentiated gradient (EG) algorithm [12] is applied to solve the special structure subproblem. Experiments are also carried out on some real datasets to evaluate the proposed method's efficacy and efficiency.
The method proposed here can be seen as an extension of column generation to solve SDP problems. The proposed matrix generation method also has the drawback of column generation. It converges slowly of one wants to achieve high accuracy. This is the socalled “tailing effect”. In practice, for many applications, we do not need a very accurate solution. Typically, a moderately accurate solution suffices. On the other hand, the proposed method can also be considered as a generalization of EG to the matrix case. EG is used to solve problems with a vector optimization variable, and the vector must be on a simplex. Here, we generalize EG in the sense that the proposed method solves optimization with a semidefinite matrix whose eigenvalues are on a simplex.
We present our main results in the next section.
2. The Algorithm
2.1. Notation
The following notations will be used throughout the paper:(i)a bold lowercase letter : a column vector, (ii)an uppercase letter : a matrix, (iii): a positive semidefinite (p.s.d.) matrix, (iv): the componentwise inequality between two vectors,(v): the vector space of real matrices of size ,(vi): the space of real matrices,(vii): the space of symmetric matrices of size ,(viii): the space of symmetric positive semidefinite matrices of size ,(ix): the inner product defined on the above spaces, (x): the trace of a matrix,(xi): the dimensional simplex set for vectors, (xii): the density matrix set, (xiii): the dyad set of matrices.
2.2. Solving Optimization Problem with SDP Constraints Using Matrix Generation
We are interested in the following general convex problem: Here, is a convex function defined in .
We need to extend the Fenchel conjugate [13] to matrices. For a function , the Fenchel conjugate : is the lower semicontinuous and convex function Now, we impose the following two conditions on : (i) is differentiable everywhere,(ii)the gradient is continuous and monotonically increasing at each direction.
In other words, is differentiable and strictly convex. In this case, the Fenchel conjugate is also called Legendre transform and has the following important result: By analogy, we can define a Fenchel conjugate for a matrix as in the vector space . defined in (2.4) must be lower semicontinuous and convex, because is a supremum of linear continuous functions of .
We are ready to reformulate our problem (2.1). It is proved in [10] that a p.s.d. matrix can always be decomposed as a linear convex combination of a set of rankone matrices, we decompose into a convex combination of a set of dyads with , , for all . So, we can write (2.1) into Note that here, and are the optimization variables. Although is redundant in (2.6), we need to keep it to arrive at the important Lagrange dual problem later.
This above problems is still very hard to solve, since it has nonconvex rank constraints, and the variable is indefinite, because there are an indefinite number of rankone matrices. However, if we somehow know matrices () a priori, then all the constraints imposed on () can be dropped, and the problem becomes a linear program.
We apply matrix generation to solve the problem. Matrix generation is an extension of column generation to nonpolyhedral semidefinite constraints for solving difficult largescale optimization problems [10]. It is a method to avoid considering all variables of a problem explicitly, and only a small subset of the entire variable set is considered. Once the problem with the small subset variables is solved, the question of if there are any other variables that can be included to improve the solution should be answered. For convex programs, the primal variables correspond to the dual constraints. The dual can be used to solve the above subproblem.
The Lagrangian is with , and the dual is where we have defined with , . The dual problem of (2.6) is Essentially the dual is
We now only consider a small subset of the variables in the primal; that is, only a subset of (denoted by ) is used. The LP solved using is usually termed restricted master problem (RMP). Because the primal variables correspond to the dual constraints, solving RMP is equivalent to solve a relaxed version of the dual problem [10]. If all the constraints that we have not added to the dual problem are kept, solving the restricted problem is equivalent to solve the original problem. Otherwise, if there exists at least one constraint that is violated, the violated constraints correspond to variables in primal that are not in RMP. Adding these variables to RMP leads to a new RMP problem that needs to be reoptimized. Here, we have a iterative algorithm that either finds a new such that where is the solution of the current restricted problem, or it guarantees that such a does not exist. To make convergence fast, we find the one by solving the following optimization problem: The optimal value is exactly , where is the eigenvector of that corresponds to the smallest eigenvalue. For the time being, is added to the dyads, and the only variable to estimate is . The primal can be writhen as We generalize the EG algorithm to the matrix case and use it to solve the above problem.
At optimality, because of (2.3), we have the connection between the primal and dual variables We also know that at least one of the dual constraints takes the equality at optimality, which enable us to obtain can be used as the iteration stopping criteria.
2.3. The Algorithm Implementation
2.3.1. The Matrix Generation
We propose the implementation of the algorithm for the general convex problem (2.1). To be more general, we extend the SDP constraint to , as shown in(2.16) where is a positive integer.
The detailed implementation of the algorithm is proposed in Algorithm 1. We can observe, at each iteration, that a new matrix is generated, hence the algorithm is named matrix generation. Besides, at each iteration, only the most significant eigenvalue and its corresponding eigenvector are needed. This makes the algorithm efficient.

2.3.2. The EG Algorithm
In [12], it is shown that EG style updates can converge very quickly compared to other methods. It has been successfully applied to structured prediction problems such as structured support vector machines and conditional random field. We generalize the EG algorithm to matrix to solve the special structure convex optimization problem in MG algorithm. We first give a brief introduction to the EG algorithm [12, 14, 15]. The EG algorithm efficiently solves the convex optimization problem [16] under the assumption that the object function is a convex Lipschitz continuous function with Lipschitz constant w.r.t. a fixed given norm . The mathematical definition of is that holds for any , in the domain of . The detail of the EG algorithm is shown in Algorithm 2.

2.3.3. Evaluation of the Algorithm
In this section, we evaluate the convergence, running speed, and memory consumption of the algorithm by solving where is the Frobenius norm, is a symmetric p.s.d. matrix, and is a positive integer. This problem is important in the issue of the affinity matrix normalization of spectral clustering [17].
The above problem is approximate to where is a scalar, for example, .
Before reporting the results, we compare the proposed algorithm with the convex optimization solver, namely, SDPT3 [18] which is used as internal solvers in the disciplined convex programming software CVX [19, 20]. The CVX toolbox can solve standard problems such as linear programs (LPs), quadratic programs (QPs), secondorder cone programs (SOCPs), and semidefinite programs (SDPs).
(1) Convergence
We randomly generate a p.s.d. matrix in (2.18); let be 5. In Figure 1, we plot the optimal value obtained by the proposed algorithm at each iteration (the blue curve). The red dash line shows the ground truth obtained by directly solving the original problem in (2.16) using the CVX toolbox. We can see that the algorithm converges to the nearoptimal solutions quickly.
(2) Running Time
We solve the problem in (2.16) using the proposed algorithm and the CVX toolbox, respectively, and the running time is shown in Figure 2. The blue curve is the running time of the proposed algorithm versus the matrix dimension, and the red curve is the running time of CVX versus the matrix dimension. We can see that the running time of CVX increases quickly with the matrix dimension and the running time of the proposed algorithm is a fraction of the CVX and scales very well with the matrix dimension. The proposed algorithm has a clear advantage on computational efficiency. One reason is that at each iteration, only the most significant eigenvalue and its corresponding eigenvector are needed in the proposed algorithm.
(3) Memory Consumption
Figure 3 shows the memory consumption of the proposed algorithm and the CXV toolbox. The blue curve is the approximate memory consumption of the proposed algorithm versus the matrix dimension, and the red curve is the approximate memory consumption of CVX versus the matrix dimension. It can be seen that the memory consumption of CVX increases quickly with the matrix dimension and the memory consumption of the proposed algorithm is a fraction of the CVX and scales very well with the dimension.
In summary, the proposed algorithm can converge to the nearoptimal solutions quickly and scale very well with the dimension, which are very important for solving largescale SDP problems. As a result, the proposed method is potential to be applied to computer vision to deal with large matrix of 3D visual data [21] and clustering in data analysis. In next section, we will show how to apply the proposed method to clustering problems.
3. The Application
The problem of partitioning data points into a number of distinct sets, known as the clustering problem, is one of the most fundamental and significant topics in data analysis and machine learning. From an optimization viewpoint, clustering aims at the minimal sumofsquares (MSSC) based on some definition of similarly or distance. But the variable is a 01 discrete indicator matrix ( is the number of samples, and is the number of clusters), thus the optimization becomes a mixed integer programming with nonlinear objective, which is NPhard. The computation time of NPhard problems is too heavy to use in practical engineering applications and should be accelerated by some approximation methods. Kmeans and spectral clustering are the two most wellknown algorithms to approximately solve the clustering problem. However, the former is merely able to achieve local optimum through an indirect way, and the later, which can obtain a global optimum through eigenvalue decomposition, is unfortunately a weak relaxation of the Ncut problem [7]. Recent research of semidefinite programming (SDP) relaxation on clustering proposed that the minimal sumofsquares (MSSC) [22] is possible to be relaxed as SDP problems, which is more direct than Kmeans and tighter than spectral clustering [7].
In this section, we apply the proposed algorithm to solve the SDP relaxed clustering problem (01 SDP for clustering) [22] where is the socalled affinity matrix whose entries represent the similarities or closeness among the entities in the dataset, and is the class number of the dataset. According to [22], it is reasonable to relax the nonnegative constraint in (3.1)
We solve the problem in (3.2) using the algorithm described in Algorithm 1. To test the algorithm, we carry out some experiments on four real datesets collected from UCI machine learning repository (http://www.ics.uci.edu/~mlearn/MLRepository.html.) The datasets are listed in Table 1 together with some their characteristics. , Size, and Dim are the class number, the number of instances, and the number of attributes of each dataset, respectively. All the experiments are done by using Matlab on a personal computer with a 2.93 GHz processor and a 2 G memory. The accuracy of clustering each dataset of our algorithm is compared with Kmeans, spectral clustering, and CVX (here CVX means the SDP problem in (3.2) is solved using the CVX toolbox). The results are shown in Table 1. We can see that(i)the proposed algorithm performs better than Kmeans,(ii)the proposed algorithm achieves higher accuracy than the spectral clustering that is because the proposed algorithm is the SDP relaxation of the clustring problem and is tighter than the spectral relaxation,(iii)the proposed algorithm is as good as CVX. This means it can solve the SDP problem as accurately as the CVX toolbox.

We also compare the speed of the proposed algorithm with CVX, and the results are shown in Table 2. It shows that the proposed algorithm is much faster than CVX.

As observed from the experiments, it can be found that the proposed algorithm performs very well on these datasets and can efficiently solve the 01 SDP problem for clustering. Both speed and accuracy are improved as compared with traditional interiorpoint SDP solvers. We plan to further extend the approach to more general problems and look for other applications such as modeling [23, 24] and stabilizing some kinds of dynamical systems [25] model reduction.
4. Conclusion
This paper proposed an approach to solve the optimization problem with SDP constraints using matrix generation and exponentiated gradient. The process is faster and more scalable than the traditional SDP approach. The results of numerical experiments show that the method scales very well with the problem dimensions. We also applied the approach to solve the SDP relaxation clustering problem. Experimental results on real datasets show that the algorithm outperforms much in both speed and accuracy as compared with interiorpoint SDP solvers.
References
 A. Sootla, Model reduction using semidefinite programming, Licentiate Thesis, Department of Automatic Control, Lund University, Lund, Sweden, 2009.
 Z. Mahmood, B. Bond, T. Moselhy, A. Megretski, and L. Daniel, “Passive reduced order modeling of multiport interconnects via semidefinite programming,” in Proceedings of the International Conference on Design, Automation and Test in Europe (DATE '10), pp. 622–625, 2010. View at: Google Scholar
 S. Y. Chen and Q. Guan, “Parametric shape representation by a deformable NURBS model for cardiac functional measurements,” IEEE Transactions on Biomedical Engineering, vol. 58, no. 3, part 1, pp. 480–487, 2011. View at: Publisher Site  Google Scholar
 P. S. Ansell, K. D. Glazebrook, I. Mitrani, and J. NiñoMora, “Semidefinite programming approach to the optimal control of a single server queueing system with imposed second moment constraints,” Journal of the Operational Research Society, vol. 50, no. 7, pp. 765–773, 1999. View at: Google Scholar  Zentralblatt MATH
 E. P. Xing and M. I. Jordan, “On semidefinite relaxations for normalized kcut and connections to spectral clustering,” Tech. Rep., University of California at Berkeley, Berkeley, Calif, USA, 2003. View at: Google Scholar
 B. Kulis, A. C. Surendran, and J. C. Platt, “Fast lowrank semidefinite programming for embedding and clustering,” in Proceedings of the International Workshop on Artificial Intelligence and Statistics, San Juan, Puerto Rico, 2007. View at: Google Scholar
 T. Zhou and D. Tao, “Fast gradient clustering,” in Proceedings of the Advances in Neural Information Processing Systems, Workshop on Discrete Optimization in Machine Learning, pp. 1–6, 2009. View at: Google Scholar
 L. Cayton and S. Dasgupta, “Robust euclidean embedding,” in Proceedings of the International Conference on Machine Learning, 2006. View at: Google Scholar
 G. R. G. Lanckriet, N. Cristianini, P. Bartlett, L. El Ghaoui, and M. I. Jordan, “Learning the kernel matrix with semidefinite programming,” Journal of Machine Learning Research (JMLR), vol. 5, pp. 27–72, 2003/04. View at: Google Scholar
 C. Shen, A. Welsh, and L. Wang, “PSDBoost: Matrixgeneration linear programming for positive semidefinite matrices learning,” in Proceedings of the Advances in Neural Information Processing Systems, pp. 1473–1480, Vancouver, Canada, 2008. View at: Google Scholar
 M. E. Lübbecke and J. Desrosiers, “Selected topics in column generation,” Operations Research, vol. 53, no. 6, pp. 1007–1023, 2005. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 A. Globerson, T. Y. Koo, X. Carreras, and M. Collins, “Exponentiated gradient algorithms for loglinear structured prediction,” in Proceedings of the 24th International Conference on Machine Learning (ICML '07), vol. 227, pp. 305–312, 2007. View at: Publisher Site  Google Scholar
 S. Boyd and L. Vandenberghe, Convex Optimization, Cambridge University Press, Cambridge, UK, 2004.
 J. Kivinen and M. K. Warmuth, “Additive versus exponentiated gradient updates for linear prediction,” Information and Computation, vol. 132, no. 1, pp. 1–64, 1997. View at: Google Scholar
 A. Beck and M. Teboulle, “Mirror descent and nonlinear projected subgradient methods for convex optimization,” Operations Research Letters, vol. 31, no. 3, pp. 167–175, 2003. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 C. Shen, P. Wang, and H. Li, “LACBoost and FisherBoost: optimally building cascade classifiers,” in Proceedings of the 11th European Conference on Computer Vision (ECCV '10), vol. 2 of Lecture Notes in Computer Science (LNCS) 6312, pp. 608–621, Springer, Crete Island, Greece, September 2010. View at: Publisher Site  Google Scholar
 R. Zass and A. Shashua, “Doubly stochastic normalization for spectral clustering,” in Proceedings of theAdvances in Neural Information Processing Systems, 2006. View at: Google Scholar
 R. H. Tütüncü, K. C. Toh, and M. J. Todd, “Solving semidefinitequadraticlinear programs using SDPT3,” Mathematical Programming, vol. 95, no. 2, pp. 189–217, 2003. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 M. Grant and S. Boyd, “CVX: Matlab software for disciplined convex programming, version 1.21,” 2010, http://cvxr.com/cvx. View at: Google Scholar
 M. C. Grant and S. P. Boyd, “Graph implementations for nonsmooth convex programs,” in Recent Advances in Learning and Control, V. Blondel, S. Boyd, and H. Kimura, Eds., vol. 371 of Lecture Notes in Control and Informmation Sciences, pp. 95–110, Springer, London, UK, 2008. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 S. Y. Chen, Y. F. Li, and J. Zhang, “Vision processing for realtime 3D data acquisition based on coded structured light,” IEEE Transactions on Image Processing, vol. 17, no. 2, pp. 167–176, 2008. View at: Publisher Site  Google Scholar  PubMed  MathSciNet
 J. Peng and Y. Wei, “Approximating kmeanstype clustering via semidefinite programming,” SIAM Journal on Optimization, vol. 18, no. 1, pp. 186–205, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 S. Y. Chen and Y. F. Li, “Vision sensor planning for 3D model acquisition,” IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, vol. 35, no. 5, pp. 894–904, 2005. View at: Publisher Site  Google Scholar
 B. N. Bond, Z. Mahmood, Y. Li et al., “Compact modeling of nonlinear analog circuits using system identification via semidefinite programming and incremental stability certification,” IEEE Transactions on ComputerAided Design of Integrated Circuits and Systems, vol. 29, no. 8, pp. 1149–1162, 2010. View at: Publisher Site  Google Scholar
 M. Li, S. C. Lim, and S. Chen, “Exact solution of impulse response to a class of fractional oscillators and its stability,” Mathematical Problems in Engineering, vol. 2011, Article ID 657839, 9 pages, 2011. View at: Publisher Site  Google Scholar  Zentralblatt MATH
Copyright
Copyright © 2012 Yongbin Zheng et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.