arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.10858cs.CL
收藏

Two-Stage Fine-Tuning:一种新的类不平衡数据学习策略

Two-Stage Fine-Tuning: A Novel Strategy for Learning Class-Imbalanced Data

Drexel University(德雷塞尔大学);United States Food and Drug Administration(美国食品药品监督管理局)

Taha ValizadehAslani, Yiwen Shi, Jing Wang, Ping Ren, Yi Zhang, Meng Hu, Liang Zhao, Hualou Liang

摘要:

长尾分布数据的分类是一个具有挑战性的问题,它存在严重的类不平衡,因此在只有少量样本的情况下,尾类的性能很差。由于样本的缺乏,在将预训练模型转移到下游任务时,对尾部类的学习对于微调来说尤其具有挑战性。在这项工作中,我们提出了一个简单的修改标准微调,以应对这些挑战。具体来说,我们提出了一个两阶段的微调:我们首先用类平衡的重新加权损失对预训练模型的最后一层进行微调,然后执行标准的微调。我们的修改有几个好处:(1)它通过只微调一小部分模型参数来利用预训练的表示,同时保持其余参数不变;(2)它允许模型学习特定任务的初始表示;重要的是(3)它保护尾类的学习在模型更新期间处于不利地位。我们在文本分类的两类和多类任务的合成数据集上进行了广泛的实验,以及ADME的实际应用(即,吸收、分布、代谢和排泄)语义标记。实验结果表明,所提出的两阶段微调优于传统的微调和微调与上述数据集上的重加权损失。

英文摘要:

Classification on long-tailed distributed data is a challenging problem, which suffers from serious class-imbalance and hence poor performance on tail classes with only a few samples. Owing to this paucity of samples, learning on the tail classes is especially challenging for the fine-tuning when transferring a pretrained model to a downstream task. In this work, we present a simple modification of standard fine-tuning to cope with these challenges. Specifically, we propose a two-stage fine-tuning: we first fine-tune the final layer of the pretrained model with class-balanced reweighting loss, and then we perform the standard fine-tuning. Our modification has several benefits: (1) it leverages pretrained representations by only fine-tuning a small portion of the model parameters while keeping the rest untouched; (2) it allows the model to learn an initial representation of the specific task; and importantly (3) it protects the learning of tail classes from being at a disadvantage during the model updating. We conduct extensive experiments on synthetic datasets of both two-class and multi-class tasks of text classification as well as a real-world application to ADME (i.e., absorption, distribution, metabolism, and excretion) semantic labeling. The experimental results show that the proposed two-stage fine-tuning outperforms both fine-tuning with conventional loss and fine-tuning with a reweighting loss on the above datasets.

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

↑