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

Incorporating Residual and Normalization Layers into Analysis of Masked Language Models

Tohoku University(东北大学);Langsmith Inc.(Langsmith 公司);RIKEN(理化学研究所)

Goro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro Inui

英文摘要:

Transformer architecture has become ubiquitous in the natural language processing field. To interpret the Transformer-based models, their attention patterns have been extensively analyzed. However, the Transformer architecture is not only composed of the multi-head attention; other components can also contribute to Transformers' progressive performance. In this study, we extended the scope of the analysis of Transformers from solely the attention patterns to the whole attention block, i.e., multi-head attention, residual connection, and layer normalization. Our analysis of Transformer-based masked language models shows that the token-to-token interaction performed via attention has less impact on the intermediate representations than previously assumed. These results provide new intuitive explanations of existing reports; for example, discarding the learned attention patterns tends not to adversely affect the performance. The codes of our experiments are publicly available.

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

↑