Skip to yearly menu bar Skip to main content


Spotlight Poster

Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Maps

Goro Kobayashi · Tatsuki Kuribayashi · Sho Yokoi · Kentaro Inui

Halle B #50
[ ]
Thu 9 May 1:45 a.m. PDT — 3:45 a.m. PDT

Abstract:

Transformers are ubiquitous in wide tasks.Interpreting their internals is a pivotal goal. Nevertheless, their particular components, feed-forward (FF) blocks, have typically been less analyzed despite their substantial parameter amounts.We analyze the input contextualization effects of FF blocks by rendering them in the attention maps as a human-friendly visualization scheme.Our experiments with both masked- and causal-language models reveal that FF networks modify the input contextualization to emphasize specific types of linguistic compositions. In addition, FF and its surrounding components tend to cancel out each other's effects, suggesting potential redundancy in the processing of the Transformer layer.

Live content is unavailable. Log in and register to view live content