atlas

Research map / Architectures and efficiency / Attention and transformers

Transformer Learns Optimal Variable Selection in Group-Sparse Classification

ICLR 2025 · 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.

Shows theoretically that a one-layer transformer trained by joint gradient descent from zero initialization learns to attend to the label-relevant variable group in group-sparse classification, with a tight loss bound, and that its pretrained weights transfer to downstream tasks with improved sample complexity.

Problem

Understanding how transformers learn structured data: specifically, whether gradient-trained one-layer attention can perform optimal variable selection on group-sparse binary classification data, and whether the pretrained model transfers with few samples.

Approach

Analyzes the full optimization trajectory of all parameters (value vector and combined query-key matrix) of a simplified one-layer softmax-attention transformer with positional encodings under joint gradient descent from zero initialization, yielding matching upper and lower loss bounds and a sample complexity improvement over vectorized logistic regression for transfer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train a one-layer self-attention transformer by gradient descent on group-sparse classification dataOne-layer self-attention · Synthetic group-sparse classificationtraining lossHelped
Fine-tune a pre-trained one-layer transformer on downstream tasks sharing the group sparsity patternPre-trained one-layer self-attention · Downstream synthetic classificationtest accuracyHelped
Use self-attention to select the label-relevant groupOne-layer self-attention · Synthetic group-sparse classificationattention score on the label-relevant groupHelped

Limitations

Experimental setup

Datasets: synthetic group-sparse Gaussian data

Benchmarks: synthetic group-sparse data

Metrics: population cross-entropy loss attention score sparsity cosine similarity test accuracy generalization error bound

Baselines: linear logistic regression on vectorized features

Builds on: one-layer transformer optimization analysis (Tarzanagh et al.) sparse linear regression with transformers

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