arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.06133cs.LGcs.CV
收藏

用分块优化提高微调的可靠性

Improving Reliability of Fine-tuning with Block-wise Optimisation

University of Sunderland(桑德兰大学)

Basel Barakat, Qiang Huang

摘要:

微调可以通过转移知识来处理特定领域的任务。以前关于微调的研究集中在只调整特定任务分类器的权重,或者使用新的任务数据重新优化预训练模型的所有层。第一种方法不能缓解预训练模型和新任务数据之间的不匹配,第二种方法在处理数据有限的任务时容易导致过拟合。为了探索微调的有效性,我们提出了一种新的分块优化机制,该机制适应预训练模型的一组层的权重。在我们的工作中,层选择可以用四种不同的方式完成。第一种是逐层自适应,其目的是根据分类性能搜索最显著的单层。第二种方法是基于第一种方法,联合调整少量排名靠前的层,而不是使用单个层。第三种是基于块的分割,其中深度网络的层通过非加权层(例如MaxPooling层和Activation层)分割成块。最后一种是使用固定长度的滑动窗口逐块对层进行分组。为了识别哪组图层最适合进行微调,搜索从目标端开始,并通过冻结除选定图层和分类图层之外的其他图层来进行。根据分类性能确定最突出的层组。在我们的实验中,通过分别微调五个典型的预训练模型VGG 16,MobileNet-v1,MobileNet-v2,MobileNet-v3和ResNet 50 v2,在常用数据集Tf_flower上测试了所提出的方法。所得到的结果表明,使用我们提出的分块的方法可以实现更好的性能比两个基线方法和分层的方法。

英文摘要:

Finetuning can be used to tackle domain-specific tasks by transferring knowledge. Previous studies on finetuning focused on adapting only the weights of a task-specific classifier or re-optimizing all layers of the pre-trained model using the new task data. The first type of methods cannot mitigate the mismatch between a pre-trained model and the new task data, and the second type of methods easily cause over-fitting when processing tasks with limited data. To explore the effectiveness of fine-tuning, we propose a novel block-wise optimization mechanism, which adapts the weights of a group of layers of a pre-trained model. In our work, the layer selection can be done in four different ways. The first is layer-wise adaptation, which aims to search for the most salient single layer according to the classification performance. The second way is based on the first one, jointly adapting a small number of top-ranked layers instead of using an individual layer. The third is block based segmentation, where the layers of a deep network is segmented into blocks by non-weighting layers, such as the MaxPooling layer and Activation layer. The last one is to use a fixed-length sliding window to group layers block by block. To identify which group of layers is the most suitable for finetuning, the search starts from the target end and is conducted by freezing other layers excluding the selected layers and the classification layers. The most salient group of layers is determined in terms of classification performance. In our experiments, the proposed approaches are tested on an often-used dataset, Tf_flower, by finetuning five typical pre-trained models, VGG16, MobileNet-v1, MobileNet-v2, MobileNet-v3, and ResNet50v2, respectively. The obtained results show that the use of our proposed block-wise approaches can achieve better performances than the two baseline methods and the layer-wise method.

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

↑