Proving integrality gap for LPs

Posted on April 1, 2025 by Yu Cong
Tags: ,

Proving integral gap of linear programs are generally hard. It would be great if one can classify LPs with a constant gap. It is known that deciding whether a polyhedron is integral is co-NP-complete [1]. I am interested in techniques for proving constant upperbound for integral gaps of linear programs.

Here are some methods with examples that I read in books and papers.

1 Counting

Just do the counting.

1.1 tree packing theorem

Example1

Consider the following integer program on graph G=(V,E)G=(V,E), λ=mineExes.t.eTxe1T𝒯xe0eE\begin{align*} \lambda=\min& & \sum_{e\in E} x_e& & & \\ s.t.& & \sum_{e\in T} x_e&\ge 1 & &\forall T\in \mathcal T \\ & & x_e&\in\mathbb{Z}_{\ge 0} & &\forall e\in E \end{align*}

where 𝒯\mathcal T is the set of spanning tree in GG. Let τ\tau be the optimum of the linear relaxation.
Theorem2

λ2τ\lambda \le 2 \tau.

Note that the optimum solution to λ\lambda is the minimum cut in GG. It is known that τ\tau is the maximum tree packing in GG and τ=minFE|EF|r(E)r(F)\tau=\min\limits_{F\subset E}\frac{|E-F|}{r(E)-r(F)}, where rr is the rank of the graphic matroid on GG [2]. Then the proof is a simple counting argument.
Proof

If GG is not connected, Let G1,...,GkG_1,...,G_k be the set of components in GG. One can easily see that the gap of GG is at most the largest gap of the components. Thus considering connected graphs is sufficient.

We fix F*argmin|EF*|r(E)r(F*)F^*\in \arg\min \frac{|E-F^*|}{r(E)-r(F^*)}. r(E)r(F*)r(E)-r(F^*) must be positive and EF*E-F^* is a cut in GG. Suppose EF*E-F^* is any cut in GG. Let S1,...,ShS_1,...,S_h be components in G\(E\F*)G\setminus (E\setminus F^*). For any SiS_i, the set of edges with exactly one endpoint in SiS_i (denoted by e[Si]e[S_i]) must contain a cut of GG since the GG is connected. One can see that 2|EF*|=i|e[Si]|λ(r(E)r(F))2|E-F^*|=\sum_i |e[S_i]|\ge \lambda (r(E)-r(F)) since the number of component is r(E)r(F*)r(E)-r(F^*).

1.2 kk-cut

Example3

λk=mineEc(e)xes.t.eTxekT𝒯0xe1eE\begin{align*} \lambda_k=\min& & \sum_{e\in E} c(&e)x_e & & \\ s.t.& & \sum_{e\in T} x_e&\ge k & &\forall T\in \mathcal T \\ & & 0\le x_e&\le 1 & &\forall e\in E \end{align*}
Theorem4

The integral gap of λk\lambda_k is at most 2(11/n)2(1-1/n).

The proof is in section 5 of [3]. Here is a sketch.

For kk-cut we cannot use the simple counting argument since the dual LP is not a tree packing. (the LP dual needs extra variables zez_e for constraints xe1x_e\le 1.) However, it is still easy to find an upperbound for the integral optimum. If we sort vertices in increasing order of their degree, that is, deg(v1)deg(vn)\mathop{\mathrm{deg}}(v_1)\le \dots \le \mathop{\mathrm{deg}}(v_n), then i=1k1deg(vi)\sum_{i=1}^{k-1} \mathop{\mathrm{deg}}(v_i) is an upperbound for integral kk-cut. Then it is easy to prove that if the optimal solution x*x^* to λk\lambda_k is fully fractional (xe*(0,1)x_e^*\in (0,1) for all eEe\in E), then the gap is 2(11/n)2(1-1/n). The proof is to use complemantary slackness conditions, i.e., ze=0,eTyT=c(e)eEz_e=0,\sum_{e\in T}y_T=c(e)\;\forall e\in E. The following observations reduce general x*x^* to fully fractional case:
  1. Given an optimal solution x*x^*, let XX be the set of edges ee such that xe*=0x_e^*=0. The optimum to λk\lambda_k on G/XG/X is the same as on GG.
  2. For an optimal solution x*x^*, let FF be the set of edges ee such that xe*=1x_e^*=1. Let x*|EFx^*|_{E-F} be the restriction of x*x^* to EFE-F. x*|EFx^*|_{E-F} is a fully fractional optimum solution to λk\lambda_k. (Some discussions are needed for the number of components in G\FG\setminus F. The reduction can be done using the fact that if 1λσc1\leq \frac{\lambda}{\sigma}\le c then 1λ+kσ+kc1\le \frac{\lambda+k}{\sigma+k}\le c.)

2 Rounding

A constant factor approximation algorithm based on LP may imply a constant upperbound of the corresponding LP.

Examples:
  1. vertex cover. simple threshold rounding or the LP structure (there is a half integral optimal solution)
  2. facility location. Dartmouth
  3. CKR relaxation of multiway cut uiuc cs583 sp18
  4. uniform labeling (multiway cut with assignment cost) FOCS’99
  5. generalized steiner network problem with skew-supermodular requirements. iterative rounding. uiuc cs598 sp09

3 Intermediate problem

I read about this in [4]. Suppose that we want to prove constant gap for LP1LP1. The idea is to find another LP (say LP2LP2) which is integral or has constant gap and to prove that OPT(IP1)OPT(IP2)c1\frac{\mathop{\mathrm{OPT}}(IP1)}{\mathop{\mathrm{OPT}}(IP2)}\le c_1 and OPT(LP2)OPT(LP1)c2\frac{\mathop{\mathrm{OPT}}(LP2)}{\mathop{\mathrm{OPT}}(LP1)}\le c_2. Finally we will have something like this,

OPT(IP1)c1OPT(IP2)c1OPT(LP2)c1c2OPT(LP1)\begin{equation} \mathop{\mathrm{OPT}}(IP1)\le c_1\mathop{\mathrm{OPT}}(IP2)\le c_1 \mathop{\mathrm{OPT}}(LP2)\le c_1 c_2 \mathop{\mathrm{OPT}}(LP1) \end{equation}

3.1 minimum kk-edge-connected spanning subgraph

This problem is a special case of 5 in the rounding part.

We want to prove that the integral gap for the following LP is 2.

LP1=mineEw(e)xes.t.eCxekcut C0xe1eE\begin{align*} LP1=\min& & \sum_{e\in E} w(e&)x_e & &\\ s.t.& & \sum_{e\in C} x_e&\ge k & &\forall \text{cut $C$}\\ & & 0\le x_e &\le 1 & &\forall e\in E \end{align*}

(Finding the minimum kk-edge-connected spanning subgraph of G=(V,E)G=(V,E))

Now we construct LP2. Consider the bidirection version of GG, denoted by D=(V,A)D=(V,A) where A={(u,v),(v,u)(u,v)E}A=\{(u,v),(v,u) \quad \forall (u,v)\in E\}. Pick a special vertex rr.

LP2=mineAw(e)yes.t.eδ+(S)yekSVrS0ye1eE\begin{align*} LP2=\min& & \sum_{e\in A} w(e)&y_e & & \\ s.t.& & \sum_{e\in \delta^+(S)} y_e&\ge k & &\forall S\subset V \land r\in S\\ & & 0\le y_e &\le 1 & &\forall e\in E \end{align*}

(Finding min k-arborescence)

It is known that the polytope in LP2 is integral [2]. Given any feasible solution of LP, for any edge e=(u,v)Ee=(u,v)\in E we set y(u,v)=y(v,u)=xey_{(u,v)}=y_{(v,u)}=x_e. Thus the optimum of LP2 is no larger than 2OPT(LP)2\mathop{\mathrm{OPT}}(LP) since yy is always feasible.

On the other hand, given a feasible integral solution yy of LP2, we set xe=1x_e=1 if any orientation of ee is in yy. It is clear from the definition of LP2 that xex_e is a feasible integral solution of LP. Hence, applying eq(1) proves that the integral gap of LP is 2. (Note that in this example c1=1c_1=1 and c2=2c_2=2.)

4 Notes

There are many discussions about the integrality gap on cstheory.
  1. https://cstheory.stackexchange.com/questions/30984/exactly-solvable-but-non-trivial-integrality-gap
  2. https://cstheory.stackexchange.com/questions/4915/integrality-gap-and-approximation-ratio
  3. https://cstheory.stackexchange.com/questions/392/the-importance-of-integrality-gap
  4. https://cstheory.stackexchange.com/questions/55188/randomized-rounding-schemes-that-depend-on-the-weights-in-the-lp-objective
  5. https://cstheory.stackexchange.com/questions/21060/optimization-problems-with-minimax-characterization-but-no-polynomial-time-algo
  6. https://cstheory.stackexchange.com/questions/3871/minimum-maximal-solutions-of-lps

It seems that the integrality gap has a deep connection with hardness of approximation. There are two kinds of problems that i find particularly interesting.
  • The LP has a relatively large gap, but some algorithm based on that LP achieves a better approximation than the gap.(see this FOCS’09 paper)
  • The integrality gap is small (a constant), but approximation algs based on the LP cannot do that good. (Zhiyi Huang gave a talk at UESTC recently. https://arxiv.org/abs/2509.17029 The correlated Pandora’s problem has a natural LP formulation with gap <4<4, while it is NP-hard to aproximate it within a ratio of 4ϵ4-\epsilon.)

References

[1]
G. Ding, L. Feng, W. Zang, The complexity of recognizing linear systems with certain integrality properties, Mathematical Programming. 114 (2008) 321–334 10.1007/s10107-007-0103-y.
[2]
[3]
C. Chekuri, K. Quanrud, C. Xu, LP Relaxation and Tree Packing for Minimum $k$-Cut, SIAM Journal on Discrete Mathematics. 34 (2020) 1334–1353 10.1137/19M1299359.
[4]
P. Chalermsook, C.-C. Huang, D. Nanongkai, T. Saranurak, P. Sukprasert, S. Yingchareonthawornchai, Approximating k-Edge-Connected Spanning Subgraphs via a Near-Linear Time LP Solver, in: 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 2022: pp. 37:1–37:20 10.4230/LIPIcs.ICALP.2022.37.