atlas

Research map / Large language models / Language, safety and interpretability

Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context Learning

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 1 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.

Gives a theoretical analysis showing a one-layer softmax-attention plus ReLU-MLP transformer trained with cross-entropy SGD on a concept-based sparse-coding prompt model reaches exponentially decaying 0-1 test error, and generalizes OOD to unseen multi-concept ICL tasks.

Problem

Understanding why transformers perform in-context learning and generalize out-of-distribution, given that prior theory uses simplified architectures/losses and only gets linear or sub-linear 0-1 loss convergence.

Approach

Models ICL prompts with a concept-specific sparse coding distribution whose word and label dictionaries have within-concept positive inner products and cross-concept orthogonality, then proves exponential 0-1 loss convergence for softmax attention + ReLU MLP trained with cross-entropy SGD, and shows OOD ICL via conic-combination data shifts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with cross-entropy loss and softmax attention plus a ReLU MLP on concept-specific sparse-coding promptsOne-layer Transformer · In-distribution test prompts0-1 test errorHelped
Use learned multi-concept semantic representations for compositional OOD generalizationOne-layer Transformer · OOD ICL prompts with allowed concept and data shifts0-1 test errorHelped
Use the proposed training analysis and setting rather than the compared prior approachTransformer ICL classification · Training sample complexitysample complexity: O(\varepsilon^{-2}) -> O(\log(\varepsilon^{-1}))Helped

Limitations

Experimental setup

Datasets: synthetic concept-specific sparse coding prompt distribution

Benchmarks: synthetic simulations (d=1000, m=50, L=4, K1=2)

Metrics: 0-1 test error

Baselines: Li et al. 2024 (softmax attention + ReLU MLP ICL dynamics) linear transformer analyses QK-combined attention-only models

Builds on: Li et al. 2024 transformer ICL learning dynamics hard low-noise condition PLSA LDA

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