scimeatlas

Research map / Architectures and efficiency / Attention and transformers

The Impact of Depth on Compositional Generalization in Transformer Language Models

Jackson Petty, Sjoerd van Steenkiste, Ishita Dasgupta, Fei Sha, Dan Garrette, Tal Linzen

NAACL 2024Architectures and efficiency › Attention and transformersapproach: Attention head mechanismsopen problems in this approach64 citations (OpenAlex)

New York University · Google · Google DeepMind

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
6improved
2no clear effect
3hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase depth from 1 to 2 layers at constant parameter count (ablation)134M-parameter decoder-only LM · COGSaccuracy (%): 19.4 -> 65.5Improved
increase depth from 2 to 12 layers at constant parameter count (ablation)134M-parameter decoder-only LM · COGSaccuracy (%): 65.5 -> 73.0Improved
increase depth from 1 to 12 layers at constant parameter count (ablation)134M-parameter decoder-only LM · C4 validationperplexity: 33.6 -> 18.1Improved
increase depth from 24 to 32 layers at constant parameter count (ablation)374M-parameter decoder-only LM · C4 validationperplexity: 14.4 -> 14.7Hurt
increase depth from 1 to 24 layers at constant parameter count (ablation)374M-parameter decoder-only LM · COGSaccuracy (%): 21.5 -> 78.0Improved
increase depth (ablation)41M, 134M, 374M decoder-only LMs · COGS structural generalizationaccuracyNo clear effect
increase depth from 12 to 32 layers (ablation)134M-parameter decoder-only LM · GeoQuery Standardaccuracy (%): 82.9 -> 78.9No clear effect
increase depth from 2 to 4 layers (ablation)374M-parameter decoder-only LM · English Passivizationaccuracy (%): 13.6 -> 89.8, then 18.8 at 6 layersMixed
fine-tune from checkpoints of deeper models matched to the shallow reference model's validation perplexity (ablation)134M-parameter decoder-only LM · COGSaccuracyImproved
compare models at equal in-distribution loss (0.0002) during fine-tuning (ablation)decoder-only LMs · COGSaccuracyImproved
increase depth when d_ff falls below d_model (ablation)decoder-only LMs · C4 validationperplexityHurt
increase depth (ablation)374M-parameter decoder-only LM · training latencyseconds per stepHurt

Open problems in attention head mechanisms

Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?

All 5 open problems and what was already tried →

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