arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.04270cs.CL
收藏

大型语言模型BERT中论元结构构式的分析

Analysis of Argument Structure Constructions in the Large Language Model BERT

University Erlangen-Nuremberg(埃尔朗根-纽伦堡大学);University Hospital Erlangen(埃尔朗根大学医院)

Pegah Ramezani, Achim Schilling, Patrick Krauss

AI总结:

本研究通过分析BERT各层嵌入和注意力权重,揭示了其对四类论元结构构式的分层表示机制,发现OBJ token对构式区分最关键,并证明了BERT与LSTM处理方式的差异。

摘要:

本研究探讨了BERT如何处理和表示论元结构构式(ASCs),扩展了先前基于LSTM的分析。使用包含2000个句子、涵盖四种ASC类型(及物、双及物、致使移动、结果)的数据集,我们分析了BERT在12层中的token嵌入。采用MDS和t-SNE进行可视化,并通过广义判别值(GDV)量化聚类效果。前馈分类器(探针)从嵌入中预测构式类别。CLS token嵌入在第2-4层聚类效果最佳,在中间层有所下降,在最后几层略有上升。DET和SUBJ嵌入在中间层表现出稳定的聚类,VERB嵌入从第1层到第12层聚类程度逐渐增加,OBJ嵌入在第10层达到峰值。探针准确率表明第1层中构式信息较少,从第2层起准确率超过90%,揭示了超越GDV聚类的潜在构式信息。对注意力权重的Fisher判别比(FDR)分析显示,OBJ token对于区分ASC至关重要,其次是VERB和DET token。SUBJ、CLS和SEP token的FDR得分不显著。本研究揭示了BERT对语言构式的分层处理及其与LSTM的差异。未来研究将把这些发现与神经影像数据进行比较,以理解ASC处理的神经关联。本研究强调了神经语言模型在反映人脑语言处理方面的潜力,为语言理解背后的计算和神经机制提供了见解。

英文摘要:

This study investigates how BERT processes and represents Argument Structure Constructions (ASCs), extending previous LSTM analyses. Using a dataset of 2000 sentences across four ASC types (transitive, ditransitive, caused-motion, resultative), we analyzed BERT's token embeddings across 12 layers. Visualizations with MDS and t-SNE and clustering quantified by Generalized Discrimination Value (GDV) were used. Feedforward classifiers (probes) predicted construction categories from embeddings. CLS token embeddings clustered best in layers 2-4, decreased in intermediate layers, and slightly increased in final layers. DET and SUBJ embeddings showed consistent clustering in intermediate layers, VERB embeddings increased in clustering from layer 1 to 12, and OBJ embeddings peaked in layer 10. Probe accuracies indicated low construction information in layer 1, with over 90 percent accuracy from layer 2 onward, revealing latent construction information beyond GDV clustering. Fisher Discriminant Ratio (FDR) analysis of attention weights showed OBJ tokens were crucial for differentiating ASCs, followed by VERB and DET tokens. SUBJ, CLS, and SEP tokens had insignificant FDR scores. This study highlights BERT's layered processing of linguistic constructions and its differences from LSTMs. Future research will compare these findings with neuroimaging data to understand the neural correlates of ASC processing. This research underscores neural language models' potential to mirror linguistic processing in the human brain, offering insights into the computational and neural mechanisms underlying language understanding.

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

↑