关注自我注意:通过注意引导改进预训练语言模型
Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guiding
摘要:
预训练的语言模型(PLM)已经证明了它们在广泛的信息检索和自然语言处理任务中的有效性。作为生命周期管理的核心部分,多头自注意因其能够从不同的位置共同关注信息而备受关注。然而,研究人员发现,PLM总是表现出固定的注意力模式,而不管输入是什么(例如,过度关注[CLS]或[SEP]),我们认为这可能会忽略其他位置的重要信息。在这项工作中,我们提出了一个简单而有效的注意力引导机制,以提高PLM的性能,鼓励对既定目标的关注。具体来说,我们提出了两种注意引导方法,即,地图辨别引导(MDG)和注意模式去相关引导(PDG)。前者肯定鼓励多个自我注意头之间的多样性,以共同关注来自不同表征子空间的信息,而后者鼓励自我注意关注尽可能多的输入的不同位置。我们使用多个一般的预训练模型(即,BERT、ALBERT和Roberta)和领域特定的预训练模型(即,BioBERT、ClinicalBERT、BlueBert和SciBERT)在三个基准数据集(即,MultiNLI、MedNLI和Cross-genre-IR)。大量的实验结果表明,我们提出的MDG和PDG带来了稳定的性能提高所有数据集的高效率和低成本。
英文摘要:
Pre-trained language models (PLM) have demonstrated their effectiveness for a broad range of information retrieval and natural language processing tasks. As the core part of PLM, multi-head self-attention is appealing for its ability to jointly attend to information from different positions. However, researchers have found that PLM always exhibits fixed attention patterns regardless of the input (e.g., excessively paying attention to [CLS] or [SEP]), which we argue might neglect important information in the other positions. In this work, we propose a simple yet effective attention guiding mechanism to improve the performance of PLM by encouraging attention towards the established goals. Specifically, we propose two kinds of attention guiding methods, i.e., map discrimination guiding (MDG) and attention pattern decorrelation guiding (PDG). The former definitely encourages the diversity among multiple self-attention heads to jointly attend to information from different representation subspaces, while the latter encourages self-attention to attend to as many different positions of the input as possible. We conduct experiments with multiple general pre-trained models (i.e., BERT, ALBERT, and Roberta) and domain-specific pre-trained models (i.e., BioBERT, ClinicalBERT, BlueBert, and SciBERT) on three benchmark datasets (i.e., MultiNLI, MedNLI, and Cross-genre-IR). Extensive experimental results demonstrate that our proposed MDG and PDG bring stable performance improvements on all datasets with high efficiency and low cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。