Abstract
This paper addresses a fundamental question in deep learning theory: the minimum number of parameters required for a feedforward ReLU neural network to perfectly memorize a dataset of size $N$. While previous constructive upper bounds required $O(N^{2/3})$ parameters, this work proves that a depth-optimized network can achieve the theoretical lower bound of $\tilde{O}(\sqrt{N})$ parameters, provided the data points satisfy a mild separation condition. This result effectively closes the gap between known VC dimension lower bounds and constructive upper bounds, revealing that deep networks can store information with near-optimal efficiency.
Introduction
In the study of neural network expressivity, "memorization" refers to the capacity of a model to perfectly fit an arbitrary set of labels for a given set of $N$ input points. Understanding this capacity provides a theoretical floor for network architecture design. Historically, a significant gap existed between the theoretical minimum and the best known constructions:
- The Lower Bound: Based on VC dimension—a measure of a model's complexity—it is established that to shatter (memorize any labeling of) $N$ points, a network requires at least $\Omega(\sqrt{N})$ parameters.
- The Previous Upper Bound: Prior to this research, the most efficient constructive proof required $O(N^{2/3})$ parameters.
This paper closes this gap, demonstrating that memorizing an arbitrary dataset is not fundamentally more difficult than the theoretical requirement for shattering a single set of points.
The Construction Pipeline
The authors achieve the optimal $\tilde{O}(\sqrt{N})$ bound by designing a specific, deep ReLU network with a constant width of 12. The architecture utilizes a three-stage pipeline to process and retrieve label information:
Stage I: Dimensionality Reduction
The $d$-dimensional input data is first projected onto a one-dimensional line. By utilizing a small subnetwork, the construction ensures that the projected points maintain a minimum separation (at least distance 2). This separation is a critical prerequisite for the subsequent encoding and extraction phases.
Stage II: Information Encoding
The $N$ data points are partitioned into $\sqrt{N}$ distinct groups. For each group, the labels and relative positions of all constituent points are encoded into a single high-precision weight. This weight essentially acts as a high-density bit-string storage unit.
Stage III: Bit Extraction
Drawing inspiration from Telgarsky’s work on the benefits of depth, the network employs a deep sequence of ReLU layers to implement a "bit extraction" mechanism. When a data point is processed, the network uses the point's projected position to index into the crafted weights and algorithmically retrieve the corresponding label bits. This approach treats the network's depth as a mechanism for algorithmic retrieval rather than just a series of linear transformations.
Key Theoretical Insights
The Depth-Parameter Trade-off
The research highlights a rigorous relationship between a network's depth ($L$) and its parameter count ($W$). Specifically, for a fixed depth $L$, $N$ points can be memorized using $\tilde{O}(N/L)$ parameters. The optimal parameter count is reached when the depth is approximately $\sqrt{N}$.
The Role of Bit Complexity
A crucial finding of this work is the "no free lunch" aspect of parameter efficiency. To achieve a sub-linear parameter count ($W < N$), the parameters must possess high bit complexity—roughly $\sqrt{N}$ bits per weight. The authors prove that large bit complexity is both necessary and sufficient; one cannot further reduce the parameter count simply by increasing the precision beyond $N^{1/2}$.
Shattering vs. Memorizing
A significant takeaway is the convergence of complexity classes. The results suggest that the difficulty of memorizing an arbitrary dataset is nearly identical to the difficulty of shattering a single set, with the two tasks matching up to logarithmic factors.
Limitations and Practical Considerations
While this work provides a definitive theoretical answer to the memorization power of ReLU networks, several gaps remain between this construction and practical deep learning:
- Weight Precision: The construction relies on weights with extremely high precision. Standard modern hardware, which typically uses 16-bit or 32-bit floating-point numbers, cannot represent these weights. Thus, the efficiency gains are currently theoretical.
- Optimization vs. Expressivity: The paper proves the existence of such a network but does not address whether standard optimization algorithms, such as Stochastic Gradient Descent (SGD), can find these solutions. It remains possible that the "over-parameterization" observed in practice (where $W > N$) is a requirement for trainability rather than a requirement for expressivity.
- Separability Dependence: The bounds are sensitive to the separation $\delta$ between data points. As points become closer, the required depth and precision increase logarithmically.
Conclusion
By proving that ReLU networks can memorize $N$ points with $\tilde{O}(\sqrt{N})$ parameters, this paper provides a tight upper bound that matches the fundamental limits of learning theory. It shifts the conversation from whether such efficient networks exist to whether they can be effectively trained and implemented in real-world constrained environments.
Summary updated