TL;DR
This paper introduces "mimetic initialization" for Multilayer Perceptrons (MLPs), a common neural network component. By studying the statistical properties of trained MLP weights, they propose a simple initialization technique that involves giving the first MLP layer a small, non-zero mean, which speeds up training on small-scale vision tasks.
What Problem Does This Paper Address?
Traditional neural network initialization methods, like Xavier and Kaiming initialization, focus on ensuring proper signal propagation by scaling weights to prevent vanishing or exploding gradients. While effective, these methods are largely statistical and don't leverage the inherent structure learned by successful models. Pretraining, or transfer learning, is known to be highly effective, but the authors hypothesize that part of this benefit comes from the geometry of the weight space in pretrained models, not just the stored knowledge. Previous "mimetic initialization" work has explored this idea for convolutional and attention layers, but it hasn't been applied to MLPs, which are fundamental building blocks in deep learning. This paper aims to bridge that gap by investigating if mimetic initialization can also benefit MLPs.
Methods
The core idea of mimetic initialization is to observe the statistical properties of weights in trained networks and then devise simple, closed-form initialization schemes that mimic these properties. For MLPs, the authors analyzed the covariance structure of weights across populations of trained models. They found that the weights in trained MLPs exhibit a "striped" covariance structure, suggesting correlations within rows or columns.
To mimic this, they propose two simple initialization strategies for the first MLP layer ($W_1$):
- Adding a random vector: $W_1 = W_1 + \mathbf{1} \mathbf{b}^T$, where $\mathbf{b}$ is a random vector sampled from a normal distribution. This adds a group mean to rows.
- Adding a constant bias: $W_1 = W_1 + b \mathbf{1} \mathbf{1}^T$, where $b$ is a single, constant scalar. This adds a global mean.
They found that the simpler constant bias approach (strategy 2) was surprisingly effective.
Datasets
- CIFAR-10: Used for training and evaluating small ConvNeXt and ViT models.
- ImageNet-1k: Used for evaluating a DeiT-Small model.
The authors trained approximately $10^4$ small ConvNeXt models on CIFAR-10 to estimate weight space covariances. These models were small, with only a few thousand or up to $10^4$ parameters, typically 3-4 layers with an internal dimension of 16-32 and an MLP expansion factor of 2.
Key Insights and Ideas
- MLPs have exploitable weight structure: Unlike previous assumptions, MLPs, like convolutional and attention layers, exhibit discernible statistical structures in their trained weights that can be mimicked.
- A simple non-zero mean is powerful: The most effective mimetic initialization for MLPs turned out to be surprisingly simple: initializing the first layer with a small, constant non-zero mean. This is much simpler than the more complex covariance-mimicking strategies used for other layer types.
- Global mean vs. group mean: While adding a random vector to mimic group means showed some promise, a single constant bias (global mean) was sufficient and effective for speeding up MLP training.
- Context matters for MLP mimetic init: The benefit of this MLP mimetic initialization appears to be most pronounced in early training stages and for smaller-scale or data-limited tasks. Its advantage diminishes over longer training durations compared to spatial mixing layer initializations.
- Population-level analysis is key: Studying covariance structures across populations of networks, rather than just within single networks, provides a more powerful way to uncover these statistical regularities.
Key Results
- The proposed MLP mimetic initialization (specifically, adding a constant bias to the first layer) speeds up training for small ConvNeXt and ViT models on CIFAR-10.
- This speedup is most significant in early training epochs (e.g., 10-20 epochs) and tends to taper off over longer training durations.
- The MLP mimetic initialization can be combined with existing mimetic initializations for convolutional and self-attention layers, yielding an additional positive effect.
- For a DeiT-Small model on ImageNet-1k, the MLP init provided initial gains and maintained a consistent 0.5% advantage over the baseline over 100 epochs.
- The effect is not simply compensating for a default zero bias in the ConvNeXt implementation, as demonstrated by experiments with varying bias initializations.
Limitations and Future Work
- Limited scope: The current findings are primarily for small-scale vision tasks and models. The effectiveness at larger scales or for different domains (e.g., NLP) is not yet established.
- Diminishing returns: The advantage of the MLP mimetic initialization decreases with longer training times, suggesting it's more of an "early training boost" rather than a fundamental structural advantage for the entire training process.
- Further research needed: The authors suggest that strategy 1 (adding a random vector) might be better for larger-scale training as it maintains a global mean of zero and potentially encodes a weaker inductive bias. More research is needed to confirm this.
- Exploring other structures: The paper highlights that other statistical structures, like the anti-correlation of weights observed in ViT MLPs, could be further explored for mimetic initialization.
- Broader applicability: The authors believe their population-level analysis approach could yield further insights into weight space learning and analysis across various network architectures and tasks.
Summary updated