Natural Language Processing (NLP) has been transformed by transformer-based language models, and attention mechanisms (particularly Multi-Head Attention (MHA)) have drawn a lot of interpretive attention. Other elements of the Transformer encoder block, like Feed-Forward Networks (FFN) and Residual Connections, are still not well understood. In order to separate the syntactic representation contributions of MHA, FFN, and residuals, we decompose and linearize the encoder block in this work. We assess each component’s ability to encode syntactic structure using syntax probing techniques. Our findings demonstrate that although each component makes a contribution, MHA makes a smaller contribution than is generally believed, while Residual Connections carry more syntactic information than anticipated. These results provide fresh perspectives on the internal organization of language models and guide future architectural advancements for enhanced syntactic comprehension

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Interpreting Masked Language Model Features with Decomposition and  \(\mathscr {V}\) Information

  • Joydip Kishore Bhattacharyya,
  • Vineet Padmanabhan,
  • Wilson Naik Bhukya,
  • Rajendra Prasad Lal

摘要

Natural Language Processing (NLP) has been transformed by transformer-based language models, and attention mechanisms (particularly Multi-Head Attention (MHA)) have drawn a lot of interpretive attention. Other elements of the Transformer encoder block, like Feed-Forward Networks (FFN) and Residual Connections, are still not well understood. In order to separate the syntactic representation contributions of MHA, FFN, and residuals, we decompose and linearize the encoder block in this work. We assess each component’s ability to encode syntactic structure using syntax probing techniques. Our findings demonstrate that although each component makes a contribution, MHA makes a smaller contribution than is generally believed, while Residual Connections carry more syntactic information than anticipated. These results provide fresh perspectives on the internal organization of language models and guide future architectural advancements for enhanced syntactic comprehension