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

微调的Transformers显示跨图层的相似表示的群集

Fine-Tuned Transformers Show Clusters of Similar Representations Across Layers

New York University(纽约大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)

Jason Phang, Haokun Liu, Samuel R. Bowman

摘要:

尽管针对下游自然语言理解(NLU)任务成功地微调了像BERT这样的预训练语言编码器,但人们仍然对微调后神经网络的变化知之甚少。在这项工作中,我们使用中心内核对齐(CKA),一种比较学习表示的方法,来测量跨层任务调整模型中表示的相似性。在12个NLU任务的实验中,我们发现了一个一致的块对角结构,在微调的RoBERTa和ALBERT模型中表示的相似性,在早期和后期层的集群中具有很强的相似性,但在它们之间没有。后期层表示的相似性意味着后期层对任务性能的贡献很小,并且我们在实验中验证了微调的Transformers的顶部几层可以在不损害性能的情况下被丢弃,即使没有进一步的调整。

英文摘要:

Despite the success of fine-tuning pretrained language encoders like BERT for downstream natural language understanding (NLU) tasks, it is still poorly understood how neural networks change after fine-tuning. In this work, we use centered kernel alignment (CKA), a method for comparing learned representations, to measure the similarity of representations in task-tuned models across layers. In experiments across twelve NLU tasks, we discover a consistent block diagonal structure in the similarity of representations within fine-tuned RoBERTa and ALBERT models, with strong similarity within clusters of earlier and later layers, but not between them. The similarity of later layer representations implies that later layers only marginally contribute to task performance, and we verify in experiments that the top few layers of fine-tuned Transformers can be discarded without hurting performance, even with no further tuning.

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

↑