arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.04578cs.LGcs.CVstat.ML
收藏

神经网络中微调的改进正则化与鲁棒性

Improved Regularization and Robustness for Fine-tuning in Neural Networks

Northeastern University(东北大学)

Dongyue Li, Hongyang R. Zhang

AI总结:

本文分析了微调的泛化性质并提出PAC-Bayes界,据此提出正则化自标记方法,通过逐层正则化、自标记纠正和标签重加权提升鲁棒性,在图像和文本数据集上显著优于基线方法。

摘要:

迁移学习中广泛使用的算法是微调,即在少量标注数据上对预训练模型进行微调以适应目标任务。当预训练模型的容量显著大于目标数据集的规模时,微调容易过拟合并记忆训练标签。因此,一个关键问题是对微调进行正则化并确保其对噪声的鲁棒性。为解决这一问题,我们首先分析了微调的泛化性质。我们提出了一个PAC-Bayes泛化界,它取决于微调过程中每层移动的距离以及微调模型的噪声稳定性。我们通过实验测量了这些量。基于此分析,我们提出了正则化自标记——正则化与自标记方法的插值,包括:(i) 逐层正则化以约束每层移动的距离;(ii) 自标记纠正和标签重加权,以纠正错误标注的数据点(模型确信的)并对不太确信的数据点重新加权。我们在包含多种预训练模型架构的大量图像和文本数据集上验证了该方法。对于七个图像分类任务,我们的方法比基线方法平均提升1.76%,对于少样本分类任务提升0.75%。当目标数据集包含噪声标签时,在两种噪声设置下,我们的方法比基线方法平均高出3.56%。

英文摘要:

A widely used algorithm for transfer learning is fine-tuning, where a pre-trained model is fine-tuned on a target task with a small amount of labeled data. When the capacity of the pre-trained model is significantly larger than the size of the target dataset, fine-tuning is prone to overfitting and memorizing the training labels. Hence, a crucial question is to regularize fine-tuning and ensure its robustness against noise. To address this question, we begin by analyzing the generalization properties of fine-tuning. We present a PAC-Bayes generalization bound that depends on the distance traveled in each layer during fine-tuning and the noise stability of the fine-tuned model. We empirically measure these quantities. Based on the analysis, we propose regularized self-labeling -- the interpolation between regularization and self-labeling methods, including (i) layer-wise regularization to constrain the distance traveled in each layer; (ii) self-label-correction and label-reweighting to correct mislabeled data points (that the model is confident) and reweight less confident data points. We validate our approach on an extensive collection of image and text datasets using multiple pre-trained model architectures. Our approach improves baseline methods by 1.76% (on average) for seven image classification tasks and 0.75% for a few-shot classification task. When the target data set includes noisy labels, our approach outperforms baseline methods by an average of 3.56% in two noisy settings.

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

↑