arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.01975cs.LGcs.AI
收藏

预训练模型复用中任务与特征相关性的实证研究

An empirical study of task and feature correlations in the reuse of pre-trained models

Mila - Québec Artificial Intelligence Institute(魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);Department of Mathematical Sciences(数学科学系);Stellenbosch University(斯泰伦博斯大学)

Jama Hussein Mohamud, Willie Brink

AI总结:

本文通过实验研究预训练模型复用的影响因素,发现复用成功与任务相关性正相关,即使任务无关也因原网络设计优于随机,且低相关性时复用低层更优,语义相关任务可有效复用。

摘要:

预训练神经网络在机器学习社区中被广泛使用和复用。Alice为特定任务训练模型,其神经网络的一部分常被Bob复用于不同任务,且效果显著。Bob的成功可归因于什么?本文介绍了一种实验设置,通过该设置可在计算机模拟中研究Bob实证成功的影响因素。结果表明,Bob可能只是运气好:其任务准确率随自身任务与Alice任务的相关性单调递增。即使Bob的任务与Alice预训练网络的输入特征被证明不相关,由于Alice对网络和优化器的选择,他仍能取得显著优于随机的性能。当任务间相关性较低时,仅复用较低的预训练层更优,我们假设相反情况:重新训练的层数最优值可指示任务与特征的相关性。最后,我们在受控的现实场景中表明,若Bob与Alice的任务存在语义相关性,Bob可有效复用Alice的预训练网络。

英文摘要:

Pre-trained neural networks are commonly used and reused in the machine learning community. Alice trains a model for a particular task, and a part of her neural network is reused by Bob for a different task, often to great effect. To what can we ascribe Bob's success? This paper introduces an experimental setup through which factors contributing to Bob's empirical success could be studied in silico. As a result, we demonstrate that Bob might just be lucky: his task accuracy increases monotonically with the correlation between his task and Alice's. Even when Bob has provably uncorrelated tasks and input features from Alice's pre-trained network, he can achieve significantly better than random performance due to Alice's choice of network and optimizer. When there is little correlation between tasks, only reusing lower pre-trained layers is preferable, and we hypothesize the converse: that the optimal number of retrained layers is indicative of task and feature correlation. Finally, we show in controlled real-world scenarios that Bob can effectively reuse Alice's pre-trained network if there are semantic correlations between his and Alice's task.

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

↑