paper-with-me

홈 › Papers

How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPs

2025-10-29 · Samet Demir, Zafer Dogan arxiv

Pretrained Transformers demonstrate remarkable in-context learning (ICL) capabilities, enabling them to adapt to new tasks from demonstrations without parameter updates. However, theoretical studies often rely on simplified architectures (e.g., omitting MLPs), plain data models (e.g., linear regression with isotropic inputs), and single-source training, limiting their relevance to realistic settings. In this work, we study ICL in pretrained Transformers with nonlinear MLP heads on nonlinear tasks drawn from multiple data sources with heterogeneous input, task, and noise distributions. We analyze a model where the MLP comprises two layers, with the first layer trained via a single gradient step and the second layer fully optimized. Under high-dimensional asymptotics, we prove that such models are equivalent in ICL error to structured polynomial predictors, leveraging results from the theory of Gaussian universality and orthogonal polynomials. This equivalence reveals that nonlinear MLPs meaningfully enhance ICL performance, particularly on nonlinear tasks, compared to linear baselines. It also enables a precise analysis of data mixing effects: we identify key properties of high-quality data sources (low noise, structured covariances) and show that feature learning emerges only when the task covariance exhibits sufficient structure. These results are validated empirically across various activation functions, model sizes, and data distributions. Finally, we experiment with a real-world scenario involving multilingual sentiment analysis where each language is treated as a different source. Our experimental results for this case exemplify how our findings extend to real-world cases. Overall, our work advances the theoretical foundations of ICL in Transformers and provides actionable insight into the role of architecture and data in ICL.

📄 PDF Abstract BibTeX arXiv:2510.25753

Code (0)

등록된 구현이 없습니다.

Tasks

Sentiment Analysis

Similar Papers 제목 키워드 기반

Transformer based Endmember Fusion with Spatial Context for Hyperspectral Unmixing

2024-02-06 · R. M. K. L. Ratnayake, D. M. U. P. Sumanasekara, H. M. K. D. Wickramathilaka, G. M. R. I. Godaliyadda 외

In recent years, transformer-based deep learning networks have gained popularity in Hyperspectral (HS) unmixing applications due to their superior performance. The attention mechanism within transformers facilitates inpu…

Hyperspectral Unmixing

Asymptotic Study of In-context Learning with Random Transformers through Equivalent Models

2025-09-18 · Samet Demir, Zafer Dogan arxiv

We study the in-context learning (ICL) capabilities of pretrained Transformers in the setting of nonlinear regression. Specifically, we focus on a random Transformer with a nonlinear MLP head where the first layer is ran…

Causal structure learning with momentum: Sampling distributions over Markov Equivalence Classes of DAGs

2023-10-09 · Moritz Schauer, Marcel Wienöbst

In the context of inferring a Bayesian network structure (directed acyclic graph, DAG for short), we devise a non-reversible continuous time Markov chain, the ``Causal Zig-Zag sampler'', that targets a probability distri…

Causal DiscoveryGraph Sampling

ROAD: Adaptive Data Mixing for Offline-to-Online Reinforcement Learning via Bi-Level Optimization

2026-05-14 · Letian Yang, Xu Liu, Yiqiang Lu, Jian Liu 외 arxiv

Offline-to-online reinforcement learning harnesses the stability of offline pretraining and the flexibility of online fine-tuning. A key challenge lies in the non-stationary distribution shift between offline datasets an…

Reinforcement Learning

Functional additive models on manifolds of planar shapes and forms

2021-09-06 · Almond Stöcker, Lisa Steyer, Sonja Greven

The "shape" of a planar curve and/or landmark configuration is considered its equivalence class under translation, rotation and scaling, its "form" its equivalence class under translation and rotation while scale is pres…

Additive modelsFormModel SelectionTranslation