多任务学习与微调的归纳偏置:特征复用的多种机制
Inductive biases of multi-task learning and finetuning: multiple regimes of feature reuse
AI总结:
该研究揭示多任务学习与微调的归纳偏置差异,提出嵌套特征选择等特征复用机制,通过理论与实验验证其作用,并发现权重重缩放技术可触发该机制提升微调性能。
摘要:
神经网络通常在多个任务上训练,要么是同时进行(多任务学习,MTL),要么是顺序进行(预训练及后续微调,PT+FT)。尤其常见的做法是先在大型辅助任务上预训练神经网络,再在样本量更少的下游任务上微调。尽管这种方法应用广泛,但人们对多任务学习产生的归纳偏置的特征仍知之甚少。在本研究中,我们填补了这一空白。我们描述了对角线性网络和单隐藏层ReLU网络中,与MTL和PT+FT相关的新型隐式正则化惩罚项。这些惩罚项表明,MTL和PT+FT会促使网络以不同方式复用特征。1)MTL和PT+FT都表现出偏向任务间特征复用的偏置,以及偏向所学特征集合稀疏性的偏置。我们证明了一条“守恒定律”,表明这两种偏置之间存在直接的权衡关系。2)PT+FT表现出一种新型的“嵌套特征选择”机制,这一机制未被先前研究中提出的“懒惰”或“丰富”机制所涵盖,它会使模型偏向于依赖预训练期间学到的特征的稀疏子集。对于MTL而言,这一机制的适用范围要窄得多。3)ReLU网络中的PT+FT(而非MTL)会受益于辅助任务与主任务之间相关的特征。我们通过师生模型从实验上证实了这些发现,并提出了一种技术——预训练后的权重重缩放——可以触发嵌套特征选择机制。最后,我们在用于图像分类的深度神经网络中验证了我们的理论。我们发现,当权重重缩放使模型表现出嵌套特征选择的特征时,它能够提升性能。我们的结果表明,嵌套特征选择可能是神经网络微调的一种重要归纳偏置。
英文摘要:
Neural networks are often trained on multiple tasks, either simultaneously (multi-task learning, MTL) or sequentially (pretraining and subsequent finetuning, PT+FT). In particular, it is common practice to pretrain neural networks on a large auxiliary task before finetuning on a downstream task with fewer samples. Despite the prevalence of this approach, the inductive biases that arise from learning multiple tasks are poorly characterized. In this work, we address this gap. We describe novel implicit regularization penalties associated with MTL and PT+FT in diagonal linear networks and single-hidden-layer ReLU networks. These penalties indicate that MTL and PT+FT induce the network to reuse features in different ways. 1) Both MTL and PT+FT exhibit biases towards feature reuse between tasks, and towards sparsity in the set of learned features. We show a "conservation law" that implies a direct tradeoff between these two biases. 2) PT+FT exhibits a novel "nested feature selection" regime, not described by either the "lazy" or "rich" regimes identified in prior work, which biases it to rely on a sparse subset of the features learned during pretraining. This regime is much narrower for MTL. 3) PT+FT (but not MTL) in ReLU networks benefits from features that are correlated between the auxiliary and main task. We confirm these findings empirically with teacher-student models, and introduce a technique -- weight rescaling following pretraining -- that can elicit the nested feature selection regime. Finally, we validate our theory in deep neural networks trained on image classification. We find that weight rescaling improves performance when it causes models to display signatures of nested feature selection. Our results suggest that nested feature selection may be an important inductive bias for finetuning neural networks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。