AutoInit: Analytic Signal-Preserving Weight Initialization for Neural Networks

Garrett Bingham, Risto Miikkulainen
9/18/2021
cs.LG

Official code: cognizant-ai-labs/autoinit (30 stars, Python, TensorFlow, last commit 2026-07-20).

Abstract

Neural networks require careful weight initialization to prevent signals from exploding or vanishing. Existing initialization schemes solve this problem in specific cases by assuming that the network has a certain activation function or topology.

Show full abstract

It is difficult to derive such weight initialization strategies, and modern architectures therefore often use these same initialization schemes even though their assumptions do not hold. This paper introduces AutoInit, a weight initialization algorithm that automatically adapts to different neural network architectures. By analytically tracking the mean and variance of signals as they propagate through the network, AutoInit appropriately scales the weights at each layer to avoid exploding or vanishing signals. Experiments demonstrate that AutoInit improves performance of convolutional, residual, and transformer networks across a range of activation function, dropout, weight decay, learning rate, and normalizer settings, and does so more reliably than data-dependent initialization methods. This flexibility allows AutoInit to initialize models for everything from small tabular tasks to large datasets such as ImageNet. Such generality turns out particularly useful in neural architecture search and in activation function discovery. In these settings, AutoInit initializes each candidate appropriately, making performance evaluations more accurate. AutoInit thus serves as an automatic configuration tool that makes design of new neural network architectures more robust. The AutoInit package provides a wrapper around TensorFlow models and is available at https://github.com/cognizant-ai-labs/autoinit.

View on arXivView PDF

Code Implementations(1)

TensorFlow

AutoInit: Analytic Signal-Preserving Weight Initialization for Neural Networks

303Python, ShellAug 17, 20214 months agoNOASSERTION
deep-learningpythontensorflowweight-initialization

Similar Papers

Cite this paper

@article{bingham2021autoinit,
  title  = {AutoInit: Analytic Signal-Preserving Weight Initialization for Neural Networks},
  author = {Garrett Bingham and Risto Miikkulainen},
  year   = {2021},
  eprint = {2109.08958},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08958}
}

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/2109.08958.svg)](https://codeofpaper.com/paper/2109.08958)

Discussion