The Complexity of ReLU Network Synthesis from a Parameter Multiset

Dimitrios Myrisiotis

TL;DR

This paper explores the computational complexity of "synthesis from an inventory": building a ReLU neural network using a pre-defined multiset of rational numbers as weights and biases. The authors prove that even with a tiny budget of 1 to 4 neurons, finding a valid architecture and parameter placement to match a target behavior is remarkably hard, often reaching the second level of the polynomial hierarchy ($\Sigma_2^{\mathsf P}$) or even the counting-based class $\mathsf{NP}^{\mathsf{PP}}$.

What Problem Does This Paper Address?

In standard deep learning, we fix the network architecture and optimize the parameters. This paper flips the script: What if the parameters are fixed, and we have to find the architecture?

Imagine you are given a "Lego set" of specific numbers (an inventory) and a target function you want to replicate. You are allowed to choose the graph of the network (within a certain neuron cap) and decide which number from your inventory goes on which edge or bias. The paper asks how hard it is to determine if a valid configuration exists.

This "synthesis" problem is fundamental to understanding the relationship between numerical resources and functional representation. The authors investigate several target specifications:

  • Exact matching: Does the network behave exactly like a Boolean circuit or another ReLU network?
  • Uniform approximation: Can the network stay within a small error tolerance across a whole domain?
  • Population risk: Does the network achieve a low average squared error under specific probability distributions (like Gaussian or Uniform)?

Methods

The authors use structural complexity theory to map out the hardness of these problems. Their primary tool is the polynomial-time reduction, where they transform known hard problems into network synthesis instances. Key techniques include:

  • Blocking Exact Subset Sums: They develop a "restricted blocker" problem to force the network into a specific functional form during the reduction, ensuring that only the intended parameter placements can satisfy the target.
  • Formal Identities: By treating parameters as formal variables in Laurent polynomials, they can separate different numerical scales (e.g., very large "gains" vs. small "corrections") to prove that certain architectures are impossible for a given inventory.
  • Geometric Triangulation: To analyze continuous population risk, they use the fact that ReLU networks are piecewise-affine, allowing them to integrate squared errors over complex polytopes.
  • Parity Blocks: They use parity-based constructions to "hide" information from networks with limited neuron budgets, proving that even simple networks face massive computational hurdles when trying to minimize average loss.

Datasets

As a theoretical work in computational complexity, the paper does not use empirical datasets like ImageNet. Instead, it uses compact specifications as inputs:

  • Boolean Circuits: Used as targets for Boolean-input synthesis.
  • ReLU Networks: Used as targets for real-valued input synthesis.
  • Probability Distributions: The authors evaluate "risk" under the uniform distribution on the Boolean cube, the continuous uniform distribution on the unit cube, and the standard Gaussian distribution.

Key Insights and Ideas

  • Small is Hard: One of the most striking findings is that "hardness" doesn't require "deep" or "wide" networks. Most of the completeness results hold for networks with just 2 to 4 computational neurons.
  • Architecture vs. Parameters: The paper highlights a "numerical baseline." Even matching just two labeled examples is $\mathsf{NP}$-complete. Moving to universal requirements (matching a function everywhere) pushes the complexity even higher.
  • The Inventory Rule Matters: The authors distinguish between "at-most-once" use (you can leave numbers in the box) and "exactly-once" use (you must use every number provided). Both rules lead to high complexity, but the specific "neuron cap" required for hardness can change.
  • Gap vs. Exactness: In population risk problems, the complexity remains high ($\mathsf{NP}^{\mathsf{PP}}$-complete) even if you allow for a small "accuracy gap" between a "yes" and a "no" instance.

Key Results

The paper provides a comprehensive classification of synthesis complexity, summarized in the table below:

Table 1: Synthesis from a parameter multiset. Caps count the affine output. Both inventory rules are included unless stated oth- erwise.

Some highlights include:

  • Boolean-circuit equality: Proved to be $\Sigma_2^{\mathsf P}$-complete with a cap of only four neurons.
  • Uniform approximation on a box: Even with no hidden neurons (a simple affine map) and an inventory of identical numbers, the problem is $\Sigma_2^{\mathsf P}$-complete.
  • Population Risk: Deciding if a network can achieve a specific squared loss is $\mathsf{NP}^{\mathsf{PP}}$-complete for Boolean, Uniform, and Gaussian inputs.

Limitations and Future Work

The authors identify several "Open Problems" that remain unsolved:

  1. Unrestricted Cap: What happens to the complexity of full-space ReLU synthesis when the neuron cap is not a small constant but grows with the input size?
  2. Clipped Risk: The paper focuses on squared loss, which can be unbounded. They suggest investigating "clipped risk" (where loss is capped at 1), which might be complete for the class $\mathsf{MA}$ (Mersenne-Adleman).
  3. Decidability of Gaussian Risk: While they provide lower bounds for Gaussian risk, they note that an exact algorithm for deciding equality with a positive threshold is not yet known.

Ultimately, this work shows that the "simple" act of arranging a set of numbers into a functional neural network is a computational minefield, suggesting that our standard training methods (which avoid this discrete search) are successfully sidestepping an incredibly difficult combinatorial problem.

Summary updated

Abstract

We ask how hard it is to build a neural network when its parameter values are given in advance. An instance supplies a multiset of rational numbers, a target behavior, and a bound on the number of neurons, output included. The question is whether one can choose the graph of a ReLU network within the bound, and place the numbers on its edges and biases so that it meets the target. This separates the numbers from the architecture; permutation training instead fixes the hidden units and only rearranges the output weights. Matching two labeled examples exactly is already $\mathsf{NP}$-complete; we ask what changes when the target must hold on every input or on average. Agreeing with a Boolean circuit on every Boolean input is $Σ_2^{\mathsf P}$-complete, already for four neurons. Agreeing with a given ReLU network on every real input lies in $\mathsf{DP}$ for every fixed neuron bound and is $\mathsf{DP}$-complete for three neurons. Approximating a ReLU network on the unit cube within absolute error one everywhere is $Σ_2^{\mathsf P}$-complete, even with no hidden neurons and all numbers equal and positive. Deciding whether some network has expected squared loss at most a threshold is $\mathsf{NP}^{\mathsf{PP}}$-complete for uniform Boolean inputs. For uniform inputs on the unit cube and for standard Gaussian inputs with a positive threshold, the same holds for two neurons when a positive risk gap, given in binary and possibly exponentially small, separates yes from no instances. Without a gap, the cube version is complete for guessing a polynomial-length string, then comparing a sum of exponentially many rationals with a threshold, all computable in polynomial time from the input and the guess. Since the graph is chosen too, the reductions must rule out every other network built from the same numbers.
BibTeX
@misc{myrisiotis2026complexity,
  author = {Dimitrios Myrisiotis},
  title = {{The Complexity of ReLU Network Synthesis from a Parameter Multiset}},
  year = {2026},
  eprint = {2611.04074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04074},
}
Figure