scimeatlas

Research map / Optimization / Implicit bias and generalization

Why Can GPT Learn In-Context? Language Models Secretly Perform Gradient Descent as Meta-Optimizers

Damai Dai, Yutao Sun, Li Dong, Yaru Hao, Shuming Ma, Zhifang Sui, Furu Wei

ACL 2023Optimization › Implicit bias and generalizationapproach: In-context learning as gradient descentopen problems in this approach382 citations (OpenAlex)

Peking University · Tsinghua University · Microsoft

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

10measured effects
8improved
2no clear effect

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
add momentum (EMA over attention values) to attention350M Transformer · language modeling, Valid 1024perplexity: 15.14 -> 15.02Improved
add momentum (EMA over attention values) to attention350M Transformer · in-context learning, six datasetsaverage accuracy: 51.9 -> 54.7Improved
add momentum to attention350M Transformer · IMDB in-context learningaccuracy: 64.0 -> 70.3Improved
add momentum to attention350M Transformer · PIQA in-context learningaccuracy: 68.7 -> 69.0Improved
use in-context demonstrations instead of zero-shotGPT 1.3B · SST2accuracy: 70.5 -> 92.7Improved
finetune on demonstrations for one step each instead of zero-shotGPT 1.3B · SST5accuracy: 39.3 -> 39.5No clear effect
compare ICL updates with finetuning updates versus random updatesGPT 2.7B · six datasets averageSimAOU: -0.001 -> 0.225Improved
compare ICL attention weights to after-finetuning versus before-finetuning weightsGPT 1.3B · six datasets averageSimAM: 0.338 -> 0.442Improved
compare ICL attention to training tokens with finetuning versus random weightsGPT 2.7B · six datasets averageKendall coefficient: 0.000 -> 0.214Improved
compare ICL attention weights before versus after finetuningGPT 2.7B · SST2 and CBSimAM: 0.687 -> 0.687 (SST2); 0.228 -> 0.217 (CB)No clear effect

Open problems in in-context learning as gradient descent

Do in-context gradient descent results for linear attention carry over to softmax and deeper transformers?

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