Enough Coin Flips Can Make LLMs Act Bayesian

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gupta, Ritwik, Corona, Rodolfo, Ge, Jiaxin, Wang, Eric, Klein, Dan, Darrell, Trevor, Chan, David M.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915363421159424
author Gupta, Ritwik
Corona, Rodolfo
Ge, Jiaxin
Wang, Eric
Klein, Dan
Darrell, Trevor
Chan, David M.
author_facet Gupta, Ritwik
Corona, Rodolfo
Ge, Jiaxin
Wang, Eric
Klein, Dan
Darrell, Trevor
Chan, David M.
contents Large language models (LLMs) exhibit the ability to generalize given few-shot examples in their input prompt, an emergent capability known as in-context learning (ICL). We investigate whether LLMs use ICL to perform structured reasoning in ways that are consistent with a Bayesian framework or rely on pattern matching. Using a controlled setting of biased coin flips, we find that: (1) LLMs often possess biased priors, causing initial divergence in zero-shot settings, (2) in-context evidence outweighs explicit bias instructions, (3) LLMs broadly follow Bayesian posterior updates, with deviations primarily due to miscalibrated priors rather than flawed updates, and (4) attention magnitude has negligible effect on Bayesian inference. With sufficient demonstrations of biased coin flips via ICL, LLMs update their priors in a Bayesian manner.
format Preprint
id arxiv_https___arxiv_org_abs_2503_04722
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enough Coin Flips Can Make LLMs Act Bayesian
Gupta, Ritwik
Corona, Rodolfo
Ge, Jiaxin
Wang, Eric
Klein, Dan
Darrell, Trevor
Chan, David M.
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) exhibit the ability to generalize given few-shot examples in their input prompt, an emergent capability known as in-context learning (ICL). We investigate whether LLMs use ICL to perform structured reasoning in ways that are consistent with a Bayesian framework or rely on pattern matching. Using a controlled setting of biased coin flips, we find that: (1) LLMs often possess biased priors, causing initial divergence in zero-shot settings, (2) in-context evidence outweighs explicit bias instructions, (3) LLMs broadly follow Bayesian posterior updates, with deviations primarily due to miscalibrated priors rather than flawed updates, and (4) attention magnitude has negligible effect on Bayesian inference. With sufficient demonstrations of biased coin flips via ICL, LLMs update their priors in a Bayesian manner.
title Enough Coin Flips Can Make LLMs Act Bayesian
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2503.04722