Integral Multipliers and Arithmetic Obstructions for Two-Hidden-Layer ReLU Maxima

Pengcheng ChengarXiv 2026

It’s late, you’ve had a long day, and the last thing you want is a dry lecture on algebraic topology. But imagine for a moment that you’re trying to build a neural network using only LEGO bricks—rigid, discrete units. In the world of AI, this is the "integer weight" problem.

We know that if we use smooth, infinitely divisible numbers (reals or rationals), a simple two-hidden-layer ReLU network can represent any continuous "origami-like" (piecewise-linear) function. But the moment you restrict those weights to integers, the math gets stubborn. Some functions that were easy suddenly require more layers.

This paper asks a clever "workaround" question: If we stick to just two layers and integer weights, we might not be able to represent the maximum of $n$ numbers exactly—but can we represent a multiple of it? And what is the smallest "multiplier" that makes the math work?

TL;DR

For a two-hidden-layer ReLU network with integer weights, you can’t always represent the maximum of a set of numbers exactly. This paper proves that for 6 inputs, you need to output at least $2 \times \text{max}(x_1, \dots, x_6)$, and for 7 inputs, the magic multiplier is either 2 or 6. It uses high-dimensional geometry and algebraic topology to find the "obstructions" that prevent a perfect integer fit.

What Problem Does This Paper Address?

In deep learning theory, we often assume weights can be any real number. However, in the real world—especially when deploying models on low-power hardware (quantization)—we care about integer weights.

Previous research showed that integer-weight networks have a "depth hierarchy": some functions simply require more layers than their floating-point counterparts. The authors here investigate the Maximum function ($M_n$). They want to find the "arithmetic depth exponent"—the smallest integer $m$ such that $m \cdot M_n$ has a two-layer integer representation.

The gap they are filling is the transition from 6 to 7 inputs, where the underlying geometry shifts from being relatively simple to involving complex topological "knots" (homological obstructions) that are much harder to untangle.

Methods

The authors treat ReLU gates not just as functions, but as geometric operations on polytopes (high-dimensional shapes).

  • Integral Cubical Fillings: They model the network's behavior as a way of "filling" a geometric space with cubes. If the cubes don't fit perfectly using integer steps, you have an "obstruction."
  • Coning: This is a technique to translate geometric identities into network architectures. Think of it as projecting a shadow of a higher-dimensional shape to create the "folds" of the ReLU function.
  • Čech Spectral Sequences: This is the heavy machinery. They use algebraic topology to track how these geometric pieces fit together across different dimensions, specifically looking for "torsion"—mathematical "glitches" that appear when you try to work with specific prime numbers (like 2 and 3).
  • Exact Verification: Because the math is so complex, they wrote programs to provide "certificates"—computational proof that their massive integer identities (some with over 60,000 terms) actually hold true.

Datasets

This is a theoretical math paper, so there are no "training sets" like ImageNet. Instead, the "data" consists of:

  • Lattice Polytopes: The geometric targets the network tries to hit.
  • Dictionary of Constructions: They evaluate their results against known network architectures like "Caterpillar Nets" and specific identities from previous literature (e.g., Schroeder and Myrisiotis).
  • max7_arithmetic_revised.zip: A provided archive containing the source code and "witnesses" (the specific integer weights) used to verify their theorems.

Key Insights and Ideas

  • The "Prime" Suspects: The difficulty of representing a function is tied to prime numbers. For 6 inputs, the "obstruction" is purely 2-local (related to the number 2). For 7 inputs, a new obstruction related to the number 3 appears.
  • Multipliers as "Get Out of Jail Free" Cards: By allowing an output multiplier (like 2 or 6), you effectively "smooth over" the arithmetic misalignments that occur when you're forced to use integers.
  • Geometry is Destiny: The paper shows that the "depth" of a network is essentially a measure of how many "proper faces" of a high-dimensional simplex you need to combine to reach your target shape.

Key Results

  • The 6-Input Max ($M_6$): The smallest multiplier is exactly 2. They constructed a network for $2M_6$ to prove it.
  • The 7-Input Max ($M_7$): The multiplier is narrowed down to 2 or 6. They successfully built a network for $6M_7$, but the math suggests $2M_7$ might be possible if a specific topological class "vanishes."
  • Complexity: The construction for $6M_7$ is no small feat—it involves an integral cycle with 17,217 nonzero terms and a filling with over 3.7 million signed boundary faces.

Limitations and Future Work

  • The "3" Mystery: The authors haven't yet determined if the multiplier for 7 inputs is 2 or 6. This depends on whether a specific "global dyadic obstruction" exists, which remains an open question in the field.
  • Width vs. Depth: While they prove two layers are enough (with a multiplier), the "width" (number of neurons) required is enormous. Future work could look into optimizing this width.
  • Beyond Max: The techniques here are specialized for the maximum function. Applying this "integral multiplier" logic to more general neural network tasks is still on the horizon.

Final Thought: Next time you're frustrated that your quantized model isn't as accurate as the full-precision version, remember this paper. Even for something as simple as finding the maximum of seven numbers, the jump from "decimals" to "integers" forces us into the deep waters of high-dimensional topology!

Summary updated

Abstract

We study exact representations of maximum functions by ReLU networks with two hidden layers and integer parameters. The least positive output multiplier is two for the six-input maximum, and either two or six for the seven-input maximum. We obtain these bounds from integral cubical fillings and a coefficient-preserving passage from polytope identities to networks. For the coordinate-facet complex of the six-simplex, we compute a coning index of six over the integers and three after inverting two, allowing arbitrary integral directions within each facet. A class in the homology of the unrestricted kernel complex characterizes the remaining seven-input problem; its vanishing is equivalent to an integral filling of a fixed target. We also construct a finite character that separates rational from three-local representability in a dictionary containing two known constructions and all pairs of edge-disjoint three-edge forests. This obstruction permits nonsymmetric coefficients and is confined to the specified dictionary. Control of lower-dimensional remainders yields a sufficient criterion in the top-dimensional quotient. Exact certificates and verification programs accompany the finite calculations.
BibTeX
@misc{cheng2026integral,
  author = {Pengcheng Cheng},
  title = {{Integral Multipliers and Arithmetic Obstructions for Two-Hidden-Layer ReLU Maxima}},
  year = {2026},
  eprint = {2611.27018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27018},
}
Figure