Abstract
Recent studies have shown that many important aspects of neural network learning take place within the very earliest iterations or epochs of training. For example, sparse, trainable sub-networks emerge (Frankle et al., 2019), gradient descent moves into a small subspace (Gur-Ari et al., 2018), and the network undergoes a critical period (Achille et al., 2019). Here, we examine the changes that deep neural networks undergo during this early phase of training. We perform extensive measurements of the network state during these early iterations of training and leverage the framework of Frankle et al. (2019) to quantitatively probe the weight distribution and its reliance on various aspects of the dataset. We find that, within this framework, deep networks are not robust to reinitializing with random weights while maintaining signs, and that weight distributions are highly non-independent even after only a few hundred iterations. Despite this behavior, pre-training with blurred inputs or an auxiliary self-supervised task can approximate the changes in supervised networks, suggesting that these changes are not inherently label-dependent, though labels significantly accelerate this process. Together, these results help to elucidate the network changes occurring during this pivotal initial period of learning.
Introduction
Deep learning research often focuses on the final state of a model at convergence. However, the "Lottery Ticket Hypothesis" (LTH) suggests that the most critical structural changes occur much earlier. While sparse, trainable sub-networks exist, they cannot be found at initialization (iteration 0) for deep networks. Instead, the model must be trained for a brief period before these "winning tickets" emerge. This study investigates this mysterious "early phase"—the first few hundred iterations—to understand what makes this state special and how it evolves.
Methodology: Probing the Early State
The researchers utilized Iterative Magnitude Pruning (IMP) with rewinding as their primary diagnostic tool. By pruning a network and rewinding its remaining weights to their values at iteration $k$, they measured the "utility" of the network's state at different points in its early life.
To further analyze the nature of these weights, they conducted several perturbation tests:
- Sign vs. Magnitude Analysis: Testing if preserving only the signs of weights is sufficient for performance.
- Structural Shuffling: Re-arranging weights globally, per layer, or per filter to check for spatial dependencies.
- Proxy Pre-training: Evaluating if self-supervised tasks (like rotation prediction) or blurred data can replicate the effects of supervised training.
The Three-Phase Timeline of Training
The study identifies three distinct sub-phases during the initial iterations of training, characterized by changes in gradient magnitude and weight stability:
- The Volatile Phase (1-10 iterations): Characterized by massive gradients, rapid motion in weight space, and significant sign changes.
- The Formation Phase (10-500 iterations): Performance increases rapidly, and the "lottery tickets" begin to emerge as weight magnitudes stabilize.
- The Settling Phase (500-2000+ iterations): The benefit of rewinding saturates, indicating the network has established its learning trajectory.
Structural and Data Dependencies
A key finding is that signs are not enough for deep networks. Unlike shallower models where sign-preservation might suffice, deep networks require specific weight magnitudes to maintain the performance of pruned sub-networks. Shuffling magnitudes while keeping signs intact significantly degrades accuracy, suggesting that the specific values are as critical as their direction.
Furthermore, weights quickly become highly non-independent. They develop complex internal dependencies that cannot be replicated by simple statistical sampling from the original distribution. Interestingly, while labels act as a powerful catalyst, they are not strictly necessary to reach a "good" early state. Training on blurred images or self-supervised tasks can approximate the supervised state, though it takes significantly longer (up to 32x) to achieve the same level of sub-network stability.
Key Results and Conclusions
For a ResNet-20 on CIFAR-10, the effectiveness of rewinding reaches a "sweet spot" between 500 and 2000 iterations. Rewinding to iteration 500 allows a sub-network with only ~17% of its weights to match the full model's performance, whereas rewinding to iteration 0 fails to reach the same accuracy.
In conclusion, the first few hundred iterations of training are a pivotal period where the network transitions from a random initialization to a structured state capable of supporting sparse sub-networks. This transition is driven by data distribution exposure and is significantly accelerated by supervised labels, providing a deeper understanding of the "Aha!" moment in neural network training.
Summary updated