Deep de Finetti: Recovering Topic Distributions from Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) can produce long, coherent passages of text, suggesting that LLMs, although trained on next-word prediction, must represent the latent structure that characterizes a document. Prior work has found that internal representations of LLMs encode one aspect of latent structure, namely syntax; here we investigate a complementary aspect, namely the document's topic structure. We motivate the hypothesis that LLMs capture topic structure by connecting LLM optimization to implicit Bayesian inference. De Finetti's theorem shows that exchangeable probability distributions can be represented as a mixture with respect to a latent generating distribution. Although text is not exchangeable at the level of syntax, exchangeability is a reasonable starting assumption for topic structure. We thus hypothesize that predicting the next token in text will lead LLMs to recover latent topic distributions. We examine this hypothesis using Latent Dirichlet Allocation (LDA), an exchangeable probabilistic topic model, as a target, and we show that the representations formed by LLMs encode both the topics used to generate synthetic data and those used to explain natural corpus data.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 21 Dec 2023.
Builds on
23 of 35 references.
References · 23
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2016Fine-grained Analysis of Sentence Embeddings Using Auxiliary Prediction Taskscited by 216
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 180
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 178
- 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
11 more
- 2017Learning to Generate Reviews and Discovering Sentimentcited by 148
- 2022Language Models as Agent Modelscited by 132
- 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 120
- 2018Under the Hood: Using Diagnostic Classifiers to Investigate and Improve how Language Models Track Agreement Informationcited by 97
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2020Tired of Topic Models? Clusters of Pretrained Word Embeddings Make for Fast and Good Topics too!cited by 73
- 2022Is Neural Topic Modelling Better than Clustering? An Empirical Study on Clustering with Contextual Embeddings for Topicscited by 35
- 2022Topic Discovery via Latent Space Clustering of Pretrained Language Model Representationscited by 34
- 2018BRUNO: A Deep Recurrent Model for Exchangeable Datacited by 11
- 2022Probing BERT's priors with serial reproduction chainscited by 11
- 2022Inconsistencies in Masked Language Modelscited by 2
Built on by
Citing papers per year: 2024: 5; 2025: 1; 2026: 1.
7 papers.
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 57
- 2024Incoherent Probability Judgments in Large Language Modelscited by 30
- 2024Eliciting the Priors of Large Language Models using Iterated In-Context Learningcited by 19
- 2025Levels of Analysis for Large Language Modelscited by 10
- 2024Recovering Mental Representations from Large Language Models with Markov Chain Monte Carlocited by 4
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanismcited by 0
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanism28 Sep 2026
- 2025Levels of Analysis for Large Language Models17 Mar 2025
- 2024Eliciting the Priors of Large Language Models using Iterated In-Context Learning4 Jun 2024
- 2024Get my drift? Catching LLM Task Drift with Activation Deltas2 Jun 2024
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspective2 Jun 2024
- 2024Recovering Mental Representations from Large Language Models with Markov Chain Monte Carlo30 Jan 2024
- 2024Incoherent Probability Judgments in Large Language Models30 Jan 2024
Similar, not cited
Close in wording, no citation either way
- 2026The Probabilistic Structure of Large Language Models
- 2024Addressing Topic Granularity and Hallucination in Large Language Models for Topic Modelling
- 2024Beyond the Black Box: A Statistical Model for LLM Reasoning and Inference
- 2025Diffusion vs. Autoregressive Language Models: A Text Embedding Perspective
- 2023DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLM
- 2025Model Directions, Not Words: Mechanistic Topic Models Using Sparse Autoencoders
- 2025Beyond Tokens in Language Models: Interpreting Activations through Text Genre Chunks
- 2026Continuous Latent Diffusion Language Model