Count Counts: Motivating Exploration in LLM Reasoning with Count-based Intrinsic Rewards
Xuan Zhang, Ruixiao Li, Zhijian Zhou, Long Li, Yulei Qin, Ke Li, Xing Sun, Xiaoyu Tan, Chao Qu, Yuan Qi
TL;DR
This work tackles the challenge of exploration in reinforcement learning for long-horizon LLM reasoning by introducing MERCI, a count-based intrinsic motivation that uses a lightweight Coin Flip Network (CFN) to estimate state novelty and epistemic uncertainty. By leveraging a simplified Uncertainty Bellman Equation (UBE) for known, deterministic transitions in autoregressive language generation, MERCI converts local reward uncertainty into a principled exploration bonus and integrates it with advanced policy frameworks like GRPO and DAPO. The approach combines a scalable pseudo-count proxy with a structured bonus pipeline—including percentile, spatial coherence, and noise-suppression filtering, followed by trajectory-level normalization and controlled integration—to densify diverse yet coherent reasoning trajectories. Empirical results on challenging math reasoning and SQL generation benchmarks demonstrate consistently improved pass@k and mean@k, indicating that targeted intrinsic motivation can reliably enhance exploration and solution quality in LLM reasoning. Overall, MERCI provides a theoretically grounded, scalable path to richer reasoning in language models with practical implications for improving accuracy and generalization in complex tasks.
Abstract
Reinforcement Learning (RL) has become a compelling way to strengthen the multi step reasoning ability of Large Language Models (LLMs). However, prevalent RL paradigms still lean on sparse outcome-based rewards and limited exploration, which often drives LLMs toward repetitive and suboptimal reasoning patterns. In this paper, we study the central question of how to design exploration for LLM reasoning and introduce MERCI (Motivating Exploration in LLM Reasoning with Count-based Intrinsic Rewards), a novel RL algorithm that augments policy optimization with a principled intrinsic reward. Building on the idea of count-based exploration, MERCI leverages a lightweight Coin Flipping Network (CFN) to estimate the pseudo count and further epistemic uncertainty over reasoning trajectories, and converts them into an intrinsic reward that values novelty while preserving the learning signal from task rewards. We integrate MERCI into some advanced RL frameworks like Group Relative Policy Optimization (GRPO). Experiments on complex reasoning benchmarks demonstrate that MERCI encourages richer and more varied chains of thought, significantly improves performance over strong baselines, and helps the policy escape local routines to discover better solutions. It indicates that our targeted intrinsic motivation can make exploration reliable for language model reasoning.
