Shallower ReLU Network Representations via Exact Linear Algebra
Anonymous authors
ICLR 2027
Abstract. We study the number of hidden layers required by ReLU networks to represent piecewise-linear functions exactly, focusing on the maximum function. This problem has recently received significant attention in both the ML and TCS literature. We prove that is exactly representable with two hidden layers for every . Previously, the largest known arity was [Bakaev, Brunck, Hertrich, Stade, Yehudayoff, STOC '26]. We obtain our constructions through an exact computer-assisted search within a space of candidate solutions. After a symmetry reduction, we obtain a finite system of linear equations over such that any solution yields a valid representation of the maximum function.
The resulting constructions have a structured first hidden layer, which enables recursive substitution into networks with more hidden layers. This yields an exact ReLU representation of with at most hidden layers. Consequently, every continuous piecewise-linear function on admits an exact representation with at most hidden layers. In particular, two hidden layers suffice for . These results improve upon Bakaev, Brunck, Hertrich, Stade, and Yehudayoff [STOC '26], who proved analogous logarithmic bounds with base three.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 4 reviews · OpenReview
Updated 25 Nov 2026, 10:38 UTC.
- Rating
- 4/4
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
This paper studies an important question in expressivity: whether there is a depth separation in the expressivity of finite-width ReLU networks. It provides a upper bound for the number of hidden layers required to express a -dimensional CPWL function, significantly improving upon the previous upper bound, although a lower bound better than 2 remains unaddressed.
Strengths
The studied problem is long-open and this work presents a solid progress on the upper bound. No major proof mistake is identified during review. The approach is well-described and readable, the idea of using symmetry to reduce candidates is elegant, and the proof cleverly combines computer-aided solving in small dimensions with theoretical argument to scale to large dimensions.
Weaknesses
The main weakness is a still open lower bound, which does not present a reason for rejection, since it is commonly believed to be substantially harder. The existing result already gounds its importance.
Questions for the authors
It seems there is no specific reason to stop at and perhaps the restricted candidate family excludes too many possible solutions. Is there any potential future direction that authors may believe to be helpful, in particular to resolve the conjecture proposed in this work?
2 comments
Dear authors,
Thanks for the reply. I have also seen the new work on establishing lack of depth separation. I am happy to have rated this positively to support this work.
- Rating
- 2/4(+1)
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper studies the number of hidden layers required by ReLU networks to represent continuous piecewise-linear functions exactly, if we are given no limitation on the width of the network.
-
The paper proves that is exactly representable with two hidden layers for every . Previously, the largest known arity was 5 (Bakaev et al., 2026).
-
The paper gives an exact ReLU representation of with at most hidden layers, improving the previous logarithmic bound from base three to base six. This also improves the depth bound for general continuous piecewise-linear functions.
-
The paper finds these constructions through symmetry reduction and exact linear algebra, reducing the search to a finite system of linear equations over . The previous construction used geometric arguments.
For validation, the authors use computer programs to verify that their networks compute the maximum correctly for up to 12 inputs. They also give worked examples for five and six inputs.
Strengths
The mathematical arguments appear sound. The authors also provide proofs and separate programs to verify the constructions. This gives me confidence that the claimed depth bounds are valid.
Weaknesses
-
The paper strengthens existing representation guarantees without establishing a practical benefit. It extends the two-hidden-layer construction from to , improves the logarithmic depth bound from base three to base six, and separates rational from finite-decimal weights. These advances leave the main practical gap unchanged: exact representability still provides little guidance for designing, training, or running efficient networks. Even when judged purely as a theoretical study of exact expressivity, the results do not change the asymptotic depth bound, resolve the general two-hidden-layer representability problem, or provide a unified structural explanation for the discovered constructions. The paper does not show what these stronger guarantees enable in practice. I therefore find the impact of pushing these bounds further too limited to justify acceptance.
-
The paper reduces depth without adequately examining the cost in network size. The direct two-layer construction has an unoptimized factorial upper bound on width (lines 897–924). The widths and parameter counts of the recursive construction are not quantified or compared with earlier constructions. The paper therefore leaves unclear how much additional size is needed to use fewer layers. Its depth improvement establishes no corresponding improvement in computational efficiency.
-
The search for new two-hidden-layer constructions is difficult to scale. The authors could not complete the case because it exceeded their available computing resources (lines 473–474). They also found no common construction explaining the solutions across input sizes (lines 475–478). Extending the two-layer results therefore still depends on separate, expensive searches. This limits the reach of the proposed discovery method.
Questions for the authors
-
Earlier work already guarantees exact representation (lines 039 and 078–083). The new general bound improves the leading constant (lines 105–107). What concrete benefit does this stronger guarantee provide for network design, training, or inference? Please clarify what follows from the current results beyond reducing the number of hidden layers under unrestricted width.
-
Appendix E gives an unoptimized width bound for the direct two-layer construction (lines 897–924). What are the layer widths and total parameter counts after the recursive substitution in Section 4 (lines 399–424)? How do they compare with the binary-tree and Bakaev et al. constructions for the same number of inputs? This comparison would clarify the computational cost of the depth reduction.
2 comments
We thank the reviewer for the careful assessment and raising concrete questions about the size of the recursive construction and comparisons with existing approaches.
-
Significance of the results
Our results concern exact expressivity and do not directly imply improvements in training or inference. Beyond improving depth bounds, we show that the set of functions representable by two-hidden-layer ReLU networks depends on the class of allowed weights, even when considering relatively unrestricted classes like decimal fractions with arbitrary precision. For example, previous work showed that exact representation of requires at least three layers with decimal fractions, whereas we establish a two-hidden-layer network with rational coefficients that are not decimal fractions.
The motivation for studying these questions is theoretical and guided by the general question of what role depth plays in the expressivity of ReLU networks. Such questions have received considerable and sustained attention in the TCS and ML communities. For example, recent works at ICLR (Arora et al., 2018, Haase et al., 2023, Averkov et al., 2025 [Spotlight]), NeurIPS (Hertrich et al., 2021, Grillo et al., 2025 [Oral]), STOC (Bakaev et al., 2026) and COLT (Safran, 2026) have investigated the role of depth in expressivity of ReLU networks, particularly for exact representations of the maximum function.
In particular, even fundamental and seemingly simple questions, such as whether can be represented with two-hidden-layer ReLU networks, remained open before our work despite considerable previous efforts. Resolving these fundamental questions provides valuable insights into the expressive power of ReLU networks. Our results also establish that the earlier geometric two-hidden-layer construction for is not an isolated lower-dimensional exception, but indicates that two-layer networks possess greater expressive power than previously known.
-
Width and parameter counts
Thank you for the suggestions for giving explicit upper bounds on the number of nonzero weights and the width of the construction obtained by the recursive composition of the smaller networks in the paper. Both are at most quadratic in the arity, once we fix the network that acts as the base case of the recursive construction. We stated this as Proposition 4.2 after the construction and added a proof in Appendix E.2. We also added a comparison of depth, width, and nonzero parameter counts with the binary-tree and Bakaev et al. constructions in Table 3.
Hi, thanks for answering the question!
I feel like I still don’t understand the significance of this research. I have not done this kind of theory research and thus unable to find this work interesting (which is my fault).
I have being thinking about how to rate this paper for very long time. It is solid work and it is clear authors have being working on this hard… I still can’t convince myself to raise the score to 3, but I will raise my score to 2. Good luck!
- Rating
- 4/4(+1)
- Confidence
- 4/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
The manuscript studies the minimum hidden depth required for exact representation of continuous piecewise-linear (CPWL) functions by ReLU networks of unrestricted width. It constructs rational two-hidden-layer representations of the maximum of up to twelve inputs through permutation symmetry and exact linear algebra. The first-layer structure enables recursion, yielding at most hidden layers for and for general CPWL functions on . Two hidden layers suffice through dimension eleven. The construction also separates rational from decimal-fraction weights.
Strengths
- The finite-arity construction improves a universal depth bound for an entire function class.
- The search produces exact rational identities and separates verification from discovery.
- The structured recursion and rational-versus-decimal separation give the result significance beyond the computed examples.
Weaknesses
-
Explain the limit of the two-hidden-layer construction and the prospect of extending it to all dimensions (Section 5 and Appendix D).
The universal two-hidden-layer guarantee reaches , since the certificates reach and . Thus corresponds to the unresolved . Section 5 attributes this case to resource limits; a more concrete diagnosis would help. At , Corollary D.2 forces to increase from 5 to at least 6, while Table 2 already reports about 12.3 million candidate orbits and 1.5 million reduced directions for . Which stage becomes prohibitive: candidate enumeration, feature expansion, matrix storage, or exact solution?
Section 5 also acknowledges the restricted ansatz and the absence of a common construction. Building on that discussion, is there structural evidence for solvability at , or at some larger , as grows? The substitution theorem handles all dimensions by increasing depth, so it cannot establish universal depth two. Please clarify what further idea would be needed to preserve two layers. A qualitative explanation would suffice; I am not asking for resolution of Conjecture 1.4.
-
Explain the depth–width tradeoff and parameter costs for finite-element representations (Theorem 4.1, Corollary 1.3, and Appendix E).
For the certified two-hidden-layer cases, Appendix E already gives widths at most and . Please supplement these with a bound on nonzero weights and biases, and propagate the estimates through the recursion and Wang–Sun decomposition. Coarse upper bounds would suffice. For a general CPWL target, specify the dependence on its number of affine pieces or decomposition terms, in addition to dimension. Please distinguish layer widths, sparse parameter counts, and the number of entries in a fully connected architecture.
For a linear finite-element function , sequential and parallel evaluation of the local basis contributions lead to different architectures. For fixed dimension and uniformly bounded local mesh complexity, serializing bounded-size hat networks gives depth and width; parallel evaluation gives depth independent of and width. Both can have nonzero parameters. Please discuss this tradeoff in relation to the mesh-based constructions of He–Li–Xu–Zheng, “ReLU Deep Neural Networks and Linear Finite Elements” (2020), Sections 3 and 5, and Longo–Opschoor–Disch–Schwab–Zech, “De Rham compatible Deep Neural Network FEM” (2023), Proposition 5.7.
Applying the present certificates to each local hat before parallelization should also give a coarse linear-in- size bound at two hidden layers for , but potentially with very large constants. Please make the local decomposition cost, certificate-size dependence, and mesh assumptions explicit. How do the resulting widths and sparse parameter counts compare with these existing FEM representations? A coarse estimate and discussion would suffice to clarify the cost accompanying the depth reduction.
-
State the certificate equations explicitly after reduction (Section 3.2 and the proof of Theorem 1.1).
The initial and describe the raw permutation expansion. As written, raw equation (5) cannot hold for : formula (17) places every raw in the span of and , which excludes . For the printed coefficients, the raw linear combination is ; the reduced combination is correctly .
Remark 3.1 instructs simplification before assembly, and I verified the printed reduced identities. Please introduce reduced quantities and and use their equations in the proof and verifier description. This focused formal correction makes the central certification step precise.
-
Clarify the certificate and search metadata (Section 3.4, Table 2, and Appendix F).
The separate Python and Rust verifiers are valuable. Please report verification time and peak memory for and explicitly confirm both reduced-hinge cancellation and the exact linear vector . Specify the candidate restrictions used for each Table 2 row and their relation to Remark 3.2. The printed examples use repeated or diagonal pairs, so their relationship to the restricted certificates also merits clarification.
Questions for the authors
-
Regarding Conjecture 1.4, do you expect the current candidate family, allowing to grow, to yield two-hidden-layer representations for every ?
-
What mathematical difficulty remains beyond the computational limits encountered at ?
3 comments
Respone (Part 1)
We thank the reviewer for the positive assessment and the detailed suggestions for improving the manuscript.
Critical weaknesses
-
After submission, Brunck, Hertrich, Rueß, Stade and Yehudayoff resolved our conjecture for all , building on several ideas from this paper (see the answer to your first question below). Whether our candidate family admits representations at for all remains open.
For , the lower bound requires at least . Even in the restricted setting of Remark 3.2 there are candidate orbits and reduced nonlinear directions (see revised Table 2). Storing the full dense coefficient matrix at eight bytes per entry would require
Storing the full dense matrix, let alone solving the system of linear equations, seems prohibitive with the computational resources available to us.
The counts in Table 2 suggest that the number of matrix entries grows by roughly three orders of magnitude whenever increases by one, i.e., . Even if solving the case became feasible, we would expect another increase of this scale at , making further computations difficult without substantial new algorithmic or structural insights.
We don't have structural evidence that solvability at extends to larger . However, it suffices for every tested , namely , so we expect this to continue for larger . Using substitution to retain two layers for all seems out of reach. To show that there are representations within our candidate family at for all , one probably needs to find a structural insight that helps prove that the system of linear equations has a solution instead of computing one for every .
-
We thank you for the suggestions to add upper bounds on the number of neurons, (nonzero) parameters and the width of the resulting recursive constructions. For a fixed base network, we obtain quadratic upper bounds on the number of neurons, nonzero parameters and width, and a quartic upper bound on the number of all parameters. We also compare those numbers to the existing construction in Table 3.
We thank the reviewer for highlighting connections to finite-element representations. Let and assume each hat function can be extended to a CPWL function on with at most Wang–Sun terms. Write for the widths of our two-hidden-layer network for . Applying these networks in parallel gives a representation of with two hidden layers, widths for , and at most
nonzero parameters. For fixed and , those are linear in . Sequential evaluation gives depth, width and nonzero parameters. The constants can be very large, so these estimates do not show that our networks are competitive with specialized FEM constructions. Our result does extend the dimension from to where representation of CPWL hat functions with two-hidden-layer networks is known.
-
We agree that the reductions were only applied implicitly and we used the same notation for the unreduced and reduced equations. We made this more explicit in the revised manuscript by introducing separate notation for the reduced system of linear equations.
-
The Rust program took 15:32 min to verify the solution on an author's laptop using 8 cores (AMD Ryzen 7 4700U) and had a peak memory usage of 16.34GB. For , verification is almost immediate, taking less than a second. The Python implementation is only useful up to , as it is simpler and less efficient. Both explicitly compute the reduced forms and add up all linear contributions and all nonlinear terms. It is checked that the linear part equals and all nonlinear terms cancel. Table 2 now gives counts for both the unrestricted family and the restricted family of Remark 3.2. For the examples we have chosen solutions with repetitions, as they use fewer orbits than the ones we found in the setting of Remark 3.2 and therefore keep the examples short and easier to verify by hand.
Response (Part 2)
Questions for authors
-
Solvability within the candidate family
Yes, we expect that the family leads to a solution for all , when using . Our conjecture was resolved a few weeks after submission in arXiv:2610.28587 by Brunck, Hertrich, Rueß, Stade and Yehudayoff. Their combinatorial proof builds on several ideas from this paper, including summing over permutations in the symmetric group and using a first layer of pairwise comparisons. We believe our results provided a useful step towards resolving the conjecture for all . In particular, they showed that the two-hidden-layer representation of was not a low-dimensional exception. The generating segments of their parallelepipeds also correspond to edges of a tree, connecting their construction to the restricted family in this paper. The stronger result that that is established in this paper for , is not covered by the general proof to the best of our knowledge.
-
Remaining mathematical difficulty
The remaining mathematical difficulty is to understand why solutions within our candidate family exist at for the tested values of , and whether this extends to all . To the best of our knowledge, the subsequent general two-hidden-layer result does not establish this stronger statement. A structural argument proving solvability of the reduced linear systems for arbitrary would remove the need for separate computations at each arity.
I am very happy to see that the authors also noticed the work by Brunck, Hertrich, Rueß, Stade and Yehudayoff. Furthermore, the authors' comments about the relation between their work and the work by b Brunck et al. are useful and resolve most of my concerns about the novelty and significance. I would like to suggest that the authors mention the work by Brunck et al. and add their comments to clarify the meaning of this work in the following revision version. Consequently, I would like to raise the final score, as this work is an important step in solving the minimal depth problems in representing CPWL functions by ReLU DNNs.
- Rating
- 3/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper studies how many hidden layers a ReLU network needs to represent a maximum function exactly when its width is unrestricted. The construction combines functions built from pairwise maxima so that the nonlinear terms cancel. Symmetry reduces the search for suitable coefficients to a finite system of linear equations, which the authors solve using exact rational arithmetic. The resulting certificates can be verified independently of the search.
Strengths
The paper extends the known range of maximum functions representable with two hidden layers from 5 inputs to 12. Because the first layer uses pairwise maxima, the construction can also be reused to handle larger inputs with fewer additional layers. This improves the general logarithmic depth bound from base three to base six and shows that two hidden layers suffice for every CPWL function in dimensions up to eleven.
Weaknesses
There is an apparent mismatch between the additional restrictions in Remark 3.2 and the supplied certificates, as detailed below. I would like this clarified, although I do not currently view it as a reason for rejection.
Questions for the authors
Clarification of Remark 3.2: The remark states that solutions exist without diagonal pairs, repeated pairs, pairs shared by and , or cycles within either edge set. The proof of Theorem 1.1 also says that these restrictions were used for . However, the supplied certificate includes diagonal pairs and , and the second term includes a triangle on vertices .
Are there separate certificates satisfying all the restrictions in Remark 3.2? Please clarify how the supplied files relate to that remark and the proof of Theorem 1.1. If the restricted constructions have not been verified, please clarify which statements need revision.
2 comments
We thank the anonymous reviewer for the feedback and the positive stance on the submission.
Thank you for finding the discrepancy between the claim about the restricted family and the certificates in the supplementary material. The certificates in the original supplementary material used slightly modified search code that was also allowed to use (some) elements outside the restricted setting. The claim that the restricted family allows for a solution for all is still true and we added corresponding certificates for that only use elements of this restricted family to the supplementary material. The original certificates are now in certificates_unrestricted/ and the additional restricted certificates are in certificates_restricted/.
Thank you for the clarification. I will maintain my original score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for the positive review.
There is no mathematical reason to stop at n=12. As the size of the linear system of equations undergoes a combinatorial explosion, for n≥13 we weren't able to find a solution due to computational limits. Using more time and more computational resources, together with some algorithmic improvements, it might be feasible to push this limit a bit, but we would only expect very small incremental increases. You are right that the candidate family may exclude valid representations. We need a candidate family that is expressive enough while keeping the search computationally feasible.
We point out that our conjecture has been resolved for all n after the submission by Brunck, Hertrich, Rueß, Stade and Yehudayoff in arXiv:2610.28587. Their combinatorial proof builds on several ideas from this paper and we believe our intermediate result provided a useful step towards resolving the conjecture for all n. In particular, our paper established that the earlier discovery of a two-hidden-layer construction for max5 by Bakaev et al. was not a low-dimensional exception.