atlas

Research map / Architectures and efficiency / Attention and transformers

The Closeness of In-Context Learning and Weight Shifting for Softmax Regression

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 2 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.

Theoretical analysis of softmax regression showing that the data transformation induced by a single softmax self-attention layer and by one gradient-descent step on an l2 loss are both norm-bounded, with small synthetic experiments showing similar behavior.

Problem

Prior theory explains in-context learning only for linear self-attention without softmax; it is unclear how softmax attention relates to gradient descent in in-context learning.

Approach

Formulates softmax regression min_x ||<exp(Ax),1_n>^{-1} exp(Ax) - b||_2 and proves Lipschitz-style bounds showing that one GD step on x and a self-attention-style update to the document A each shift the target b by at most M times the parameter change, with M = n^1.5 exp(10R^2).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train a single self-attention layer with softmax instead of one-step gradient descentSynthetic softmax regression tasks · Synthetic softmax regression taskslossNo clear effect
increase self-attention training stepsSingle self-attention layer with softmax · Synthetic softmax regression tasksprediction differenceHelped
increase self-attention training stepsSingle self-attention layer with softmax · Synthetic softmax regression tasksmodel cosine similarityHelped
increase document lengthSingle self-attention layer with softmax compared with one-step gradient descent · Synthetic softmax regression taskstraining steps required for similarityHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic softmax regression tasks (randomly sampled length-n documents A and targets b)

Benchmarks: synthetic softmax regression tasks

Metrics: loss prediction difference (l2) model sensitivity cosine similarity model sensitivity difference (l2)

Baselines: one-step gradient descent on softmax regression

Builds on: Transformers learn in-context by gradient descent (von Oswald-style linear atten Data transformation view of in-context learning (Olsson/Ong-style, ONR+22) Softmax regression analysis of DLS23 Exponential regression GMS23

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