# BRAPO: Alternating Belief Refinement and Program Optimization for Sample-Efficient LLM-Guided Program Search

*Источник: arxiv*
*Дата: 2026-11-29*

Large language model (LLM)-guided program search learns mainly which programs perform well. What it learns about why they perform well stays in text that no evaluation tests. When evaluations are expensive, these untested beliefs limit sample efficiency, because they decide which candidates are evaluated. We treat budget-constrained program search as two interdependent processes: refining beliefs about why programs perform well and optimizing programs. We propose alternating belief refinement and program optimization, a framework in which each round refines predictive beliefs with inexpensive pilot experiments before the refined beliefs choose a candidate for formal evaluation. BRAPO implements this framework with LLM agents that state competing hypotheses, forecast the outcomes of their experiments in advance, and revise their hypotheses in light of the pilot outcomes. On each of two combinatorial optimization tasks and two model-training tasks, BRAPO reaches higher scores within 10 formal evaluations than ShinkaEvolve, AdaEvolve, and BRAPO without belief refinement. After the pilot experiments, its forecasts of the formal outcomes become more accurate, gaining 0.65 bits of logarithmic score per forecast on average.

[Оригинал](https://arxiv.org/abs/2611.39790)