atlas

Research map / Architectures and efficiency / Attention and transformers

Abrupt Learning in Transformers: A Case Study on Matrix Completion

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 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.

Trains a 4-layer BERT on masked low-rank matrix completion and interprets the sudden loss drop as an algorithmic shift from copying the input to computing missing entries.

Problem

Understanding why Transformer training loss plateaus and then suddenly drops, using low-rank matrix completion as a controlled masked-language-modeling-style task.

Approach

Casts low-rank matrix completion as masked language modeling over tokenized matrix entries, trains BERT online, and uses interventions (token replacement, uniform attention ablation, weight switching, activation patching, position permutation) plus probing to show the sudden drop coincides with a change from copying to completing masked entries.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train BERT to complete masked low-rank matrices4-layer, 8-head BERT · 7×7 rank-2 matrix completionMSEHelped
replace nuclear norm minimization with trained BERT7×7 rank-2 matrix completion · matrix completion at various mask levelsMSEHelped
uniformly ablate all attention heads (ablation)pre-shift BERT · 7×7 rank-2 matricesL_mask: 0.2236 -> 0.2236No clear effect
replace pre-shift attention weights with post-shift weights (ablation)pre-shift BERT · 7×7 rank-2 matricesL_mask: 0.2246No clear effect
uniformly ablate all attention heads (ablation)post-shift BERT · 7×7 rank-2 matricesL_mask: 0.0128 -> 0.2183Hurt
replace post-shift attention weights with pre-shift weights (ablation)post-shift BERT · 7×7 rank-2 matricesL_obs: 9.44e-5 -> 9.5e-4Hurt
randomly permute positional embeddings (ablation)post-shift BERT · 7×7 rank-2 matricesL_mask: 0.01428 -> 0.5687Hurt
ablate row-head group (2,1), (3,4), (4,8) (ablation)post-shift BERT · 7×7 rank-2 matricesL: $0.0035$ -> $0.0073$Hurt
ablate observed-copy heads (4,3), (4,4) (ablation)post-shift BERT · 7×7 rank-2 matricesL: $0.0045$ -> $0.0079$Hurt
ablate mask-ignore heads (ablation)post-shift BERT · 7×7 rank-2 matricesL: $0.0043$ -> $0.057$Hurt
ablate longest-contiguous-column heads (2,5), (2,7), (2,8) (ablation)post-shift BERT · 7×7 rank-2 matricesL: $0.0049$ -> $0.0112$Hurt
ablate input-processing heads (1,1–2), (1,5–8) (ablation)post-shift BERT · 7×7 rank-2 matricesL: $0.0048$ -> $0.0314$Hurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic low-rank matrices (Unif[-1,1] factors)

Benchmarks: synthetic 7x7 rank-2 matrix completion

Metrics: MSE overall MSE on observed entries MSE on masked entries

Baselines: nuclear norm minimization regularized MSE minimization

Builds on: BERT nuclear norm minimization grokking

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