arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.07510cs.LGmath.PRphysics.data-anstat.ML
收藏

自注意力前馈神经单元的显式基础模型优化

Explicit Foundation Model Optimization with Self-Attentive Feed-Forward Neural Units

Drexel University(德雷塞尔大学)

Jake Ryland Williams, Haoran Zhao

AI总结:

本文提出显式优化前馈神经网络的方法,并扩展到含自注意力的Transformer,通过SAFFU层和显式解冷启动,在更少数据下训练高效模型,消融实验表明非最大参数化架构也能高性能。

摘要:

使用反向传播的迭代近似方法能够实现神经网络的优化,但在大规模使用时,这些方法仍然计算成本高昂。本文提出了一种高效的神经网络优化替代方案,该方案降低了扩展神经网络的成本,并为低资源应用提供了高效优化。我们将讨论关于前馈神经网络的一个一般性结果,然后将此解决方案扩展到组合(多层)网络,这些网络应用于包含前馈层和自注意力层的简化Transformer块。这些模型用于训练高度特定且复杂的多层神经架构,我们称之为自注意力前馈单元(SAFFU)层,并利用这些层开发了一个Transformer,该Transformer在小型、认知上可行的数据量上表现出良好的泛化能力。测试表明,显式解决方案优于仅通过反向传播优化的模型。此外,在显式解决方案之后进一步应用反向传播,可以从更小规模的数据中获得更好的最优解,显式解决方案的冷启动使得从更少的数据中训练有效模型成为可能。然后,我们进行了消融实验,训练了约250个Transformer模型,每个模型在100万令牌上训练,以确定理想设置。我们发现多种不同的架构变体都能产生高性能模型,并从这次消融中发现,一些最好的模型并非参数最多的。这表明,通过使用显式解决方案,可以用更少的数据达到良好泛化的模型,并且使用显式解决方案进行架构探索在指导寻找参数更少的高效变体方面具有显著价值,这些变体可以集成到可能实现AI具身化的低资源硬件中。

英文摘要:

Iterative approximation methods using backpropagation enable the optimization of neural networks, but they remain computationally expensive, especially when used at scale. This paper presents an efficient alternative for optimizing neural networks that reduces the costs of scaling neural networks and provides high-efficiency optimizations for low-resource applications. We will discuss a general result about feed-forward neural networks and then extend this solution to compositional (mult-layer) networks, which are applied to a simplified transformer block containing feed-forward and self-attention layers. These models are used to train highly-specified and complex multi-layer neural architectures that we refer to as self-attentive feed-forward unit (SAFFU) layers, which we use to develop a transformer that appears to generalize well over small, cognitively-feasible, volumes of data. Testing demonstrates explicit solutions outperform models optimized by backpropagation alone. Moreover, further application of backpropagation after explicit solutions leads to better optima from smaller scales of data, training effective models from much less data is enabled by explicit solution warm starts. We then carry out ablation experiments training a roadmap of about 250 transformer models over 1-million tokens to determine ideal settings. We find that multiple different architectural variants produce highly-performant models, and discover from this ablation that some of the best are not the most parameterized. This appears to indicate well-generalized models could be reached using less data by using explicit solutions, and that architectural exploration using explicit solutions pays dividends in guiding the search for efficient variants with fewer parameters, and which could be incorporated into low-resource hardware where AI might be embodied.

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

↑