arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.08958cs.LG
收藏

AutoInit:用于神经网络的解析信号保持权值算法

AutoInit: Analytic Signal-Preserving Weight Initialization for Neural Networks

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Cognizant AI Labs(高知特人工智能实验室)

Garrett Bingham, Risto Miikkulainen

摘要:

神经网络需要仔细的权重初始化,以防止信号爆炸或消失。现有的初始化方案通过假设网络具有特定的激活函数或拓扑来解决特定情况下的这个问题。很难推导出这样的权重初始化策略,因此现代架构经常使用这些相同的初始化方案,即使它们的假设不成立。本文介绍了AutoInit,一种能自动适应不同神经网络体系结构的权值初始化算法。通过分析跟踪信号在网络中传播时的均值和方差,AutoInit适当地缩放每一层的权重,以避免信号爆炸或消失。实验表明,AutoInit在一系列激活函数、丢弃、权重衰减、学习率和归一化器设置中提高了卷积、残差和Transformer网络的性能,并且比依赖于数据的初始化方法更可靠。这种灵活性允许AutoInit初始化从小型表格任务到大型数据集(如ImageNet)的所有模型。这种普遍性在神经结构搜索和激活函数发现中特别有用。在这些设置中,AutoInit会适当地初始化每个候选项,使性能评估更加准确。因此,AutoInit作为一个自动配置工具,使新的神经网络架构的设计更加健壮。AutoInit包提供了TensorFlow模型的包装器,可在https://github.com/cognizant-ai-labs/autoinit上获得。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑