Optimal Policy Minimum Bayesian Risk

Ramón Fernandez Astudillo, Md. Arafat Sultan, Aashka Trivedi, Yousef El-Kurdi, Tahira Naseem, Radu Florian, Salim Roukos · DOI

Abstract

Inference-time scaling has emerged as a key strategy for improving Large Language Model (LLM) performance. We present Optimal Policy Minimum Bayesian Risk Decoding (OP-MBRD), a framework that unifies reward-based selection and consensus-based voting. By leveraging Rao-Blackwellized sampling from an optimal policy, OP-MBRD achieves superior accuracy and robustness. Furthermore, we introduce an efficient variant, OPE-MBRD, which adaptively allocates compute based on problem difficulty, significantly reducing inference costs without sacrificing performance.

Introduction

Large Language Models (LLMs) are increasingly utilizing "inference-time scaling"—the practice of generating multiple candidate answers to improve the probability of finding a correct solution. Current selection strategies typically fall into two categories: Best-of-N (BoN), which relies on a Reward Model (RM) to score candidates, and Minimum Bayes Risk (MBRD) or Majority Voting, which selects the consensus answer.

However, these methods have distinct weaknesses. BoN is highly sensitive to reward model noise, while MBRD depends heavily on the generator's internal consistency. Moreover, fixed-budget sampling is inherently inefficient, over-allocating compute to easy tasks while often providing insufficient samples for complex ones. To address these issues, we introduce OP-MBRD, a principled hybridization of these two approaches.

Methodology

OP-MBRD bridges the gap between reward models and consensus voting using a framework derived from Reinforcement Learning (KL-controlled reward maximization). Instead of treating samples equally or relying solely on a single best score, the method defines a theoretical "optimal policy" that balances the base model's probability with the reward model's signal.

Rao-Blackwellized Sampling

To make this framework practical, the authors employ Rao-Blackwellized importance sampling. This technique allows every generated sample to be weighted according to its likelihood under the theoretical optimal policy. This ensures that the final selection is supported by both high reward scores and a degree of consensus among the generated candidates.

OPE-MBRD: Adaptive Compute Allocation

The efficient variant, OPE-MBRD, introduces a "stopping rule" based on the expected number of optimal samples ($N^{OP}$). By monitoring this metric during generation, the system can determine when it has gathered enough high-quality evidence to stop. This allows the model to "early stop" on simpler prompts, preserving the compute budget for more complex reasoning tasks.

Experimental Setup

The framework was evaluated on two primary benchmarks: MATH-500 (challenging competition-level math) and HumanEval (Python programming). A diverse set of open-source models was tested, including Qwen-2.5-Math (1.5B, 7B), IBM Granite 3.3 (2B, 8B), and Phi-4-instruct (14B).

Results and Discussion

OP-MBRD consistently outperforms or matches both BoN and MBRD baselines across various model architectures and tasks.

Inference scaling performance and adaptive sample selection across various models.

Performance and Robustness

As shown in the left column of Figure 1, OP-MBRD (cyan) exhibits superior scaling behavior compared to BoN (red) and standard MBRD (blue/magenta). A key finding is the method's robustness to "noisy" reward models. While BoN might erroneously select a high-scoring but incorrect "lucky" answer, OP-MBRD is less likely to do so because it requires the answer to have some level of consensus or support from the underlying policy.

Efficiency Gains

The right column of Figure 1 illustrates the adaptive nature of OPE-MBRD. The system successfully identifies easy problems (left side of the x-axis) and terminates sampling early, often using only a few samples. For harder problems (right side), it utilizes the full budget. On MATH-500 with Qwen-7B, OPE-MBRD maintained peak performance while early-stopping on approximately 85% of the problems, demonstrating significant efficiency gains. The authors noted that the $N^{OP}$ metric serves as a highly effective proxy for task difficulty.

Limitations and Future Work

The efficiency of OPE-MBRD depends heavily on the calibration of the Process Reward Model (PRM). In tests where a math-tuned PRM was applied to coding tasks, the calibration failed, and the model could not effectively save compute. Future work will focus on improving PRM calibration across domains and extending this framework to multi-step decoding processes like Monte Carlo Tree Search.

Conclusion

OP-MBRD provides a mathematically grounded framework for inference-time scaling that combines the strengths of reward models and consensus voting. By enabling adaptive compute allocation, it offers a path toward more efficient and robust LLM deployment without sacrificing accuracy on complex tasks.

Summary updated

BibTeX
@misc{astudillo2025optimal,
  author = {Ramón Fernandez Astudillo and Md. Arafat Sultan and Aashka Trivedi and Yousef El-Kurdi and Tahira Naseem and Radu Florian and Salim Roukos},
  title = {{Optimal Policy Minimum Bayesian Risk}},
  year = {2025},
  eprint = {2505.17242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17242},
}
Figure