The Computational Complexity of Duality
Shmuel Friedland, Lek-Heng Lim
Introduction
In convex optimization, we often encounter problems that involve one of the following notions of duality. For convex sets: (i) norm balls and their polar duals, (ii) proper cones and their dual cones; for convex functions: (iii) norms and their dual norms; (iv) functions and their Fenchel duals. The main goal of this article is to establish the equivalence between the polynomial-time computability or NP-hardness of these objects and their duals.
We will first show in Section 3 that the weak membership problem for a norm ball is NP-hard (resp. is polynomial-time) if and only if the weak membership problem for its dual norm ball is NP-hard (resp. is polynomial-time). For readers unfamiliar with the notion, NP-hardness of weak membership is a stronger statement than NP-hardness of membership, i.e., the latter is implied by the former. Since every symmetric convex compact set with nonempty interior is a norm ball, the result applies to such objects and their polar duals as well.
In Section 4 we show that the approximation of a norm to arbitrary precision is NP-hard (resp. is polynomial-time) if and only if weak membership in the unit ball of the norm is NP-hard (resp. is polynomial-time). A consequence is that if the weak membership problem for a norm ball is polynomial-time decidable, then its Mahler volume is polynomial-time approximable. In fact, computation of Mahler volume is polynomial-time reducible to the weak membership problem for a norm ball.
In Section 5, we establish an analogue of our norm ball result for proper cones, showing that the weak membership problem for such a cone is NP-hard (resp. is polynomial-time) if and only if the weak membership problem for its dual cone can be decided is NP-hard (resp. is polynomial-time).
We conclude by showing in Section 6 that for convex functions that satisfy a polynomial-growth condition, its Fenchel dual must also satisfy the same condition with possibly different constants. A consequence of this is that such a function is polynomial-time approximable to arbitrary precision if and only if its Fenchel dual is also polynomial-time approximable to arbitrary precision. On the other hand, such a function is NP-hard to approximate if and only if its Fenchel dual is NP-hard to approximate.
Weak membership, weak validity, and polynomial-time reducibility
Note that if has no interior point, then .
For the benefit of readers unfamiliar with these notions, we highlight that in our weak membership problem, there are ’s that satisfy both and simultaneously. So if we can ascertain mem, we can ascertain wmem, but not conversely. A consequence is that if wmem problem for is NP-hard, then mem for is also NP-hard.
Recall that a problem is said to be polynomial-time reducible [6, p. 28] to a problem if there is a polynomial-time algorithm for solving by making a polynomial number of oracle calls to an algorithm for solving . This notion of polynomial-time reducibility is also called Cook or Turing reducibility and will be the one used throughout our article. There is also a more restrictive notion of polynomial-time reducibility that allows only a single oracle call to called Karp or many-one reducibility.
Note that if is a polynomial-time algorithm for , then is a polynomial-time algorithm for . Consequently, if is computable in polynomial-time, then so is . On the other hand, if is NP-hard, then so is .
We say that and are polynomial-time inter-reducible if is polynomial-time reducible to and is polynomial-time reducible to . The polynomial-time inter-reducibility of two problems and implies that they are in the same time-complexity classAssuming that the complexity class is defined by polynomial-time inter-reducibility. whatever it may be. Nevertheless, in this article we will restrict ourselves to just polynomial-time computability and NP-hardness, the two most often used cases in optimization.
Weak membership in dual norm balls
There is no loss of generality in assuming that and are rationalIf not just pick a smaller or a larger that is rational. and we may denote the number of bits required to specify them by and respectively.
Recall that the dual norm of , denoted , is given by
Observe first that and . So and satisfy the centering assumption after Definition 2.2 with . Hence
The main result of this section is the polynomial-time inter-reducibility between a norm and its dual.
Let be a norm and be its dual norm. The wmem problem for the unit ball of is polynomial-time reducible to the wmem problem for the unit ball of .
We will prove this result via two intermediate lemmas. A key step in our proof depends on the Yudin–Nemirovski Theorem , which may be stated as follows [6, Theorem 4.3.2].
The original Yudin–Nemirovski Theorem is in fact stronger than the version stated here, allowing the weak violation problem wviol to be reduced to wmem. Nevertheless in this article we will only require the weaker result with wval in place of wviol.
whenever , and the inequalities
Also, by the defining properties of a norm. Hence
To prove (5), let and so . Let
Since and , we obtain
The last two inequalities follow from the first two inclusions and (3). ∎
Let . Then the solution to wval problem for gives the solution to wmem problem for .
It follows from (4) that .
Suppose that for some . Then \max\bigl{(}S(B_{\nu^{*}},\delta),x\bigr{)}>1-\delta and we deduce from (7) that
As straightforward calculation shows that
It follows from (5) that . ∎
We observe that the assumption in Lemma 3.4 is not restrictive. Let . Then a new norm defined by would satisfy the assumption. Now note that if and only if . With this observation, Theorem 3.1 follows from
Here means that is polynomial-time reducible to . Yudin–Nemirovski Theorem gives the first and third reductions whereas Lemma 3.4 gives the second and last reductions. ∎
Since taking the dual of a dual norm gives us back the original norm, we have the following corollary.
The wmem problem for the unit ball of a norm is polynomial-time decidable (resp. NP-hard) if and only if the wmem problem for the unit ball of the dual norm is polynomial-time decidable (resp. NP-hard).
Since every centrally symmetric compact convex set with nonempty interior is a norm ball for some norm and its polar dual is exactly the norm ball for the corresponding dual norm, we immediately have the following.
be its polar dual. Then wmem in is polynomial-time inter-reducible to the wmem in . In particular, if one is polynomial-time decidable (resp. NP-hard), then so is the other.
Approximation of dual norms
We call a -approximation of .
The weak membership problem for .
and (4) yields that . Assume now that
and so . This shows that we may decide weak membership in with a -approximation to . In fact we just need one oracle call to approx.
and consider . Assume first that . Then the right inclusion in (4) yields and thus
In this case we set and . Assume now that . Then the left inclusion in (5) yields
In this case we set and .
Clearly is polynomial, in fact linear, in . Setting , we obtain a -approximation of . This shows that we may determine a -approximation to with oracle calls to wmem in . ∎
A norm is polynomial-time approximable (resp. NP-hard to approximate) if and only if its dual norm is polynomial-time approximable (resp. NP-hard to approximate).
A particularly nice property of the Mahler volume is that it is invariant under any invertible linear transformation, regardless of whether it is volume-preserving or not.
If the weak membership problem in is polynomial-time decidable, then is polynomial-time approximable.
If the wmem in is polynomial-time decidable, then it follows from that there exist polynomial-time algorithms to approximate to any given error . By Corollary 4.3, the wmem in is also polynomial-time decidable and thus the same holds for . ∎
Mahler volume is more commonly defined for a centrally symmetric compact convex set but as we mentioned before Corollary 3.6, this is equal to a unit norm ball for an appropriate choice of norm.
Weak membership in dual cones
is also a proper cone . The main result of this section is an analogue of Theorem 3.1 for such cones: The weak membership problem for is polynomial-time reducible to the weak membership problem for .
It is well-known that deciding mem for the cone of copositive matrices is NP-hard . This result has recently been extended : wmem in the cone of copositive matrices and wmem in its dual cone, the cone of completely positive matrices, are both NP-hard problems. Our result in this section generalizes this to arbitrary proper cones.
We first recall a well-known result regarding the interior points of .
Let . Then . Hence , which implies (10). ∎
are compact convex sets of dimension . Hence the sets and are full-dimensional compact convex sets in the orthogonal complements of and respectively. In fact and are compact convex sets of maximal dimension in the affine hyperplanes
respectively. We may also view and as the affine hulls of and respectively.
As the cones and are noncompact, these hyperplane sections and serve as their compact proxies, allowing us to encode and (for a Turing machine). We will assume knowledge of four positive rational numbers and such that
While the numbers do not appear explicitly in our proofs, they are needed implicitly when we invoke the Yudin–Nemirovski Theorem.
Given any , observe that if and only if . Thus the membership problem for is equivalent to the membership problem for . We show in the following that this extends, in an appropriate sense, to weak membership as well.
Decide weak membership of in relative to .
In the following, we let and u\coloneqq(x+z)/\bigl{(}b^{\mathsf{T}}(x+z)\bigr{)}\in H_{b}.
Hence .
Consider first the case . There exists such that . Let . So
Hence and so .
Consider now the case . The same line of argument as above yields that . Together the two cases show that if we can decide wmem in relative to with inputs , , then we can decide wmem in with inputs , . ∎
Lemma 5.2 may be viewed as a compactification result: We transform a problem involving a noncompact object to a problem involving a compact object . The motivation is so that we may apply the Yudin–Nemirovski Theorem later.
where if . It follows from (12) that
Consider first the case for all , or, equivalently, for all . We claim that for all . This holds for since . For , there exists such that . Thus . Then for any ,
By the middle inequality in (13), we obtain .
Consider now the case for some , or, equivalently, for some . Hence there exists such that and so by the left inequality in (13). Then
By the right inequality in (13), we obtain . ∎
Approximation of Fenchel duals
(i) is of course a generalization of Definition 4.1 from norms to a more general function. We will show that (i) and (ii) are polynomial-time inter-reducible. For this purpose, we will need a useful corollary [6, Corollary 4.3.12] of the Yudin–Nemirovski Theorem (cf. Theorem 3.2) with the wopt problem in place of the wval problem.
Then the approximation problem for is polynomial-time reducible to the approximation problem for .
Note that we require knowledge of the values of both and , not just of their existence. We need the condition (14) to ensure that no minimizer of lies on the boundary of and that any minimizer is at least distance away from the boundary.
We will show that wopt in yields a solution to approx for . The result then follows from two polynomial-time reductions: wopt in can be reduced to wmem in , wmem in can be reduced to approx for .
for all . We claim that , the required approximation to . Since , it follows that . The assumption (14) ensures that where . Hence we deduce that , i.e., . As , it follow that there exists such that and . So . Thus , but starting with in place of allows us to replace ‘’ by ‘’ as required by Definition 6.1(ii). ∎
The Fenchel dual is also known as the Fenchel conjugate and the map is sometimes called the Legendre transform. It is well-known that is always a convex function, being the pointwise supremum of a family of affine functions . It is also well-known that is a lower semicontinuous proper convex function if and only if .
for some constants , , and depending on . We now show that must satisfy similar growth conditions
For , the lower bound in (15) and give
Observe that for , the maximum of is attained at
Let . Then
This last inequality yields the upper bound in (16) with
for a corresponding that depends on . More precisely, either or is the unique positive solution of
To deduce the lower bound in (16), let be such that
It follows that and so the upper bound in (15) yields . Hence we have the lower bound in (16) with
We will compute an approximation of with oracle calls to approximations of .
Let . Since mem in a Euclidean ball is clearly polynomial-time decidable, the conditions of Lemma 6.3 are satisfied. Hence approx for is polynomial-time reducible to approx for .
Suppose now that . Clearly . Let , where is as in (15). Let f^{*}_{\rho}(y)\coloneqq\max_{\|x\|=\rho}\bigl{(}y^{\mathsf{T}}x-f(x)\bigr{)}. As , the lower bound in (15) gives
Since for a convex function and by Lemma 15, and both satisfy the polynomial growth condition if either one does, we obtain the following.
Conclusion
In this article, we have focused on establishing equivalence in the computational complexity of dual objects for several common convex objects and common notions of duality. These results are expected to have immediate applications in many areas. We conclude our article with two such examples.
Drawing from our own work, we rely on the results in Sections 3 and 4 to deduce that the nuclear norm for higher-order tensors is NP-hard to compute [5, Corollary 8.8] and likewise for the dual norm of an operator -norm when or when [5, Section 7].
Acknowledgment
We are very grateful to the two anonymous referees for their exceptionally helpful suggestions and comments. We would like to thank Lev Reyzin for telling us about the various variants of the membership problem, and to Shuzhong Zhang for informing us that the problem of complexity of dual cones is still open and pointing us to .