[Paper Review] How Two-Layer Neural Networks Learn, One (Giant) Step at a Time
This paper analyzes how two-layer neural networks learn structured target functions through early gradient descent, showing that batch size critically determines which directions of the target function are learned in a single step. It reveals that $n = \mathcal{O}(d^\ell)$ samples are needed to learn 'hard' directions with leap index $\ell$, but multiple steps with $n = \mathcal{O}(d)$ enable learning multiple directions hierarchically, leading to significant improvement in approximation capacity and generalization beyond the lazy regime.
For high-dimensional Gaussian data, we investigate theoretically how the features of a two-layer neural network adapt to the structure of the target function through a few large batch gradient descent steps, leading to an improvement in the approximation capacity from initialization. First, we compare the influence of batch size to that of multiple steps. For a single step, a batch of size $n = \mathcal{O}(d)$ is both necessary and sufficient to align with the target function, although only a single direction can be learned. In contrast, $n = \mathcal{O}(d^2)$ is essential for neurons to specialize in multiple relevant directions of the target with a single gradient step. Even in this case, we show there might exist ``hard'' directions requiring $n = \mathcal{O}(d^\ell)$ samples to be learned, where $\ell$ is known as the leap index of the target. Second, we show that the picture drastically improves over multiple gradient steps: a batch size of $n = \mathcal{O}(d)$ is indeed sufficient to learn multiple target directions satisfying a staircase property, where more and more directions can be learned over time. Finally, we discuss how these directions allow for a drastic improvement in the approximation capacity and generalization error over the initialization, illustrating a separation of scale between the random features/lazy regime and the feature learning regime. Our technical analysis leverages a combination of techniques related to concentration, projection-based conditioning, and Gaussian equivalence, which we believe are of independent interest. By pinning down the conditions necessary for specialization and learning, our results highlight the intertwined role of the structure of the task to learn, the details of the algorithm, and the architecture, shedding new light on how neural networks adapt to the feature and learn complex task from data over time.
Motivation & Objective
- To understand how two-layer neural networks adapt to low-dimensional target structures during early training.
- To quantify the sample complexity required for feature learning in terms of batch size, network width, and target complexity.
- To clarify the transition from the lazy regime to the feature-learning regime in terms of approximation capacity and generalization.
- To identify conditions under which networks learn relevant directions efficiently, especially in high-dimensional settings.
- To provide a sharp theoretical characterization of learning dynamics using Hermite decomposition and concentration techniques.
Proposed method
- The analysis uses Hermite decomposition to represent the target function in terms of orthogonal polynomial expansions, with the leap index $\ell$ identifying the first non-zero order.
- It applies higher-order singular value decomposition (HOSVD) to decompose the target function's tensor structure and identify relevant learning directions.
- The method leverages concentration of measure and projection-based conditioning to analyze overlaps between network neurons and target subspaces.
- Gaussian equivalence techniques are used to simplify the analysis of gradient dynamics under high-dimensional random initialization.
- The study focuses on gradient descent with large batches, modeling the learning process as a sequence of giant steps.
- It derives sample complexity bounds based on the interplay between batch size $n$, input dimension $d$, and the leap index $\ell$ of the target function.
Experimental results
Research questions
- RQ1What is the minimum batch size required for a two-layer network to learn a single relevant direction of a structured target function?
- RQ2How does the leap index $\ell$ of the target function affect the sample complexity for learning hard directions?
- RQ3Can multiple relevant directions be learned in a single gradient step, and if so, under what batch size conditions?
- RQ4How does the number of gradient steps influence the network's ability to learn increasingly complex target structures?
- RQ5What is the resulting improvement in approximation capacity and generalization error when feature learning occurs compared to the lazy regime?
Key findings
- A batch size of $n = \mathcal{O}(d)$ is both necessary and sufficient to align with a single relevant direction of the target function in one gradient step.
- Learning multiple directions in a single step requires $n = \mathcal{O}(d^2)$, and for 'hard' directions with leap index $\ell$, $n = \mathcal{O}(d^\ell)$ samples are needed.
- With multiple gradient steps and $n = \mathcal{O}(d)$, the network can learn multiple target directions hierarchically, satisfying a staircase property.
- The network's approximation capacity improves drastically over initialization, especially when feature learning occurs, leading to a clear separation from the lazy regime.
- The generalization error is bounded and improves significantly when the network learns relevant directions through multiple steps, even with large batches.
- The theoretical framework based on Hermite decomposition and concentration of overlaps provides sharp, non-asymptotic bounds on learning dynamics without requiring constant-specific sample complexity.
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.