Two linear programs suffice for polynomial-time optimization
Version 1 / Dec 04, 2026 / CC BY 4.0
Abstract
We show that under mild assumptions a continuous piecewise linear (CPWL) function that can be evaluated in polynomial time can also be expressed with a ReLU network of polynomial size and through a polynomial-size virtual extended formulation.
More precisely, for families of positively homogeneous CPWL functions whose linear coefficients are integers of polynomial encoding size in , the following statements are equivalent:
- (i) Evaluating on integer inputs is in . That is, for each , there exist polynomial-size Boolean circuits evaluating assuming standard binary encoding of integers.
- (ii) For each there exists a polynomial-size ReLU network with integer weights of polynomial encoding size that computes exactly on all real inputs in .
- (iii) For each there exists a polynomial-size circuit that computes exactly on all real inputs in .
- (iv) For each there exists a polynomial-size virtual extended formulation representing . That is, for each , there are rational polytopes in halfspace representation and linear maps into , all of polynomial encoding size, such that for all .
An analogous equivalence holds for CPWL functions that are not positively homogeneous.
Moreover, the uniform version of the equivalence is also true. That is, if evaluating on integer inputs is in , then the objects in (ii) to (iv) can be constructed in polynomial time.
One consequence from this is that for every family of 0-1 polytopes over which linear optimization can be done in polynomial time, the linear optimization problem over can be represented as a difference of two linear programs of polynomial size, showing that every such family has polynomial virtual extension complexity. Hence, virtual extended formulations are significantly more powerful than ordinary extended formulations, which require exponential size for some polynomial-time solvable problems such as matching.
In particular, proving superpolynomial lower bounds on the virtual extension complexity of any 0-1 polytope family corresponding to an -hard problem would imply .
Provenance statement
References
- S. Arora and B. Barak. Computational Complexity: A Modern Approach . Cambridge University Press, 2009.
- S. Barez. Exact polynomial-size ReLU networks for maximum-weight matching. hexagon:2611.01434v1 (https://hexagonmath.org/2611.01434v1), 2026.hexagon
- A. E. Black, C. Hertrich, S. Kober, and G. Loho. Two linear programs are better than one. arXiv:2610.15909 (https://arxiv.org/abs/2610.15909), 2026.arXiv
- J. Fearnley, P. Goldberg, A. Hollender, and R. Savani. The complexity of gradient descent: CLS PPAD PLS. Journal of the ACM , 70(1), 1-74, 2022. doi:10.1145/3568163 (https://doi.org/10.1145/3568163)DOI
- J. Fearnley, P. Goldberg, A. Hollender, and R. Savani. The complexity of computing KKT solutions of quadratic programs. Journal of the ACM , 72(5), 1-48, 2025. doi:10.1145/3745017 (https://doi.org/10.1145/3745017)DOI
- A. Frank and É. Tardos. An application of simultaneous Diophantine approximation in combinatorial optimization. Combinatorica , 7(1):49--65, 1987. doi:10.1007/BF02579200 (https://doi.org/10.1007/BF02579200).DOI
- C. Hertrich and G. Loho. Neural networks and (virtual) extended formulations. arXiv:2411.03006 (https://arxiv.org/abs/2411.03006), 2024.arXiv
- C. Hertrich and M. Stargalla. Tropical circuits with scalar multiplication gates. arXiv:2607.11540 (https://arxiv.org/abs/2607.11540), 2026.arXiv
- R. Kannan and A. Bachem. Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM Journal on Computing , 8(4):499--507, 1979. doi:10.1137/0208040 (https://doi.org/10.1137/0208040).DOI
- A. K. Lenstra, H. W. Lenstra, Jr., and L. Lovász. Factoring polynomials with rational coefficients. Mathematische Annalen , 261:515--534, 1982. doi:10.1007/BF01457454 (https://doi.org/10.1007/BF01457454).DOI
Show all 13 referencesShow fewer references
- T. Rothvoß. The matching polytope has exponential extension complexity. Journal of the ACM , 64(6):Article 41, 2017. doi:10.1145/3127497 (https://doi.org/10.1145/3127497).DOI
- A. Schrijver. Theory of Linear and Integer Programming . Wiley, 1986.
- A. Storjohann and G. Labahn. Asymptotically fast computation of Hermite normal forms of integer matrices. In Proceedings of ISSAC , pages 259--266, 1996.
Version history
- v1 · 32 pagesSubmitted by Moritz StargallaInitial depositCurrentDec 04, 2026