WorksMathematics
Failure Modes of Interior-Point SDP Solvers on Moment–SOS Hierarchies
Abstract
Standard semidefinite programming (SDP) solvers working in double precision can become unreliable on difficult problems, even when their output appears plausible. We study this issue for SDP problems arising from high-order moment-SOS hierarchies. Three polynomial optimization problems are analysed by comparing standard double-precision computations with reference solutions obtained using the extended-precision solver \mbox{Loraine,64x4}. We observe two distinct patterns of numerical failure. In false convergence, the computed bounds form a smooth sequence but approach the limit at the wrong rate. In stagnation, the sequence develops a plateau or oscillations and no longer reflects the convergence of the underlying hierarchy. We introduce an empirical effective condition number based on the positive spectral components of the primal and dual solution matrices. It serves as a warning indicator rather than an error bound, and its growth accompanies numerical deterioration in our examples. We also examine the imbalance between primal and dual spectral conditioning and a Cholesky inverse residuum as potential diagnostic indicators. The results show that solver termination messages and apparently regular convergence curves may be insufficient to establish the reliability of high-order moment-SOS bounds.
Corresponding author(s). E-mail(s): [email protected];
Introduction
The moment-SOS hierarchy generates a sequence of semidefinite programming (SDP) relaxations whose optimal values converge to the global minimum of a polynomial optimization problem (POP) as the relaxation order increases; see, e.g., [1]. Although some polynomial optimization problems admit finite convergence, the three problems studied here exhibit only asymptotic convergence. In finite precision, the higher-order relaxations can become increasingly ill-conditioned, and their numerical solution can lose accuracy.
In this paper, we study two qualitatively different manifestations of this loss of accuracy. The first is false convergence: the computed relaxation values follow a smooth and apparently convincing convergence pattern, but with an incorrect asymptotic rate. The second is stagnation: the computed values cease to follow a systematic convergence trend and instead exhibit a plateau or oscillations.
We analyse three polynomial optimization problems exhibiting these behaviours. Problems 1 and 2 show false convergence, while Problem 3 shows stagnation. Our analysis focuses on two distinct aspects of numerical accuracy. The first is the spectral conditioning of the primal and dual solution matrices, which affects the accuracy of the Newton step in an interior-point (IP) method. The second is the amplification of objective error when the optimal value is small. We quantify the latter effect by an objective amplification factor , defined in § 3.5. In our examples, this factor grows by several orders of magnitude with the relaxation order, so that even a modest error in the computed objective relative to the scale of the underlying matrices can result in a large relative error in the reported bound.
To investigate the spectral conditioning, we analyse the Newton step of a primal-dual IP method, focusing on the formation and solution of the Schur complement system. This motivates the definition of the effective condition number
where and denote the restrictions of the exact primal and dual solution matrices to their positive eigenspaces. The product provides a heuristic measure of the combined precision demand associated with these spectral components. Its growth is associated with the observed deterioration in our examples, but, due to the limited number of problems studied, it should not be considered a general condition number. In numerical experiments, these condition numbers must be estimated from sufficiently accurate computed solutions.
We also consider the ratio
which measures the imbalance between the dual and primal spectral conditioning. In our three examples, the false-convergence cases are strongly dual-dominated, whereas the stagnation case has comparable primal and dual factors. Of course, three examples are not enough to establish a general classification, but the pattern is worth noting.
Computing these diagnostics reliably may require a high-precision solution, both to obtain accurate spectral information and to establish a trustworthy reference objective.
These may not always be available or practical. We therefore also investigate a cheaper diagnostic that can be evaluated during the IP iteration: the Cholesky inverse residuum
where denotes the inverse action on computed using triangular solves, without forming an explicit inverse. In solvers that support multiple arithmetic precisions, monitoring may provide an early warning that higher precision is needed. The aim is to switch precision while the Schur complement matrix is still positive definite, rather than waiting for it to become indefinite. The appropriate threshold is solver-and problem-dependent, and does not monitor every source of numerical error.
Numerical difficulties of SDP solvers on moment-SOS relaxations have been reported previously. Waki, Nakata and Muramatsu [2] documented incorrect bounds, non-convergence, and other anomalous behaviour of interior-point methods applied to polynomial optimization, and studied the effect of extended-precision SDP solvers. The present paper sheds light on the numerical mechanisms behind false convergence and stagnation in our examples.
Numerical observations
Polynomial optimization and moment-SOS relaxations
We first recall a primal-dual SDP pair in the sign convention used below:
Here, for any , is the Frobenius inner product, , and with , . Note that in the actual moment-SOS formulations there can be several positive semidefinite constraints which, formally, can be written as (1) with block diagonal matrices and of the same block structure. With some abuse of notation, unless stated otherwise, in the text below and will only denote the principal Gram and moment blocks for which spectral data will be retained.
The objective of polynomial optimization (POP) is to determine the optimal value
where are real polynomials. The moment-SOS hierarchy approximates from below by a sequence of SDPs indexed by the relaxation order . The dual variable is a truncated moment matrix, together with a localizing matrix for each constraint , while the primal variable consists of Gram matrices of an SOS certificate
where are SOS polynomials. The optimal value of the relaxation satisfies for every and, under standard assumptions, converges monotonically to as . For details, see [3, 4, 5].
The problems studied below share two key features:
their optimal objective value is zero, and
the moment-SOS hierarchy does not attain this value at any finite relaxation order .
As increases, the resulting sequence of SDPs grows in dimension, and its optimal values converge monotonically to zero without ever reaching it. Notice that the moment-SOS finite-convergence result requires standard nonlinear-programming conditions, LICQ, strict complementarity, and second-order sufficient conditions to be satisfied; see [3 Thm. 6.5]. Some of these conditions are violated in each of our problems.
The examples below are taken from [6], where our primary interest was the rate of convergence. Numerical experiments aimed at estimating this rate revealed the stagnation and false convergence described above. In this article, we investigate these phenomena by comparing standard double-precision SDP solvers with the solver Loraine running in high-precision arithmetic.
Solvers and reference computations
To solve the resulting SDP problems, we use two popular SDP solvers, MOSEK [7] and CSDP [8] called through Julia/JuMP with their default settings. We compare their results with that of the high-precision Julia package Loraine.jl [9].1 Loraine relies on the extended-precision arithmetic provided by the Julia package MultiFloats.jl. In addition to the standard Float64 type, it defines types Float64x[N] with . For the purpose of this study, the values computed by Loraine running in Float64x4 extended precision are treated as the reference solution. Below we refer to this solver as Loraine 64x4.
The Loraine stopping criterion is based on the DIMACS error measures [10]. In the sign convention of (1), these are
In the numerical experiments below, Loraine 64x4 terminates when
Some spectra are also compared with runs stopped at to show that a small aggregate residuum need not imply reliable numerical rank.
The SDP problems are generated by SumOfSquares.jl and then dualized before being passed to Loraine via
dual_loraine = Dualization.dual_optimizer(loraine).
This dualization is required for the efficiency of Loraine. In this setting, the moment matrix is the dual variable in (1) and the Gram matrix is the primal variable .
Problem 1, false convergence
We first consider the univariate polynomial optimization problem due to Stengle [11],
and solve it by the moment-SOS hierarchy. Because of the formulation of the constraint, LICQ fails at the optimal points . Therefore, finite convergence is not guaranteed by the standard theory and, in fact, the hierarchy converges only asymptotically as shown in [11]. Moreover, for this problem the optimal values of the SDP relaxations are known in closed form: Henrion [12] proved that, for relaxation order , the optimal value of the SDP relaxation is
This problem exhibits the more dangerous failure mode: rather than stagnating for increasing , the relaxations computed by the standard solvers appear to converge at a convincing rate that is, however, entirely spurious.
In Table 1, we compare Loraine 64x4 with CSDP and MOSEK using double-precision arithmetic. The results of Loraine 64x4 agree with the reference rate of (3) to all digits reported in the table. Because the CSDP primal and dual objectives noticeably disagree for larger , both are listed in the table. For MOSEK we only show primal objectives as a confirmation of the trend.
| Loraine 64x4 | CSDP primal | CSDP dual | MOSEK | |
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
| 9 | ||||
| 10 | ||||
| 11 | ||||
| 13 | ||||
| 15 | ||||
| 17 | ||||
| 19 | ||||
| 21 | ||||
| 23 | ||||
| 25 | ||||
| 27 | ||||
| 29 | ||||
| 31 | ||||
| 33 | ||||
| 35 | ||||
| 37 | ||||
| 39 | ||||
| 41 | ||||
| 43 | ||||
| 45 |
Table 1. Problem 1, objective values computed by Loraine 64x4, CSDP and MOSEK
Figure 1 shows versus . At low orders the three solvers agree. From about onward, CSDP and MOSEK continue to produce smooth decreasing sequences, although their termination messages no longer indicate successful optimality. For the CSDP dual objective, a least-squares fit over has slope (), whereas the exact rate from (3) is . The smooth but incorrect rate is the false-convergence behaviour.
Figure 1. Problem 1: computed objective versus relaxation order (log-log). Series as in the legend.
The final messages of CSDP, MOSEK and other SDP solvers installed in Julia/JuMP for are given in Appendix A. They show that some solvers even claim optimality despite returning an incorrect optimal objective value.
Problem 2, false convergence
Next, we consider the polynomial optimization problem in :
The feasible set is the square , and the true optimal value is attained on the entire boundary . At the corners, where both constraints are active, the corresponding multipliers are equal to zero, hence strict complementarity of the nonlinear program does not hold and so finite convergence is not guaranteed. In [6], it is conjectured that the exact optimal values of the relaxations are given by
This conjecture has been confirmed numerically using high-precision arithmetic. We use formula (5) as a reference in the comparisons below.
Table 2 compares the objective values computed by Loraine 64x4 with those obtained by CSDP and MOSEK. As in Problem 1, we list both primal and dual objectives of CSDP and only primal objectives for MOSEK, as a confirmation of the trend.
| Loraine 64x4 | CSDP primal | CSDP dual | MOSEK | |
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
| 9 | ||||
| 10 | ||||
| 11 | ||||
| 12 | ||||
| 13 | ||||
| 14 | ||||
| 15 | ||||
| 16 | ||||
| 17 | ||||
| 18 | ||||
| 19 | ||||
| 20 | ||||
| 21 | ||||
| 22 | ||||
| 23 | ||||
| 24 | ||||
| 25 | ||||
| 26 | ||||
| 27 | ||||
| 28 | ||||
| 29 | ||||
| 30 |
Table 2. Problem 2: objective values computed by Loraine 64x4, CSDP (primal and dual), and MOSEK (primal).
Starting from , the CSDP and MOSEK values diverge from those computed by Loraine 64x4, which follow formula (5) asymptotically, with exception of orders 4 and 6; see Figure 2. The CSDP dual sequence remains smooth and almost monotone; a fit over has slope (). On the log-log plot in Figure 2, this is a convincingly straight line; yet the conjectured relaxation values (5) (confirmed numerically by Loraine 64x4) decay as , so the CSDP rate is too shallow. MOSEK exhibits a similar shallow-slope false convergence but lies even farther above the high-precision reference curve. This, again, is a sign of false convergence. The CSDP primal sequence is increasingly noisy, and both double-precision solvers eventually lose convergence.
Figure 2. Problem 2: computed objective versus relaxation order (log-log). Series as in the legend; the dashed grey line is the reference value , extended past the last tabulated Loraine 64x4 point to show the reference decay.
Problem 3, stagnation
Finally, we consider the polynomial optimization problem in :
As in Problem 1, LICQ is not satisfied at the optimal point , due to the construction of the first constraint. The optimal values of the relaxations were conjectured in [6] to be
and we use this formula as a reference.
Table Table 3 compares the objective values computed by Loraine 64x4 with those computed by CSDP and MOSEK. As in the previous two problems, the results of Loraine 64x4 agree with the reference rate of (7) to all digits reported in the table. Starting from relaxation order 7, the values obtained by the double-precision solvers deviate increasingly from the reference ones.
| Loraine 64x4 | CSDP primal | CSDP dual | MOSEK | |
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
| 9 | ||||
| 10 | ||||
| 11 | ||||
| 12 | ||||
| 13 | ||||
| 14 | ||||
| 15 |
Table 3. Problem 3, objective values computed by Loraine 64x4, CSDP and MOSEK
The resulting objective values as a function of the relaxation order are shown in Figure 3 on a log-log scale. While Loraine 64x4 follows formula (7), the other solvers stagnate on plateaus of order from onwards.
Figure 3. Problem 3: computed objective versus relaxation order (log-log). Series as in the legend.
Spectral and numerical diagnostics
Positive spectral parts
Let and denote the computed principal paired blocks from a Loraine reference run; i.e., the moment matrix () and its dual Gram matrix. For a positive semidefinite matrix with eigendecomposition , we define its numerically positive part by retaining the eigenvalues above the relative cutoff
Let contains the corresponding eigenvectors; then we define
The notation denotes a restriction to a numerically selected subspace, not the usual projection of an indefinite matrix onto the PSD cone.
Obviously, the full condition numbers of and are not useful for the purpose of measuring conditioning of the SDP problem. Along the central path, complementarity forces certain eigenvalues of and toward zero and so the full condition numbers of both matrices diverge as the barrier parameter decreases, even if the nonzero spectral clusters of the exact solution are well resolved. We therefore examine condition numbers of the restricted matrices and .
This requires certain care as the numerical cutoff (8) does not always determine an exact rank. We use the spectra obtained by Loraine 64x4 with DIMACS tolerance because the positive and near-zero clusters are visibly separated there and agree with still tighter runs in selected test cases. Changing the cutoff tolerance in (8) moderately leaves the reported ranks unchanged.
For a fixed relaxation order, if the positive cluster of the exact solution is separated from zero and the computed matrix is sufficiently close in operator norm, standard invariant-subspace perturbation results imply stability of that cluster relative to the spectral gap [13 Thm. 8.1.10]. This supports the use of positive parts once two clusters are clearly resolved. It does not give a uniform guarantee along the hierarchy, because the gap separating the positive eigenvalues of the exact solution from zero may shrink with .
Numerical ranks and stopping tolerance
The complete eigenvalue data for our three problems are given in Appendix B; the main text uses only the quantities needed for the analysis. The computed spectra show that the routinely used DIMACS error tolerance need not ensure a reliable numerical rank. For Problem 2 at , for example, the numerical ranks of the computed and blocks change from 51 and 48 at tolerance to 12 and 43 at tolerance . For Problem 3 at , they change from 26 and 18 to 22 and 6.
In Problem 2, the numerical rank of is more stable under tolerance tightening than that of . In Problem 3, the rank of changes more substantially, while the rank of changes by four at each of the three orders considered. Several eigenvalues classified as positive in the lower-accuracy primal block move into the near-zero cluster in the tighter computation. Thus, numerical ranks inferred from a moderately accurate iterate can be misleading even when feasibility, gap, and complementarity residuals appear satisfactory.
At the tighter tolerance, the numerical ranks satisfy
for the selected paired block; see Table 4. This is numerically consistent with strict complementarity (although it does not prove it).
| Problem | ||||
| 1 | 5 | 6 | 1 | 5 |
| 1 | 6 | 7 | 1 | 6 |
| 1 | 7 | 8 | 1 | 7 |
| 1 | 8 | 9 | 1 | 8 |
| 1 | 9 | 10 | 1 | 9 |
| 2 | 6 | 28 | 1 | 27 |
| 2 | 7 | 36 | 5 | 31 |
| 2 | 8 | 45 | 7 | 38 |
| 2 | 9 | 55 | 12 | 43 |
| 3 | 4 | 15 | 11 | 4 |
| 3 | 5 | 21 | 16 | 5 |
| 3 | 6 | 28 | 22 | 6 |
Table 4. Numerical ranks of the computed and blocks for .
Numerical sensitivity of the Nesterov-Todd scaling
In a primal-dual interior-point method, the Newton system couples the primal and dual semidefinite matrices through the linearized complementarity conditions. The Nesterov-Todd (NT) direction provides a symmetric primal-dual scaling for these conditions.
Although we focus on NT scaling, the numerical difficulties associated with constructing the scaling and solving the resulting Newton system are not specific to this choice; other symmetric primal-dual scalings, such as the Helmberg-Kojima-Monteiro (HKM) scaling, also depend on the current primal and dual matrices and can exhibit similar sensitivity.
The NT scaling matrix is characterized by
Equivalently,
This scaling maps the primal and dual matrices to the same balanced matrix. Each Newton step of the IPM requires solving the Schur complement system
The important point is that , and hence the Newton matrix , depends on both and .
In Loraine, the NT scaling matrix is computed using Cholesky factorizations of the primal and dual matrices, followed by an SVD:
The scaling matrix is then obtained as
Thus, the computation of depends on both Cholesky factorizations and on the singular values in . In particular, small singular values are amplified by the inverse square root, making the accuracy of the computed scaling sensitive to the conditioning of the primal and dual matrices. Other symmetric directions, such as HKM, lead to different formulas but the same broad conclusion: the Newton equations inherit sensitivity from the current primal-dual matrices as well as from the problem data.
It is useful to distinguish two computational stages:
Stage 1: the scaling matrix is constructed and the Schur matrix is assembled; Stage 2: the Newton system (13) is solved.
Numerical error can enter at both stages. Both depend on the primal and dual iterates, while the conditioning of the second stage also depends essentially on the data matrices , their scaling, and their orientation relative to the eigenspaces of .
Numerical safeguards such as regularization of a nearly singular Schur matrix and iterative refinement of the Newton direction address errors in Stage 2. They cannot, however, correct errors already introduced in Stage 1. In particular, if the conditioning of the positive spectral parts of and compromises the computation of , the resulting Schur matrix may be inaccurate, and solving the corresponding linear system accurately may still yield an inaccurate Newton direction.
Effective condition number
The preceding discussion motivates the definition of the effective condition number
We use as an empirical indicator of the combined conditioning of the selected primal and dual blocks. It does not account for the conditioning of the Schur system arising from the constraint matrices and their interaction with the scaling matrix . It also omits the effect of the relative orientation of the relevant spectral subspaces, the barrier parameter, the remaining PSD blocks, and implementation-specific error propagation.
The effective condition number can also be expressed in terms of the approximate number of decimal digits potentially lost to conditioning. For arithmetic carrying approximately decimal digits, this motivates the heuristic precision budget
This expression estimates the number of decimal digits remaining after accounting for the conditioning represented by . It is not an estimate of the actual number of correct digits in the computed solution or objective, but a convenient way to compare the precision demands of different relaxation orders.
For example, in double precision, with approximately decimal digits, a target of seven digits corresponds to . The values in Table 5 illustrate how rapidly the effective condition number can grow with the relaxation order. In Problems 1 and 2, substantial increases in accompany increases in the relative error of the computed objective. Problem 3, however, shows that the relationship is not a sharp threshold: at order 4, the relative error is small despite exceeding , whereas at order 5 the error increases substantially. Thus, is useful for assessing the precision demand of a relaxation, but it does not by itself predict the accuracy of the computed objective. The fourth column of Table 5 reports the spectral imbalance ratio , discussed separately in § 3.6, which helps distinguish the strongly dual-dominated cases from the case in which the primal and dual condition numbers are comparable.
| Problem | relative error | |||
| 1 | 5 | |||
| 1 | 6 | |||
| 1 | 7 | |||
| 1 | 8 | |||
| 1 | 9 | |||
| 2 | 6 | |||
| 2 | 7 | |||
| 2 | 8 | |||
| 2 | 9 | |||
| 3 | 4 | |||
| 3 | 5 | |||
| 3 | 6 |
Table 5. Effective condition number, spectral imbalance, and relative error of the CSDP dual objective.
Problem 2 further illustrates that the product need not track the objective error as closely as either of its factors. At the largest reported orders, the absolute error in the CSDP dual objective follows the dual spectral factor more closely than the full product. This is consistent with the strongly dual-dominated spectrum in this example. We therefore use as a combined warning indicator of precision demand, rather than as a formula for the objective error.
Objective value sensitivity
For problems with a small objective value, possibly tending to zero as the relaxation order increases, even a modest error in the computed objective can lead to a large relative error.
For a computed objective value and a trusted reference , we define the normalized objective error
and the amplification factor
where is the positive spectral part of the computed primal solution. Then
Thus, measures how the normalized objective error is amplified when expressed as a relative error in the objective.
The scale in the definition of could instead be based on the full block-diagonal primal matrix and objective, including the localizing matrices and their duals. However, the available spectral tables contain only the principal paired block ; accordingly, Table 6 uses . The resulting factor is therefore a normalization diagnostic for this block and this SDP representation, rather than a condition measure for the full SDP.
| Problem | ||||
| 1 | 5 | |||
| 1 | 6 | |||
| 1 | 7 | |||
| 1 | 8 | |||
| 1 | 9 | |||
| 2 | 6 | |||
| 2 | 7 | |||
| 2 | 8 | |||
| 2 | 9 | |||
| 3 | 4 | |||
| 3 | 5 | |||
| 3 | 6 |
Table 6. Principal-block objective amplification factor , with . Values of are those of the runs.
The table shows that grows by several orders of magnitude with the relaxation order in all three examples. This growth reflects the increasing ratio of the primal scale, measured by , to the magnitude of the objective value. Consequently, an objective error that is small relative to can correspond to a large relative error in the reported objective. This amplification does not identify the numerical origin of the objective error. The effective condition number , in contrast, characterizes the combined conditioning of the selected primal and dual blocks, but does not account for amplification by a small objective value. The two quantities therefore describe different aspects of the observed loss of accuracy.
False convergence, stagnation, and spectral imbalance
We define the spectral imbalance ratio
A large value of indicates that the selected dual block is much more ill-conditioned than the primal block. In our examples, this imbalance is associated with false convergence, whereas large values of , with comparable primal and dual condition numbers, are associated with stagnation; see Table 5. Thus, provides a possible indicator of the type of numerical failure, rather than a criterion that defines or predicts it.
For Problem 1, is one-dimensional and , while grows rapidly. Problem 2 is also strongly dual-dominated over the displayed orders, although its primal block has increasing rank and its primal objective shows increasing numerical variability. Both problems exhibit a smooth but incorrect dual sequence. In Problem 3, the two positive-part condition numbers are comparable and both become large; the computed hierarchy loses its systematic trend and stagnates.
These observations suggest that a large spectral imbalance ratio may serve as a warning sign for false convergence, while comparable primal and dual conditioning may accompany stagnation. However, three examples are far too few to establish this as a general principle. In particular, the ratio omits problem data and all other blocks, and Problem 1 does not separate the effect of a large ratio from the special fact that has rank one.
Cholesky inverse residuum
The diagnostics discussed above rely on reliable spectral information about the primal and dual solutions or on a trusted reference objective value, which may require a high-precision computation. What can be monitored when only a standard solver is available, without an independent reference solution? We consider a simple diagnostic that can be evaluated during the interior-point iteration.
A practical diagnostic available during an interior-point iteration is
where denotes the inverse action obtained by solving with the computed Cholesky factors. No explicit inverse need be formed. The quantity measures the quality of this inverse action and uses the same factorization involved in constructing the NT scaling.
For backward-stable factorization and triangular solves one expects the residuum to grow with machine precision and the conditioning of the full current iterate ; see [14 Thms. 10.3,10.4]. In the experiments, loss of useful progress was associated with values around in Float64 and around in Float64x4. These levels are empirical and solver-dependent; the latter is also influenced by the stopping rule.
The residuum is attractive because it is inexpensive and available during the solve. Its limitation is equally important: it monitors one factorization-based operation involving and contains no direct information about , the constraint operator, or objective amplification. It is a warning signal, not a universal stopping criterion.
In solvers that support arithmetic at multiple precisions, the residuum could also serve as an early-warning indicator for switching to higher precision. Such a switch should be considered while the Schur matrix is still positive definite, rather than waiting for indefiniteness to occur, by which point numerical difficulties may already have compromised the iteration. The appropriate threshold for would need to be calibrated for the solver and problem class.
Practical use of the diagnostics
Table Table 7 summarizes the diagnostics in increasing order of availability in IP software, a short checklist for anyone computing moment-SOS bounds in finite precision.
| Quantity | Availability | Main use | Main limitation |
| (17) | during the solve | warns of loss of accuracy in a Cholesky-based inverse action | omits , constraint geometry, and objective amplification |
| Primal-dual gap | during the solve | monitors agreement between the computed primal and dual objectives | a small gap does not imply accurate objective values |
| (15) | with a trusted reference and block scale | measures amplification of normalized objective discrepancy | does not identify its source |
| (14) | after reliable spectral computation | summarizes the positive-part spectral spread of the selected pair | block- and representation-dependent; not an error bound |
| (16) | after reliable spectral computation | describes primal-dual spectral imbalance | no established classification role |
Table 7. Interpretation of the numerical diagnostics.
A reasonable workflow is therefore to monitor factorization residua during the solve, using the primal-dual gap as a measure of agreement between the computed objectives rather than as a certificate of their accuracy. One should inspect the hierarchy as a sequence rather than as isolated SDP runs, and use higher precision or independent references when the sequence becomes suspicious. A smooth curve is not by itself reassuring: it may be the signature of false convergence. Spectral diagnostics should be computed only from iterates accurate enough to separate positive and near-zero eigenvalue clusters.
Conclusions
The three examples demonstrate that numerical failure of successive SDP relaxations can produce two distinct patterns. In false convergence, the computed sequence of objective values remains smooth but follows the wrong asymptotic rate. In stagnation, it loses a systematic convergence trend and forms a plateau or oscillates. The first pattern is particularly dangerous because standard extrapolation can turn a numerical artefact into an apparently convincing convergence claim.
Two effects should be kept separate. The objective amplification factor describes how a normalized discrepancy is magnified when the relaxation value approaches zero. Separately, the numerical analysis of the Newton step reveals a sensitivity to the conditioning of both the primal and dual semidefinite matrices. This motivates the effective condition number , which captures the combined spectral conditioning of the primal and dual solution components. Its growth is associated with the observed deterioration in our examples. However, given the limited number of examples studied, it should not be regarded as a general condition number of an SDP.
The tolerance study gives a further warning: a small DIMACS error does not ensure that numerical ranks and positive-part condition numbers are already reliable. In Problems 2 and 3, tightening the tolerance changes the numerically identified primal positive subspace substantially. Spectral diagnostics therefore require sufficiently accurate iterates to separate positive and near-zero eigenvalue clusters; satisfying a standard stopping test may not suffice.
The role of the imbalance ratio is to organize the three examples: the false-convergence cases are strongly dual-dominated, whereas the stagnation case has comparable primal and dual factors. Although the pattern is consistent across these examples, its generality remains an open question.
The Cholesky inverse residuum provides a cheap in-solver warning of loss of accuracy in the inverse action used to form the scaling matrix. In solvers supporting multiple arithmetic precisions, monitoring may help trigger a switch to higher precision before the Schur complement matrix becomes indefinite. The appropriate threshold is problem- and solver-dependent, and does not capture every source of numerical error.
The central practical conclusion is that solver status, a small primal-dual gap, and a visually smooth sequence do not certify the accuracy of high-order moment-SOS bounds. The gap measures agreement between the computed primal and dual objectives, which may both be far from the true optimum. When the asymptotic behaviour matters, independent formulas, reliable spectral checks, alternative formulations, or higher-precision computations may be necessary.
Related approaches include iterative refinement of approximate SDP solutions [15] and rounding procedures that exploit an approximate optimal partition to construct an improved primal-dual solution [16]. Such methods provide possible routes to improving computed solutions, but their effectiveness for the high-order moment-SOS relaxations studied here remains to be investigated.
Problem 1 with SDP solvers in Julia/JuMP
Below are final messages of various SDP solvers installed in Julia/JuMP for Problem 1 with . These span both interior-point solvers (Clarabel, Hypatia, MOSEK, DSDP, CSDP) and first-order operator-splitting solvers (SCS, COSMO); that the latter fail as well indicates that the failure is not confined to the interior-point methods analysed in the main text, and is consistent with the objective conditioning of Section 3.5, a property of the relaxation rather than of any algorithm. DSDP is the exception among the solvers listed, its value agreeing with the exact one to four digits. Recall that, for this problem, the exact optimal value is .
Clarabel:
Primal:-1.9070e-02 Dual:-1.9070e-02
Terminated with status = solved
(reduced accuracy)
Term. status: ALMOST_OPTIMAL
Primal status: NEARLY_FEASIBLE_POINT
Dual status: NEARLY_FEASIBLE_POINT
Mosek:
Term. status: SLOW_PROGRESS
Primal status: UNKNOWN_RESULT_STATUS
Dual status: UNKNOWN_RESULT_STATUS
COSMO:
Optimal objective: -0.04686
Term. status: OPTIMAL
Primal status: FEASIBLE_POINT
Dual status: FEASIBLE_POINT
CSDP:
Stuck at edge of primal feasibility, giving up.
Partial Success: SDP solved with reduced accuracy
Termination status: ALMOST_OPTIMAL
Primal status: NEARLY_FEASIBLE_POINT
Dual status: NEARLY_FEASIBLE_POINT
Hypatia:
Primal:-1.2795e-02 Dual:-1.2832e-02
optimal solution found; terminating
Term. status: OPTIMAL
Primal status: FEASIBLE_POINT
Dual status: FEASIBLE_POINT
SCS:
objective = -0.060854
Term. status: OPTIMAL
Primal status: FEASIBLE_POINT
Dual status: FEASIBLE_POINT
DSDP:
Optimal lower bound: -0.0101080313
Term. status: OPTIMAL
Primal status: FEASIBLE_POINT
Dual status: FEASIBLE_POINT
Eigenvalue data
All eigenvalue data are computed by Loraine 64x4. For Problem 1, the eigenvalues of the moment matrix and the Gram matrix are listed explicitly. For Problems 2 and 3, where the matrices are larger, we report the numerical rank, the range of the positive eigenvalues, and the corresponding condition number for each stopping criterion. The values at are those used to form the objective conditioning of Table 6. Figure B1 and Figure B2 show the corresponding eigenvalue distributions on a logarithmic scale.
Figure B1. Problem 2: logarithms of the eigenvalues of (solid) and (dotted) for , at (blue) and (red).
Figure B2. Problem 3: logarithms of the eigenvalues of (solid) and (dotted) for , at (blue) and (red).
Problem 1
Relaxation order =5
| , | , | , | , |
Table 8.
Relaxation order =6
| , | , | , | , |
Table 9.
Relaxation order
Table 10.
Relaxation order
Table 11.
Relaxation order =9
Table 12.
Problem 2
| matrix | rank+ | |||||
| 6 | 28 | 1 | 1 | |||
| 1 | 1 | |||||
| 27 | ||||||
| 27 | ||||||
| 7 | 36 | 36 | ||||
| 5 | ||||||
| 36 | ||||||
| 31 | ||||||
| 8 | 45 | 37 | ||||
| 7 | ||||||
| 44 | ||||||
| 38 | ||||||
| 9 | 55 | 51 | ||||
| 12 | ||||||
| 48 | ||||||
| 43 |
Table 13.
Problem 3
| matrix | rank+ | |||||
| 4 | 15 | 15 | ||||
| 4 | 15 | 11 | ||||
| 4 | 15 | 12 | ||||
| 4 | 15 | 4 | ||||
| 5 | 21 | 20 | ||||
| 5 | 21 | 16 | ||||
| 5 | 21 | 17 | ||||
| 5 | 21 | 5 | ||||
| 6 | 28 | 26 | ||||
| 6 | 28 | 22 | ||||
| 6 | 28 | 18 | ||||
| 6 | 28 | 6 |
Table 14.
Acknowledgements
The author acknowledges the financial support of the Czech Ministry of Education, Youth and Sports project ROBOPROX (reg. no. CZ.02.01.01/00/22_008/0004590) that was co-funded by the European Union.
The author would like to thank Lorenzo Baldi and Didier Henrion for stimulating this work and for providing the optimization problems considered in this paper.
The author used AI to discuss the mathematical exposition, flag possible logical inconsistencies, and help revise and clarify the manuscript. The author independently evaluated all such suggestions and verified the mathematical arguments, numerical data, and conclusions. The author remains fully responsible for the content of the manuscript.
References
- [1]Lasserre, J.B.: Moments, Positive Polynomials and Their Applications. Imperial College Press Optimization Series, vol. 1. Imperial College Press, London (2009)
- [2]Waki, H., Nakata, M., Muramatsu, M.: Strange behaviors of interior-point methods for solving semidefinite programming problems in polynomial optimization. Computational Optimization and Applications 53(3), 823–844 (2012)
- [3]Lasserre, J.B.: An Introduction to Polynomial and Semi-Algebraic Optimization vol. 52. Cambridge University Press, Cambridge (2015)DOI
- [4]Parrilo, P.A.: Structured semidefinite programs and semialgebraic geometry methods in robustness and optimization. PhD thesis, California Institute of Technology (2000)DOI
- [5]Nie, J.: Moment and Polynomial Optimization. MOS-SIAM Series on Optimization. Society for Industrial and Applied Mathematics, Philadelphia (2023)DOI
- [6]Baldi, L., Kočvara, M.: Conjectures in real algebra and polynomial optimization through high precision semidefinite programming (2026). Paper in preparation
- [7]MOSEK ApS: The MOSEK Optimization Toolbox. Version 11.0. (2025). https://docs.mosek.com/latest/intro/index.html
- [8]Borchers, B.: CSDP, a C library for semidefinite programming. Optimization Methods and Software 11(1–4), 597–611 (1999)DOI
- [9]Habibi, S., Kočvara, M., Stingl, M.: Loraine—an interior-point solver for low-rank semidefinite programming. Optimization Methods and Software 39(6), 1185–1215 (2024)DOI
- [10]Mittelmann, H.D.: An independent benchmarking of SDP and SOCP solvers. Mathematical Programming 95, 407–430 (2003)DOI
- [11]Stengle, G.: Complexity Estimates for the Schmüdgen Positivstellensatz. Journal of Complexity 12(2), 167–174 (1996)DOI
- [12]Henrion, D.: Solving Stengle’s example in rational arithmetic: Exact values of the moment-SOS relaxations. Open Journal of Mathematical Optimization 7, 1–18 (2026)arxiv.org/abs/2512.19141
- [13]Golub, G.H., Van Loan, C.F.: Matrix Computations, 4th edn. Johns Hopkins University Press, Baltimore, MD (2013)
- [14]Higham, N.J.: Accuracy and Stability of Numerical Algorithms, 2nd edn. Society for Industrial and Applied Mathematics, Philadelphia, PA (2002)
- [15]Mohammadisiahroudi, M., Augustino, B., Sampourmahani, P., Terlaky, T.: Quantum computing inspired iterative refinement for semidefinite optimization. Mathematical Programming 217, 3–42 (2026)arxiv.org/abs/2312.11253
- [16]Mohammad-Nezhad, A., Terlaky, T.: A rounding procedure for semidefinite optimization. Operations Research Letters 47(1), 59–65 (2019)




