arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.10318cs.CLcs.AI
收藏

多任务学习下多头注意力的功能特化解读与利用

Interpreting and Exploiting Functional Specialization in Multi-Head Attention under Multi-task Learning

State Key Laboratory of Multimodal Artificial Intelligence Systems(多模态人工智能系统国家重点实验室);Institute of Automation, CAS(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Chong Li, Shaonan Wang, Yunhao Zhang, Jiajun Zhang, Chengqing Zong

AI总结:

本研究通过量化多头注意力的功能特化程度,提出一种增强功能特化并缓解负迁移的多任务训练方法,在七个预训练Transformer模型上验证了其能提升多任务与迁移学习性能。

摘要:

基于Transformer的模型尽管在多个下游任务上取得了超越人类的表现,却常被视为黑箱并整体使用。目前尚不清楚它们学到了什么机制,尤其是其核心模块:多头注意力。受人类大脑中功能特化的启发——这种特化有助于高效处理多个任务——本研究试图探究多头注意力模块在多任务训练下是否也会演化出类似的功能分离。如果是,这种机制能否进一步提升模型性能?为探究这些问题,我们引入了一种解释方法来量化多头注意力中功能特化的程度。我们进一步提出了一种简单的多任务训练方法,以增强功能特化并缓解多任务学习中的负信息迁移。在七个预训练Transformer模型上的实验结果表明,多头注意力在多任务训练后确实演化出功能特化现象,且该现象受任务相似性的影响。此外,基于功能特化的多任务训练策略在不多添加任何参数的情况下,同时提升了多任务学习和迁移学习的性能。

英文摘要:

Transformer-based models, even though achieving super-human performance on several downstream tasks, are often regarded as a black box and used as a whole. It is still unclear what mechanisms they have learned, especially their core module: multi-head attention. Inspired by functional specialization in the human brain, which helps to efficiently handle multiple tasks, this work attempts to figure out whether the multi-head attention module will evolve similar function separation under multi-tasking training. If it is, can this mechanism further improve the model performance? To investigate these questions, we introduce an interpreting method to quantify the degree of functional specialization in multi-head attention. We further propose a simple multi-task training method to increase functional specialization and mitigate negative information transfer in multi-task learning. Experimental results on seven pre-trained transformer models have demonstrated that multi-head attention does evolve functional specialization phenomenon after multi-task training which is affected by the similarity of tasks. Moreover, the multi-task training strategy based on functional specialization boosts performance in both multi-task learning and transfer learning without adding any parameters.

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

↑