cs.CC — Computational Complexity
Exact polynomial-size ReLU networks for maximum-weight matching
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.