Abstract
Large Language Models (LLMs) are increasingly deployed in autonomous decision-making systems. This paper investigates their ability to manage the "exploration-exploitation" tradeoff—the fundamental challenge of choosing between known high-reward actions and uncertain options that might yield better long-term results. Through a series of experiments in Multi-Armed Bandit (MAB) and Contextual Bandit (CB) settings, we find that while LLMs are powerful "exploration oracles" capable of identifying promising candidates in semantic spaces, they struggle as "exploitation oracles." Even advanced reasoning models often fail to outperform simple statistical baselines like linear regression in numerical tasks.
Introduction
In Reinforcement Learning (RL), agents must constantly balance exploitation (maximizing immediate reward) and exploration (gathering information). While recent trends suggest using LLMs "out-of-the-box" for these tasks, results have been inconsistent. This study takes a surgical approach by decoupling these roles. We evaluate LLMs as specialized components for either exploration or exploitation to identify where they provide genuine value over traditional algorithms.
Methodology
The researchers evaluated models ranging from GPT-3.5 to the GPT-5 family and reasoning models like DeepSeek-R1. The study defined two primary roles:
- Exploitation Oracles: Models were provided with a history of contexts, actions, and rewards and asked to predict the best action for a new context. Mitigations such as Chain-of-Thought (CoT), Python tool use, and in-context summarization (e.g., k-nearest neighbors) were tested to overcome context window and reasoning limitations.
- Exploration Oracles: In high-dimensional action spaces (e.g., movie recommendations), LLMs were used to "discretize" the space by selecting a small, diverse set of promising candidates. A standard UCB1 algorithm then selected the final action from this subset.
Results and Analysis
The Reasoning Advantage
A key finding is the significant performance jump in "reasoning" models. Newer generations, such as the GPT-5 family, demonstrate a much higher success rate in basic bandit tasks compared to their predecessors.
As shown in the comparison above, GPT-5-nano achieves near-perfect performance on tasks where GPT-3.5 and GPT-4 struggled, particularly as the empirical gap between options increases. This suggests that the underlying reasoning capabilities of the model are a primary driver of success in simple decision-making scenarios.
The Regression Ceiling
Despite these gains, LLMs face a "regression ceiling." In numerical contextual bandit tasks, LLMs—even when equipped with Python interpreters—consistently underperform compared to a simple linear regression baseline.
The data indicates that while models like GPT-5.2 improve upon their smaller counterparts, they still lag behind the 100% accuracy threshold achieved by basic statistical methods. LLMs appear to struggle with identifying underlying mathematical structures as efficiently as dedicated statistical models, even when provided with advanced reasoning prompts.
Semantic Superpowers
LLMs shine brightest in semantic exploration. Because they possess inherent linguistic knowledge, they excel at selecting diverse, high-quality subsets from thousands of text-based options (e.g., MovieLens or arXiv metadata). This task is computationally expensive for traditional algorithms but natural for LLMs, which can leverage internal knowledge to suggest candidates likely to result in high rewards.
Conclusion
LLMs are currently "overkill" for simple numerical exploitation but remain "under-powered" for complex statistical inference. The most promising path forward lies in hybrid systems: using LLMs as "proposers" for exploration in semantic spaces and classical statistical models as "rankers" for exploitation. Future work should focus on fine-tuning LLMs on algorithmic traces and optimizing tool use to bridge the gap with statistical baselines.
Summary updated