On the algorithmic construction of deep ReLU networks

Daan Huybrechs
6/23/2025
cs.LGmath.NA

No official code found. Best implementation: daanhb/AlgorithmicNeuralNets.jl (1 star, MIT, last commit 2025-06-25).

Abstract

It is difficult to describe in mathematical terms what a neural network trained on data represents. On the other hand, there is a growing mathematical understanding of what neural networks are in principle capable of representing. Feedforward neural networks using the ReLU activation function represent continuous and piecewise linear functions and can approximate many others. The study of their expressivity addresses the question: which ones? Contributing to the available answers, we take the perspective of a neural network as an algorithm. In this analogy, a neural network is programmed constructively, rather than trained from data. An interesting example is a sorting algorithm: we explicitly construct a neural network that sorts its inputs exactly, not approximately, and that, in a sense, has optimal computational complexity if the input dimension is large. Such constructed networks may have several billion parameters. We construct and analyze several other examples, both existing and new. We find that, in these examples, neural networks as algorithms are typically recursive and parallel. Compared to conventional algorithms, ReLU networks are restricted by having to be continuous. Moreover, the depth of recursion is limited by the depth of the network, with deep networks having superior properties over shallow ones.

View on arXivView PDF

Code Implementations(1)

MIT

A package for the construction of neural networks from algorithms

10JuliaMay 1, 20251 years agoMIT

Similar Papers

Cite this paper

@article{huybrechs2025algorithmic,
  title  = {On the algorithmic construction of deep ReLU networks},
  author = {Daan Huybrechs},
  year   = {2025},
  eprint = {2506.19104},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.19104v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.19104.svg)](https://codeofpaper.com/paper/2506.19104)

Discussion