[Paper Review] Learning from Randomly Initialized Neural Network Features
This paper introduces the Neural Network Prior Kernel (NNPK), a theoretically grounded, infinite-dimensional kernel derived from the expected logits of randomly initialized neural networks. It demonstrates that Neural Random Features (NRF), finite-sample approximations of NNPK, capture meaningful data structures and enable linear classifiers to achieve strong performance—e.g., 10.3% top-1 accuracy on ImageNet-1K—without any training, revealing that architectural inductive biases are already present at initialization.
We present the surprising result that randomly initialized neural networks are good feature extractors in expectation. These random features correspond to finite-sample realizations of what we call Neural Network Prior Kernel (NNPK), which is inherently infinite-dimensional. We conduct ablations across multiple architectures of varying sizes as well as initializations and activation functions. Our analysis suggests that certain structures that manifest in a trained model are already present at initialization. Therefore, NNPK may provide further insight into why neural networks are so effective in learning such structures.
Motivation & Objective
- To investigate whether randomly initialized neural networks can serve as effective feature extractors without any training.
- To formalize a new kernel, the Neural Network Prior Kernel (NNPK), based on the expected inner product of logits from randomly initialized networks.
- To analyze how architectural choices, weight initializations, and activation functions affect the quality of features extracted via NRF.
- To explore whether structural properties observed in fully trained models are already present in the random feature representations at initialization.
Proposed method
- Define the Neural Network Prior Kernel (NNPK) as the expectation of the inner product of logits across all weight realizations drawn from a prior distribution π(θ).
- Construct a finite-sample approximation of NNPK called Neural Random Features (NRF), where input examples are embedded into a high-dimensional space using multiple randomly initialized neural networks.
- Train a linear classifier on the NRF representation to evaluate its performance on downstream classification tasks.
- Use TriMap visualization and cosine similarity analysis to compare the geometric structure of data in NRF, original inputs, and fully trained models.
- Systematically ablate model architectures, initialization schemes, activation functions, and normalization layers to study their impact on NRF quality.
- Apply NRF to large-scale datasets like ImageNet-1K to assess scalability and performance.
Experimental results
Research questions
- RQ1Do randomly initialized neural networks extract features that reflect meaningful data structures before any training?
- RQ2Can the Neural Network Prior Kernel (NNPK) serve as a theoretical foundation for understanding the inductive bias of deep networks?
- RQ3To what extent do architectural components such as skip connections and normalization layers influence the quality of features extracted via NRF?
- RQ4Is there a correlation between the performance of a linear classifier on NRF and the final accuracy of a fully trained model on the same dataset?
Key findings
- A linear classifier trained on 4096 Neural Random Features (NRF) from randomly initialized ResNet-18 models achieved 10.3% top-1 accuracy on ImageNet-1K, significantly outperforming the 3.4% accuracy of a linear classifier on raw input features (150K dimensions).
- Training a two-layer MLP on 31,568 NRF features achieved 15.2% top-1 accuracy on ImageNet-1K, demonstrating that simple models on NRF can surpass raw input performance.
- TriMap visualizations show that cluster structures and class proximity patterns observed in fully trained ResNet-18 models are already present in the NRF representation, indicating that data structure is echoed at initialization.
- The performance of a linear classifier on NRF correlates strongly with the final accuracy of the fully trained model across different architectures and initialization schemes, suggesting NRF can predict model trainability.
- Skip connections and ReLU activation functions enhance NRF quality, but the final trained model's performance may not always follow the same trend, indicating NNPK does not fully predict generalization in all cases.
- BatchNorm does not affect NNPK, but the impact of other normalization techniques like LayerNorm and InstanceNorm remains unexplored.
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.