arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.20062cs.LGstat.ML
收藏

预训练如何塑造微调中的归纳偏置的理论

A Theory of How Pretraining Shapes Inductive Bias in Fine-Tuning

Nicolas Anguita, Francesco Locatello, Andrew M. Saxe, Marco Mondelli, Flavia Mancini, Samuel Lippl, Clementine Domine

AI总结:

通过分析对角线性网络中的预训练-微调流程,发现不同初始化尺度导致四种微调模式,其中较小的早期层初始化有助于特征重用和精炼,提升泛化能力。

摘要:

预训练和微调是现代机器学习系统的核心阶段。在实践中,特征学习在两个阶段都起着重要作用:深度神经网络在预训练期间学习广泛的有用特征,并在微调期间进一步细化这些特征。然而,关于初始化选择如何影响微调期间特征重用和精炼能力的端到端理论理解仍然难以捉摸。在这里,我们开发了对角线性网络中预训练-微调流程的分析理论,推导出泛化误差作为初始化参数和任务统计量的精确表达式。我们发现不同的初始化选择将网络置于四种不同的微调模式中,这些模式根据其支持特征学习和重用的能力以及因此对它们有益的任务统计量而区分。特别是,早期层中较小的初始化尺度使网络能够同时重用和精炼其特征,从而在依赖于预训练特征子集的微调任务上实现卓越的泛化。我们通过实验证明,相同的初始化参数影响在CIFAR-100和SVHN上训练的ResNet以及在模块化算术任务上训练的Transformer的泛化。总体而言,我们的结果分析性地展示了数据和网络初始化如何相互作用以塑造微调泛化,强调了不同层之间初始化的相对尺度在微调期间实现持续特征学习中的重要作用。

英文摘要:

Pretraining and fine-tuning are central stages in modern machine learning systems. In practice, feature learning plays an important role across both stages: deep neural networks learn a broad range of useful features during pretraining and further refine those features during fine-tuning. However, an end-to-end theoretical understanding of how choices of initialization impact the ability to reuse and refine features during fine-tuning has remained elusive. Here we develop an analytical theory of the pretraining fine-tuning pipeline in diagonal linear networks, deriving exact expressions for the generalization error as a function of initialization parameters and task statistics. We find that different initialization choices place the network into four distinct fine-tuning regimes that are distinguished by their ability to support feature learning and reuse and therefore by the task statistics for which they are beneficial. In particular, a smaller initialization scale in earlier layers enables the network to both reuse and refine its features, leading to superior generalization on fine-tuning tasks that rely on a subset of pretraining features. We demonstrate empirically that the same initialization parameters impact generalization in ResNets trained on CIFAR-100 and SVHN as well as Transformers trained on modular arithmetic tasks. Overall, our results demonstrate an alytically how data and network initialization interact to shape fine-tuning generalization, highlighting an important role for the relative scale of initialization across different layers in enabling continued feature learning during fine-tuning.

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

↑