Search has been proposed as an effective method for self-improving language models and agentic systems, both for post-training sample generation and for inference. However, widely used methods such as best-of-N sampling and tree search face two fundamental limitations: they are guided by sparse verification signals, and they construct candidates primarily through autoregressive expansion, restricting exploration to regions with substantial model probability mass. To address these, we propose Bidirectional Evolutionary Search (BES), a search framework that couples forward candidate evolution with backward goal decomposition. In the forward search, BES augments standard expansion with evolution operators that recombine partial trajectories to generate candidates that are difficult to obtain from a single model rollout. In the backward search, BES recursively decomposes the original task into checkable subgoals, producing dense intermediate feedback that guides forward search. We provide theoretical motivation showing that candidates generated by expansion-only search are confined to a narrow entropy shell while evolutionary operators can escape it, and that backward search can exponentially reduce the number of required samples to find a correct answer. Experiments show that on challenging post-training tasks where mainstream post-training algorithms fail to improve, BES enables consistent gains, and on three open problem solving benchmarks at inference time, BES outperforms existing open-source frameworks in both average and best-case performance. Code and trained models are available at https://github.com/Embodied-Minds-Lab/BES.
翻译:搜索已被提出作为自我改进语言模型及智能系统的有效方法,可用于后训练样本生成与推理。然而,最佳N采样、树搜索等主流方法存在两个根本性局限:它们依赖稀疏的验证信号,且主要通过自回归扩展构建候选解,将探索限制在模型概率密度较大的区域。针对这些问题,我们提出双向进化搜索(BES)——一种将前向候选解进化与后向目标分解相耦合的搜索框架。在前向搜索中,BES通过重组部分轨迹的进化算子增强标准扩展能力,生成单一模型推演难以获得的候选解。在后向搜索中,BES将原始任务递归分解为可验证的子目标,产生密集的中间反馈信号以指导前向搜索。理论分析表明:纯扩展搜索生成的候选解受限于狭窄的熵壳,而进化算子能够突破该限制;后向搜索可指数级降低寻找正确答案所需的样本量。实验显示,在后训练阶段,当主流后训练算法无法提升性能时,BES能持续带来改进;在推理阶段,针对三个开放问题求解基准测试,BES在平均性能与最优性能上均超越现有开源框架。代码与预训练模型已开源至https://github.com/Embodied-Minds-Lab/BES。