Exact polynomial-size ReLU networks for maximum-weight matching
Version 1 / Nov 30, 2026 / CC BY 4.0
Abstract
We prove that the value of a maximum-weight perfect matching, as a function of arbitrary real edge weights, is computed exactly by ReLU neural networks of polynomial size. The networks are constructed by a deterministic polynomial-time algorithm, have integer weights of polynomial bit length, use no biases, and are exact at every real input, including all ties. This holds for general graphs, for bipartite graphs (the assignment problem, i.e. the tropical permanent), and for maximum-weight matchings that need not be perfect. It answers the question of Black, Hertrich, Kober and Loho whether the support function of the matching polytope, or even of the Birkhoff polytope, has polynomial-size neural networks, and Problem 3 of Section 6.5 of Jukna's book on tropical circuits, which asks for polynomial-size (max,+,-)-circuits for the assignment problem. As a consequence the perfect matching polytope of K_n has polynomial virtual extension complexity, while its extension complexity is 2^{Omega(n)} by Rothvoss's theorem. The matching statement is a special case of a general compiler: every Boolean circuit of size S that maximises linear objectives with polynomially many bits over a finite set F of integer vectors with entries bounded by B is converted into a ReLU network of size polynomial in S, the dimension and log B that computes the support function of F exactly on all real inputs.
Provenance statement
Tools used
- OpenAI
- ChatGPTVersion 6.2 SOL
References
- A. E. Black, C. Hertrich, S. Kober, G. Loho. Two linear programs are better than one. arXiv:2610.15909, 2026.arXiv
- J. Edmonds. Maximum matching and a polyhedron with -vertices. J.\ Res.\ Nat.\ Bur.\ Standards Sect. B 69 (1965), 125--130.
- A. Frank, É. Tardos. An application of simultaneous Diophantine approximation in combinatorial optimization. Combinatorica 7 (1987), 49--65.
- M. Grötschel, L. Lovász, A. Schrijver. Geometric Algorithms and Combinatorial Optimization . Springer, 1988.
- C. Hertrich, G. Loho. Neural networks and (virtual) extended formulations. arXiv:2411.03006.arXiv
- C. Hertrich, L. Sering. ReLU neural networks of polynomial size for exact maximum flow computation. arXiv:2102.06635.arXiv
- C. Hertrich, M. Stargalla. Tropical circuits with scalar multiplication gates. arXiv:2607.11540, 2026.arXiv
- M. Jerrum, M. Snir. Some exact complexity results for straight-line computations over semirings. J.\ ACM 29 (1982), 874--897.
- S. Jukna. Tropical Circuit Complexity . Springer, 2023.
- R. Kannan, A. Bachem. Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM J.\ Comput. 8 (1979), 499--507.
Show all 13 referencesShow fewer references
- H. W. Kuhn. The Hungarian method for the assignment problem. Naval Res.\ Logist.\ Quart. 2 (1955), 83--97.
- A. K. Lenstra, H. W. Lenstra, L. Lovász. Factoring polynomials with rational coefficients. Math.\ Ann. 261 (1982), 515--534.
- T. Rothvoss. The matching polytope has exponential extension complexity. J.\ ACM 64 (2017), Art. 41.
Version history
- v1 · 11 pagesSubmitted by Sayed BarezInitial depositCurrentNov 30, 2026