Approximating Norms of Non-Negative Matrices in Nearly-Linear Time
Abstract
We provide the first nearly-linear time algorithm for approximating -norms of non-negative matrices, for . Our algorithm returns a -approximation to the matrix norm in time , where is the input matrix, and improves upon the previous state of the art, which either proved convergence only in the limit [Boyd โ74], or had very high polynomial running times [Bhaskara-Vijayraghavan, SODA โ11]. Our algorithm is extremely simple, and is largely inspired from the coordinate-scaling approach used for positive linear program solvers. Our algorithm can readily be used in the [Englert-Rรคcke, FOCS โ09] to improve the running time of constructing -competitive -oblivious routings.
Keywords and phrases:
matrix norm, Perron-Frobenius theory, oblivious routings, input-sparsity time, lp normCopyright and License:
2012 ACM Subject Classification:
Theory of computation Routing and network design problemsAcknowledgements:
We thank Alina Ene and Huy Lรช Nguyแป n for helpful conversations on approximating matrix norms.Funding:
This work was partially supported by the French Agence Nationale de la Recherche (ANR), under grant ANR-21-CE48-0016 (project COMCOPT).Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyแป n Kim ThแบฏngSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl โ Leibniz-Zentrum fรผr Informatik
1 Introduction
We are interested in computing the norm of matrices. We define the -norm of a matrix as
| (1) |
where , and . When , the quantity corresponds to the spectral norm. In all generality, corresponds to the maximum stretch of the operator from the normed space to .
The -norm of a matrix appears in different optimization problems. When , is known as the -norm of and has important applications to computing linear oblivious routings for graphs [9]. A linear oblivious routing in a graph with edges can be implicitly represented by a square matrix with rows and columns. For some class of linear routings, the induced norm corresponds to its competitiveness.
A big challenge is even certifying that a routing scheme is good, which requires saying that for any demand, the resulting flow is competitive. It is difficult to do this in general, since as opposed to the classical case, it is unclear how to find the worst case demand. In fact for general matrices the problem is NP-hard. For matrices arising from routing schemes, which are entry-wise non-negative, there are polynomial time algorithms. In particular, Boyd proposed a power method-type algorithm which converged in the limit, but which lacked asymptotic bounds [6]. Later, Bhaskara and Vijayraghavan proposed a modified algorithm which provably converged in polynomial time, but with a cubic iteration number [4]. In this paper we provide a lightweight and efficient algorithm which runs in nearly linear time in input sparsity.
Noteworthy, [4] showed that by being able to approximate the -norm of a non-negative matrix, one can compute in polynomial time -competitive linear oblivious routings in undirected graphs when the load function is an unknown monotone norm and the aggregation function is an -norm on the load vector.
Routing schemes have also raised interest in the non-oblivious case, that is when the routing scheme has information on the current state of the graph (i.e. the flow on each edge). In this case, one can compute the current shortest path at any instance to minimize the congestion in the graph. Recently, an algorithm using electrical flow instead of shortest paths has been shown to be more efficient [21].
1.1 Our Contributions
We give the first input-sparsity time algorithm to approximate the -norm of a non-negative matrix when . The result is stated in the following theorem.
Theorem 1 (Short version of Theoremย 13).
Given a non-negative matrix , a positive real , two reals , and a guess on , Algorithmย 1 recovers such that
or certifies infeasibility in time 111 hides poly logarithmic factors in ., where corresponds to the time to perform a matrix-vector product with .
While the statement of Theoremย 1 concerns approximation of a decision problem, standard techniques can transform an approximation decision algorithm into an approximation algorithm. We refer the reader to Appendixย A for the details which we provide for completeness.
In the context of tree-based oblivious routing schemes, the competitive ratio can be written directly as an -norm expression. If is the matrix that specifies how unit demands on edges are routed, then the competitive ratio is . [4] proved it is sufficient to approximate a polynomial number of times to compute a competitive tree-based oblivious routing. Hence, we can use Theoremย 1 for the case , and to improve the running time of [4] by a factor of . Moreover, if both the load function and the aggregation function are known monotone norms, we provide the first algorithm to compute an optimal oblivious linear routing. Notice that this problem is slightly different from the one solved by [4] as we do need knowledge of the load function. Hence, the following theorem.
Theorem 2 (Short version of Theoremย 19).
Given a directed or undirected graph , there exists an algorithm to compute an optimal oblivious routing when the cost function is a known monotone norm in time .
1.2 Our Techniques
We seek to maximize . Our approach is partly inspired from the long line of work on solvers for positive linear programs [17, 24, 1, 18], as well as certain non-standard instantiations of the same framework in the context of regression problems [8]. Those algorithms are width-independent, meaning their running time is at most linear in (at a cost of a larger dependency on the precision ). The width of an instance measures the instanceโs diameter in the appropriate norm. For example, for linear programs, the width is typically defined as the maximum absolute value that any of its linear constraint functions can attain over the search space. By design, those algorithms are different from classical multiplicative weight update algorithms as their running time does not depend on the width of the problem.
At each iteration, we scale by some coordinates of our iterate to ensure large progress is made. We say that a coordinate is hit at time if we scale it between iterations and . We do not directly measure the progress on , instead, we separate the progress obtained in the denominator from the progress obtained in the numerator. At each iteration, assuming is non-negative, we want to ensure the ratio between those progresses is larger than (7 with ). This ensures after iterations that is a approximation of . To do so, we consider a potential function (8) and hit the coordinates whose potential is above a threshold. being non-negative is crucial as it keeps the property that the norm is monotone.
The algorithm converges once is large. If we were to hit only one coordinate of at iteration (say the coordinate with the largest potential), the running time would depend on the ambient dimension which would not be a width-independent algorithm. To overcome this issue, we transform our problem into an approximate decision one. Given , a guess on , we either want to find such that or certify that . We then change the threshold for accordingly. The certification comes from the fact that at each iteration, at least one coordinate of should be above (10). Assuming , there should always be a coordinate with potential larger than . This modification still does not give a width-independent algorithm, however, behaves โnicelyโ under multiplicative scaling which allows us to upper bound coordinate-wise the value of (Lemma 11).
We use this upper bound to prevent new coordinates from having potential larger than . This allows us to guarantee that at iteration , a coordinate with potential larger than also had potential larger than at iterations . Since its potential was always larger than , it was always hit and so it is large. In order to prevent coordinates from having potential larger than , we need to also hit coordinates with potential slightly smaller than which is not an issue since we aim for an approximation. This gives a first width-independent algorithm to approximate the -norm of a non-negative matrix in time or in parallel time (Corollary 14).
The algorithm can also use preconditioning techniques for subspace embedding. We first compute a matrix such that and has fewer nonzero entries than . Lewis weights sampling introduced by Cohen and Peng [7] and improved for in [23] allows to reduce the number of rows of to when . This preconditioning technique, paired with the fact that where , allows better running time when or . This result is showed in Corollary 15.
The algorithm is linked with the Perron-Frobenius theorem, in the sense that for , if is positive then the maximum of is the spectral norm of . For positive matrices, 10 is a generalized version of the Collatz-Wielandt formula which states that . We generalize this formula to norms, and obtain . When , we just add a scaling factor that depends on to find the equality.
We then show that an application of our algorithm is to compute a -competitive linear oblivious routing with a better running time than [4]. When the load function is a known monotone norm, we show that we can reduce the problem to finding a saddle point of a bi-linear function.
1.3 Related Works
Computing the norm on general matrices is hard. For arbitrary matrices, there are three known easy cases: , and (see [22]).
On the hardness front, for arbitrary matrices, computing when is NP-hard [22]. For , even if and the matrix are assumed to have rational entries, it is NP-hard to compute [12].
If we aim to find an approximation, for arbitrary matrices the problem is also hard to solve to arbitrary precision. For (and ), assuming , the problem cannot be approximated to a factor , for any constant [4]. [3] showed that under the Small-Set Expansion hypothesis, it is NP-hard to approximate for arbitrary matrices when . Finally, when (and ), if , it is NP-hard to approximate to a factor for any constant [5].
For non-negative matrices, [6] used a power iteration-type algorithm to approximate -norm of non-negative matrices without any bounds on the time of convergence. When , [4] provided the analysis and proved that the power iteration-type algorithm from [6] converges in time . Under the same settings, [22] demonstrated that the problem is equivalent to maximizing a concave function () over the unit simplex. When , no hardness result is known for non-negative matrices.
The non-negative assumption may be necessary to make the problem easy. Indeed, it is possible to relax MAXCUT into approximating the norm of a symmetric diagonally dominant matrix (see [22]). Since MAXCUT is known to be NP-Had to approximate better than [13], and UG-Hard to approximate better than [16], this implies that there is no PTAS for the problem, even for symmetric diagonally dominant matrices.
Hence, approximating is NP-hard even when is positive semi-definite and the precision sought is fixed. However, we can easily extend the results on non-negative matrices to matrices such that there exist two diagonal matrices and with entries on their diagonals such that is non-negative [22]. Indeed, given , we have that for any , . Hence, we can apply the algorithm on and consider where is a -approximation of .
An immediate application of approximating the norm of non-negative matrices is computing oblivious routings, per [9]. The main difficulty posed by their approach was efficiently certifying whether a non-negative matrix implicitly defined by the underlying graph has large or small induced norm, for . The polynomial time algorithm of [4] could be used together with the [9] framework, at the expense of paying a large overall running time. Notably, for the case of , approximating the induced norm can be solved efficiently via the power method; this special case has been leveraged by [10] to achieve oblivious routings running in sub-quadratic time.
2 Preliminaries
2.1 Notations
We use lowercase bold letters for vectors and uppercase for matrices. For a vector (resp. a matrix ), (resp. ) denotes the transpose of (resp. of ). For an integer , denotes the th row of , and the th column. We say that a vector or a matrix is non-negative if all its entries are non-negative. is the usual inner product and denotes the Frobenius inner product. For and a vector , we denote by the -norm of defined as
For and a matrix , we denote by the -norm of defined as
(resp. ) denotes the vector with all entries equal to (resp. ). For a vector and a real , is the vector where the exponent is applied coordinate wise. For a matrix , denotes the number of nonzero elements in . We denote by the non-negative simplex .
2.2 Convex Optimization
We would like to emphasize that the problem of maximizing on the unit ball corresponds to maximizing a convex function over a convex domain which can not be solved using classical convex optimization tools. Nevertheless, when is non-negative, , we can show that by composing with a simple concave mapping from the unit simplex to the unit sphere we obtain a concave function that we would like to maximize over a convex domain [22]. To intuit, one should remark that the maximum of is achieved by a vector in the positive orthant of the unit sphere which we call . Moreover, is not a convex set. In fact, for two different vectors , and , we have , hence we are โlosingโ norm by taking the convex combination of two points. That means that even if is convex, we have the potential to โincreaseโ the value of between any two points of by taking a path in . This new function has better chance to be concave than since its value between two points of is larger. One can remark that if , then . The mapping describes such a path since for any and , we have that . As expected, is entry-wise concave and calculus gives that as long as , is concave. We give the proof in Subsectionย D.1.
Theorem 3 (Remark 3.4 from [22]).
Given , and . We have is concave on .
This shows that a simple re-parametrization of the problem turns it into a concave maximization problem, which can be efficiently solved using a cutting plane method [14], leading to a running time of . However, as cubic runtime may turn out to be prohibitive, we will focus on more efficient algorithms at the expense of a linear dependence in the error tolerance of the provided solution.
2.3 Power Iteration
The previous state-of-the-art algorithm was provided in [4]. Let
In order to compute , one needs to maximize over . If we assume is non-negative, then [4] provide an algorithm with running time . To find the maximum of , we can compute its gradient . We have
At the optimum, which can be written as
Since is non-negative, we know there is a maximum with non-negative coordinates. [4] then define the operator such that . It is easy to show that if is such that , then is a critical point and . Consider the two potentials and , [4] showed the following lemma.
Lemma 4 (Lemma 3.3, [4]).
For any non-negative matrix and positive vector , we have
At optimum, . Hence, the goal is to reduce the ratio . [4] showed that iteratively applying such that outputs a -approximation when . Hence, the total running time is . In this paper, we provide a much simpler algorithm with running time .
2.4 Lewis Weights Sampling
Cohen and Peng introduced in [7] a fast algorithm to compute a matrix such that for any vector . The algorithm computes , a matrix containing few rescaled rows of . The algorithm is of particular interest in our situation when is such that . For , rows are sufficient. Moreover, the cost of such an algorithm has only time complexity where is the time complexity of matrix multiplication. Formally, this gives the following theorem.
Theorem 5 (Theorem 1.3 and A.2 from [23]).
Given a matrix and , one can compute such that with probability over , we have
in time . Moreover, has at most
rows.
Since the algorithm just samples and rescales rows of , if is non-negative, then so is . Hence, it makes Lewis weights sampling a possible preconditioning of the input.
3 Efficiently Computing Induced -Norms of Non-Negative Matrices
3.1 A Simple Algorithm
We want to solve the following approximate decision problem, which we show is sufficient to solve the approximate optimization problem in Appendixย A.
Definition 6.
Given , we solve the approximate decision problem if we either provide such that
or certify that .
We seek to maximize a function of the form where both and are convex functions. Hence, we have
If we take , we have which is not optimal to upper bound by . Instead, we consider , and we want to maximize . We now obtain a tighter bound
This bound will be used to design an iterate that satisfies the following lemma. We prove 7 in Subsectionย E.1.
Lemma 7.
Given a matrix , such that , , and . Assume at each iteration we have
then, once , we have
With scaling updates, i.e. where we obtain the following inequality.
To simplify the notation, we define a vector of potentials . Those potentials have nice properties, for instance, the direction of the gradient of can be extracted from the values of the potentials. Indeed, they are made such that . That means when the potential is larger than , the gradient is positive.
Definition 8.
Given a positive vector , we define the potentials of as the vector such that
The algorithm does not follow the traditional gradient descent framework, however each iteration still follows the direction of the gradient. We want our iterate to satisfy the following corollary of 7.
Corollary 9.
Given a matrix , such that , , and , assume the following invariant is satisfied at each iteration
| (2) |
then, once , we have
For the iterate to satisfy the invariant in 9, there must always be a potential larger than . This is guaranteed by the following lemma from [4].
Lemma 10 (Lemma 3.3 from [4]).
Let be a non-negative matrix and . Given , there is a coordinate such that .
As long as , there always is a coordinate with potential above . Setting , at time we scale coordinates with potential larger than so that our iterate satisfies Invariant (2). At each iteration, a different coordinate may be scaled which means increases quite slowly. We only have the following lower bound , which requires iterations are required to solve the approximate decision problem.
3.2 A Width-Independent Algorithm
In order to achieve an efficient algorithm, it is necessary to improve the number of iterations by a factor of . The challenge we had to deal before was that the norm of was not increasing rapidly enough. To overcome this issue, we will modify the algorithm to ensure there is a coordinate such that is large. Notice that 10 guarantees that there is at least one coordinate with potential larger than . The new invariant we would like to implement is that the set of coordinates with potential larger than does not take any new elements. This requires to also scale coordinates with a potential slightly smaller than which does not prevent satisfying the first Invariant (2). In order to do so, we need to analyze how the potentials evolve between two iterations.
Lemma 11.
Given a non-negative matrix , and a positive vector , . Let be such that or , we have
-
1.
If , then .
-
2.
If , then .
Proof.
No matter the value of , we have
If , then , otherwise, .
As mentioned earlier, if we consider a multiplicative scaling where if and only if the potential of coordinate is larger than for some , then it creates a glass ceiling where no new coordinates can have potential noticeably larger than . We quantify this upper bound in the following corollary.
Corollary 12.
Assume at each iteration we scale coordinates with potential larger than , then the set of coordinates with potential larger than is decreasing.
Proof.
Let be the set of coordinates with potential larger than at time . For a coordinate that is not in , we have that if it is scaled at time , then by Lemma 11, , hence is not part of . Moreover, if is not scaled, then we know , hence using Lemma 11, . Thus, .
We choose and the threshold such that the glass ceiling is equal to . That means that no new coordinates can have their potential larger than . At the same time, we need to be careful about our choice of and threshold so that Invariant (2) is still satisfied.
Assume we hit coordinates with potential larger than with , we ensure that Invariant (2) is satisfied since
Moreover, using Corollary 12, we ensure that the set of coordinates with potential larger than is decreasing. We also know that at the end of the algorithm at least one coordinate has potential larger than using 10. Hence, those coordinates were scaled at each iteration and are equal to . This gives the following theorem which we prove in Subsectionย E.2.
Theorem 13.
Given a non-negative matrix , a positive real , two reals , and a guess on , Algorithmย 1 recovers such that
or certifies infeasibility in time
The algorithm can be parallelized since computing the potentials requires computing two matrix-vector multiplications. In the PRAM model, matrix-vector multiplication runs in time on a CRCW PRAM and on an EREW PRAM with processors. With processors, the depth becomes , hence we give as a corollary the running time obtained if we perform those operations in parallel.
Corollary 14.
Given a non-negative matrix , a positive real , two reals , and a guess on , it is possible to compute such that in parallel time with total work .
Using the Lewis weights sampling procedure from [7, 23], we can obtain the following corollary which we prove in Subsectionย E.3.
Corollary 15.
Given a non-negative matrix , a positive real , two reals , and a guess on , by first preconditioning the input using Theoremย 5, Algorithmย 1 returns such that
or certifies infeasibility in time
Where is the maximum number of nonzero entries in a row of .
References
- [1] Zeyuan Allen-Zhu and Lorenzo Orecchia. Nearly linear-time packing and covering lp solvers: Achieving width-independence and-convergence. Mathematical Programming, 175:307โ353, 2019. doi:10.1007/S10107-018-1244-X.
- [2] Yossi Azar, Edith Cohen, Amos Fiat, Haim Kaplan, and Harald Racke. Optimal oblivious routing in polynomial time. In Proceedings of the Thirty-Fifth Annual ACM Symposium on Theory of Computing, STOC โ03, pages 383โ388, New York, NY, USA, 2003. Association for Computing Machinery. doi:10.1145/780542.780599.
- [3] Boaz Barak, Fernando G.S.L. Brandao, Aram W. Harrow, Jonathan Kelner, David Steurer, and Yuan Zhou. Hypercontractivity, sum-of-squares proofs, and their applications. In Proceedings of the forty-fourth annual ACM symposium on Theory of computing, STOCโ12. ACM, May 2012. doi:10.1145/2213977.2214006.
- [4] Aditya Bhaskara and Aravindan Vijayaraghavan. Approximating matrix p-norms. In Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA โ11, pages 497โ511, USA, 2011. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611973082.40.
- [5] Vijay Bhattiprolu, Mrinalkanti Ghosh, Venkatesan Guruswami, Euiwoong Lee, and Madhur Tulsiani. Approximability of p โ q matrix norms: generalized krivine rounding and hypercontractive hardness. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA โ19, pages 1358โ1368, USA, 2019. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611975482.83.
- [6] David W. Boyd. The power method for lp norms. Linear Algebra and its Applications, 9:95โ101, 1974. doi:10.1016/0024-3795(74)90029-9.
- [7] Michael B. Cohen and Richard Peng. row sampling by lewis weights. CoRR, abs/1412.0588, 2014. arXiv:1412.0588.
- [8] Alina Ene and Adrian Vladu. Improved convergence for and regression via iteratively reweighted least squares. In International Conference on Machine Learning, pages 1794โ1801. PMLR, 2019.
- [9] Matthias Englert and Harald Rรคcke. Oblivious routing for the lp-norm. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science, pages 32โ40, 2009. doi:10.1109/FOCS.2009.52.
- [10] Gramoz Goranci, Monika H Henzinger, Harald Rรคcke, Sushant Sachdeva, and AR Sricharan. Electrical flows for polylogarithmic competitive oblivious routing. In 15th Innovations in Theoretical Computer Science Conference, volume 287, 2024.
- [11] Anupam Gupta, Mohammad Hajiaghayi, and Harald Rรคcke. Oblivious network design. In Proceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms, pages 970โ979, January 2006. doi:10.1145/1109557.1109665.
- [12] Julien M. Hendrickx and Alex Olshevsky. Matrix p-norms are np-hard to approximate if , 2010. arXiv:0908.1397.
- [13] Johan Hรฅstad. Some optimal inapproximability results. J. ACM, 48(4):798โ859, July 2001. doi:10.1145/502090.502098.
- [14] Arun Jambulapati, James R. Lee, Yang P. Liu, and Aaron Sidford. Sparsifying generalized linear models. CoRR, abs/2311.18145, 2023. doi:10.48550/arXiv.2311.18145.
- [15] Haotian Jiang, Yin Tat Lee, Zhao Song, and Sam Chiu-wai Wong. An improved cutting plane method for convex optimization, convex-concave games and its applications. CoRR, abs/2004.04250, 2020. arXiv:2004.04250.
- [16] Subhash Khot, Guy Kindler, Elchanan Mossel, and Ryan OโDonnell. Optimal inapproximability results for max-cut and other 2-variable csps? SIAM Journal on Computing, 37(1):319โ357, 2007. doi:10.1137/S0097539705447372.
- [17] Michael Luby and Noam Nisan. A parallel approximation algorithm for positive linear programming. In Proceedings of the twenty-fifth annual ACM symposium on Theory of computing, pages 448โ457, 1993. doi:10.1145/167088.167211.
- [18] Michael W. Mahoney, Satish Rao, Di Wang, and Peng Zhang. Approximating the solution to mixed packing and covering lps in parallel time. In Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi, editors, 43rd International Colloquium on Automata, Languages, and Programming (ICALP 2016), volume 55 of Leibniz International Proceedings in Informatics (LIPIcs), pages 52:1โ52:14, Dagstuhl, Germany, 2016. Schloss Dagstuhl โ Leibniz-Zentrum fรผr Informatik. doi:10.4230/LIPIcs.ICALP.2016.52.
- [19] H. Racke. Minimizing congestion in general networks. In The 43rd Annual IEEE Symposium on Foundations of Computer Science, 2002. Proceedings., pages 43โ52, 2002. doi:10.1109/SFCS.2002.1181881.
- [20] Harald Rรคcke. Optimal hierarchical decompositions for congestion minimization in networks. In Proceedings of the Fortieth Annual ACM Symposium on Theory of Computing, STOC โ08, pages 255โ264, New York, NY, USA, 2008. Association for Computing Machinery. doi:10.1145/1374376.1374415.
- [21] Ali Kemal Sinop, Lisa Fawcett, Sreenivas Gollapudi, and Kostas Kollias. Robust routing using electrical flows. ACM Trans. Spatial Algorithms Syst., 9(4), November 2023. doi:10.1145/3567421.
- [22] Daureen Steinberg. Computation of matrix norms with application to robust optimization. 2005. URL: https://www2.isye.gatech.edu/หnemirovs/Daureen.pdf.
- [23] David P. Woodruff and Taisuke Yasuda. Online lewis weight sampling, 2022. doi:10.48550/arXiv.2207.08268.
- [24] Neal E. Young. Sequential and parallel algorithms for mixed packing and covering. In 42nd Annual Symposium on Foundations of Computer Science, FOCS 2001, 14-17 October 2001, Las Vegas, Nevada, USA, pages 538โ546. IEEE Computer Society, 2001. doi:10.1109/SFCS.2001.959930.
Appendix A From Approximate Decision to Approximate Optimization
Our algorithm solves an approximate decision problem. When performing the binary search for the guess value , a precision of is not required. We provide here a standard relaxation that transforms an approximate decision algorithm into an approximate optimization one.
First, notice that with , we have for any , . Given a guess value and a precision , Theoremย 13 gives that either is in or . We initialize our search interval as .
Given a search interval , we let and . We run Algorithmย 1 with and as the guess value. If the algorithm returns a vector such that , we update , otherwise we update . We repeat this process until . When this happens, we chose and use precision . Since we maintain that is feasible and is infeasible, we obtain such that
We now analyze the cost of the search. While , we invoke the algorithm with precision and is divided by a constant fraction. Hence, this process is repeated at most times. Moreover, when , we use precision . Since the running time of an iteration is proportional to , the total running time of this part of the search is dominated by the last one with precision . Hence, the total running time is where is the running time of Algorithmย 1 with precision .
Appendix B Multicommodity Flows
B.1 Definitions
B.1.1 Multicommodity Flow Problem
We describe the general multicommodity flow framework introduced by Gupta et al. in [11]. We are given an unweighted graph with vertices and edges and a collection of routing requests . Each routing request consists of a source-target pair , a non-negative amount of traffic and a type of routing . One can think of as a quality of service for instance. Each routing request is called a commodity hence this problem is called the multicommodity flow problem.
The cost of a multicommodity flow is a function of the load. For each edge denotes the amount of flow of type that is sent along . Each type of routing can induce different load on the same edge. Given a function , we can define the load of the edge
The cost is calculated by aggregating the edges via a function
This problem captures a lot of problems, for and for instance, this captures the congestion of the framework.
Instead of using a collection of routing requests , we consider a demand matrix with rows and columns. Each row corresponds to a directed pair of vertices and each column to a type of routing. The value of the matrix at row and column is the non-negative amount of traffic of type that needs to be routed from the source-target pair of the -th line. We denote the set of all demand matrices222Hence . This notation allows constructing linear oblivious routings as matrices (hence linear).
B.1.2 Linear Oblivious Routings
The multicommodity flow problem allows for a rather simple routing construction, for each source-target pair of vertices we route according to a precomputed unit non-negative flow from to . Those flows can be concatenated to form a non-negative matrix . Given a demand matrix , we call the flow induced by routing the demand with the oblivious routing . This flow matrix has columns and rows. Each one of its column is obtained by multiplying with a column of : . For the sake of simplicity, we write . This flow matrix induces the load on edge . We call a linear oblivious routing. Let be the set of oriented pairs of vertices and the set of oriented triplets of vertices.
Definition 16.
A matrix is a linear oblivious routing if and only if it is a solution of the following system.
We call the set of all linear oblivious routings in the graph . A linear oblivious routing on a demand creates a flow with cost
In this report, we focus on the case where is a monotone norm from to .
B.1.3 Optimal Flows and Competitive Ratio
A multicommodity flow induces a cost . The optimal cost of a demand matrix is . The competitive ratio of the routing is its worst performance against .
Definition 17.
The competitive ratio of is defined as
Since is linear, we may rescale the function to ensure that if , then . This is possible since all norms are equivalent in finite dimension, moreover, this does not change the value of the competitive ratio.
Definition 18.
The competitive ratio of is
where .
An optimal linear oblivious routing is a linear oblivious routing with the lowest competitive ratio among the competitive ratio of the others.
B.2 From Undirected to Directed Graphs
Consider an undirected graph with vertices and edges. We follow the same transformation as of [2]. For any undirected edge , [2] consider the directed gadget with directed edges. The five directed edges are and . We call the replacing edge of . The new graph is a directed one, moreover, a linear oblivious routing on the new directed graph gives a linear oblivious routing on the undirected graph.
Appendix C Computing an Optimal Oblivious Routing for a Fixed Monotone Norm
We explain in Subsectionย B.1 what multicommodity flows are and the assumptions we are making. Oblivious routings have been computed under two different regimes. The first regime is when the aggregating function is an -norm, and the load function is unknown. In that case, linear routings with competitive ratio exists [19, 20, 9, 4]. When is not or , the running time is polynomial with an extremely large exponent. The analysis made by [4] requires precision smaller than for approximating the -norm of the matrix. This time complexity is too large for real world usage. In the second regime, one assumes the aggregating function, and the load function are known. They both make the cost function, hence in this regime, we assume the cost function is a known monotone norm. This regime was analyzed when the cost function was the norm [2], we extend it to any monotone norm. Our goal is to find an optimal linear oblivious routing, i.e. a linear oblivious routing such that:
In the following, we assume the graph to be directed. Undirected graphs can be transformed in directed graphs, hence our results are also valid for undirected graphs (c.f. Subsectionย B.2 for more details).
Theorem 19.
For any directed or undirected graph and any cost function that is a monotone norm on the load vector, it is possible to compute a linear oblivious routing such that
in time with high probability in .
To construct the linear oblivious routing from Theoremย 19, we will use the following lemma where represents a relaxation of the set of linear routings and a relaxation of the set of demand vectors.
Lemma 20.
There exist two convex sets such that and given and satisfying
we can construct in polynomial time a linear oblivious routing such that
To see how Lemma 20 is useful, notice that using a convex-concave game solver we can find and satisfying the condition of Lemma 20. The next theorem is a convex-concave game solver from [15] that we will use to prove the running time of Theoremย 19.
Theorem 21 (Theorem C.9 from [15]).
Given convex sets and such that both and contain a ball of radius . Let be an -Lipschitz function that is convex in and concave in . For any , we can find such that
in time
with high probability in where is the cost of computing sub-gradient .
C.1 Relaxing the Problem
C.1.1 Relaxing the Set of Linear Routings
Notice that as defined in Definition 16 is convex, however it does not contain a ball of radius for . Hence, we relax the problem to solving on where
We have that , and contains a ball of radius of and is inside . The following claim is a result of being monotone.
Claim 22.
Given a demand matrix , we have
C.1.2 Relaxing the Set of Demand Vectors
Let be the set of demand matrices such that . Using Claim 22, we have that can also be defined as the set of demand matrices such that . Since only contains non-negative matrices, we have with the set of non-negative matrices with coordinates and dual norm less than that . Let , we want to find . However, is not convex, we relax it to . The following claim is a consequence of being linear.
Claim 23.
Given a matrix from , we have
C.1.3 Solving the Relaxed Problem
Lemma 24.
Assume is a monotonic norm, let be its dual norm. Define
and
Given and such that
we can construct in polynomial time a linear oblivious routing such that
To see how Lemma 24 is helpful, notice that from , we can construct that satisfies Definition 16 by reducing the coordinates of . Since the cost function is monotone, for any , . Moreover, since the minimizer over is in . Hence, we have . Moreover, we get by using Theoremย 21.
Appendix D Proofs from Sectionย 2
D.1 Proof of Theoremย 3
Lemma 25.
For any non-negative vector , and , we have is concave on .
Proof of Lemma 25.
Given a non-negative vector , let . Let and . Define and . We have
Where the inequality follows from Minkowskiโs inequality. Moreover, since , is concave and non-decreasing, hence is concave.
We are now ready to prove Theoremย 3.
Proof.
Let . Let be the th row of . We have . Hence, by Lemma 25, is concave. Moreover, since is concave and non-decreasing, we have that is concave.
Appendix E Proofs from Sectionย 3
E.1 Proof of 7
Proof.
We have
Hence, once , we have
Since , we have , hence it is sufficient to have .
E.2 Proof of Theoremย 13
Proof.
First, if the algorithm outputs โinfeasibleโ, we know by 10 that it means . Hence, assuming the algorithm does not return โinfeasibleโ, we will prove it outputs such that .
First, we prove that the invariant of 9 is satisfied. At iteration , if coordinate is scaled, then
Moreover, using Corollary 12, we know that the set of coordinates with potential larger than is decreasing. However, using 10, we know at least one coordinate has potential larger than at iteration . Hence, this coordinate always had potential larger than . Assume is such a coordinate, we have
With , we have which implies
using 9.
E.3 Proof of Corollary 15
Proof.
Using Theoremย 5, with , we obtain a matrix such that . Computing this matrix cost . Since is non-negative, then so is as it corresponds to rescaled rows of . Hence, we can use Theoremย 13 on with to obtain such that . We can bound by .
Moreover, we can bound by .
Hence, .
Moreover, has rescaled rows of , hence where is the maximum number of nonzero in a row of .
