atlas

Research map / Architectures and efficiency / RNNs and normalization

Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizing

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 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 that parameter initialization scale (via initialization rate γ) determines whether transformers learn compositional inferential (reasoning) or symmetric (memorizing) solutions on unseen anchor pairs, with small initialization favoring reasoning.

Problem

Whether transformers learn underlying compositional primitives or memorize input-output mappings on unseen compositional tasks, and what determines which solution is learned.

Approach

Using anchor functions, the parameter initialization scale (standard deviation 1/d_in^γ, with initialization rate γ) is found to switch the learned solution for an unseen anchor pair between inferential (composed single-anchor mappings, low complexity) and symmetric (memorized, high complexity); the authors propose γ as a tunable hyperparameter.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use small initialization rather than large initialization (ablation)Transformer on unseen anchor pair (4, 3) · Synthetic anchor functionsInferential-mapping accuracyHelped
Use large initialization rather than small initialization (ablation)Transformer on unseen anchor pair (4, 3) · Synthetic anchor functionsSymmetric-mapping accuracyHelped
Use very large initialization with deep models (ablation)Transformer on seen anchor pairs · Synthetic anchor functionsAccuracyHurt
Use small initialization and large weight decay instead of large initialization and small weight decay (ablation)Transformer · SCAN, commands containing “turn left”Generalization performanceHelped
Use small initialization and large weight decay instead of large initialization and small weight decay (ablation)Transformer · COGS out-of-distributionGeneralization performanceHelped
Use small initialization and large weight decay instead of large initialization and small weight decay (ablation)Transformer · PrOntoQATest accuracyHelped
Use small initialization or large weight decay (ablation)Two-layer transformer and GPT-2 · Addition taskRule generalizationHelped
Use large initialization or small weight decay (ablation)Two-layer transformer and GPT-2 · Addition taskRule generalizationHurt
Use small initialization (ablation)GPT-2 Medium · SlimPajama, GitHub and GitHub+Wikipedia training dataPerplexityHelped
Increase learning rate and weight decay (ablation)3-layer, 1-head transformer with γ=0.5 · Unseen anchor pair (4, 3)Inferential-solution accuracyHelped
Extend initialization-rate variation to GPT-2 (ablation)GPT-2 · Unseen anchor pair (4, 3)Generalization performanceMixed

Surprising findings

Limitations

Experimental setup

Datasets: SCAN COGS PrOntoQA SlimPajama synthetic anchor-function data

Benchmarks: SCAN COGS PrOntoQA SlimPajama

Metrics: accuracy perplexity convergence steps

Baselines: large initialization with small weight decay

Builds on: anchor functions neural tangent kernel GPT-2

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