[Paper Review] Network size and weights size for memorization with two-layers neural networks
This paper introduces a novel complex-valued recombination method for two-layer ReLU networks that achieves approximate memorization of n data points in ℝ^d with O(n/(dε)) neurons and nearly optimal total weight Õ(√n), significantly improving upon the suboptimal weight scaling of Baum and Neural Tangent Kernel (NTK) networks. The method leverages harmonic analysis and complex embeddings to enable efficient, low-complexity memorization under mild data dispersion assumptions.
In 1988, Eric B. Baum showed that two-layers neural networks with threshold activation function can perfectly memorize the binary labels of $n$ points in general position in $\mathbb{R}^d$ using only $\ulcorner n/d \urcorner$ neurons. We observe that with ReLU networks, using four times as many neurons one can fit arbitrary real labels. Moreover, for approximate memorization up to error $ε$, the neural tangent kernel can also memorize with only $O\left(\frac{n}{d} \cdot \log(1/ε) ight)$ neurons (assuming that the data is well dispersed too). We show however that these constructions give rise to networks where the magnitude of the neurons' weights are far from optimal. In contrast we propose a new training procedure for ReLU networks, based on complex (as opposed to real) recombination of the neurons, for which we show approximate memorization with both $O\left(\frac{n}{d} \cdot \frac{\log(1/ε)}ε ight)$ neurons, as well as nearly-optimal size of the weights.
Motivation & Objective
- To address the suboptimal weight scaling in existing two-layer ReLU networks for memorization, particularly in high-dimensional settings.
- To develop a construction that achieves both minimal network size and minimal total weight for approximate memorization of arbitrary real labels.
- To overcome the limitations of threshold-based (Baum) and kernel-based (NTK) approaches, which scale poorly in weight magnitude despite efficient neuron counts.
- To establish a new theoretical framework using complex-valued neuron recombination and harmonic analysis to achieve near-optimal generalization complexity.
Proposed method
- Introduces a harmonic network construction based on complex-valued recombination of ReLU neurons, where each neuron is parameterized by a complex weight vector w + iw′.
- Employs a representation of real-valued functions via the real part of complex analytic functions φ(w·x + iw′·x), enabling polynomial approximation through complex embeddings.
- Uses a randomization scheme over indices j ∈ {0, ..., m} to stochastically combine ReLU activations of the form Sψ((w + jw′)·x − B), where S ∈ {−1, 1} and B is a bias drawn from a distribution related to the second derivative of a compactly supported function.
- Applies a bump function χ_M to localize the approximation to a compact region, ensuring that the resulting function approximates the target within ε error.
- Derives a continuous dependence of the approximation coefficients on the complex parameter z, ensuring smoothness and stability of the construction.
- Leverages a boosting-style iterative procedure to build the full network by successively adding neurons that align with the residual error, guided by inner product control between the current function and the target labels.
Experimental results
Research questions
- RQ1Can two-layer ReLU networks achieve approximate memorization with both near-optimal number of neurons and near-optimal total weight under mild data assumptions?
- RQ2How does the total weight of a memorizing network scale with respect to n, d, and ε, and can it be improved beyond the n√n scaling observed in Baum and NTK networks?
- RQ3Is it possible to construct a ReLU network with O(n/(dε)) neurons and Õ(√n) total weight for arbitrary real labels on well-dispersed data in high dimensions?
- RQ4What role does complex-valued recombination of neurons play in reducing weight complexity while preserving approximation accuracy?
- RQ5Can harmonic analysis and complex embeddings be used to derive a universal approximation framework for ReLU networks that is both sample-efficient and weight-efficient?
Key findings
- The proposed harmonic network achieves approximate memorization with k = Õ(n/(dε)) neurons and total weight W(f) = Õ(√n), which is nearly optimal as Ω̃(√n) is a lower bound for random data.
- The harmonic network construction outperforms the Baum network and NTK network in terms of total weight, both of which require Ω(n√n) weight on random data, making them far from optimal.
- For data points on the unit sphere with pairwise inner products bounded by Õ(1/√d), the harmonic network ensures that the average squared error is at most ε, with high probability.
- The method relies on a continuous, complex-valued representation of functions via Re(w·x + iw′·x), which allows for polynomial approximation using ReLU activations through randomized recombination.
- The construction is robust under mild data dispersion assumptions and does not require strong distributional assumptions beyond bounded inner products.
- Theoretical analysis confirms that the harmonic network’s weight scaling is optimal up to logarithmic factors, as √n is a lower bound for total weight under random label settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.