An Adversarial Example for Direct Logit Attribution: Memory Management in GELU-4L

Jett Janiak, Can Rager, James Dao, Yeu-Tong Lau
10/11/2023
cs.LGcs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

Prior work suggests that language models manage the limited bandwidth of the residual stream through a "memory management" mechanism, where certain attention heads and MLP layers clear residual stream directions set by earlier layers. Our study provides concrete evidence for this erasure phenomenon in a 4-layer transformer, identifying heads that consistently remove the output of earlier heads.

Show full abstract

We further demonstrate that direct logit attribution (DLA), a common technique for interpreting the output of intermediate transformer layers, can show misleading results by not accounting for erasure.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{janiak2023adversarial,
  title  = {An Adversarial Example for Direct Logit Attribution: Memory Management in GELU-4L},
  author = {Jett Janiak and Can Rager and James Dao and Yeu-Tong Lau},
  year   = {2023},
  eprint = {2310.07325},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.07325v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.07325.svg)](https://codeofpaper.com/paper/2310.07325)

Discussion