ZerO Initialization: Initializing Neural Networks with only Zeros and Ones

Jiawei Zhao, Florian Schäfer, Anima Anandkumar
10/25/2021
cs.LGcs.CV

Official code: jiaweizzhao/ZerO-initialization (75 stars, Jupyter Notebook, Apache-2.0, last commit 2022-11-19).

Abstract

Deep neural networks are usually initialized with random weights, with adequately selected initial variance to ensure stable signal propagation during training. However, selecting the appropriate variance becomes challenging especially as the number of layers grows.

Show full abstract

In this work, we replace random weight initialization with a fully deterministic initialization scheme, viz., ZerO, which initializes the weights of networks with only zeros and ones (up to a normalization factor), based on identity and Hadamard transforms. Through both theoretical and empirical studies, we demonstrate that ZerO is able to train networks without damaging their expressivity. Applying ZerO on ResNet achieves state-of-the-art performance on various datasets, including ImageNet, which suggests random weights may be unnecessary for network initialization. In addition, ZerO has many benefits, such as training ultra deep networks (without batch-normalization), exhibiting low-rank learning trajectories that result in low-rank and sparse solutions, and improving training reproducibility.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
755Jupyter NotebookOct 19, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhao2021zero,
  title  = {ZerO Initialization: Initializing Neural Networks with only Zeros and Ones},
  author = {Jiawei Zhao and Florian Schäfer and Anima Anandkumar},
  year   = {2021},
  eprint = {2110.12661},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.12661}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.12661.svg)](https://codeofpaper.com/paper/2110.12661)

Discussion