Manuscript Offprint
arXiv:2609.07949Improved Integrality Gap for Multicommodity Flow on Trees
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We improve the best known lower bound on the integrality gap for weighted unit-demand multicommodity flow on trees from 1/4 to 2/5, improving on the long-standing bound of Chekuri, Mydlarz, and Shepherd [Chekuri et al., 2007]. We give the proof in two stages. First, a surprisingly simple packing lemma and an inductive coloring argument give an intermediate bound of 4/11. We then refine the argument to obtain 2/5.
1 Introduction and main result
Let be a tree, and let be an integer capacity for each edge . Let be a finite collection of labeled requests. Each request has a nonnegative weight and an associated path , the unique path between its endpoints on the tree. Different requests may have the same endpoints; each request can be accepted at most once. For a subset of requests, write
A subset is feasible if
We call the cardinality on the left the load of on . When we work directly with a collection of paths, its load on an edge likewise means the number of its paths that use that edge.
The natural linear programming relaxation for unit-demand multicommodity flow on trees assigns an acceptance fraction to each request:
The integrality gap is the infimum, over instances with positive LP optimum, of the ratio of the optimal integer solution value to the optimal LP value. We prove our result in two stages. The first stage gives the following 4/11 bound.
*This proof sat in a drawer for more than five years. It grew out of my pre-AI work on the problem with Professor Chandra Chekuri during my first year of the PhD, whom I thank for his valuable comments on this manuscript. I set it aside for an embarrassing reason: Lemma A.1 seemed “clearly” false to me. Working from my old private notes, ChatGPT Astra proved the lemma in half an hour and repaired several minor correctness issues along the way. It also improved my original integrality-gap bound from 4/11 to 2/5 via a cleverer coloring scheme.
Theorem 1.1. For every feasible solution of (1), there is a feasible subset of requests such that
Moreover, for rationally encoded inputs, such a subset can be found in polynomial time.
We keep the complete proof of this intermediate result because it is elementary and introduces the binning and contraction coloring argument. Afterward, we tighten one step in the argument, and prove our final result.
Theorem 1.2. For every feasible solution of (1), there is a feasible subset of requests such that
Consequently, the integrality gap is at least 2/5. Moreover, for rationally encoded inputs, such a subset can be found in polynomial time.
Chekuri, Mydlarz, and Shepherd [Chekuri et al., 2007] proved that the integrality gap of this LP is at least 1/4. Könemann, Parekh, and Pritchard [Könemann et al., 2014] improved this bound to 1/3 when every capacity is at least two, and obtained bounds approaching one as the minimum capacity grows.
Related work. Garg, Vazirani, and Yannakakis [Garg et al., 1997] showed that the cardinality version is NP-hard and MAX SNP-hard on trees, although it can be solved exactly when every edge has capacity one. They also gave a primal-dual algorithm that produces an integral routing and a multicut, with the routing value at least half the total capacity of the multicut.
Cheriyan, Jordán, and Ravi [Cheriyan et al., 1999] subsequently proved that every half-integral LP solution—that is, one with —can be rounded while retaining at least 2/3 of its weight. The same fraction is also an upper bound on the integrality gap. On a three-leaf star with unit capacities and one request of weight one between each pair of leaves, assigning to each request gives LP value 3/2, whereas the integral optimum is one. It is conjectured that the integrality gap is exactly 2/3.
For arbitrary nonnegative weights, Chekuri, Mydlarz, and Shepherd (CMS) [Chekuri et al., 2007] obtained the first constant lower bound on the integrality gap, 1/4, through a stronger 4k-coloring theorem for paths in trees. Könemann, Parekh, and Pritchard [Könemann et al., 2014] later gave an objective-preserving rounding with additive congestion at most two. In particular, if , their results show that the integrality gap is at least
Thus, before the present work, the best known lower and upper bounds on the integrality gap for arbitrary weights and arbitrary capacities were 1/4 and 2/3, respectively.
The tree decomposition underlying the CMS bound has also found applications beyond trees: Naves, Shepherd, and Xia [Naves et al., 2023] used it as a building block in their 1/224-approximation for maximum-weight disjoint paths in capacitated outerplanar graphs. Separately, Pan and Goemans [Pan and Goemans, 2026] studied bicriteria algorithms for demand matching, which is the star special case with arbitrary demands.
We apply this rounding theorem to a copied instance with scaled capacities. Make four copies of every request and multiply every capacity by four. The resulting fractional objective value is . Rounding then gives selected copies of total weight at least , with at most selected copies whose paths use edge . We will partition the selected copies into eleven color classes satisfying two conditions:
-
Each color class respects the original capacities ; that is, each color class is feasible.
-
Each color class contains at most one copy of any original request.
The second condition prevents double counting when we return to the original instance. For example, suppose an original request has weight . If a color class contains two copies of this request, then its weight in the copied instance is 14, but those copies correspond to a single request of weight 7 in the original instance. Restricting each color class to at most one copy of every original request ensures that the two weights agree.
Thus, the heaviest color class has weight at least . Section 2 explains how to enforce the conditions and gives the full reduction.
The main work is the division into eleven colors. We first solve the coloring problem on a star. There a simple binning and greedy coloring works. To handle a general tree, we recurse, by removing a star at the end of the tree, color the smaller tree recursively, and then restore the remaining paths. The issue is to retain enough information about the old bins from the recursive call so that the colors still work when the star is restored.
We first carry out this argument exactly as stated and obtain the 4/11 bound. In Section 5, we refine the argument further and show that the paths can instead be colored together with only ten colors, improving the result to .
2 Reduction to a coloring problem
We first restate the rounding theorem in the form needed here.
Theorem 2.1 (Könemann–Parekh–Pritchard [Könemann et al., 2014]). Consider unit-demand requests with nonempty paths in a tree with positive integer capacities and nonnegative weights . Let be a fractional solution satisfying
One can find, in polynomial time, a subset of the requests such that
The proof appears in Section 2 of [Könemann et al., 2014]. Because requests are labeled, the theorem also applies when several requests use the same path.
Encoding the copy restriction as an edge capacity. One of the conditions that we must ensure is that each color class contains at most one copy of any original request. We encode this restriction using capacity-one edges. For each original request with endpoints and , attach a new leaf to and another to , assigning capacity one to both new edges. Extend so that its endpoints are these two new leaves; see Figure 1.
Before copying, the two new edges are used only by ; after copying, they are used only by the four copies of . Even if two original requests have identical endpoints, we give them separate pairs of new leaves.

Figure 1: One pair of new leaves is added for each original request. All copies of that request share the two new capacity-one edges.
The extended requests retain their weights and traverse the same original edges as before. Each new edge is used only by request , so the corresponding capacity constraint is exactly . Hence the construction preserves every feasible fractional solution and its value. If the endpoints of a request coincide, , we attach two distinct leaves at that vertex; its extended path is then a nonempty two-edge path.
Sharing the private edges among the copies turns the one-copy-per-color-class restriction into an edge-capacity constraint. Fix a feasible solution of (1), and let . Let denote the unscaled capacity of every edge in the enlarged tree, including on each private edge. Create four labeled copies of each extended request, each with weight and fractional value , and scale every edge capacity to . The resulting fractional solution is feasible because, for every edge ,
Its fractional objective value is 4W. Applying Theorem 2.1 yields selected copies of total weight at least 4W, with at most selected copies whose paths use edge . We recover feasibility using the following coloring theorem, proved in Section 3. For the coloring argument, we identify each selected copy with its labeled path.
Theorem 2.2. Let a tree have positive integer capacities . Consider a finite collection of labeled paths, each joining two distinct leaves. Repeated paths are allowed and are treated as distinct labeled objects. If at most paths use each edge , then each path can be assigned one of eleven colors so that, for every edge and every color, at most paths of that color use .
For each private leaf edge, the scaled capacity in the KPP instance is four, whereas its target, unscaled capacity in Theorem 2.2 is . Hence each color class contains at most one copy of any original request, because all four copies of that request use its private edges. Replacing the copies in any color class by their corresponding original requests yields a feasible subset of the original instance with the same weight. The eleven color classes have total weight at least 4W, so at least one has weight at least 4W/11. This proves Theorem 1.1, assuming Theorem 2.2.
From now on, we work only with these labeled paths on the enlarged tree. We retain the notation for the target edge capacities, including on every private edge. Every such path joins two distinct leaves.
3 The coloring argument
Consider a leaf whose incident edge has capacity two, and suppose ten paths end at . We seek a coloring in which no color appears more than twice among these paths. Place six paths in one “bin” and the remaining four in another, and require the paths in each bin to receive distinct colors. A color may then appear once in each bin, and hence at most twice in total.
The same idea works for any capacity. A bin at a leaf is a subset of the paths ending there. We partition these paths into bins and require pairwise distinct colors within each bin. If the leaf edge has capacity , using at most bins ensures that at most paths of any one color use the edge.
We use bins of size at most six. Such bins can always be formed initially: if a leaf edge has capacity , then at most paths end at that leaf, where the inequality follows from . Order these paths arbitrarily and partition them into consecutive bins, each containing six paths except possibly the last. Thus at most bins are needed. If no path ends at the leaf, no bin is created. Each path belongs to exactly one bin at each of its two endpoints.
We now state the precise inductive claim. It is slightly stronger than Theorem 2.2, because the bins at the leaves are part of the input and the coloring must respect them. A vertex is internal if it has degree at least two. An edge is internal if both endpoints are internal vertices. All other edges are incident to at least one leaf.
Theorem 3.1. Let a tree have positive integer edge capacities , and let a finite collection of labeled paths, each joining two distinct leaves, be given. At each leaf, suppose the paths ending there are partitioned into prescribed bins. Assume that
(i) every bin contains at most six paths;
(ii) a leaf with incident edge has at most bins;
(iii) every internal edge is used by at most paths.
There is an eleven-coloring such that the paths within each prescribed bin receive pairwise distinct colors and, for every edge , at most paths of any given color use .
Theorem 3.1 immediately implies Theorem 2.2.
Proof of Theorem 2.2. At each leaf, order the paths ending there arbitrarily and partition them into consecutive bins, each containing six paths except possibly the last. If the leaf edge has capacity , then at most paths end there, so at most bins are needed. These bins satisfy conditions (i) and (ii) of Theorem 3.1, while the load bound in Theorem 2.2 gives condition (iii). Applying Theorem 3.1 yields the desired eleven-coloring.
The inductive proof of Theorem 3.1 uses a star-contraction argument similar to that of Chekuri, Mydlarz, and Shepherd [Chekuri et al., 2007, Section 2]; we give the construction in full.
Proof of Theorem 3.1. We induct on the number of internal vertices. If there are no paths, there is nothing to color, so assume otherwise. The tree then has at least one edge.
Star or single-edge case. If the tree has at most one internal vertex, it is a star or a single edge. If it is a star, fix the prescribed bins at the leaves and color the paths one at a time in any order. For a path being colored, each of its two endpoint bins contains at most five other paths. Previously colored paths in these bins therefore rule out at most ten colors in total, leaving at least one of the eleven colors available. Assign such a color and continue. At the end, the paths within each bin have pairwise distinct colors. For any leaf edge , condition (ii) gives at most bins at its leaf, and each bin contains at most one path of any given color. Hence at most paths of each color use , so every edge-capacity constraint is satisfied. The same argument applies when the tree consists of a single edge, since each path still has two leaf endpoints and belongs to one bin at each endpoint.
Case of at least two internal vertices. We may now assume that the tree has at least two internal vertices. These vertices induce a tree, since every vertex strictly between two internal vertices on their unique path also has degree at least two. Choose a leaf of this induced tree. In the current tree, has exactly one internal neighbor, denoted , and all its other neighbors are leaves. The edges from to these leaves form a star attached to the rest of the tree through . Figure 2 shows an example with three leaves at .

Figure 2: A star attached through one edge. Edge labels indicate capacities for the running example. A path from to is local and is temporarily removed. A path from to crosses and becomes a path from to in the smaller tree.
Recall that all path endpoints are leaves. A path with both endpoints among the leaves adjacent to lies entirely within the star; call it a local path. A path with exactly one endpoint among these leaves traverses one star edge and the edge ; call it a crossing path.
Temporarily remove the local paths and contract the star edges, merging and its adjacent leaves into a single vertex, again denoted . Retain the edge with the same capacity. After the contraction, is a leaf and every crossing path has as an endpoint. All other surviving paths are unchanged, and the resulting tree has fewer internal vertices.
Next, construct the bins at the new leaf . Let be the prescribed bins at the leaves adjacent to . Remove the local paths from each , discard any empty remainders, and relabel the nonempty crossing blocks as . Each block has size at most six, and we treat it as an indivisible item. Every path using is a crossing path, and every crossing path belongs to exactly one block; hence the total size of the blocks equals the load on . This load is at most by condition (iii), since was internal before the contraction. To apply the induction hypothesis, we must pack these items into at most new bins, each of total size at most six. Lemma A.1 shows that this is possible: begin with one new bin for each crossing block and repeatedly merge two bins whose combined size is at most six until no such pair remains. At every other leaf, retain the prescribed bins.
We now verify the induction hypotheses for the smaller tree. By Lemma A.1, each new bin at has size at most six, and there are at most such bins. Thus they satisfy conditions (i) and (ii). The bins at every other leaf are unchanged. Every edge that remains internal was internal before the contraction, and its load is unchanged because the removed local paths used only the contracted star edges. Thus condition (iii) continues to hold. Every surviving path still joins two distinct leaves: a crossing path now joins to its original endpoint outside the star. Finally, the contraction turns from an internal vertex into a leaf and creates no new internal vertex. The smaller tree therefore has fewer internal vertices, so the induction hypothesis supplies the required coloring.
Undo the contraction while retaining the colors of the surviving paths. In each prescribed bin at a leaf adjacent to , the crossing paths already have pairwise distinct colors. Indeed, the corresponding crossing block was kept intact within a single new bin, whose paths received distinct colors in the recursive coloring.
Now reinsert the local paths one at a time. Each local path belongs to one prescribed bin at each of its two endpoints, and each of these bins contains at most five other paths. The already colored paths in the two bins therefore exclude at most ten colors, leaving at least one of the eleven colors available. Assign such a color and continue. After all local paths have been inserted, the paths in every prescribed bin have pairwise distinct colors.
It remains to verify the edge capacities. For each restored star edge , condition (ii) gives at most prescribed bins at its leaf, and each bin contains at most one path of any given color. Thus at most paths of each color use . On every retained edge, including , the load of each color class is unchanged from the recursively colored instance because local paths use only the restored star edges. Hence every edge-capacity constraint is satisfied, completing the induction step.
4 The algorithm
The preceding proofs yield the following algorithm. Solve the LP, add the two private leaves for each original request, and create four copies of each extended request. Apply the rounding algorithm of [Könemann et al., 2014] after multiplying every edge capacity by four. Regard the selected copies as the collection of paths to be colored, form the initial bins at the leaves, and repeatedly contract an attached star. At each step, record the pre-contraction bins and the local paths that are removed. When the remaining tree is a star or a single edge, greedily color its remaining paths. Then undo the contractions in reverse order, coloring the local paths as they are restored. Finally, choose a maximum-weight color class and replace each copy in it with the corresponding original request.
All these operations can be performed in polynomial time. The enlarged tree adds only two leaves per original request, and the copied instance contains only four copies of each request. Each contraction reduces the number of internal vertices. In each application of the packing lemma, every merge reduces the number of nonempty bins. Path lists, bin memberships, and sets of available colors can be maintained explicitly in polynomial time using polynomial space. Because only nonempty bins are stored, the representation does not grow in proportion to the numerical values of the capacities. This establishes the algorithmic claim in Theorem 1.1.
5 Saving the eleventh color
When we restored a contracted star in the recursion, its crossing paths already had colors, and we colored the local paths one at a time. Each local path belonged to two bins, and each bin contained at most five other paths. The colors already used in these two bins could therefore exclude as many as colors. With eleven colors available, there was always a color left. With ten colors, this greedy step may get stuck.
Some of the colors blocking a path, however, were assigned to other local paths. Those choices can be changed. Only the crossing paths have colors that we must keep: their colors came from the recursive call, and changing them could create a conflict elsewhere in the tree. Thus we have more freedom if we choose the colors of all the local paths together. The following consequence of an edge-coloring theorem of Edwards et al. [Edwards et al., 2018] makes this useful.
Lemma 5.1. Consider the bins at the leaves of an attached star. Every bin contains at most six paths. Suppose the crossing paths have already been assigned colors from a set of ten colors, with distinct colors within each bin. We can color all the local paths using the same ten colors, without changing any crossing color, provided that either
(a) every bin contains at most four crossing paths; or
(b) there are at most six crossing paths altogether, and their colors are all different.
The resulting coloring gives distinct colors to the paths in each bin. We can do this in polynomial time.
The proof of the lemma is deferred to Appendix B, but we note that it is essentially a specialization of the edge-coloring theorem of Edwards et al. [Edwards et al., 2018].
Theorem 5.2. Under the assumptions of Theorem 3.1, ten colors suffice: the paths in each prescribed bin receive distinct colors, and each edge e is used by at most paths of any one color.
Proof. If there are no paths, there is nothing to color. If the tree is a star or a single edge, then all paths are local. So there are then no crossing paths, so condition (b) of Lemma 5.1 holds vacuously.
For a larger tree, choose an attached star exactly as in Section 3. Denote its center by , its only internal neighbor by , and the capacity of by . Recall that local paths join two leaves adjacent to , whereas crossing paths have one endpoint at such a leaf and leave the star through .
When the same contraction works. Suppose first that every bin at a leaf adjacent to contains at most four crossing paths. Remove the local paths and contract the leaf edges at , just as before. Keep the crossing paths from each old bin together. Their total number is at most , so Lemma A.1 packs these groups into at most new bins, each of size at most six. The resulting tree satisfies the same three conditions as in Section 3; color it recursively with ten colors.
Restore the star, keeping the colors of the crossing paths. Crossing paths from the same old bin still have distinct colors, because they stayed together in a new bin. Each old bin has at most four such paths, so Lemma 5.1(a) colors the local paths without changing those colors. This completes the coloring of the star. The bins enforce the capacities on its leaf edges, and the local paths use no other edges.
The same contraction also works whenever , even if a bin contains five or six crossing paths. In this case at most paths cross , and the contraction puts all of them in a single bin. Consequently, the recursive coloring gives them all different colors. Lemma 5.1(b) then colors the local paths, and the same capacity check applies.
When a bin contains at least five crossing paths. The only case left is with a bin at a leaf adjacent to containing at least five crossing paths. Let be the leaf carrying this bin, and call the bin . It has room for at most one local path, since a bin contains at most six paths altogether.
Attach a new leaf to , on the other side of the connecting edge. Replace the endpoint of every path in by ; keep its other endpoint and its label. These paths now follow the unique routes from to their unchanged endpoints. Paths outside are unchanged, including paths in other bins at .
Consider what this does to a crossing path in . Previously, it traveled from through and before continuing to its other endpoint. Now it starts at , reaches immediately, and follows the same route from there. It no longer uses . A local path in changes in the opposite way: its other endpoint is a leaf at v, so its new route from b uses vw. There are at least five paths of the first kind and at most one of the second. Thus the new load on vw is at most
We can therefore lower the capacity of vw from u to u - 1 and retain the required bound on its total load. Because , the new capacity is still positive.
Give the new edge capacity one, and place all paths of in one bin at . At , remove from the old list of bins and lower the capacity of by one. The number of bins at was at most ; after removing , it is at most , exactly the new capacity of . If had capacity one, was its only bin; no path now uses , so delete this edge and the leaf . Figure 3 shows the change.

Figure 3: Moving one bin. Paths in acquire the new endpoint ; other bins at stay there. Only the affected edges are shown, with their capacities. If , delete and after the move.
Every other retained internal edge carries exactly the same paths as before, so its load continues to satisfy the required bound. Every path still joins distinct leaves. If deleting a makes v a leaf, no path ends there, and it has no bins. Thus the new instance satisfies the same three conditions for the bins and loads.
Color this instance recursively with ten colors. Then put the endpoints of the paths in back at , restore the two old capacities, and keep all the colors. Delete and , which are now unused. Because the paths of shared the new capacity-one edge , they have distinct colors. Hence restoring them adds at most one path of each color to , and at most one to . For any fixed color, the loads on these two edges are at most
respectively. If was deleted, its load before restoration is zero and the first equality gives the same bound. The paths of still have distinct colors when returned to their old bin. All other bins are unchanged, and no other old edge gains or loses a path. This gives the required coloring of the original tree.
Why the recursion terminates. The contraction removes tree edges and never lengthens a path. The endpoint change may add one tree edge, but it makes at least five paths shorter by one edge and at most one path longer by one edge. The total path length therefore falls by at least four. In either case, the nonnegative integer
strictly decreases. Formally, we use induction on this sum.
This also gives a polynomial-time algorithm. If the initial tree has edges and there are paths, the sum is at most , so there are at most recursive steps. Each step takes polynomial time, including the coloring completions supplied by Lemma 5.1.
A Packing lemma
Lemma A.1. Let be an integer. Any collection of indivisible items with positive integer sizes at most six and total size at most can be packed into at most bins, each having total size at most six, without splitting any item.
Proof. Initially, place each item in its own bin. While there is a pair of bins whose combined size is at most six, merge such a pair. Every bin continues to have size at most six, and no item is split. The process terminates because each merge reduces the number of bins by one.
Let be the number of bins at termination. If , then ; hence assume . Denote the bin sizes by , and let be their total size. No two remaining bins can be merged. Since the bin sizes are integers,
Let be the smallest remaining bin size. If , then
If instead , the smallest bin cannot be merged with any other bin, so every other bin has size at least . Therefore
where the last inequality follows from
Thus in both cases. If , the integrality of and implies , and hence
This contradicts the assumed bound . Therefore , as desired.
B Specialization of the edge-coloring theorem
Proof of Lemma 5.1. This is a specialization of Edwards, Girão, van den Heuvel, Kang, Puleo, and Sereni [Edwards et al., 2018, Theorem 9]. Represent bins by vertices and local paths by edges. In (a), represent each crossing path by a precolored edge to a separate new leaf. The graph has maximum degree at most six and at most four precolored edges per vertex, so the cited theorem completes the coloring. In (b), represent the crossing paths by edges to one common new vertex. The maximum degree is still at most six, so the same theorem colors this graph from scratch. The crossing edges receive distinct colors at the common vertex; permuting the colors throughout the graph matches them to their distinct prescribed colors.
Running time. The edge-coloring steps can be performed in polynomial time as well. Chlebík and Chlebíková [Chlebík and Chlebíková, 2006, Theorem 3] give an algorithm for extending a partial vertex coloring when the number of available colors is at least the maximum degree of the graph. To apply it here, form a graph with one vertex for each edge of our multigraph, joining two vertices when their edges share an endpoint. Each edge of the multigraph meets at most other edges, so this new graph has maximum degree at most ten. Its vertex colorings are precisely the proper edge colorings we need. The algorithm finds the extension whose existence was established above.
References
[Chekuri et al., 2007] Chekuri, C., Mydlarz, M., and Shepherd, F. B. (2007). Multicommodity demand flow in a tree and packing integer programs. ACM Transactions on Algorithms, 3(3):Article 27.
[Cheriyan et al., 1999] Cheriyan, J., Jordán, T., and Ravi, R. (1999). On 2-coverings and 2-packings of laminar families. In Algorithms – ESA '99, volume 1643 of Lecture Notes in Computer Science, pages 510–520. Springer.
[Chlebík and Chlebíková, 2006] Chlebík, M. and Chlebíková, J. (2006). Hard coloring problems in low degree planar bipartite graphs. Discrete Applied Mathematics, 154(14):1960–1965.
[Edwards et al., 2018] Edwards, K., Girão, A., van den Heuvel, J., Kang, R. J., Puleo, G. J., and Sereni, J.-S. (2018). Extension from precoloured sets of edges. Electronic Journal of Combinatorics, 25(3):P3.1.
[Garg et al., 1997] Garg, N., Vazirani, V. V., and Yannakakis, M. (1997). Primal-dual approximation algorithms for integral flow and multicut in trees. Algorithmica, 18(1):3–20.
[Könemann et al., 2014] Könemann, J., Parekh, O., and Pritchard, D. (2014). Multicommodity flow in trees: Packing via covering and iterated relaxation. Algorithmica, 68(3):776-804.
[Naves et al., 2023] Naves, G., Shepherd, F. B., and Xia, H. (2023). Maximum weight disjoint paths in outerplanar graphs via single-tree cut approximators. Mathematical Programming, 197(2):1049–1067.
[Pan and Goemans, 2026] Pan, Y. and Goemans, M. X. (2026). Bicriteria approximation algorithms for demand matching. arXiv:2608.04223.