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

关于 BERT 模型中注意力分数如何在 GLUE 基准的句法和语义任务中感知词汇类别的研究

A Study on How Attention Scores in the BERT Model are Aware of Lexical Categories in Syntactic and Semantic Tasks on the GLUE Benchmark

Seoul National University(首尔大学)

Dongjun Jang, Sungjoo Byun, Hyopil Shin

AI总结:

本研究探讨了BERT模型在GLUE基准任务微调中,注意力分数如何随词汇类别变化,证实了语义任务增强实词注意力、句法任务增强虚词注意力,并发现了与任务无关的词汇类别偏好层。

摘要:

本研究考察在下游任务的微调过程中,BERT 模型中 token 之间的注意力分数是否因词汇类别而产生显著变化。受人类语言处理中句法和语义信息解析方式不同的启发,我们根据词汇类别对句子中的 token 进行分类,并重点关注这些类别之间注意力分数的变化。我们假设,在优先处理语义信息的下游任务中,集中在实词上的注意力分数会增强;而在强调句法信息的任务中,集中在虚词上的注意力分数会强化。通过在 GLUE 基准数据集的六个任务上进行实验,我们证实了关于微调过程的假设。此外,我们的进一步研究揭示了存在一些 BERT 层,无论任务如何,它们都会持续对特定词汇类别赋予更多偏置,凸显了与任务无关的词汇类别偏好的存在。

英文摘要:

This study examines whether the attention scores between tokens in the BERT model significantly vary based on lexical categories during the fine-tuning process for downstream tasks. Drawing inspiration from the notion that in human language processing, syntactic and semantic information is parsed differently, we categorize tokens in sentences according to their lexical categories and focus on changes in attention scores among these categories. Our hypothesis posits that in downstream tasks that prioritize semantic information, attention scores centered on content words are enhanced, while in cases emphasizing syntactic information, attention scores centered on function words are intensified. Through experimentation conducted on six tasks from the GLUE benchmark dataset, we substantiate our hypothesis regarding the fine-tuning process. Furthermore, our additional investigations reveal the presence of BERT layers that consistently assign more bias to specific lexical categories, irrespective of the task, highlighting the existence of task-agnostic lexical category preferences.

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

↑