Metraipolis › archive › dc_3d1898e28a0e

Transformers as In-Context Samplers: From Closed-Form Diffusion to Estimation-Free Sampling — arXiv:2609.08981

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.08981
License (as archived)
CC0-1.0
Archived
2026-10-16T13:58:26.687Z
SHA-256 of the archived text
772179a05794cd637d127b17576ac87026cda6ee599a157d2ccfcdfffa577950
Stable URL of this page
https://metraipolis.com/documento/dc_3d1898e28a0e

How to cite

Transformers as In-Context Samplers: From Closed-Form Diffusion to Estimation-Free Sampling — arXiv:2609.08981 — arXiv (en), https://arxiv.org/abs/2609.08981 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_3d1898e28a0e (Metraipolis archive dc_3d1898e28a0e, sha256 772179a05794cd637d127b17576ac87026cda6ee599a157d2ccfcdfffa577950)
BibTeX
@misc{dc3d1898e28a0e,
  title = {Transformers as In-Context Samplers: From Closed-Form Diffusion to Estimation-Free Sampling — arXiv:2609.08981},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.08981},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_3d1898e28a0e; sha256 772179a05794cd637d127b17576ac87026cda6ee599a157d2ccfcdfffa577950},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.08981. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

A growing body of work establishes that large language models are not mere statistical memorizers, but are capable of in-context learning: performing inference at test time using only examples provided in the prompt, without any parameter updates. Prior theoretical work has shown that this capability extends to supervised learning tasks such as linear regression. We prove that in-context learning extends further to \emph{data generation}: frozen transformers can simulate iterative generative samplers from in-context samples. We first show that transformers can realize closed-form and smoothed closed-form diffusion samplers. The construction identifies a concrete generative role for softmax attention: it computes responsibility weights and weighted empirical averages, while feedforward layers implement Euler updates. To empirically relate these constructions to pretrained language models, we study \emph{semantic-topic sampling}: prompts consisting of words drawn from a common semantic category, such as animals, foods, or cities. Across transformer layers, the normalized hidden states exhibit a two-stage geometry: they move toward a uniform spherical reference in intermediate layers and then return to structured, topic-dependent representations near the output. We further measure an interacting-particle energy on these hidden-state clouds and observe the same U-shape pattern. We then prove that transformers can approximate an energy-based sampler, constructing the same U-shape energy across the layers.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-09 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Applications (stat.AP); Computation (stat.CO); Machine Learning (stat.ML).
Pagina del lavoro: https://arxiv.org/abs/2609.08981 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-16T13:39:43.076Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-09?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).