arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.02871cs.CVcs.LG
收藏

面向Transformer进一步预训练的自蒸馏方法

Self-Distillation for Further Pre-training of Transformers

KAIST(韩国科学技术院);AITRICS;National University of Singapore(新加坡国立大学)

Seanie Lee, Minki Kang, Juho Lee, Sung Ju Hwang, Kenji Kawaguchi

AI总结:

针对Transformer跨域进一步预训练时视觉模型易过拟合的问题,提出将自蒸馏作为正则化手段,结合掩码自编码目标训练学生模型,在图文分类基准上优于相关基线,并通过理论分析解释其作用机制。

摘要:

在海量无标注数据上预训练大型Transformer模型,再在标注数据集上针对各类下游任务进行微调,已被证实是适用于多种视觉与自然语言处理任务的有效策略。然而,若预训练与微调的数据域之间存在较大差异,直接对预训练模型进行微调可能无法取得最优效果。为解决这一问题,已有多项研究提出了进一步预训练策略,即在微调前先在目标无标注数据集上继续预训练模型,但这些研究均仅聚焦于语言模型;且我们通过实验发现,当在目标无标注数据上继续预训练视觉Transformer时,模型容易出现过拟合问题。\n为克服这一局限,我们提出将自蒸馏作为进一步预训练阶段的正则化方法。具体而言,我们首先在目标无标注数据上对初始预训练模型进行进一步预训练,随后将其作为自蒸馏的教师模型;接着以相同的初始预训练模型作为学生模型,在通过掩码自编码目标优化学生模型的同时,约束其隐藏表示与教师模型的隐藏表示趋近。\n我们在多个用于图像与文本分类任务的基准数据集上,通过实验验证了自蒸馏方法的有效性,结果表明所提方法的性能优于所有相关基线模型。此外,我们还通过简化模型对所提方法进行了理论分析,以探究用于进一步预训练的自蒸馏提升下游任务性能的潜在机制。

英文摘要:

Pre-training a large transformer model on a massive amount of unlabeled data and fine-tuning it on labeled datasets for diverse downstream tasks has proven to be a successful strategy, for a variety of vision and natural language processing tasks. However, direct fine-tuning of the pre-trained model may be suboptimal if there exist large discrepancies across data domains for pre-training and fine-tuning. To tackle this issue, several previous studies have proposed further pre-training strategies, where we continue to pre-train the model on the target unlabeled dataset before fine-tuning. However, all of them solely focus on language models and we empirically find that a Vision Transformer is vulnerable to overfitting as we continue to pretrain the model on target unlabeled data. In order to tackle this limitation, we propose self-distillation as a regularization for a further pre-training stage. Specifically, we first further pre-train the initial pre-trained model on the target unlabeled data and then consider it as a teacher for self-distillation. Then we take the same initial pre-trained model as a student and enforce its hidden representations to be close to those of the teacher while optimizing the student with a masked auto-encoding objective. We empirically validate the efficacy of self-distillation on a variety of benchmark datasets for image and text classification tasks. Experimentally, we show that our proposed method outperforms all the relevant baselines. Theoretically, we analyze the proposed method with a simplified model to understand how self-distillation for further pre-training can potentially help improve the performance of the downstream tasks.

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

↑