Beyond Markovian: Reflective Exploration via Bayes-Adaptive RL for LLM Reasoning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhang, Shenao, Wang, Yaqing, Liu, Yinxiao, Liu, Tianqi, Grabowski, Peter, Ie, Eugene, Wang, Zhaoran, Li, Yunxuan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914183809859584
author Zhang, Shenao
Wang, Yaqing
Liu, Yinxiao
Liu, Tianqi
Grabowski, Peter
Ie, Eugene
Wang, Zhaoran
Li, Yunxuan
author_facet Zhang, Shenao
Wang, Yaqing
Liu, Yinxiao
Liu, Tianqi
Grabowski, Peter
Ie, Eugene
Wang, Zhaoran
Li, Yunxuan
contents Large Language Models (LLMs) trained via Reinforcement Learning (RL) have exhibited strong reasoning capabilities and emergent reflective behaviors, such as rethinking and error correction, as a form of in-context exploration. However, the Markovian policy obtained from conventional RL training does not give rise to reflective exploration behaviors since the policy depends on the history only through the state and therefore has no incentive to enrich identical states with additional context. Instead, RL exploration is only useful during training to learn the optimal policy in a trial-and-error manner. Therefore, it remains unclear whether reflective reasoning will emerge during RL, or why it is beneficial. To remedy this, we recast reflective exploration within a Bayesian RL framework, which optimizes the expected return under a posterior distribution over Markov decision processes induced by the training data. This Bayesian formulation admits uncertainty-adaptive policies that, through belief updates, naturally incentivize information-gathering actions and induce self-reflection behaviors. Our resulting algorithm, BARL, instructs the LLM to stitch and switch strategies based on the observed outcomes, offering principled guidance on when and how the model should reflectively explore. Empirical results on both synthetic and mathematical reasoning tasks demonstrate that BARL outperforms conventional RL approaches, achieving superior test-time performance and token efficiency. Our code is available at https://github.com/shenao-zhang/BARL.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20561
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Markovian: Reflective Exploration via Bayes-Adaptive RL for LLM Reasoning
Zhang, Shenao
Wang, Yaqing
Liu, Yinxiao
Liu, Tianqi
Grabowski, Peter
Ie, Eugene
Wang, Zhaoran
Li, Yunxuan
Machine Learning
Artificial Intelligence
Computation and Language
Large Language Models (LLMs) trained via Reinforcement Learning (RL) have exhibited strong reasoning capabilities and emergent reflective behaviors, such as rethinking and error correction, as a form of in-context exploration. However, the Markovian policy obtained from conventional RL training does not give rise to reflective exploration behaviors since the policy depends on the history only through the state and therefore has no incentive to enrich identical states with additional context. Instead, RL exploration is only useful during training to learn the optimal policy in a trial-and-error manner. Therefore, it remains unclear whether reflective reasoning will emerge during RL, or why it is beneficial. To remedy this, we recast reflective exploration within a Bayesian RL framework, which optimizes the expected return under a posterior distribution over Markov decision processes induced by the training data. This Bayesian formulation admits uncertainty-adaptive policies that, through belief updates, naturally incentivize information-gathering actions and induce self-reflection behaviors. Our resulting algorithm, BARL, instructs the LLM to stitch and switch strategies based on the observed outcomes, offering principled guidance on when and how the model should reflectively explore. Empirical results on both synthetic and mathematical reasoning tasks demonstrate that BARL outperforms conventional RL approaches, achieving superior test-time performance and token efficiency. Our code is available at https://github.com/shenao-zhang/BARL.
title Beyond Markovian: Reflective Exploration via Bayes-Adaptive RL for LLM Reasoning
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2505.20561