Recovering Mental Representations from Large Language Models with Markov Chain Monte Carlo

Jian-Qiao Zhu, Haijiang Yan, Thomas L. Griffiths
1/30/2024
cs.AIcs.CL

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Simulating sampling algorithms with people has proven a useful method for efficiently probing and understanding their mental representations. We propose that the same methods can be used to study the representations of Large Language Models (LLMs). While one can always directly prompt either humans or LLMs to disclose their mental representations introspectively, we show that increased efficiency can be achieved by using LLMs as elements of a sampling algorithm. We explore the extent to which we recover human-like representations when LLMs are interrogated with Direct Sampling and Markov chain Monte Carlo (MCMC). We found a significant increase in efficiency and performance using adaptive sampling algorithms based on MCMC. We also highlight the potential of our method to yield a more general method of conducting Bayesian inference \textit{with} LLMs.

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. 6 weaker matches are hidden by default — 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{zhu2024recovering,
  title  = {Recovering Mental Representations from Large Language Models with Markov Chain Monte Carlo},
  author = {Jian-Qiao Zhu and Haijiang Yan and Thomas L. Griffiths},
  year   = {2024},
  eprint = {2401.16657},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.16657v1}
}

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

Discussion