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

神经网络的权重与架构同时优化

Simultaneous Weight and Architecture Optimization for Neural Networks

University of Southern California(南加州大学)

Zitong Huang, Mansooreh Montazerin, Ajitesh Srivastava

AI总结:

提出一种基于多尺度编码器-解码器的神经网络训练框架,通过梯度下降同时学习网络架构与参数,利用稀疏性惩罚发现高性能的稀疏紧凑网络。

摘要:

神经网络通过选择架构和训练参数来进行训练。架构的选择通常基于试错法或神经架构搜索(NAS)方法。尽管NAS提供了一定的自动化,但它通常依赖于离散步骤,即先优化架构再训练参数。我们引入了一种新颖的神经网络训练框架,该框架通过梯度下降同时学习架构和参数,从根本上改变了这一过程。在适当的损失函数设置下,它能够为给定数据集发现稀疏且紧凑的神经网络。我们方法的核心是一个多尺度编码器-解码器,其中编码器将具有相似功能的神经网络对彼此靠近嵌入(无论其架构和权重如何)。为了用给定数据集训练神经网络,我们在嵌入空间中随机采样一个神经网络嵌入,然后使用我们定制的损失函数执行梯度下降,该损失函数包含稀疏性惩罚以鼓励紧凑性。解码器生成与嵌入相对应的神经网络。实验表明,我们的框架能够发现稀疏且紧凑的神经网络,同时保持高性能。

英文摘要:

Neural networks are trained by choosing an architecture and training the parameters. The choice of architecture is often by trial and error or with Neural Architecture Search (NAS) methods. While NAS provides some automation, it often relies on discrete steps that optimize the architecture and then train the parameters. We introduce a novel neural network training framework that fundamentally transforms the process by learning architecture and parameters simultaneously with gradient descent. With the appropriate setting of the loss function, it can discover sparse and compact neural networks for given datasets. Central to our approach is a multi-scale encoder-decoder, in which the encoder embeds pairs of neural networks with similar functionalities close to each other (irrespective of their architectures and weights). To train a neural network with a given dataset, we randomly sample a neural network embedding in the embedding space and then perform gradient descent using our custom loss function, which incorporates a sparsity penalty to encourage compactness. The decoder generates a neural network corresponding to the embedding. Experiments demonstrate that our framework can discover sparse and compact neural networks maintaining a high performance.

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

↑