atlas

Research map / Large language models / Language, safety and interpretability

Transformers need glasses! Information over-squashing in language tasks

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows theoretically and empirically that decoder-only Transformers suffer representational collapse of last-token representations (exacerbated by low precision) and over-squashing of early tokens, explaining failures on counting and copying.

Problem

Decoder-only Transformer LLMs fail on simple copying and counting tasks; the paper asks why, by analysing what information about the input survives in the final-layer last-token representation used for next-token prediction under finite precision.

Approach

Uses signal-propagation analysis of the last token's final representation to prove representational collapse (distinct sequences, e.g. with a repeated final token, yield arbitrarily close representations as length grows) and links causal attention path counting to GNN over-squashing, with bounds on sensitivity to early tokens.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the hint “It's not necessarily a 1, check carefully”Gemini 1.5 copying the last token in a long sequence of ones · Copying taskcopy accuracyHelped
Replace a constant sequence of ones with alternating ones and zerosGemini 1.5 copying the last token · Copying taskcopy accuracyHelped
Add commas every third digitGemma 7B representations on a long string of ones · Copying tasklast-token representation separationHelped
Ask for the first rather than the last element of the sequenceGemini 1.5 · Copying taskcopy accuracyHelped
Increase the length of the input sequenceGemini 1.5 · Copying and counting taskstask performanceHurt

Surprising findings

Limitations

Experimental setup

Metrics: accuracy absolute error of counts L-infinity distance between last-layer representations total variation between softmax distributions

Builds on: over-squashing in GNNs Pre-LN Transformer Chomsky hierarchy analysis of Transformers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy