atlas

Research map / Large language models / Agents, code and math

Can large language models explore in-context?

NeurIPS 2024 · Large language models › Agents, code and math · approach: Long-horizon LLM agents · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Tests whether off-the-shelf LLMs (GPT-3.5, GPT-4, Llama2-13B) explore in-context in multi-armed bandits across 32 prompt designs, finding only GPT-4 with summarized history and reinforced chain-of-thought explores robustly.

Problem

Whether contemporary LLMs, without training interventions, can perform exploration in in-context multi-armed bandit decision making, where history and environment are specified only in the prompt.

Approach

Deploys LLMs as bandit agents via a factorial space of prompt designs and uses surrogate statistics (suffix failure frequency and scaled minimum arm fraction) that can be measured at moderate scale to diagnose long-term exploration failure, rather than noisy cumulative reward.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the BSS reinforced-CoT prompt: suggestive framing, externally summarized history, and chain-of-thought at temperature 0GPT-4 · Hard 5-armed banditexploration successHelped
Replace summarized history with raw history (ablation)GPT-4 BSS reinforced-CoT configuration · Hard 5-armed bandit, T=200suffix failure frequencyHurt
Use the basic prompt instead of the BSS reinforced-CoT promptGPT-4 · Hard 5-armed bandit, T=500suffix failure frequency: >60%Hurt
Use GPT-3.5 or Llama2 instead of GPT-4LLM agents · Hard multi-armed banditexploration performanceMixed

Surprising findings

Limitations

Experimental setup

Benchmarks: stochastic Bernoulli bandit (K=5, gap 0.2, hard) stochastic Bernoulli bandit (K=4, gap 0.5, easy)

Metrics: suffix failure frequency MinFrac (uniform-like failure) median rescaled reward GreedyFrac

Baselines: UCB Thompson Sampling Greedy epsilon-Greedy

Builds on: UCB Thompson Sampling zero-shot chain-of-thought

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy