arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20035cs.LGcs.AIcs.CL
收藏

训练不可训练之物:通过表征对齐引入归纳偏置

Training the Untrainable: Introducing Inductive Bias via Representational Alignment

MIT CSAIL, CBMM(麻省理工学院计算机科学与人工智能实验室,CBMM);Department of Cognitive Science, Johns Hopkins University(约翰霍普金斯大学认知科学系)

Vighnesh Subramaniam, David Mayo, Colin Conwell, Tomaso Poggio, Boris Katz, Brian Cheung, Andrei Barbu

AI总结:

提出引导方法,通过神经距离函数对齐目标网络与引导网络的逐层表征,迁移架构先验与知识,使传统不可训练架构(如全连接网络、普通RNN/CNN)在ImageNet等任务上显著提升性能,并可用于研究架构先验。

摘要:

我们证明,传统上被认为不适合某项任务的架构,可以利用来自另一架构的归纳偏置进行训练。我们将网络称为“不可训练”的,当它在调整超参数后仍然过拟合、欠拟合或收敛到较差结果时。例如,全连接网络在物体识别上过拟合,而没有残差连接的深度卷积网络则欠拟合。传统的解决方法是改变架构以施加某种归纳偏置,尽管该偏置的性质未知。我们引入了“引导”(guidance)方法,其中引导网络通过神经距离函数引导目标网络。目标网络最小化其任务损失加上与冻结的引导网络之间的逐层表征相似性。如果引导网络已训练,这将把引导网络的架构先验和知识迁移到目标网络。如果引导网络未训练,则仅迁移引导网络的部分架构先验。我们证明,引导方法防止了全连接网络在ImageNet上的过拟合,缩小了普通RNN与Transformer之间的差距,将普通CNN的性能提升至接近ResNet的准确率,并帮助Transformer在RNN擅长的任务上表现更好。我们进一步发现,仅使用引导驱动的初始化就能缓解全连接网络的过拟合。我们的方法提供了一种数学工具来研究先验和架构,从长远来看,可能实现架构设计的自动化。

英文摘要:

We demonstrate that architectures which traditionally are considered to be ill-suited for a task can be trained using inductive biases from another architecture. We call a network untrainable when it overfits, underfits, or converges to poor results even when tuning their hyperparameters. For example, fully connected networks overfit on object recognition while deep convolutional networks without residual connections underfit. The traditional answer is to change the architecture to impose some inductive bias, although the nature of that bias is unknown. We introduce guidance, where a guide network steers a target network using a neural distance function. The target minimizes its task loss plus a layerwise representational similarity against the frozen guide. If the guide is trained, this transfers over the architectural prior and knowledge of the guide to the target. If the guide is untrained, this transfers over only part of the architectural prior of the guide. We show that guidance prevents FCN overfitting on ImageNet, narrows the vanilla RNN-Transformer gap, boosts plain CNNs toward ResNet accuracy, and aids Transformers on RNN-favored tasks. We further identify that guidance-driven initialization alone can mitigate FCN overfitting. Our method provides a mathematical tool to investigate priors and architectures, and in the long term, could automate architecture design.

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

↑