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

详细了解微调如何改变BERT

A Closer Look at How Fine-tuning Changes BERT

University of Utah(犹他大学)

Yichu Zhou, Vivek Srikumar

摘要:

鉴于在当今的NLP中普遍存在预先训练的语境化表征,人们已经做出了许多努力来了解它们包含哪些信息,以及为什么它们似乎普遍成功。使用这些表示的最常见方法是针对最终任务对其进行微调。然而,微调如何改变底层嵌入空间的研究较少。在这项工作中,我们研究了英语BERT家庭,并使用两种探测技术来分析微调如何改变空间。我们假设微调通过增加与不同标签相关的示例之间的距离来影响分类性能。我们证实了这一假设,精心设计的实验上五个不同的NLP任务。通过这些实验,我们还发现了一个例外,流行的智慧,“微调总是提高性能”。最后,通过比较微调前后的表示,我们发现微调不会对表示进行任意更改;相反,它会将表示调整到下游任务,同时在很大程度上保留数据点的原始空间结构。

英文摘要:

Given the prevalence of pre-trained contextualized representations in today's NLP, there have been many efforts to understand what information they contain, and why they seem to be universally successful. The most common approach to use these representations involves fine-tuning them for an end task. Yet, how fine-tuning changes the underlying embedding space is less studied. In this work, we study the English BERT family and use two probing techniques to analyze how fine-tuning changes the space. We hypothesize that fine-tuning affects classification performance by increasing the distances between examples associated with different labels. We confirm this hypothesis with carefully designed experiments on five different NLP tasks. Via these experiments, we also discover an exception to the prevailing wisdom that "fine-tuning always improves performance". Finally, by comparing the representations before and after fine-tuning, we discover that fine-tuning does not introduce arbitrary changes to representations; instead, it adjusts the representations to downstream tasks while largely preserving the original spatial structure of the data points.

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

↑