arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.07645cs.LGcs.AI
收藏

幅度不变参数化改进超网络学习

Magnitude Invariant Parametrizations Improve Hypernetwork Learning

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);HMS(哈佛医学院);MGH(麻省总医院)

Jose Javier Gonzalez Ortiz, John Guttag, Adrian Dalca

AI总结:

本文识别出超网络输入与输出间的幅度比例关系导致优化不稳定,并提出 Magnitude Invariant Parametrizations (MIP) 方案,有效稳定训练并加速收敛。

摘要:

超网络,即预测另一个神经网络参数的神经网络,是强大的模型,已成功应用于从图像生成到多任务学习等多种应用。遗憾的是,现有的超网络通常难以训练。训练通常比非超网络模型收敛慢得多,且收敛速度对超参数的选择非常敏感。在这项工作中,我们识别出一个导致超网络训练困难的基本且此前未被识别的问题:超网络输入与输出之间的幅度比例关系。我们通过分析和实验证明,这可能导致不稳定的优化,从而减缓收敛,有时甚至完全阻碍学习。我们提出了一个简单的解决方案,使用一种修改后的超网络公式,我们称之为 Magnitude Invariant Parametrizations (MIP)。我们在多个超网络任务上展示了所提出的解决方案,它始终如一地稳定训练并实现更快的收敛。此外,我们进行了全面的消融研究,包括激活函数的选择、归一化策略、输入维度和超网络架构;发现 MIP 在所有场景中都改善了训练。我们提供了易于使用的代码,可将现有网络转换为基于 MIP 的超网络。

英文摘要:

Hypernetworks, neural networks that predict the parameters of another neural network, are powerful models that have been successfully used in diverse applications from image generation to multi-task learning. Unfortunately, existing hypernetworks are often challenging to train. Training typically converges far more slowly than for non-hypernetwork models, and the rate of convergence can be very sensitive to hyperparameter choices. In this work, we identify a fundamental and previously unidentified problem that contributes to the challenge of training hypernetworks: a magnitude proportionality between the inputs and outputs of the hypernetwork. We demonstrate both analytically and empirically that this can lead to unstable optimization, thereby slowing down convergence, and sometimes even preventing any learning. We present a simple solution to this problem using a revised hypernetwork formulation that we call Magnitude Invariant Parametrizations (MIP). We demonstrate the proposed solution on several hypernetwork tasks, where it consistently stabilizes training and achieves faster convergence. Furthermore, we perform a comprehensive ablation study including choices of activation function, normalization strategies, input dimensionality, and hypernetwork architecture; and find that MIP improves training in all scenarios. We provide easy-to-use code that can turn existing networks into MIP-based hypernetworks.

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

↑