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

精细调谐NLP模型的潜空间变换

On the Transformation of Latent Space in Fine-Tuned NLP Models

Qatar Computing Research Institute(卡塔尔计算研究所);Hamad Bin Khalifa University(哈马德·本·哈利法大学);Dalhousie University(达尔豪斯大学)

Nadir Durrani, Hassan Sajjad, Fahim Dalvi, Firoj Alam

摘要:

我们研究了微调NLP模型中潜在空间的演化。不同于通常使用的探测框架,我们选择了一个无监督的方法来分析表示。更具体地说,我们使用层次聚类来发现代表空间中的潜在概念。然后,我们使用对齐函数来衡量预训练模型的潜在空间与其微调版本之间的相似性。我们使用传统的语言学概念,以促进我们的理解,也研究了模型空间如何向特定于任务的信息转换。我们进行了全面的分析,比较了三个模型和三个下游任务的预训练和微调模型。我们的工作的显着发现是:i)较高层的潜在空间向特定于任务的概念发展,ii)而较低层保留了在预训练模型中获得的通用概念,iii)我们发现高层中的一些概念获得了对输出类的极性,以及iv)这些概念可以用于生成对抗性触发器。

英文摘要:

We study the evolution of latent space in fine-tuned NLP models. Different from the commonly used probing-framework, we opt for an unsupervised method to analyze representations. More specifically, we discover latent concepts in the representational space using hierarchical clustering. We then use an alignment function to gauge the similarity between the latent space of a pre-trained model and its fine-tuned version. We use traditional linguistic concepts to facilitate our understanding and also study how the model space transforms towards task-specific information. We perform a thorough analysis, comparing pre-trained and fine-tuned models across three models and three downstream tasks. The notable findings of our work are: i) the latent space of the higher layers evolve towards task-specific concepts, ii) whereas the lower layers retain generic concepts acquired in the pre-trained model, iii) we discovered that some concepts in the higher layers acquire polarity towards the output class, and iv) that these concepts can be used for generating adversarial triggers.

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

↑