Skip to main content
QUICK REVIEW

[论文解读] Improved Fine-Tuning by Better Leveraging Pre-Training Data

Ziquan Liu, Yi Xu|arXiv (Cornell University)|Nov 24, 2021
Machine Learning and Data ClassificationComputer Science被引用 24
一句话总结

本论文分析在微调阶段重复使用预训练数据如何提升目标任务的一般化,并提出一种新颖的不平衡最优传输(UOT)基数据选择,用于挑选与目标任务最匹配的预训练数据。

ABSTRACT

As a dominant paradigm, fine-tuning a pre-trained model on the target data is widely used in many deep learning applications, especially for small data sets. However, recent studies have empirically shown that training from scratch has the final performance that is no worse than this pre-training strategy once the number of training samples is increased in some vision tasks. In this work, we revisit this phenomenon from the perspective of generalization analysis by using excess risk bound which is popular in learning theory. The result reveals that the excess risk bound may have a weak dependency on the pre-trained model. The observation inspires us to leverage pre-training data for fine-tuning, since this data is also available for fine-tuning. The generalization result of using pre-training data shows that the excess risk bound on a target task can be improved when the appropriate pre-training data is included in fine-tuning. With the theoretical motivation, we propose a novel selection strategy to select a subset from pre-training data to help improve the generalization on the target task. Extensive experimental results for image classification tasks on 8 benchmark data sets verify the effectiveness of the proposed data selection based fine-tuning pipeline.

研究动机与目标

  • 了解在目标数据有限的情况下,预训练是否以及为何有助于微调。
  • 推导一个一般化理论视角,显示在某些条件下对预训练模型的依赖较弱。
  • 提出在微调阶段利用预训练数据的数据重用策略。
  • 开发基于不平衡OT的数据选择方法,以选择与目标任务最相似的预训练数据。
  • 在八个图像分类基准上,通过监督和自监督预训练验证该方法的有效性。

提出的方法

  • 将目标函数F(θ)和G(θ)以基于SGD的优化形式进行形式化。
  • 推导额外风险界,显示当目标数据量大时对预训练模型的依赖较弱。
  • 提出联合目标αF_n(θ)+(1−α)H_m(θ),以在微调阶段并入预训练数据。
  • 引入三种数据选择策略:基于标签的、随机的,以及相似性(UOT)选择。
  • 定义UOT目标,利用传输计划计算预训练数据与目标数据之间的相似性,采用广义Sinkhorn迭代求解。
  • 在联合优化过程中描述有标签和无标签的预训练数据的梯度计算。
  • 提供监督和自监督预训练场景的实际实现细节。

实验结果

研究问题

  • RQ1在微调阶段重用预训练数据是否能超越标准微调改善目标任务的一般化?
  • RQ2预训练数据与目标数据之间的相似性如何影响微调性能?
  • RQ3哪种数据选择策略在缩小预训练与目标任务之间的领域差距方面效果最好?
  • RQ4基于不平衡最优传输的选择在有监督和自监督预训练中是否具鲁棒性?
  • RQ5在有限数据条件下,该方法在多样的基准数据集上的表现如何?

主要发现

  • 在八个数据集上,微调阶段重用预训练数据比 vanilla 微调的一致性提高准确性。
  • 基于相似性的(UOT)数据选择在大多数情况下优于随机和贪心OT选择。
  • 在自监督预训练场景和低数据条件下,基于UOT的选择带来更大增益。
  • 当微调数据稀缺时,数据重用提供更大增益,表明在低数据情形下具有鲁棒性。
  • 在有监督预训练时,UOT在比较方法中实现了最佳平均性能(详见表1)。
  • 该方法具有通用性,适用于有标签和无标签的预训练数据,并在多份数据集中优于一些强基线如Co-Tuning。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。