我们研究了预训练语言模型(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.
Demystifying Scientific Problem-Solving in LLMs by Probing Knowledge and Reasoning
Department of Computer Science, Yale University;Department of Molecular \& Cellular Biology, Harvard University;Allen Institute for AI;Department of Computer Science, Northwestern University
Intercepting the Kangaroo: Experimental Astrolinguistics with Constructed Lexicons, Active Probing, and Large Language Models as Informants and Hypothesis Proposers
Tracing Stereotypes from Representation to Output in Multilingual LLMs
Saarland University(萨尔大学);Queen’s University Belfast(贝尔法斯特女王大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心(DFKI));University of Technology Nuremberg(纽伦堡工业大学)