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

Quantifying Context Mixing in Transformers

Tilburg University(蒂尔堡大学);University of Amsterdam(阿姆斯特丹大学)

Hosein Mohebbi, Willem Zuidema, Grzegorz Chrupała, Afra Alishahi

英文摘要:

Self-attention weights and their transformed variants have been the main source of information for analyzing token-to-token interactions in Transformer-based models. But despite their ease of interpretation, these weights are not faithful to the models' decisions as they are only one part of an encoder, and other components in the encoder layer can have considerable impact on information mixing in the output representations. In this work, by expanding the scope of analysis to the whole encoder block, we propose Value Zeroing, a novel context mixing score customized for Transformers that provides us with a deeper understanding of how information is mixed at each encoder layer. We demonstrate the superiority of our context mixing score over other analysis methods through a series of complementary evaluations with different viewpoints based on linguistically informed rationales, probing, and faithfulness analysis.

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

↑