Abstract 1 Introduction 2 Preliminaries 3 Efficiently Computing Induced โ„“๐’’โ†’๐’‘-Norms of Non-Negative Matrices References Appendix A From Approximate Decision to Approximate Optimization Appendix B Multicommodity Flows Appendix C Computing an Optimal Oblivious Routing for a Fixed Monotone Norm Appendix D Proofs from Sectionย 2 Appendix E Proofs from Sectionย 3

Approximating qโ†’p Norms of Non-Negative Matrices in Nearly-Linear Time

Etienne Objois ORCID IRIF, Universitรฉ Paris Citรฉ, France Adrian Vladu ORCID CNRS, IRIF, Universitรฉ Paris Citรฉ, France
Abstract

We provide the first nearly-linear time algorithm for approximating โ„“qโ†’p-norms of non-negative matrices, for qโ‰ฅpโ‰ฅ1. Our algorithm returns a (1โˆ’ฮต)-approximation to the matrix norm in time O~โข(1qโขฮตโ‹…nnzโข(๐‘จ)), 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 Oโข(logโกn)-competitive โ„“p-oblivious routings.

Keywords and phrases:
matrix norm, Perron-Frobenius theory, oblivious routings, input-sparsity time, lp norm
Copyright and License:
[Uncaptioned image]โ€‚ยฉ Etienne Objois and Adrian Vladu; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation โ†’ Routing and network design problems
Related Version:
Extended Version: https://arxiv.org/abs/2503.19553
Acknowledgements:
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แบฏng

1 Introduction

We are interested in computing the norm of matrices. We define the โ„“qโ†’p-norm of a matrix ๐‘จโˆˆโ„mร—n as

โ€–๐‘จโ€–qโ†’p=max๐’™โ‰ ๐ŸŽโกโ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–q (1)

where โ€–๐’™โ€–p=(โˆ‘i=1n|๐’™i|p)1/p, and q,pโ‰ฅ1. When q=p=2, the quantity โ€–๐‘จโ€–2โ†’2 corresponds to the spectral norm. In all generality, โ€–๐‘จโ€–qโ†’p corresponds to the maximum stretch of the operator ๐‘จ from the normed space โ„“qn to โ„“pm.

The โ„“qโ†’p-norm of a matrix appears in different optimization problems. When p=q, โ€–๐‘จโ€–pโ†’p is known as the p-norm of ๐‘จ and has important applications to computing linear oblivious routings for graphs [9]. A linear oblivious routing in a graph with m edges can be implicitly represented by a square matrix ๐‘จ with m 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 p=โˆž 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 p-norm of a non-negative matrix, one can compute in polynomial time Oโข(logโกn)-competitive linear oblivious routings in undirected graphs when the load function is an unknown monotone norm and the aggregation function is an โ„“p-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 โ„“qโ†’p-norm of a non-negative matrix when qโ‰ฅpโ‰ฅ1. The result is stated in the following theorem.

Theorem 1 (Short version of Theoremย 13).

Given a non-negative matrix ๐€โˆˆโ„mร—n, a positive real 0<ฮตโ‰ค1/2โขq, two reals qโ‰ฅpโ‰ฅ1, and a guess V on โ€–๐€โ€–qโ†’p, Algorithmย 1 recovers ๐ฑ such that

โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต)โขV

or certifies infeasibility in time O~โข(nnzโก(๐€)qโขฮต)111O~ hides poly logarithmic factors in ฮตโˆ’1,n,m,q,p., where nnzโก(๐€) 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 โ„“pโ†’p-norm expression. If ๐‘ด is the |E|ร—|E| matrix that specifies how unit demands on edges are routed, then the competitive ratio is maxโ€–๐’™โ€–pโ‰ค1โกโ€–๐‘ดโข๐’™โ€–p. [4] proved it is sufficient to approximate โ€–๐‘ดโ€–pโ†’p a polynomial number of times to compute a Oโข(logโกn) competitive tree-based oblivious routing. Hence, we can use Theoremย 1 for the case p=q, and ๐‘ดโˆˆโ„mร—m to improve the running time of [4] by a factor of Oโข(m3). 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 G=(V,E), there exists an algorithm to compute an optimal oblivious routing when the cost function is a known monotone norm in time O~โข(n6โขm3).

1.2 Our Techniques

We seek to maximize g:๐’™โ†ฆโ€–๐‘จโข๐’™โ€–pq/โ€–๐’™โ€–qq. 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 nnzโก(๐‘จ)+n+m (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 (1+ฮฑ) some coordinates of our iterate to ensure large progress is made. We say that a coordinate is hit at time t if we scale it between iterations t and t+1. We do not directly measure the progress on g, 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 (1โˆ’Oโข(ฮต))qโขโ€–๐‘จโ€–qโ†’pq (7 with V=โ€–๐‘จโ€–qโ†’p). This ensures after T iterations that gโข(๐’™(T)) is a (1โˆ’Oโข(1/โ€–๐’™(T)โ€–qq)) approximation of โ€–๐‘จโ€–qโ†’pq. To do so, we consider a potential function ๐šฝ:โ„nโ†’โ„n (8) and hit the coordinates whose potential is above a threshold. ๐‘จ being non-negative is crucial as it keeps the property that the norm ๐’™โ†ฆโ€–๐‘จโข๐’™โ€–p is monotone.

The algorithm converges once โ€–๐’™(T)โ€–q is large. If we were to hit only one coordinate of ๐’™(t) at iteration t (say the coordinate with the largest potential), the running time would depend on the ambient dimension n which would not be a width-independent algorithm. To overcome this issue, we transform our problem into an approximate decision one. Given Vโ‰ฅ0, a guess on โ€–๐‘จโ€–qโ†’p, we either want to find ๐’™ such that gโข(๐’™)โ‰ฅ(1โˆ’ฮต)qโขVq or certify that V>โ€–๐‘จโ€–qโ†’p. 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 โ€–๐‘จโ€–qโ†’pq (10). Assuming Vโ‰คโ€–๐‘จโ€–qโ†’p, there should always be a coordinate with potential larger than Vq. 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 ๐šฝโข(๐’™(t+1))/๐šฝโข(๐’™(t)) (Lemma 11).

We use this upper bound to prevent new coordinates from having potential larger than Vq. This allows us to guarantee that at iteration t, a coordinate with potential larger than Vq also had potential larger than Vq at iterations 0,1,โ€ฆ,tโˆ’1. Since its potential was always larger than Vq, it was always hit and so it is large. In order to prevent coordinates from having potential larger than Vq, we need to also hit coordinates with potential slightly smaller than Vq which is not an issue since we aim for an approximation. This gives a first width-independent algorithm to approximate the โ„“qโ†’p-norm of a non-negative matrix in time O~โข(nnzโก(๐‘จ)/qโขฮต) or in parallel time O~โข(1/qโขฮต) (Corollary 14).

The algorithm can also use preconditioning techniques for โ„“p subspace embedding. We first compute a matrix ๐‘จโ€ฒ such that โ€–๐‘จโข๐’™โ€–p=(1ยฑฮต)โขโ€–๐‘จโ€ฒโข๐’™โ€–p and ๐‘จโ€ฒ has fewer nonzero entries than ๐‘จ. Lewis weights sampling introduced by Cohen and Peng [7] and improved for p>2 in [23] allows to reduce the number of rows of ๐‘จโˆˆโ„mร—n to O~โข(n/ฮต2) when pโ‰ค2. This preconditioning technique, paired with the fact that โ€–๐‘จโ€–qโ†’p=โ€–๐‘จTโ€–pโˆ—โ†’qโˆ— where 1/q+1/qโˆ—=1/p+1/pโˆ—=1, allows better running time when mโ‰ซn or nโ‰ซm. This result is showed in Corollary 15.

The algorithm is linked with the Perron-Frobenius theorem, in the sense that for q=p=2, if ๐‘จ is positive then the maximum of ๐’™โ†ฆโ€–๐‘จโข๐’™โ€–2/โ€–๐’™โ€–2 is the spectral norm of ๐‘จ. For positive matrices, 10 is a generalized version of the Collatz-Wielandt formula which states that min๐’™>๐ŸŽโกmaxiโกโŸจ๐‘จโˆ™,i,๐‘จโข๐’™โŸฉ๐’™i=โ€–๐‘จโ€–2โ†’22. We generalize this formula to โ„“p norms, and obtain min๐’™>๐ŸŽโกmaxiโกโŸจ๐‘จโˆ™,i,(๐‘จโข๐’™)pโˆ’1โŸฉ๐’™ipโˆ’1=โ€–๐‘จโ€–pโ†’pp. When pโ‰ q, we just add a scaling factor that depends on โ€–๐’™โ€–q to find the equality.

We then show that an application of our algorithm is to compute a Oโข(logโกn)-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 โ„“qโ†’p norm on general matrices is hard. For arbitrary matrices, there are three known easy cases: โ€–๐‘จโ€–2โ†’2, โ€–๐‘จโ€–qโ†’โˆž and โ€–๐‘จโ€–1โ†’p (see [22]).

On the hardness front, for arbitrary matrices, computing โ€–๐‘จโ€–qโ†’p when 1โ‰คp<qโ‰คโˆž is NP-hard [22]. For q=pโ‰ 1,2,โˆž, even if p and the matrix are assumed to have rational entries, it is NP-hard to compute โ€–๐‘จโ€–pโ†’p [12].

If we aim to find an approximation, for arbitrary matrices the problem is also hard to solve to arbitrary precision. For qโ‰ฅp>2 (and 2>qโ‰ฅp>1), assuming NPโˆ‰DTIMEโก(npolyโกlogโก(n)), the problem cannot be approximated to a factor 2(logโกn)1โˆ’ฮต, for any constant ฮต>0 [4]. [3] showed that under the Small-Set Expansion hypothesis, it is NP-hard to approximate โ€–๐‘จโ€–2โ†’p for arbitrary matrices ๐‘จ when pโ‰ฅ4. Finally, when 2<q<p<โˆž (and 1<q<p<2), if NPโˆ‰BPTIMEโก(2(logโกn)Oโข(1)), it is NP-hard to approximate โ€–๐‘จโ€–qโ†’p to a factor 2(logโกn)1โˆ’ฮต for any constant ฮต>0 [5].

For non-negative matrices, [6] used a power iteration-type algorithm to approximate p-norm of non-negative matrices without any bounds on the time of convergence. When qโ‰ฅpโ‰ฅ1, [4] provided the analysis and proved that the power iteration-type algorithm from [6] converges in time O~โข(nโข(n+m)2ฮตโขnnzโก(๐‘จ)). Under the same settings, [22] demonstrated that the problem is equivalent to maximizing a concave function (๐’™โ†ฆโ€–๐‘จโข๐’™1qโ€–p) over the unit simplex. When q<p, 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 โ„“โˆžโ†’1 norm of a symmetric diagonally dominant matrix (see [22]). Since MAXCUT is known to be NP-Had to approximate better than 16/17โ‰ˆ0.941 [13], and UG-Hard to approximate better than โ‰ˆ1/0.878 [16], this implies that there is no PTAS for the โ„“โˆžโ†’1 problem, even for symmetric diagonally dominant matrices.

Hence, approximating โ€–๐‘จโ€–โˆžโ†’1 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 ๐‘ณโˆˆโ„mร—m and ๐‘นโˆˆโ„nร—n with ยฑ1 entries on their diagonals such that ๐‘ณ๐‘จ๐‘น is non-negative [22]. Indeed, given ๐‘ณ,๐‘น, we have that for any ๐’™, โ€–๐‘จโข๐’™โ€–p=โ€–๐‘ณ๐‘จโข๐’™โ€–p. Hence, we can apply the algorithm on ๐‘ณ๐‘จ๐‘น and consider ๐‘นโข๐’™ where ๐’™ is a (1โˆ’ฮต)-approximation of โ€–๐‘ณ๐‘จ๐‘นโ€–qโ†’p.

An immediate application of approximating the โ„“p 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 โ„“p norm, for p>2. 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 p=2, 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 ๐‘จ), ๐’›T (resp. ๐‘จT) denotes the transpose of ๐’› (resp. of ๐‘จ). For an integer i, ๐‘จi denotes the ith row of ๐‘จ, and ๐‘จโˆ™,i the ith 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 โŸจ.,.โŸฉF denotes the Frobenius inner product. For pโ‰ฅ1 and a vector ๐’›, we denote by โ€–๐’›โ€–p the โ„“p-norm of ๐’› defined as

โ€–๐’›โ€–p:=(โˆ‘i|๐’›i|p)1p.

For q,pโ‰ฅ1 and a matrix ๐‘จ, we denote by โ€–๐‘จโ€–qโ†’p the โ„“qโ†’p-norm of ๐‘จ defined as

โ€–๐‘จโ€–qโ†’p:=max๐’›โ‰ ๐ŸŽโกโ€–๐‘จโข๐’›โ€–pโ€–๐’›โ€–q.

๐ŸŽ (resp. ๐Ÿ) denotes the vector with all entries equal to 0 (resp. 1). For a vector ๐’› and a real q, ๐’›q is the vector where the exponent is applied coordinate wise. For a matrix ๐‘จ, nnzโก(๐‘จ) denotes the number of nonzero elements in ๐‘จ. We denote by ฮ”n the non-negative simplex ฮ”n:={๐’›โˆˆโ„โ‰ฅ0n:โˆ‘i๐’›i=1}.

2.2 Convex Optimization

We would like to emphasize that the problem of maximizing fโข(๐’™)=โ€–๐‘จโข๐’™โ€–p on the unit โ„“q 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, qโ‰ฅpโ‰ฅ1, we can show that by composing f with a simple concave mapping from the unit simplex ฮ”n to the unit โ„“q 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 f is achieved by a vector in the positive orthant of the unit โ„“q sphere which we call Sq. Moreover, Sq is not a convex set. In fact, for two different vectors ๐’™,๐’šโˆˆSq, and 0<t<1, we have โ€–tโข๐’™+(1โˆ’t)โข๐’šโ€–q<1, hence we are โ€œlosingโ€ norm by taking the convex combination of two points. That means that even if f is convex, we have the potential to โ€œincreaseโ€ the value of f between any two points of Sq by taking a path in Sq. This new function has better chance to be concave than f since its value between two points of Sq is larger. One can remark that if ๐’–โˆˆฮ”n, then ๐’–1qโˆˆSq. The mapping g:๐’–โ†ฆ๐’–1q describes such a path since for any tโˆˆ[0,1] and ๐’–,๐’—โˆˆฮ”n, we have that tโขgโข(๐’–)+(1โˆ’t)โขgโข(๐’—)โˆˆSq. As expected, g is entry-wise concave and calculus gives that as long as qโ‰ฅp, ๐’–โ†ฆfโข(gโข(๐’–))=โ€–๐‘จโข๐’–1qโ€–p is concave. We give the proof in Subsectionย D.1.

Theorem 3 (Remark 3.4 from [22]).

Given ๐€โˆˆโ„โ‰ฅ0mร—n, and qโ‰ฅpโ‰ฅ1. We have f:๐ฑโ†ฆโ€–๐€โข๐ฑ1qโ€–p is concave on ฮ”n.

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 O~โข(nโ‹…nnzโก(๐‘จ)+n3). 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

fโข(๐’™)=โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–q.

In order to compute โ€–๐‘จโ€–qโ†’p, one needs to maximize f over โ„n. If we assume ๐‘จ is non-negative, then [4] provide an algorithm with running time O~โข(nโข(n+m)2ฮตโขnnzโก(๐‘จ)). To find the maximum of f, we can compute its gradient โˆ‡f. We have

โˆ‚fโˆ‚๐’™i=โ€–๐’™โ€–qโขโ€–๐‘จโข๐’™โ€–p1โˆ’pโขโŸจ๐‘จโˆ™,i,|๐‘จโข๐’™|pโˆ’1โŸฉโˆ’โ€–๐‘จโข๐’™โ€–pโขโ€–๐’™โ€–q1โˆ’qโข|๐’™i|qโˆ’1โ€–๐’™โ€–q2.

At the optimum, โˆ‡f=๐ŸŽ which can be written as

|๐’™|qโˆ’1=โ€–๐’™โ€–qqโ€–๐‘จโข๐’™โ€–ppโข๐‘จTโข|๐‘จโข๐’™|pโˆ’1.

Since ๐‘จ is non-negative, we know there is a maximum ๐’™ with non-negative coordinates. [4] then define the operator S:โ„โ‰ฅ0nโ†’โ„โ‰ฅ0n such that Sโข(๐’™)=(๐‘จTโข(๐‘จโข๐’™)pโˆ’1)1qโˆ’1. It is easy to show that if ๐’™ is such that Sโข(๐’™)โˆ๐’™, then ๐’™ is a critical point and โ€–๐‘จโ€–qโ†’p=โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–q. Consider the two potentials mโข(๐’™):=miniโกSโข(๐’™)i/๐’™i and Mโข(๐’™)=maxiโกSโข(๐’™)i/๐’™i, [4] showed the following lemma.

Lemma 4 (Lemma 3.3, [4]).

For any non-negative matrix ๐€ and positive vector ๐ฑ, we have

mโข(๐’™)qโˆ’1โ‰คโ€–๐‘จโข๐’™โ€–ppโ€–๐’™โ€–qqโ‰คโ€–๐‘จโ€–qโ†’ppโขโ€–๐’™โ€–qpโˆ’qโ‰คMโข(๐’™)qโˆ’1.

At optimum, mโข(๐’™โˆ—)qโˆ’1=Mโข(๐’™โˆ—)qโˆ’1=โ€–๐‘จโข๐’™โˆ—โ€–pp/โ€–๐’™โˆ—โ€–qq. Hence, the goal is to reduce the ratio Mโข(๐’™)/mโข(๐’™). [4] showed that iteratively applying S such that ๐’™(t+1)=Sโข(๐’™(t)) outputs ๐’™(T) a (1โˆ’ฮต)-approximation when T=O~โข(nโข(n+m)2ฮต). Hence, the total running time is O~โข(nโข(n+m)2ฮตโขnnzโก(๐‘จ)). In this paper, we provide a much simpler algorithm with running time O~โข(nnzโก(๐‘จ)/qโขฮต).

2.4 Lewis Weights Sampling

Cohen and Peng introduced in [7] a fast algorithm to compute a matrix ๐‘จโ€ฒ such that โ€–๐‘จโข๐’™โ€–pโ‰ˆ1+ฮตโ€–๐‘จโ€ฒโข๐’™โ€–p for any vector ๐’™. The algorithm computes ๐‘จโ€ฒ, a matrix containing few rescaled rows of ๐‘จ. The algorithm is of particular interest in our situation when ๐‘จโˆˆโ„mร—n is such that mโ‰ซn. For 1โ‰คpโ‰ค2, O~โข(nฮต2) rows are sufficient. Moreover, the cost of such an algorithm has only time complexity O~โข(nnzโก(๐‘จ)+nฯ‰) 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 ๐€โˆˆโ„mร—n and pโ‰ฅ1, one can compute ๐€โ€ฒ such that with probability over 1โˆ’ฮด, we have

โˆ€๐’™โˆˆโ„n,(1โˆ’ฮต)โขโ€–๐‘จโ€ฒโข๐’™โ€–pโ‰คโ€–๐‘จโข๐’™โ€–pโ‰ค(1+ฮต)โขโ€–๐‘จโ€ฒโข๐’™โ€–p.

in time O~โข(nnzโก(๐€)+nฯ‰+nmaxโก{1,p/2}ฮต2). Moreover, ๐€โ€ฒ has at most

Oโข(nmaxโก{1,p/2}ฮต2โข((logโกn)2โขlogโกm+logโก1ฮด))

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 ๐‘ถ~โข(๐’๐’’โข๐œบโขnnzโก(๐‘จ)) 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 Vโ‰ฅ0, we solve the approximate decision problem if we either provide ๐ฑ such that

โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต)โขV,

or certify that โ€–๐€โ€–qโ†’p<V.

We seek to maximize a function f of the form f:๐’™โ†ฆfnโข(๐’™)fdโข(๐’™) where both fn and fd are convex functions. Hence, we have

fnโข(๐’™+๐œน)โˆ’fnโข(๐’™)fdโข(๐’™+๐œน)โˆ’fdโข(๐’™)โ‰ฅโŸจโˆ‡fnโข(๐’™),๐œนโŸฉโŸจโˆ‡fdโข(๐’™+๐œน),๐œนโŸฉ.

If we take fd:๐’™โ†ฆโ€–๐’™โ€–q, we have โˆ‡fdโข(๐’™+๐œน)=(๐’™+๐œนโ€–๐’™+๐œนโ€–q)qโˆ’1 which is not optimal to upper bound by โˆ‡fโข(๐’™). Instead, we consider gn:๐’™โ†ฆโ€–๐‘จโข๐’™โ€–pq, gd:๐’™โ†ฆโ€–๐’™โ€–qq and we want to maximize g:๐’™โ†ฆ(โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–q)q. We now obtain a tighter bound

โ€–๐‘จโข(๐’™+๐œน)โ€–pqโˆ’โ€–๐‘จโข๐’™โ€–pqโ€–๐’™+๐œนโ€–qqโˆ’โ€–๐’™โ€–qqโ‰ฅโŸจโˆ‡gnโข(๐’™),๐œนโŸฉโŸจโˆ‡gdโข(๐’™+๐œน),๐œนโŸฉ=โ€–๐‘จโข๐’™โ€–pqโˆ’pโขโŸจ๐‘จTโข(๐‘จโข๐’™)pโˆ’1,๐œนโŸฉโŸจ(๐’™+๐œน)qโˆ’1,๐œนโŸฉ.

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 ๐€โˆˆโ„mร—n, ๐ฑ(0)โˆˆโ„n such that โ€–๐ฑ(0)โ€–q=1, 0<q,p, 0<ฮตโ‰ค2/q and Vโ‰ฅ0. Assume at each iteration we have

โ€–๐‘จโข๐’™(t+1)โ€–pqโˆ’โ€–๐‘จโข๐’™(t)โ€–pqโ€–๐’™(t+1)โ€–qqโˆ’โ€–๐’™(t)โ€–qqโ‰ฅ((1โˆ’ฮต2)โขV)q,

then, once โ€–๐ฑ(T)โ€–qqโ‰ฅ4qโขฮต, we have

โ€–๐‘จโข๐’™(T)โ€–pโ€–๐’™(T)โ€–qโ‰ฅ(1โˆ’ฮต)โขV.

With scaling updates, i.e. ๐’™(t+1)=๐’™(t)+๐œน(t) where ๐œนi(t)โˆˆ{0,ฮฑโข๐’™i(t)} we obtain the following inequality.

โ€–๐‘จโข๐’™(t+1)โ€–pqโˆ’โ€–๐‘จโข๐’™(t)โ€–pqโ€–๐’™(t+1)โ€–qqโˆ’โ€–๐’™(t)โ€–qqโ‰ฅ1(1+ฮฑ)qโˆ’1โขโ€–๐‘จโข๐’™(t)โ€–pqโˆ’pโขโŸจ๐‘จTโข(๐‘จโข๐’™(t))pโˆ’1,๐œน(t)โŸฉโŸจ(๐’™(t))qโˆ’1,๐œน(t)โŸฉ.

To simplify the notation, we define a vector of potentials ๐šฝโข(๐’™)โˆˆโ„n. Those potentials have nice properties, for instance, the direction of the gradient of g can be extracted from the values of the potentials. Indeed, they are made such that โˆ‡gโข(๐’™)=โˆ‡gdโข(๐’™)gdโข(๐’™)โˆ˜(๐šฝโข(๐’™)โˆ’gโข(๐’™)โข๐Ÿ). That means when the potential is larger than gโข(๐’™), the gradient is positive.

Definition 8.

Given a positive vector ๐ฑโˆˆโ„n, we define the potentials of ๐ฑ as the vector ๐šฝโข(๐ฑ)โˆˆโ„n such that

๐šฝโข(๐’™)k=โ€–๐‘จโข๐’™โ€–pqโˆ’pโขโŸจ๐‘จโˆ™,k,(๐‘จโข๐’™)pโˆ’1โŸฉ๐’™kqโˆ’1.

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 ๐€โˆˆโ„mร—n, ๐ฑ(0)โˆˆโ„n such that โ€–๐ฑ(0)โ€–q=1, 0<q,p, 0<ฮต<2/q and Vโ‰ฅ0, assume the following invariant is satisfied at each iteration

๐œนi(t)=ฮฑโข๐’™i(t)โŸน1(1+ฮฑ)qโˆ’1โข๐šฝโข(๐’™)iโ‰ฅ((1โˆ’ฮต2)โขV)q, (2)

then, once โ€–๐ฑ(T)โ€–qqโ‰ฅ4qโขฮต, we have

โ€–๐‘จโข๐’™(T)โ€–pโ€–๐’™(T)โ€–qโ‰ฅ(1โˆ’ฮต)โขV.

For the iterate to satisfy the invariant in 9, there must always be a potential larger than Vq. This is guaranteed by the following lemma from [4].

Lemma 10 (Lemma 3.3 from [4]).

Let ๐€ be a non-negative matrix and qโ‰ฅpโ‰ฅ1. Given ๐ฑ>๐ŸŽ, there is a coordinate k such that ๐šฝโข(๐ฑ)kโ‰ฅโ€–๐€โ€–qโ†’pq.

As long as Vโ‰คโ€–๐‘จโ€–qโ†’p, there always is a coordinate with potential above Vq. Setting ฮฑ=ฮต/2, at time t we scale coordinates with potential larger than Vq so that our iterate satisfies Invariant (2). At each iteration, a different coordinate may be scaled which means โ€–๐’™(T)โ€–q increases quite slowly. We only have the following lower bound โ€–๐’™(T)โ€–qqโ‰ฅ(1+ฮฑ)T/n, which requires T=O~โข(n/qโขฮต) 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 n. The challenge we had to deal before was that the โ„“q norm of ๐’™(t) was not increasing rapidly enough. To overcome this issue, we will modify the algorithm to ensure there is a coordinate k such that ๐’™k(t) is large. Notice that 10 guarantees that there is at least one coordinate with potential larger than Vq. The new invariant we would like to implement is that the set of coordinates with potential larger than Vq does not take any new elements. This requires to also scale coordinates with a potential slightly smaller than Vq 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 ๐€โˆˆโ„mร—n, qโ‰ฅpโ‰ฅ1 and a positive vector ๐ฑ, ฮฑ>0. Let ๐›… be such that ๐›…i=ฮฑโข๐ฑi or ๐›…i=0, we have

  1. 1.

    If ๐œนiโ‰ 0, then ๐šฝโข(๐’™+๐œน)iโ‰ค๐šฝโข(๐’™)i.

  2. 2.

    If ๐œนi=0, then ๐šฝโข(๐’™+๐œน)iโ‰ค(1+ฮฑ)qโˆ’1โข๐šฝโข(๐’™)i.

Proof.

No matter the value of ๐œนi, we have

๐šฝโข(๐’™+๐œน)i=โ€–๐‘จโข(๐’™+๐œน)โ€–pqโˆ’pโขโŸจ๐‘จโˆ™,i,(๐‘จโข(๐’™+๐œน))pโˆ’1โŸฉ(๐’™+๐œน)iqโˆ’1โ‰ค(1+ฮฑ)qโˆ’1โขโ€–๐‘จโข๐’™โ€–pqโˆ’pโขโŸจ๐‘จโˆ™,i,(๐‘จโข๐’™)pโˆ’1โŸฉ(๐’™+๐œน)iqโˆ’1.

If ๐œนi=ฮฑโข๐’™i, then ๐šฝโข(๐’™+๐œน)iโ‰ค๐šฝโข(๐’™)i, otherwise, ๐šฝโข(๐’™+๐œน)iโ‰ค(1+ฮฑ)qโˆ’1โข๐šฝโข(๐’™)i. โ—€

As mentioned earlier, if we consider a multiplicative scaling ๐’™(t+1)=๐’™(t)+๐œน(t) where ๐œนi(t)โ‰ 0 if and only if the potential of coordinate i 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 (1+ฮฑ)qโˆ’1โขฮธ is decreasing.

Proof.

Let C(t) be the set of coordinates with potential larger than (1+ฮฑ)qโˆ’1โขฮธ at time t. For a coordinate i that is not in C(t), we have that if it is scaled at time t, then by Lemma 11, ๐šฝโข(๐’™(t+1))iโ‰ค๐šฝโข(๐’™(t))i, hence i is not part of C(t+1). Moreover, if i is not scaled, then we know ๐šฝโข(๐’™(t))iโ‰คฮธ, hence using Lemma 11, ๐šฝโข(๐’™(t+1))โ‰ค(1+ฮฑ)qโˆ’1โขฮธ. Thus, iโˆ‰C(t+1). โ—€

We choose ฮฑ and the threshold such that the glass ceiling is equal to Vq. That means that no new coordinates can have their potential larger than Vq. 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 ((1โˆ’ฮต/4)โขV)q with ฮฑ=ฮต/8, we ensure that Invariant (2) is satisfied since

1(1+ฮต8)qโˆ’1โข((1โˆ’ฮต4)โขV)qโ‰ฅ((1โˆ’ฮต2)โขV)q.

Moreover, using Corollary 12, we ensure that the set of coordinates with potential larger than (1+ฮต/8)qโˆ’1โข(1โˆ’ฮต/4)qโขVq<Vq is decreasing. We also know that at the end of the algorithm at least one coordinate has potential larger than Vq using 10. Hence, those coordinates were scaled at each iteration and are equal to (1+ฮฑ)Tโข๐’™(0). This gives the following theorem which we prove in Subsectionย E.2.

Theorem 13.

Given a non-negative matrix ๐€โˆˆโ„mร—n, a positive real 0<ฮตโ‰ค1/2โขq, two reals qโ‰ฅpโ‰ฅ1, and a guess V on โ€–๐€โ€–qโ†’p, Algorithmย 1 recovers ๐ฑ such that

โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต)โขV

or certifies infeasibility in time

Oโข(1qโขฮตโขlogโก(nqโขฮต)โข(nnzโก(๐‘จ)+mโขlogโกp)).
Algorithm 1 Approximating โ„“qโ†’p-norm of non-negative matrices.

The algorithm can be parallelized since computing the potentials ๐šฝโข(๐’™) requires computing two matrix-vector multiplications. In the PRAM model, matrix-vector multiplication runs in Oโข(n2/P) time on a CRCW PRAM and Oโข(n2/P+logโกn) on an EREW PRAM with P processors. With P=ฮ˜โข(n2) processors, the depth becomes O~โข(1), hence we give as a corollary the running time obtained if we perform those operations in parallel.

Corollary 14.

Given a non-negative matrix ๐€โˆˆโ„mร—n, a positive real 0<ฮตโ‰ค1/2โขq, two reals qโ‰ฅpโ‰ฅ1, and a guess V on โ€–๐€โ€–qโ†’p, it is possible to compute ๐ฑ such that โ€–๐€โข๐ฑโ€–p/โ€–๐ฑโ€–qโ‰ฅ(1โˆ’ฮต)โขโ€–๐€โ€–qโ†’p in parallel time O~โข(1qโขฮต) with total work O~โข(nnzโก(๐€)qโขฮต).

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 ๐€โˆˆโ„mร—n, a positive real 0<ฮตโ‰ค1/2โขq, two reals qโ‰ฅpโ‰ฅ1, and a guess V on โ€–๐€โ€–qโ†’p, by first preconditioning the input using Theoremย 5, Algorithmย 1 returns ๐ฑ such that

โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต)โขV

or certifies infeasibility in time

O~โข(rqโขฮต3โขnmaxโก{p2,1}+nnzโก(๐‘จ)+nฯ‰).

Where r 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. ๐“p row sampling by lewis weights. CoRR, abs/1412.0588, 2014. arXiv:1412.0588.
  • [8] Alina Ene and Adrian Vladu. Improved convergence for โ„“1 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 pโ‰ 1,2,โˆž, 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 oโข(eโขpโขsโขiโขlโขoโขnโˆ’3) 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 V, 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 ฮบ:=maxi,jโก๐‘จi,j, we have for any qโ‰ฅpโ‰ฅ1, ฮบโ‰คโ€–๐‘จโ€–qโ†’pโ‰คฮบโขn1โˆ’1qโขm1p. Given a guess value V and a precision ฮต, Theoremย 13 gives that either โ€–๐‘จโ€–qโ†’p is in [(1โˆ’ฮต)โขV,+โˆž] or [0,V]. We initialize our search interval as [ฮบ,n1โˆ’1qโขm1pโขฮบ].

Given a search interval [L,U], we let V=LโขU and ฮต~:=minโก{12โขq,(UL)16โˆ’1}. We run Algorithmย 1 with ฮต=ฮต~ and V as the guess value. If the algorithm returns a vector ๐’™ such that โ€–๐‘จโข๐’™โ€–p/โ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต~)โขV, we update L=Vโข(1โˆ’ฮต~), otherwise we update U=V. We repeat this process until U/Lโ‰ค1/(1โˆ’ฮต4). When this happens, we chose V=L and use precision ฮต/41+ฮต/4. Since we maintain that L is feasible and U is infeasible, we obtain ๐’™ such that

โ€–๐‘จโข๐’™โ€–pโ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต/41+ฮต/4)โขLโ‰ฅ1โˆ’ฮต41+ฮต4โขUโ‰ฅ(1โˆ’ฮต)โขโ€–๐‘จโ€–qโ†’p.

We now analyze the cost of the search. While UL>(1+12โขq)6, we invoke the algorithm with precision 12โขq and logโกU/L is divided by a constant fraction. Hence, this process is repeated at most Oโข(logโกlogโก(n1โˆ’1qโขm1p)) times. Moreover, when ULโ‰ค(1+12โขq)6, we use precision expโก((logโกU/L)/6)โˆ’1=ฮ˜โข(logโกU/L). Since the running time of an iteration is proportional to 1ฮต, the total running time of this part of the search is dominated by the last one with precision ฮต~=Oโข(ฮต). Hence, the total running time is Oโข(๐’ฏโข(12โขq)โขlogโกlogโก(n1โˆ’1qโขm1p)+๐’ฏโข(ฮต)) 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 G=(V,E) an unweighted graph with n vertices and m edges and ๐‘ a collection of routing requests ๐‘=โŸจRi=(si,ti,di,ki)โŸฉ. Each routing request Ri consists of a source-target pair (si,ti), a non-negative amount of traffic di and a type of routing kiโˆˆโŸฆ1,KโŸง. One can think of ki 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 eโˆˆE,๐‘ฎe,k denotes the amount of flow of type k that is sent along e. Each type of routing can induce different load on the same edge. Given a function l:โ„Kโ†’โ„, we can define the load Lโข(e) of the edge

Lโข(e)=lโข([๐‘ฎe,1,โ‹ฏ,๐‘ฎe,K]).

The cost is calculated by aggregating the edges via a function agg:โ„mโ†’โ„

cost=aggโก([Lโข(e1),โ‹ฏ,Lโข(em)]).

This problem captures a lot of problems, for l=โˆ‘ and L=max for instance, this captures the congestion of the framework.

Instead of using a collection of routing requests ๐‘, we consider a demand matrix ๐‘ซ with nโข(nโˆ’1) rows and K 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 i and column k is the non-negative amount of traffic of type k that needs to be routed from the source-target pair of the i-th line. We denote ๐’Ÿ the set of all demand matrices222Hence ๐’Ÿ={๐‘ซโˆˆโ„โ‰ฅ0nโข(nโˆ’1)ร—K:๐‘ซโ‰ ๐ŸŽ}. 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 (i,j) we route according to a precomputed unit non-negative flow ๐’‡(i,j)โˆˆโ„m from i to j. Those flows can be concatenated to form a non-negative matrix ๐‘จโˆˆโ„mร—nโข(nโˆ’1). Given a demand matrix ๐‘ซโˆˆ๐’Ÿ, we call ๐‘ญ the flow induced by routing the demand ๐‘ซ with the oblivious routing ๐‘จ. This flow matrix has k columns and m rows. Each one of its column is obtained by multiplying ๐‘จ with a column of ๐‘ซ: ๐‘ญโˆ™,i=๐‘จ๐‘ซโˆ™,i. For the sake of simplicity, we write ๐‘ญ=๐‘จโข(๐‘ซ). This flow matrix induces the load Lโข(e)=lโข(๐‘จโข(๐‘ซ)e) on edge e. We call ๐‘จ a linear oblivious routing. Let P2n be the set of oriented pairs of vertices and P3n 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.

โˆ€eโˆˆE,โˆ€(i,j)โˆˆP2n: ๐‘จe,(i,j) โ‰ฅ0
โˆ€(i,j)โˆˆP2n: โˆ‘eโˆˆOUTโก(i)๐‘จe,(i,j)โˆ’โˆ‘eโˆˆINโก(i)๐‘จe,(i,j) =1
โˆ€(k,i,j)โˆˆP3n: โˆ‘eโˆˆOUTโก(k)๐‘จe,(i,j)โˆ’โˆ‘eโˆˆINโก(k)๐‘จe,(i,j) =0

We call โ„›lin the set of all linear oblivious routings in the graph G. A linear oblivious routing ๐€ on a demand ๐ƒ creates a flow ๐€โข(๐ƒ) with cost

costโก(๐‘จโข(๐‘ซ))=aggโก(Lโข(lโข(๐‘จโข(๐‘ซ)))).

In this report, we focus on the case where cost is a monotone norm โˆฅ.โˆฅ from โ„mร—K to โ„.

B.1.3 Optimal Flows and Competitive Ratio

A multicommodity flow ๐‘ญ induces a cost aggโก(Lโข(lโข(๐‘ญ))). The optimal cost of a demand matrix is OPTโก(๐‘ซ):=minRโˆˆโ„›linโกcostโก(Rโข๐‘ซ). The competitive ratio of the routing ๐‘จ is its worst performance against OPT.

Definition 17.

The competitive ratio of ๐€ is defined as

Competitive-Ratioโก(๐‘จ)=max๐‘ซโˆˆ๐’Ÿโกcostโก(๐‘จโข(๐‘ซ))OPTโก(๐‘ซ).

Since OPT is linear, we may rescale the cost function to ensure that if costโก(๐‘ซ)โ‰ค1, then maxi,jโก๐‘ซi,jโ‰ค1. 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

Competitive-Ratioโก(๐‘จ)=max๐‘ซโˆˆOPTโ‰ค1โกโ€–๐‘จโข(๐‘ซ)โ€–

where OPTโ‰ค1:={๐ƒโˆˆ๐’Ÿ:OPTโก(๐ƒ)โ‰ค1}.

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 G=(V,E) with n vertices and m edges. We follow the same transformation as of [2]. For any undirected edge (u,v), [2] consider the directed gadget u,v,x,y with 5 directed edges. The five directed edges are e1=(u,x),e2=(v,x),e3=(y,u),e4=(y,v) and e5=(x,y). We call e5 the replacing edge of (u,v). 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 โ„“p-norm, and the load function is unknown. In that case, linear routings with Oโข(logโกn) competitive ratio exists [19, 20, 9, 4]. When p is not 1,2 or โˆž, the running time is polynomial with an extremely large exponent. The analysis made by [4] requires precision ฮต smaller than mโˆ’90 for approximating the p-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:

โˆ€๐‘จโˆˆโ„›lin,Competitive-Ratioโก(๐‘จโˆ—)โ‰คCompetitive-Ratioโก(๐‘จ).

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 G=(V,E) and any cost function that is a monotone norm on the load vector, it is possible to compute a linear oblivious routing ๐€ such that

Competitive-Ratioโก(๐‘จ)โ‰คmin๐‘จโกCompetitive-Ratioโก(๐‘จ)+ฮต

in time O~โข(n6โขm3โขlogโกnฮต) with high probability in n.

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 ๐’ณ,๐’ดโІโ„mร—nโข(nโˆ’1) such that โ„›linโІ๐’ณ and given ๐€^โˆˆ๐’ณ and ๐^โˆˆ๐’ด satisfying

max๐‘ธโˆˆ๐’ดโŸจ๐‘จ^,๐‘ธโŸฉFโˆ’min๐‘จโˆˆ๐’ณโŸจ๐‘จ,๐‘ธ^โŸฉFโ‰คฮต,

we can construct in polynomial time a linear oblivious routing ๐€~ such that

Competitive-Ratioโก(๐‘จ~)โ‰คmin๐‘จโกCompetitive-Ratioโก(๐‘จ)+ฮต.

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 ๐’ณโŠ‚Bโข(0,R)โŠ‚โ„a and ๐’ดโŠ‚Bโข(0,R)โŠ‚โ„b such that both ๐’ณ and ๐’ด contain a ball of radius r. Let Hโข(๐ฑ,๐ฒ):๐’ณร—๐’ดโ†’โ„ be an L-Lipschitz function that is convex in ๐ฑ and concave in ๐ฒ. For any 0<ฮตโ‰ค12, we can find (๐ฑ^,๐ฒ^) such that

max๐’šโˆˆ๐’ดโกHโข(๐’™^,๐’š)โˆ’min๐’™โˆˆ๐’ณโกHโข(๐’™,๐’š^)โ‰คฮตโขLโขr

in time

Oโข((a+b)3โขlogโก(a+bฮตโขRr)+(a+b)โข๐’ฏโขlogโก(a+bฮตโขRr))

with high probability in a+b where ๐’ฏ is the cost of computing sub-gradient โˆ‡f.

C.1 Relaxing the Problem

C.1.1 Relaxing the Set of Linear Routings

Notice that โ„›lin as defined in Definition 16 is convex, however it does not contain a ball of radius r for r>0. Hence, we relax the problem to solving on ๐’ณ where
๐’ณ:={๐‘จโˆˆโ„mร—nโข(nโˆ’1):โˆ€eโˆˆE,(i,j)โˆˆVร—V๐‘จe,(iโขj)โ‰ฅ0โˆงโˆ€eโˆˆE,(i,j)โˆˆVร—V๐‘จe,(iโขj)โ‰ค2โˆงโˆ€(i,j)โˆˆVร—Vโˆ‘eโˆˆOUTโก(i)๐‘จe,(iโขj)โˆ’โˆ‘eโˆˆINโก(i)๐‘จe,(iโขj)โ‰ฅ1โˆงโˆ€(k,i,j)โˆˆVร—Vร—Vโˆ‘eโˆˆOUTโก(k)๐‘จe,(iโขj)โˆ’โˆ‘eโˆˆINโก(k)๐‘จe,(iโขj)โ‰ฅ0}.

We have that โ„›linโІ๐’ณ, and ๐’ณ contains a ball of radius of r=mโˆ’Oโข(1) and is inside Bโข(0,2). The following claim is a result of โˆฅ.โˆฅ being monotone.

Claim 22.

Given a demand matrix ๐‘ซ, we have

min๐‘จโˆˆโ„›linโกโ€–๐‘จ๐‘ซโ€–=min๐‘จโˆˆ๐’ณโกโ€–๐‘จ๐‘ซโ€–.

C.1.2 Relaxing the Set of Demand Vectors

Let OPTโ‰ค1 be the set of demand matrices ๐‘ซ such that min๐‘จโˆˆโ„›linโกโ€–๐‘จ๐‘ซโ€–โ‰ค1. Using Claim 22, we have that OPTโ‰ค1 can also be defined as the set of demand matrices ๐‘ซ such that min๐‘จโˆˆ๐’ณโกโ€–๐‘จ๐‘ซโ€–โ‰ค1. Since ๐’ณ only contains non-negative matrices, we have with Sโˆ— the set of non-negative matrices with โ„mร—K coordinates and dual norm less than 1 that โˆฅ๐‘จ๐‘ซโˆฅ=max๐‘ฎโˆˆSโˆ—โŸจ๐‘จ,๐‘ฎ๐‘ซTโŸฉF. Let ๐’ด1:={๐‘ฎ๐‘ซT:๐‘ฎโˆˆSโˆ—,๐‘ซโˆˆOPTโ‰ค1}, we want to find min๐‘จโˆˆ๐’ณmax๐‘ธโˆˆ๐’ด1โŸจ๐‘จ,๐‘ธโŸฉF. However, ๐’ด1 is not convex, we relax it to ๐’ด=convโก(๐’ด1). The following claim is a consequence of ๐‘ธโ†ฆโŸจ๐‘จ,๐‘ธโŸฉF being linear.

Claim 23.

Given a matrix ๐‘จ from ๐’ณ, we have

max๐‘ธโˆˆ๐’ด1โŸจ๐‘จ,๐‘ธโŸฉF=max๐‘ธโˆˆ๐’ดโŸจ๐‘จ,๐‘ธโŸฉF.

C.1.3 Solving the Relaxed Problem

Lemma 24.

Assume โˆฅ.โˆฅ is a monotonic norm, let โˆฅ.โˆฅโˆ— be its dual norm. Define
๐’ณ:={๐€โˆˆโ„mร—nโข(nโˆ’1):โˆ€eโˆˆE,(i,j)โˆˆVร—V๐€e,(iโขj)โ‰ฅ0โˆงโˆ€eโˆˆE,(i,j)โˆˆVร—V๐€e,(iโขj)โ‰ค2โˆงโˆ€(i,j)โˆˆVร—Vโˆ‘eโˆˆOUTโก(i)๐€e,(iโขj)โˆ’โˆ‘eโˆˆINโก(i)๐€e,(iโขj)โ‰ฅ1โˆงโˆ€(k,i,j)โˆˆVร—Vร—Vโˆ‘eโˆˆOUTโก(k)๐€e,(iโขj)โˆ’โˆ‘eโˆˆINโก(k)๐€e,(iโขj)โ‰ฅ0},

and

๐’ด:=convโก{๐‘ฎ๐‘ซT:๐‘ซโˆˆOPTโ‰ค1,๐‘ฎโˆˆSโˆ—}.

Given ๐€^โˆˆ๐’ณ and ๐^โˆˆ๐’ด such that

max๐‘ธโˆˆ๐’ดโŸจ๐‘จ^,๐‘ธโŸฉFโˆ’min๐‘จโˆˆ๐’ณโŸจ๐‘จ,๐‘ธ^โŸฉFโ‰คฮต,

we can construct in polynomial time a linear oblivious routing ๐€~ such that

Competitive-Ratioโก(๐‘จ~)โ‰คmin๐‘จโกCompetitive-Ratioโก(๐‘จ)+ฮต.

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, min๐‘จโˆˆ๐’ณโŸจ๐‘จ,๐‘ธ^โŸฉFโ‰คCompetitive-Ratio(๐‘จโˆ—) since the minimizer over ๐’ณ is in โ„›lin. Hence, we have Competitive-Ratioโก(๐‘จ~)โ‰คCompetitive-Ratioโก(๐‘จโˆ—)+ฮต. 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 ๐ณโˆˆโ„โ‰ฅ0n, and qโ‰ฅpโ‰ฅ1, we have g๐ณ:๐ฎโ†ฆโŸจ๐ณ,๐ฎ1/qโŸฉp is concave on โ„โ‰ฅ0n.

Proof of Lemma 25.

Given a non-negative vector ๐’›, let f๐’›:๐’™โ†ฆโŸจ๐’›,๐’™1/qโŸฉq. Let ๐’–,๐’—โˆˆโ„โ‰ฅ0n and tโˆˆ[0,1]. Define ๐’™i:=tโข๐’›iqโข๐’–i and ๐’ši:=(1โˆ’t)โข๐’›iqโข๐’—i. We have

f๐’›โข(tโข๐’–+(1โˆ’t)โข๐’—) =(โˆ‘i=1n๐’›iโข(tโข๐’–i+(1โˆ’t)โข๐’—i)1/q)q
=(โˆ‘i=1n(tโข๐’›iqโข๐’–i+(1โˆ’t)โข๐’›iqโข๐’—i)1/q)q
=(โˆ‘i=1n(๐’™i+๐’ši)1/q)q
โ‰ฅ(โˆ‘i=1n๐’™i1/q)q+(โˆ‘i=1n๐’ši1/q)q
=tโข(โˆ‘i=1n๐’›iโข๐’–i1/q)q+(1โˆ’t)โข(โˆ‘i=1n๐’›iโข๐’—i1/q)q
=tโขf๐’›โข(๐’–)+(1โˆ’t)โขf๐’›โข(๐’—).

Where the inequality follows from Minkowskiโ€™s inequality. Moreover, since qโ‰ฅp, xโ†ฆxq/p is concave and non-decreasing, hence g๐’›=f๐’›q/p is concave. โ—€

We are now ready to prove Theoremย 3.

Proof.

Let g:๐’™โ†ฆโ€–๐‘จโข๐’™1/qโ€–pp. Let ๐’›i be the ith row of ๐‘จ. We have gโข(๐’™)=โˆ‘i=1mg๐’›iโข(๐’™). Hence, by Lemma 25, g is concave. Moreover, since xโ†ฆxp is concave and non-decreasing, we have that ๐’™โ†ฆgโข(๐’™)p=โ€–๐‘จโข๐’™1/qโ€–p is concave. โ—€

Appendix E Proofs from Sectionย 3

E.1 Proof of 7

Proof.

We have

โ€–๐‘จโข๐’™(T)โ€–qqโ€–๐’™(T)โ€–qq =โ€–๐‘จโข๐’™(0)โ€–pq+โˆ‘t=0Tโˆ’1โ€–๐‘จโข๐’™(t+1)โ€–pqโˆ’โ€–๐‘จโข๐’™(t)โ€–pqโ€–๐’™(T)โ€–qq
โ‰ฅโ€–๐‘จโข๐’™(0)โ€–pqโ€–๐’™(T)โ€–qq+((1โˆ’ฮต2)โขV)qโขโˆ‘t=0Tโˆ’1โ€–๐’™(t+1)โ€–qqโˆ’โ€–๐’™(t)โ€–qqโ€–๐’™(T)โ€–qq
โ‰ฅ((1โˆ’ฮต2)โขV)qโข(1โˆ’โ€–๐’™(0)โ€–qqโ€–๐’™(T)โ€–qq)
=((1โˆ’ฮต2)โขV)qโข(1โˆ’1โ€–๐’™(T)โ€–qq).

Hence, once 1โˆ’1โ€–๐’™(T)โ€–qqโ‰ฅ(1โˆ’ฮต/2)q, we have

โ€–๐‘จโข๐’™(T)โ€–pโ€–๐’™(T)โ€–qโ‰ฅ(1โˆ’ฮต)โขV.

Since ฮตโขqโ‰ค2, we have (1โˆ’ฮต/2)qโ‰ค1โˆ’ฮตโขq/4, hence it is sufficient to have โ€–๐’™(T)โ€–qqโ‰ฅ4/qโขฮต. โ—€

E.2 Proof of Theoremย 13

Proof.

First, if the algorithm outputs โ€œinfeasibleโ€, we know by 10 that it means V>โ€–๐‘จโ€–qโ†’p. Hence, assuming the algorithm does not return โ€œinfeasibleโ€, we will prove it outputs ๐’™ such that โ€–๐‘จโข๐’™โ€–p/โ€–๐’™โ€–qโ‰ฅ(1โˆ’ฮต)โขV.

First, we prove that the invariant of 9 is satisfied. At iteration t, if coordinate i is scaled, then

1(1+ฮฑ)qโˆ’1โข๐šฝโข(๐’™(t))iโ‰ฅ1(1+ฮต8)qโˆ’1โข((1โˆ’ฮต4)โขV)qโ‰ฅ((1โˆ’ฮต2)โขV)q.

Moreover, using Corollary 12, we know that the set of coordinates with potential larger than ((1โˆ’ฮต4)โขV)qโข(1+ฮต8)qโˆ’1<Vq is decreasing. However, using 10, we know at least one coordinate has potential larger than Vq at iteration T. Hence, this coordinate always had potential larger than Vq. Assume k is such a coordinate, we have

โ€–๐’™(T)โ€–qqโ‰ฅ(๐’™k(T))q=(1+ฮฑ)qโขTโขnโˆ’1.

With Tโ‰ฅ8qโขฮตโขlogโก4โขnqโขฮต, we have (1+ฮฑ)qโขTโขnโˆ’1โ‰ฅ4qโขฮต which implies

โ€–๐‘จโข๐’™(T)โ€–pโ€–๐’™(T)โ€–qโ‰ฅ(1โˆ’ฮต)โขV

using 9. โ—€

E.3 Proof of Corollary 15

Proof.

Using Theoremย 5, with ฮต~=ฮต/4, we obtain a matrix ๐‘จโ€ฒ such that (1โˆ’ฮต~)โขโ€–๐‘จโ€ฒโข๐’™โ€–pโ‰คโ€–๐‘จโข๐’™โ€–pโ‰ค(1+ฮต~)โขโ€–๐‘จโ€ฒโข๐’™โ€–p. Computing this matrix cost O~โข(nnzโก(๐‘จ)+nฯ‰). 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 โ€–๐‘จโ€ฒโข๐’™โ€–pโ‰ฅ(1โˆ’ฮต~)โขโ€–๐‘จโ€ฒโ€–qโ†’p. We can bound โ€–๐‘จโข๐’™โ€–p by โ€–๐‘จโ€ฒโ€–qโ†’p.

โ€–๐‘จโข๐’™โ€–pโ‰ฅ(1โˆ’ฮต~)โขโ€–๐‘จโ€ฒโข๐’™โ€–pโ‰ฅ(1โˆ’ฮต~)2โขโ€–๐‘จโ€ฒโ€–qโ†’p.

Moreover, we can bound โ€–๐‘จโ€ฒโ€–qโ†’p by โ€–๐‘จโ€–qโ†’p.

โ€–๐‘จโ€ฒโ€–qโ†’p=maxโ€–๐’šโ€–qโ‰ค1โกโ€–๐‘จโ€ฒโข๐’šโ€–pโ‰ฅmaxโ€–๐’šโ€–qโ‰ค1โก11+ฮต~โขโ€–๐‘จโข๐’šโ€–p=11+ฮต~โขโ€–๐‘จโ€–qโ†’p.

Hence, โ€–๐‘จโข๐’™โ€–pโ‰ฅ(1โˆ’ฮต~)21+ฮต~โขโ€–๐‘จโ€–qโ†’pโ‰ฅ(1โˆ’ฮต)โขโ€–๐‘จโ€–qโ†’p.

Moreover, ๐‘จโ€ฒ has O~โข(nmaxโก{1,p/2}ฮต2) rescaled rows of ๐‘จ, hence nnzโก(๐‘จโ€ฒ)โ‰คO~โข(rฮต2โขnmaxโก{1,p/2}) where r is the maximum number of nonzero in a row of ๐‘จ. โ—€