What Should Embeddings Embed? Autoregressive Models Represent Latent Generating Distributions

Liyi Zhang, Michael Y. Li, R. Thomas McCoy, Theodore R. Sumers, Jian-Qiao Zhu +1 more
6/6/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: zhang-liyi/llm-embeddings (0 stars, last commit 2026-03-23).

Abstract

Autoregressive language models have demonstrated a remarkable ability to extract latent structure from text. The embeddings from large language models have been shown to capture aspects of the syntax and semantics of language. But what should embeddings represent? We connect the autoregressive prediction objective to the idea of constructing predictive sufficient statistics to summarize the information contained in a sequence of observations, and use this connection to identify three settings where the optimal content of embeddings can be identified: independent identically distributed data, where the embedding should capture the sufficient statistics of the data; latent state models, where the embedding should encode the posterior distribution over states given the data; and discrete hypothesis spaces, where the embedding should reflect the posterior distribution over hypotheses given the data. We then conduct empirical probing studies to show that transformers encode these three kinds of latent generating distributions, and that they perform well in out-of-distribution cases and without token memorization in these settings.

View on arXivView PDF

Code Implementations(1)

Code for Paper - What Should Embeddings Embed? Autoregressive Models Represent Latent Generating Distributions

00Python, Jupyter NotebookJul 17, 20257 months ago

Similar Papers

Cite this paper

@article{zhang2024what,
  title  = {What Should Embeddings Embed? Autoregressive Models Represent Latent Generating Distributions},
  author = {Liyi Zhang and Michael Y. Li and R. Thomas McCoy and Theodore R. Sumers and Jian-Qiao Zhu and Thomas L. Griffiths},
  year   = {2024},
  eprint = {2406.03707},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.03707v2}
}

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/2406.03707.svg)](https://codeofpaper.com/paper/2406.03707)

Discussion