Why raising temperature is not curiosity, and how posterior sampling turns uncertainty into coherent, hypothesis-driven exploration
When we raise the temperature, we make an LLM agent’s outputs more diverse, but not necessarily more exploratory. To explore coherently, we sample a hypothesis about the environment, stick with it long enough to learn, and then revise our beliefs based on the results. In this post, we’ll show why resampling at every step fails over long horizons, where surprise, information gain, and empowerment matter, and how we can use belief state, objective selection, commitment, and belief revision to build a truly exploratory agent. We’ll illustrate the differences with three interactive demos and an exact probability comparison to make these ideas tangible.
Suppose two agents face a lock that opens only after the correct five-action sequence, with no feedback until a complete sequence has been entered. The first agent changes strategy midway through each attempt, while the second samples one theory of the mechanism and follows it until the attempt produces evidence. Both use the same model, prompt, and sampling temperature, and both are stochastic, but only one conducts an interpretable experiment.
A common recipe for making an LLM agent “more exploratory” is to raise its temperature, ask for diverse ideas, or sample more trajectories, each of which increases variation in the model’s outputs without determining whether that variation is aimed at resolving uncertainty, sustained across a long-horizon plan, or useful for later decisions. A model can emit many different tokens while remaining in the same region of behavior space.
The organizing idea is coherent exploration: randomness structured around persistent hypotheses about how the world works. Arumugam and Griffiths recently implemented this pattern by using LLM subroutines to perform posterior sampling for reinforcement learning
Temperature controls output diversity, but exploration is a policy for acquiring decision-relevant information. Closing that gap takes more than a new decoding rule. An exploratory agent needs a representation of epistemic uncertainty, a commitment horizon, a curiosity objective, and a memory that supports belief revision.
This post sharpens a point from my earlier post, Exploration as a Path to General Intelligence. Previously, I argued that exploration is essential for general intelligence and here I make it clear that real exploration means sampling persistent hypotheses about the environment, following them to test and revise, instead of injecting random variation at every step.
At temperature \(\tau>0\), a language model samples its next token from a rescaled distribution
\[p_{\tau}(x_t\mid x_{1:t-1},c) = \frac{\exp(z_t(x_t)/\tau)} {\sum_{v}\exp(z_t(v)/\tau)},\]where \(z_t(v)\) is the logit of token \(v\), \(c\) is the context, and a larger \(\tau\) flattens the distribution. This makes lower-probability tokens easier to sample. It can produce more phrasings, plans, and actions, which is often useful. But the distribution is over tokens conditioned on a textual history, not over hypotheses about the environment. A useful formalization separates this micro-policy over token sequences from the macro-policy over parsed environment actions, making clear that diversity in token sequences need not become diversity in environment actions
The distinction becomes obvious when multiple strings mean the same thing. “Search the documentation,” “look through the docs,” and “consult the manual” differ at the token level but may implement the same action. Conversely, two nearly identical tool calls may test very different causal hypotheses. Work on semantic uncertainty addresses one part of this mismatch by grouping generations according to meaning before measuring their entropy
The toy decoder below is a next-action distribution for a debugging session. Several wordings are the same action, and several actions test the same hypothesis. Raise the temperature: entropy grows, but the number of hypotheses in a short sample often does not.
Color is the hypothesis being tested. Counts are 24 draws from a toy decoder.
Figure 1. Temperature flattens a distribution over outputs. Semantic actions and causal hypotheses are coarser objects, so greater output diversity does not translate one-for-one into broader exploration.
Exploration is therefore not a property of an isolated completion but of a policy interacting with an uncertain environment over time. The relevant question is not “how unpredictable is the next output?” but “how does this action change what the agent will know and be able to do later?”
This is why random action selection is often called dithering. Dithering moves, but it need not make progress. In a coding task, an agent that randomly alternates between editing the parser, changing dependencies, and weakening tests displays behavioral variety. An agent that hypothesizes a parser bug, constructs a discriminating test, and follows the resulting evidence displays exploration.
Discussions of “uncertainty” in LLMs often slide between several different quantities. Separating them prevents a high-entropy decoder from being mistaken for a curious agent.
| Quantity | Distribution or question | What it tells us | What it does not tell us |
|---|---|---|---|
| Token entropy | \(H(X_t\mid x_{1:t-1},c)\) | How diffuse the next-token distribution is | Whether different tokens imply different actions |
| Semantic uncertainty | Entropy over meaning-equivalent answer classes | Whether the model supports competing answers | Which answer should be tested in the world |
| Epistemic uncertainty | \(p(\theta\mid H_t)\) over environment hypotheses | What the agent does not know but may learn | Whether learning it is worth the cost |
| Decision value | Expected utility or regret after an observation | Whether information can improve future action | How to represent or obtain that information |
Table 1. Four notions of uncertainty that are related but not interchangeable. Temperature directly modifies only the first.
Here, \(H_t\) denotes the agent’s interaction history, and \(\theta\) indexes an unknown reward function, transition rule, user preference, program behavior, or some other part of the environment. Epistemic uncertainty is uncertainty caused by missing knowledge: in principle, an informative observation can reduce it. This differs from aleatoric uncertainty, which describes irreducible randomness in the environment. A noisy sensor can remain variable even after the agent understands it perfectly.
That difference is essential for curiosity. If an agent receives a fresh random number whenever it presses a button, the observation has high entropy, yet repeatedly pressing the button may still teach the agent nothing once it has learned the generator’s distribution. An exploration rule that equates surprise with learning will remain captivated by the noise.
Decision value introduces a second filter. Some unknowns are learnable but irrelevant. A travel agent may be uncertain about the aircraft’s paint color, but resolving that uncertainty will not improve the itinerary. Efficient exploration targets uncertainty that can change a consequential decision
Output entropy asks whether the model can say different things. Epistemic uncertainty asks which worlds remain plausible. Information value asks which distinction matters. Exploration is the policy that connects all three to action.
Many open-ended tasks hide their value behind a sequence of individually unrewarding actions. Discovering a scientific mechanism may require designing an experiment, calibrating an instrument, collecting a sample, and waiting for a result. Discovering a new strategy in a game may require moving away from immediate reward. Debugging may require preserving one theory across several tests before any single observation becomes diagnostic.
Consider a chain with two actions, left and right, where the left action pays a small reward immediately. The unknown reward lies \(L\) steps to the right, and the agent receives it only if it chooses right at every step. An independent random policy that chooses right with probability \(1/2\) reaches the unknown reward with probability \(2^{-L}\). Increasing local randomness does not repair the exponential dependence. It only changes the base of an exponential that still vanishes.
More generally, suppose no informative feedback arrives before the end, the correct world hypothesis has fixed posterior mass \(q\), and every competing hypothesis prescribes a different action at each relevant decision point. If the agent independently resamples its hypothesis before every action, completing an \(L\)-step trajectory has probability
\[P(\text{success}\mid\text{stepwise sampling})=q^L.\]Sampling once and committing for the episode instead gives
\[P(\text{success}\mid\text{episode sampling})=q.\]If hypotheses prescribe the same action at some steps, \(L\) should be replaced by the number of decision points at which they disagree. The figure below uses the distinct-action case and keeps \(q\) fixed. Stretch the horizon: the left panel collapses, while the right panel does not.
Each row is an episode. A green dot means every step followed the correct hypothesis.
Figure 2. In this deliberately feedback-free comparison, both agents face the same fixed posterior throughout the episode. One sample per episode changes success from \(q^L\) to \(q\).
A coherent strategy samples the hypothesis that the right branch is valuable and follows it for the whole episode. The actions are correlated through that hypothesis. This is the essence of deep exploration. Bootstrapped DQN made the same point by sampling a randomized value-function head once per episode. Unlike stepwise dithering, the resulting policy stayed consistent across a long trajectory
Commitment is only part of the long-horizon problem. An agent can also lose contact with a promising frontier because it forgets how to return there, or because exploratory noise knocks it off course before it arrives. Go-Explore calls these failures detachment and derailment, and counters them by remembering promising states, returning to one, and only then exploring outward
For LLM agents, coherence is even more fragile. The model may articulate a promising theory in one turn, then abandon it because a different continuation becomes locally probable after a tool response. A transcript preserves the words of the theory, but preservation is not commitment. The agent still needs a control rule: which uncertainty is being tested, how long the test should run, and what evidence warrants switching.
Open-ended tasks make this worse. There may be no terminal reward that tells the agent it was right, so a local novelty bonus can reward one-off discoveries that never combine into capabilities that compound.
Thompson sampling offers a different use of randomness. Let \(\theta\) describe the unknown environment and let \(H_t\) contain all observations collected so far. The agent maintains a posterior
\[p(\theta\mid H_t) \propto p(H_t\mid\theta)p(\theta).\]At a decision point, it samples one plausible hypothesis
\[\tilde{\theta}_t \sim p(\theta\mid H_t),\]then chooses the action with the greatest expected cumulative value if that hypothesis were true:
\[a_t \in \arg\max_{a\in\mathcal{A}} Q_{\tilde{\theta}_t}(H_t,a).\]The algorithm explores because uncertain actions are optimal under some posterior samples. As evidence accumulates, implausible hypotheses are sampled less often. Randomness is neither injected uniformly nor used as a generic creativity bonus. Instead, its structure comes from uncertainty about the decision problem. This probability-matching interpretation makes Thompson sampling a practical bridge between Bayesian beliefs and sequential action
For long-horizon environments, Posterior Sampling for Reinforcement Learning (PSRL) lifts the same idea from actions to world models. At the start of episode \(k\), it samples an MDP \(\widetilde{M}_k\) from the posterior, computes a policy \(\pi_k\) that is optimal for that sample, follows \(\pi_k\) for the episode, and then updates the posterior using the complete trajectory
This produces exactly the correlation that token-level dithering lacks, since every action in the episode is conditioned on the same sampled account of the world
The implementation by Arumugam and Griffiths assigns LLM subroutines three roles: sampling a plausible environment hypothesis from a textual approximation to the posterior, acting consistently with that sample, and updating the approximate posterior after the episode
A list of textual hypotheses is not automatically a calibrated Bayesian posterior. The updater may omit possibilities, invent evidence, or assign verbal confidence inconsistently. Calling it a posterior describes the role the representation plays in the algorithm, not a guarantee that exact Bayesian inference occurred.
Their Wordle environment makes the orchestration concrete. The hidden state is a five-letter English word with no repeated letters. An episode is one complete five-letter attempt: the sampler proposes a target-word hypothesis, the policy commits to its five letters in sequence, the environment returns position-level feedback, and the posterior updater revises the remaining constraints. The agent gets at most six episodes. The interactive visualizer below is a finite-vocabulary analogue of that loop: it performs exact filtering so that the belief update is inspectable, whereas their agent represents the approximate posterior in language.
Wordle example
Start with a uniform prior over the vocabulary, then sample one plausible target.
Target hidden
Pedagogical simulation, not a replay of the reported LLM traces. It uses a curated finite vocabulary and an exact uniform posterior. The experiment used LLM-generated textual posteriors over a filtered English corpus.
Figure 3. A transparent analogue of LLM-based PSRL in the customized Wordle environment. One posterior sample determines all five letter actions in an episode. Only after observing the complete attempt does the agent update its belief for the next sample.
This suggests a useful design principle: use the LLM to implement the uncertain parts of a known decision algorithm, rather than hoping that stochastic generation will implicitly rediscover the algorithm. Natural language is especially helpful when hypotheses are structured objects (rules, causal stories, user preferences, program invariants) that are awkward to encode as a small parametric posterior.
The same token-versus-posterior gap shows up as several recurring weaknesses in LLM agents.
First, next-token prediction provides local plausibility instead of a drive to explore. Pretraining trains a model to extend trajectories that appear in data. The model may capture many strategies, but the likelihood objective alone does not specify which real-world uncertainty the agent should aim to resolve when deployed. At inference, temperature modifies the distribution over possible continuations, but it does not create a belief state about the environment the agent faces.
Second, a context window is not a belief state. Interaction histories mix observations, failed plans, tool errors, speculative reasoning, and outdated conclusions. Even when every fact remains in context, the agent may not distinguish evidence from conjecture or track which hypotheses survived. Exploration requires a state representation that says what is known, what remains possible, and which observation would discriminate among the possibilities
Third, independently sampled actions destroy temporal credit. Open-ended discoveries often lie behind sequences whose intermediate steps look unpromising. If the model resamples its strategy after every step, it rarely reaches the observation that would reveal whether the original idea was good. This is the language-agent analogue of shallow exploration in a long chain.
Fourth, novelty and usefulness are different. Language models are excellent at generating unusual combinations, but an unusual action may be infeasible, redundant, or impossible to interpret. Efficient decision-making requires an acquisition rule: what will this action teach, how could that knowledge change future behavior, and what will it cost?
Evidence from an open-ended Little Alchemy 2 benchmark illustrates the gap. Players start with water, fire, earth, and air, then combine elements to grow an inventory. Over 500 trials, GPT-4o and two Llama 3.1 models discovered fewer elements on average than humans, while the reasoning-oriented DeepSeek-R1 and o1 systems discovered more

Figure 4. Little Alchemy 2 as an open-ended exploration task (A, B) and the distribution of final inventories after 500 trials (C). Means: Llama 3.1 8B 9, Llama 3.1 70B 25, GPT-4o 35, humans 42, DeepSeek-R1 85, o1 177. Figure from Pan, Xie, and Wilson
Increasing temperature strengthened the tested models’ preference for less-used elements, which served as the work’s proxy for uncertainty, but it did not increase their measured preference for combinations that expanded future possibilities. More randomness produced more novelty-seeking, not more foresight.

Figure 5. Regression weights for empowerment (left) and the less-used-element uncertainty proxy (right). Among the models whose temperature could be varied, higher temperature raises this uncertainty-seeking measure and leaves empowerment near zero. Only o1, whose temperature is fixed, matches or exceeds the human empowerment weight. Figure from Pan, Xie, and Wilson
That work covers one benchmark, and its operational measure of empowerment is tailored to the game’s combination graph. It should not be read as a universal ranking of models or as proof of an architectural cause. The useful lesson is methodological: open-ended exploration must be evaluated through the structure of the trajectories an agent creates, not just the entropy of its individual choices.
A companion result, measured in humans and standard RL agents rather than LLM agents, supports the same conclusion. In Crafter, state-visitation entropy and one-step experienced empowerment correlated positively with human exploration progress, while the work’s log-count proxy for information gain did not
Recent work identifies two complementary training failures behind this gap. Look Before You Leap calls one premature exploitation and introduces Exploration Checkpoint Coverage to measure how broadly an agent discovers important states, objects, and affordances. It finds that task-oriented training, including GRPO for task completion, can produce narrow and repetitive behavior rather than broad exploration
Posterior sampling explains how uncertainty can generate coherent behavior, but open-ended agents face a broader question: what should they explore when external rewards are sparse, delayed, or not yet defined? This is the role of curiosity and intrinsic motivation.
“Curiosity” is often used as if it were a single reward. In practice, it names several objectives with different failure modes.
A simple surprise bonus rewards an observation that the agent’s forward model predicts poorly. Here, surprise is measured as the squared prediction error in a learned representation space
Here, \(f_{\phi}\) predicts the next-state representation \(\psi(s_{t+1})\). This formulation can drive an agent through sparse-reward visual environments and help it learn transferable exploratory behavior
But prediction error confounds ignorance with randomness and model inadequacy. A stochastic television remains difficult to predict forever, so an agent rewarded by prediction error may watch it indefinitely, a failure that has been observed when prediction-based curiosity is tested in stochastic environments
A Bayesian curiosity objective instead rewards how much an observation changes beliefs about the environment
This quantity becomes small once the agent understands the source of randomness, even if individual outcomes remain surprising. VIME made this principle practical in deep reinforcement learning by approximating information gain about a Bayesian dynamics model
Information gain is more disciplined than raw surprise, but it can still pursue useless trivia. An agent might perfectly map irrelevant parts of an environment while neglecting the uncertainty that blocks its goal. The missing ingredient is decision relevance.
Some actions are valuable because they create more useful actions later. For a finite horizon \(h\), a standard extension of empowerment formalizes this as the channel capacity between a sequence of actions and a future state
An empowered state is one from which the agent can reliably reach many distinguishable futures. In Little Alchemy, an element that enables dozens of later combinations is more empowering than an isolated novelty. For a coding agent, a minimal reproduction may be empowering because it unlocks many targeted tests. For a scientist, a measurement platform may be empowering because it makes a family of future experiments possible.
Figure 6. Surprise, information gain, and empowerment value different consequences of an action and fail in different ways. A belief-conditioned controller can emphasize the signal that addresses the agent’s current bottleneck while accounting for task value, cost, and risk.
Related work on unsupervised skill discovery turns a nearby information-theoretic idea into a repertoire: DIAYN learns distinguishable behaviors without requiring an external task reward
Empowerment is particularly relevant to open-endedness because it values option creation. This connects it to a broader open-ended-search tradition. Novelty search preserves behavioral stepping stones that an objective might discard
The coefficients should not be fixed personality traits, but rather describe a control problem at a slower time scale than token generation. The relevant inputs include the current belief state, the cost of an experiment, the remaining interaction budget, and whether the agent lacks information or capability. Calibrate-Then-Act provides direct evidence for externalizing this calibration step: on a simplified Pandora’s Box task, Qwen3-8B matched the oracle policy on 94% of examples when given explicit priors, compared with 23% without them, while baseline agents in retrieval and file-reading tasks tended toward static policies across cost regimes
Combining information gain and empowerment is not itself a new idea. Magrans de Abril and Kanai let curiosity and empowerment share an internal model
This suggests a meta-controller rather than a fixed mixture of intrinsic rewards. The agent’s belief state, remaining interaction budget, and current option bottlenecks determine which objective should dominate. Information gathering is valuable when it can still change a later decision. Empowerment is valuable when limited capabilities block progress. Exploitation dominates when little time remains to use newly acquired information. Whether such belief-conditioned control improves language-agent exploration is an empirical question.
This proposal is narrower than claiming a new intrinsic reward: it places an adaptive controller above the reward signals and the posterior-sampling loop. The entropy-then-empowerment pattern observed in human exploration motivates the idea
Put together, this is an agent with four explicit layers.
Figure 7. The four layers form a closed experimental loop. Beliefs constrain what is plausible, the objective chooses which distinction matters, commitment turns that choice into a coherent trajectory, and revision converts the trajectory into evidence for the next cycle.
Together, these layers create three kinds of coherence:
Align While Search provides a narrower existence proof for part of this design. In partially observable search tasks, it maintains an external structured belief, updates that belief from action-conditioned observations, and selects actions using predicted information gain without additional training. It improves search success-cost tradeoffs over several inference-time and train-time baselines, though it does not implement the full commitment and meta-control architecture proposed here
One possible implementation could look like this:
\[\begin{aligned} b_k &\leftarrow \operatorname{UpdateBeliefs}(b_{k-1},\tau_{k-1}),\\ \widetilde{M}_k &\sim b_k,\\ g_k &\leftarrow \operatorname{SelectGoal}(\widetilde{M}_k,b_k),\\ \pi_k &\leftarrow \operatorname{Plan}(\widetilde{M}_k,g_k),\\ \tau_k &\leftarrow \operatorname{Execute}(\pi_k,\text{stop rule}). \end{aligned}\]The LLM can participate in every operation, but the orchestration carries the decision-theoretic structure. A language model may summarize the belief state, propose a compact world hypothesis, generate a plan, interpret feedback, and suggest a revision. External components can check calibration, maintain counts or ensembles, enforce budgets, and decide when the accumulated evidence warrants replanning
Commitment should be conditional, not merely long. For a sampled hypothesis \(\widetilde{M}_k\), the agent should continue while the hypothesis remains plausible, staying with the current test is more valuable than replanning, and the action stays inside a risk budget. One compact stopping rule is
\[T_k = \inf\left\{t: p(\widetilde{M}_k\mid H_t)<\varepsilon \,\text{or}\, V_{\mathrm{continue}}(b_t,\widetilde{M}_k) \leq V_{\mathrm{replan}}(b_t)-C_{\mathrm{switch}} \,\text{or}\, \operatorname{Risk}(a_t)>\rho_{\max} \right\},\]Information gathering enters these value functions through its effect on later decisions, not through information gain alone. This rule turns commitment into a test with explicit interruption conditions.
| Layer | A coding agent | A scientific agent | An open-world game agent |
|---|---|---|---|
| Belief state | Candidate bug mechanisms | Competing causal models | Hypotheses about hidden dynamics |
| Informative action | Minimal discriminating test | Experiment separating predictions | Action revealing a transition rule |
| Empowering action | Build a reusable test harness | Calibrate a general instrument | Acquire a reusable skill or resource |
| Commitment horizon | Debugging episode | Experimental campaign | Quest or trajectory segment |
| Update | Eliminate inconsistent causes | Revise model probabilities | Update map, rules, and affordances |
Table 2. The same architecture applies across domains once the belief, action, feedback, and commitment horizon are made explicit.
This architecture also clarifies the role of reasoning models. More test-time computation can improve exploration when it helps the agent compare hypotheses, anticipate multi-step consequences, and preserve a strategy. Longer reasoning alone is not the objective, since a model can deliberate extensively over the wrong uncertainty. The benefit comes from using computation to construct a better belief-conditioned policy.
Do not ask the model to “be more exploratory.” Ask the system to maintain competing hypotheses, choose which distinction matters, commit to a test, and update from the result.
Before trying this architecture on an LLM, I implemented a small tabular version to check whether coherent commitment does what the argument predicts, with the posterior and information gain computed exactly rather than approximated. The map below is that world, where the task is to open the gate and each episode conceals which rule does so. I plan to share the code once it is cleaned up.
You can play it. Click a room to walk there. The dock under the map shows what you can do in that room. Left and Right, when they appear, are lock presses for the gate. The keys on the right are the posterior over the two possible codes. A new episode draws a new hidden rule. Reveal shows the true code.
Hidden-mechanism lab
Junction
Figure 8. Click a room to move. The dock under the map is what you can do in that room. The keys are the posterior over the two codes.
Once you have tried it, two observations are easier to see than they were in the earlier sections. The noisy-television failure mode is not hypothetical: watching the television produces a new random observation every time and leaves the posterior unchanged, which is exactly what a prediction-error bonus would keep asking for. Other rooms look as if they ought to matter and do not.
The second observation is about commitment. Opening the gate yourself is less interesting than asking what an exact Bayesian agent should do. The comparison can be calculated without simulation. Assume two complementary codes, a uniform prior, an \(L\)-press lock, and one diagnostic reading that identifies the true code with accuracy \(\alpha\geq 1/2\). A stepwise agent samples a new code before every press. A blind-commit agent samples once. A read-then-commit agent obtains the diagnostic and follows the code favored by its posterior.
The exact success probabilities are
\[\begin{aligned} P(\text{success}\mid\text{stepwise}) &= 2^{-L},\\ P(\text{success}\mid\text{blind commit}) &= \tfrac{1}{2},\\ P(\text{success}\mid\text{read then commit}) &= \alpha. \end{aligned}\]The interactive lab does not impose a numerical interaction budget. For the decision comparison below, let success have value one and let building and using the diagnostic have total cost \(c=0.10\). The net value of reading is therefore \(\alpha-c\). A blind commitment has value \(1/2\), so the diagnostic is worth acquiring exactly when
\[\alpha-c>\frac{1}{2}.\]| Reading accuracy \(\alpha\) | Stepwise for \(L=3,5,7\) | Blind commit | Read then commit | Net value after cost \(c=0.10\) |
|---|---|---|---|---|
| 0.90 | 0.125, 0.031, 0.008 | 0.500 | 0.900 | 0.800 |
| 0.70 | 0.125, 0.031, 0.008 | 0.500 | 0.700 | 0.600 |
| 0.55 | 0.125, 0.031, 0.008 | 0.500 | 0.550 | 0.450 |
Table 3. Exact success probabilities under a uniform prior over two complementary lock codes. The final column subtracts an illustrative diagnostic cost of 0.10. These are analytical values, not estimates from sampled episodes.
The comparison separates three effects. Commitment removes the exponential dependence on lock length. Information improves the committed choice from probability \(1/2\) to \(\alpha\). Cost determines whether that improvement is worth acquiring. At accuracy 0.90 and 0.70, read-then-commit has higher net value than a blind commitment. At accuracy 0.55, the free information still improves success from 0.50 to 0.55, but the improvement does not repay a cost of 0.10.
This last point is general. A Bayes-optimal agent cannot be harmed by free information because it can always ignore the observation and retain its previous action
Information becomes undesirable only through acquisition cost, delay, risk, or a constrained opportunity to use it. Commitment does not replace the choice of what to learn. Instead, it makes the consequences of that choice persist across the trajectory.
This is a small proof of concept with two represented hypotheses and an exact posterior. The harder question is whether an LLM’s approximate textual belief preserves enough structure for the same advantage to survive.
This architecture organizes exploration, but it does not finish the problem. Four gaps remain, and any one of them can undo the rest:
The hypothesis space may not contain the right model. Posterior sampling only chooses among represented explanations. Truly open-ended exploration also needs hypothesis generation. When one hypothesis fails, the agent should update its weight. When every hypothesis repeatedly predicts poorly, the agent should propose new variables, mechanisms, skills, or objectives and expand the space itself.
Commitment is dangerous when the hypothesis is wrong. An agent can pursue a consistent but false story, waste an episode, or cause harm. Commitment therefore needs interruption conditions, calibrated risk estimates, and conservative defaults for irreversible actions. Coherence is useful only inside a safety envelope.
Curiosity still has to be specified. Information gain depends on what the model represents, so an agent cannot seek information about a mechanism it has no language to express. Empowerment can reward control for its own sake. Novelty can favor noise. External reward can shut exploration down too early. No generic task-independent bonus decides which uncertainties, capabilities, and outcomes matter.
Exact Bayesian inference is usually unavailable. In the environments where LLM agents are most interesting, textual beliefs, ensembles, verbalized confidence, and sampled hypotheses are approximations. Judge them by their consequences: calibration, cumulative regret, coverage of distinct hypotheses, information gained per interaction, and whether the agent can recover after being wrong.
The practical question is how to build approximate epistemic states that are expressive enough for natural-language worlds, disciplined enough for reliable updating, and cheap enough to keep throughout a long interaction.
The difference between the two agents at the locked door was never how much randomness they used. It was where that randomness lived. One randomized actions. The other randomized over explanations and let a single explanation organize an experiment. That shift from diverse outputs to coherent tests is the architectural change exploratory LLM agents need.
Coherent exploration begins with an explicit belief state. Posterior sampling supplies hypothesis coherence. A decision-relevant curiosity objective supplies objective coherence. Belief revision supplies evidential coherence. Conditional stopping rules keep commitment useful without turning it into stubbornness. Hypothesis generation expands the space when none of the represented explanations survives contact with evidence.
The design problem is therefore not how to make a model speak more randomly, but how to represent what the agent does not know, decide which distinction can change future action, commit long enough to test it, and recognize when the current vocabulary of explanations is inadequate.
If you find this post useful, please cite it as:
Or in BibTeX format:
@article{suwandi2026bayesian,
title = "Bayesian Exploration for LLM Agents",
author = "Suwandi, Richard Cornelius",
year = "2026",
month = "Sep",
url = "https://richardcsuwandi.github.io/blog/2026/bayesian-exploration-llm-agents/"
}