Lune

NeurIPS2024顶会

Pretrained Transformer Efficiently Learns Low-Dimensional Target Functions In-Context

Kazusato Oko, Yujin Song, Taiji Suzuki, Denny Wu

2024年份
34被引次数
11顶会引用

摘要

Transformers can efficiently learn in-context from example demonstrations. Most existing theoretical analyses studied the in-context learning (ICL) ability of transformers for linear function classes, where it is typically shown that the minimizer of the pretraining loss implements one gradient descent step on the least squares objective. However, this simplified linear setting arguably does not demonstrate the statistical efficiency of ICL, since the pretrained transformer does not outperform directly solving linear regression on the test prompt. In this paper, we study ICL of a nonlinear function class via transformer with nonlinear MLP layer: given a class of single-index target functions f∗(x)=σ∗(⟨x,β⟩)f_*(\boldsymbol{x}) = \sigma_*(\langle\boldsymbol{x},\boldsymbol{\beta}\rangle), where the index features β∈Rd\boldsymbol{\beta}\in\mathbb{R}^d are drawn from a rr-dimensional subspace, we show that a nonlinear transformer optimized by gradient descent (with a pretraining sample complexity that depends on the information exponent of the link functions σ∗\sigma_*) learns f∗f_* in-context with a prompt length that only depends on the dimension of the distribution of target functions rr; in contrast, any algorithm that directly learns f∗f_* on test prompt yields a statistical complexity that scales with the ambient dimension dd. Our result highlights the adaptivity of the pretrained transformer to low-dimensional structures of the function class, which enables sample-efficient ICL that outperforms estimators that only have access to the in-context data.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper11

问问它们各自怎么用它

它引用的顶会 Paper10

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖