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

通过语法错误检测挖掘目标句法知识

Probing for targeted syntactic knowledge through grammatical error detection

ALTA Institute(ALTA研究所);University of Cambridge(剑桥大学);Imperial College London(帝国理工学院)

Christopher Davis, Christopher Bryant, Andrew Caines, Marek Rei, Paula Buttery

摘要:

测试主谓一致性(SVA)知识的有针对性的研究表明,预先训练的语言模型编码句法信息。我们断言,如果模型鲁棒地编码主谓一致,它们应该能够识别何时一致是正确的,何时不正确。为此,我们提出了语法错误检测作为诊断探针,以评估他们的知识SVA标记级的上下文表示。我们从五个预先训练的英语语言模型:BERT,XLNet,GPT-2,RoBERTa和ELECTRA中评估每一层的上下文表示。我们利用来自英语第二语言学习者和维基百科编辑的公共注释训练数据,并报告手动制作的主谓一致刺激的结果。我们发现,掩蔽的语言模型线性编码的信息相关的SVA错误的检测,而自回归模型与我们的基线。然而,我们也观察到当探测器在不同的训练集上训练时,以及当它们在不同的句法结构上进行评估时,性能上的差异,这表明与SVA错误检测有关的信息没有被鲁棒地编码。

英文摘要:

Targeted studies testing knowledge of subject-verb agreement (SVA) indicate that pre-trained language models encode syntactic information. We assert that if models robustly encode subject-verb agreement, they should be able to identify when agreement is correct and when it is incorrect. To that end, we propose grammatical error detection as a diagnostic probe to evaluate token-level contextual representations for their knowledge of SVA. We evaluate contextual representations at each layer from five pre-trained English language models: BERT, XLNet, GPT-2, RoBERTa, and ELECTRA. We leverage public annotated training data from both English second language learners and Wikipedia edits, and report results on manually crafted stimuli for subject-verb agreement. We find that masked language models linearly encode information relevant to the detection of SVA errors, while the autoregressive models perform on par with our baseline. However, we also observe a divergence in performance when probes are trained on different training sets, and when they are evaluated on different syntactic constructions, suggesting the information pertaining to SVA error detection is not robustly encoded.

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

↑