We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

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

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.
Comments: ICLR 2024 Spotlight; 37 pages, 32 figures, 3 tables
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2302.00456 [cs.CL]
  (or arXiv:2302.00456v3 [cs.CL] for this version)

Submission history

From: Goro Kobayashi [view email]
[v1] Wed, 1 Feb 2023 13:59:47 GMT (1312kb,D)
[v2] Sun, 1 Oct 2023 10:27:24 GMT (2258kb,D)
[v3] Mon, 15 Apr 2024 12:27:00 GMT (2977kb,D)

Link back to: arXiv, form interface, contact.