What Each States
Both weak and strong duality relate the primal optimization problem to its Lagrangian dual. Consider the primal problem:
and its Lagrangian dual:
Weak duality says the dual optimal value never exceeds the primal optimal value.
Strong duality says they are equal.
Side-by-Side Statement
Weak Duality
Let be the primal optimal value and the dual optimal value. Then:
This holds for any optimization problem (convex or not), with no additional assumptions. The quantity is called the duality gap.
Strong Duality
Strong duality holds when:
The duality gap is zero. This requires additional conditions beyond convexity.
Why Weak Duality Always Holds
Weak Duality
Statement
For any optimization problem with Lagrangian and dual function , we have .
Intuition
For any feasible primal point and any dual-feasible :
The first inequality is because the infimum is at most any particular value. The second inequality holds because at a feasible : and , so ; and , so . Maximizing over and minimizing over preserves the inequality.
Failure Mode
Weak duality never fails. It is a universal property of the Lagrangian framework. The only question is whether the gap is zero (strong duality) or positive.
When Strong Duality Holds
Strong Duality via Slater's Condition
Statement
If the primal problem is convex ( convex, affine) and there exists a point in the relative interior of the domain with for all (strict inequality), then strong duality holds: .
Intuition
Slater's condition requires a strictly feasible point: one that satisfies all inequality constraints with slack. This ensures the feasible set has nonempty interior, which prevents pathological geometric configurations where the constraint surface is "tangent" to the objective level set in a way that creates a gap.
Failure Mode
Slater's condition is sufficient, not necessary. Strong duality can hold without it (e.g., for linear programs, strong duality holds whenever the primal or dual is feasible and bounded). Strong duality fails when the feasible region has no relative interior point satisfying strict inequalities, which can happen with non-convex problems or degenerate convex problems.
When Strong Duality Fails
Strong duality can fail even for convex problems when constraint qualifications are violated.
A convex problem with a duality gap
Consider:
where the constraint function is convex on . The feasible set is , so . The Lagrangian is , and for every (taking with large), giving . Slater's condition fails because there is no point with and . See Boyd and Vandenberghe (2004), Section 5.2.4.
For non-convex problems, duality gaps are the norm, not the exception. Integer programming problems routinely have large duality gaps. The LP relaxation dual gives a lower bound on the integer optimum, and the gap measures how far the relaxation is from exact.
KKT Conditions Under Strong Duality
When strong duality holds, the KKT conditions become necessary for optimality (for convex problems, they are also sufficient):
- Stationarity:
- Primal feasibility: ,
- Dual feasibility:
- Complementary slackness: for all
Without strong duality, a primal optimum may not correspond to any dual optimum, and the KKT conditions may have no solution.
Key Assumptions That Differ
| Weak Duality | Strong Duality | |
|---|---|---|
| Statement | ||
| Assumptions | None (always holds) | Constraint qualification (e.g., Slater) |
| Convexity required? | No | Typically yes (for Slater) |
| Practical use | Lower bounds on optimal value | Solve dual instead of primal |
| KKT | Not guaranteed | KKT necessary and sufficient |
Practical Consequences
When strong duality holds, you can solve the dual instead of the primal. This is useful when:
- The dual is easier. The SVM dual has variables (one per training point) with a simple constraint set, while the primal has variables (one per feature). When , the dual is cheaper.
- The dual reveals structure. The SVM dual shows that only support vectors matter ( only for points on or inside the margin).
- You need a lower bound. Even if you cannot solve the primal exactly, any dual-feasible point gives a guaranteed lower bound on the primal optimum.
Common Confusions
Slater is sufficient, not necessary
Many textbooks present Slater's condition as the criterion for strong duality. But strong duality can hold without Slater. Linear programs always satisfy strong duality (when feasible and bounded) without needing a strictly feasible point. Slater is the most commonly used sufficient condition, not the only path to strong duality.
Strong duality does not mean the dual is easy to solve
Having means the dual has the same optimal value. It does not mean the dual problem is computationally easier. For some problems the dual is harder. The advantage of duality is structural, not automatically computational.
Complementary slackness requires strong duality
Complementary slackness () is a consequence of zero duality gap. If the gap is positive, there is no pair satisfying all KKT conditions simultaneously.
References
Canonical:
- Boyd & Vandenberghe, Convex Optimization (2004), Chapter 5
- Bertsekas, Nonlinear Programming (1999), Chapter 5
Current:
- Bubeck, "Convex Optimization: Algorithms and Complexity" (2015), Section 4