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

探究 Transformer 语言模型中动词体范畴

Probing the Category of Verbal Aspect in Transformer Language Models

University of Helsinki(赫尔辛基大学)

Anisia Katinskaia, Roman Yangarber

AI总结:

本文首次探究了预训练语言模型在俄语中编码动词体范畴的机制,通过行为与因果探测发现BERT和RoBERTa主要在最后一层编码该特征,并证明仅微调最后一层预测体更高效。

摘要:

我们研究了预训练语言模型(PLM)如何在俄语中编码动词体这一语法范畴。此前在任何语言中,都未曾研究过 Transformer 语言模型对动词体的编码。一个特殊的挑战是由“替代语境”提出的:在这些语境中,完成体或未完成体在语法和语义上都是合适的。我们在替代和非替代语境下使用 BERT 和 RoBERTa 进行探测。首先,我们通过行为探测评估模型在体预测上的性能。接下来,通过因果探测,我们检查当模型的上下文表征被替换为反事实表征时模型的性能。这些反事实表征改变了“有界性”特征的值——这是一种语义特征,用于描述语境中的动作。实验表明,BERT 和 RoBERTa 确实编码了体——主要在它们的最后一层。反事实干预以相反的方式影响完成体和未完成体,这与语法一致:加入有界性含义会对完成体产生正向影响,反之亦然。我们探测结果的实际意义在于,仅微调 BERT 的最后一层来预测体,比微调整个模型更快且更有效。在替代语境中,模型对体具有很高的预测不确定性,因为这些语境往往缺乏关于所描述动作有界性的明确提示。

英文摘要:

We investigate how pretrained language models (PLM) encode the grammatical category of verbal aspect in Russian. Encoding of aspect in transformer LMs has not been studied previously in any language. A particular challenge is posed by "alternative contexts": where either the perfective or the imperfective aspect is suitable grammatically and semantically. We perform probing using BERT and RoBERTa on alternative and non-alternative contexts. First, we assess the models' performance on aspect prediction, via behavioral probing. Next, we examine the models' performance when their contextual representations are substituted with counterfactual representations, via causal probing. These counterfactuals alter the value of the "boundedness" feature--a semantic feature, which characterizes the action in the context. Experiments show that BERT and RoBERTa do encode aspect--mostly in their final layers. The counterfactual interventions affect perfective and imperfective in opposite ways, which is consistent with grammar: perfective is positively affected by adding the meaning of boundedness, and vice versa. The practical implications of our probing results are that fine-tuning only the last layers of BERT on predicting aspect is faster and more effective than fine-tuning the whole model. The model has high predictive uncertainty about aspect in alternative contexts, which tend to lack explicit hints about the boundedness of the described action.

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

↑