Is In-Context Universality Enough? MLPs are Also Universal In-Context

Anastasis Kratsios, Takashi Furuya
2/5/2025
stat.MLcs.LGcs.NE

No confident code implementation found for this paper.

Abstract

The success of transformers is often linked to their ability to perform in-context learning. Recent work shows that transformers are universal in context, capable of approximating any real-valued continuous function of a context (a probability measure over $\mathcal{X}\subseteq \mathbb{R}^d$) and a query $x\in \mathcal{X}$. This raises the question: Does in-context universality explain their advantage over classical models? We answer this in the negative by proving that MLPs with trainable activation functions are also universal in-context. This suggests the transformer's success is likely due to other factors like inductive bias or training stability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kratsios2025incontext,
  title  = {Is In-Context Universality Enough? MLPs are Also Universal In-Context},
  author = {Anastasis Kratsios and Takashi Furuya},
  year   = {2025},
  eprint = {2502.03327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.03327v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.03327.svg)](https://codeofpaper.com/paper/2502.03327)

Discussion