potentialpaper

BFS-PO: Best-First Search for Large Reasoning Models

Fiorenzo Parascandolo, Wenhui Tan, Enver Sangineto, Xiaoyi Yu, Ruihua Song, Rita Cucchiara

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large Reasoning Models (LRMs) have shown excellent performance in reasoning tasks using long Chains of Thought (CoTs). However, this has also led to a significant increase of computational costs and the generation of verbose output, a phenomenon known as overthinking. The tendency to overthink is often exacerbated by Reinforcement Learning (RL) algorithms such as GRPO/DAPO. In this paper, we propose BFS-PO, an RL algorithm which alleviates this problem using a Best-First Search exploration strategy. Specifically, the reasoning chains generated at training time by BFS-PO are organized into a search tree, within which the shortest correct sequence is selected as the best and expanded using a backtracking mechanism based on maximum entropy nodes. In this way, we bias the exploration of the solution space towards the search for increasingly shorter solutions, training the LRM to generate progressively more concise answers. Using different benchmarks and base LRMs, we show that BFS-PO can simultaneously increase the LRM accuracy and shorten its reasoning chains. Our code and our trained models are publicly available at: https://github.com/aimagelab/BFS-PO.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes a best first search algorithm BFS-PO that selects the best valid complete solution of the search tree for training. It branches using the entropy. It increases accuracy and shortens the average CoT length.

The experimental results are good. The algorithm is original. The paper is well positioned.

The reviewers would like more details on the strengths and limitations of the entropy signal. They also would like more details on the cost of the algorithm for generating training examples and on the applicability to larger models.

Final justification

The reviewers are satisfied with the author response and recommend to accept the paper.

Area Chair SgwV · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper proposes a best first search algorithm BFS-PO that selects the best valid complete solution of the search tree for training. It branches using the entropy. It increases accuracy and shortens the average CoT length.

The experimental results are good. The algorithm is original. The paper is well positioned.

The reviewers would like more details on the strengths and limitations of the entropy signal. They also would like more details on the cost of the algorithm for generating training examples and on the applicability to larger models.

Final justification

The reviewers are satisfied with the author response and recommend to accept the paper.

Reviewer venVOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces Best-First Search Policy Optimization (BFS-PO), a reinforcement learning algorithm designed to reduce the length of chain-of-thought (CoT) reasoning tokens. BFS-PO scores intermediate thoughts and performs backtracking via an entropy-based mechanism, enabling more efficient reasoning paths to be learned entirely at training time, without any inference-time overhead.

Strengths and weaknesses

Strengths:

  • The literature review is thorough and the paper is well-positioned relative to prior work.
  • The proposed backtracking mechanism is novel. While entropy has been used in various contexts, to the best of my knowledge this is the first work to employ it as a backtracking signal in reasoning.
  • The empirical results are promising and support the paper's claims.

Weaknesses:

  • The authors themselves acknowledge in checklist item #7 that experiment statistical significance is not reported adequately, as required by NeurIPS guidelines.

  • The writing quality needs improvement; the paper contains complex sentences, typos, and grammatical errors that hinder readability in places. For example:

    • Line 3: "Chain of Though" -> "Chain of Thought"
    • Line 4: "to overthinking" -> "to overthink"
    • Lines 162-165: grammatical issues and hard to read sentences
    • Line 228: "We shows that" -> "We show that"
  • Experiments are conducted on relatively small models, making it difficult to assess how BFS-PO scales to larger settings. That said, the authors note that larger-scale experiments are computationally expensive, which is a reasonable constraint.

Questions
  1. How does BFS-PO behave when the entropy signal is poorly calibrated early in training?
  2. Do the authors have any theoretical justification or preliminary evidence suggesting that the efficiency gains from BFS-PO hold in larger models?
Limitations

The scalability issues of BFS-PO is not thoroughly addressed. Experiments are conducted on small models, and the exponential growth of search paths with respect to K suggests this could become a significant limitation in more complex settings.

Final justification

I thank the authors for their thorough response. The authors have provided more evidence of the usefulness of their approach and promised to address some minor inconsistencies about the asymptotic behavior of the algorithm in the camera-ready version. The fixes are relatively straightforward, and my overall recommendation is to accept the paper.

Formatting concerns

I did not find any major formatting issues.

6 comments
Authors · CommentOpenReview ↗

We thank the Reviewer for their work and for appreciating the novelty of our method and its empirical results, as well as the robustness of our literature review. We answer below to all the comments.

Q1: The authors themselves acknowledge in checklist item 7 that experiment statistical significance is not reported adequately, as required by NeurIPS guidelines.

A Unfortunately, as mentioned in that item, error bars or other types of statistical measures which need to repeat the same training more than once are computationally very heavy and, as far as we know, the vast majority of papers in the overthiking domain do not report error bars or other experiments done with multiple seeds at training time. However, while training is very costly, testing is much easier. Thus, to increase the statistical significance of our results, following your suggestion, we repeated the testing phase of the experiments in Tab. 3 using 16 different seeds, and we report below the results (mean and standard deviation). Specifically, we repeated the testing phase of the methods for which we have access to the trained parameters (BSF-PO, DAPO, and TreeRL), while the results of ExtraCoT and TokenSkip in Tab. 3 are taken from [28] but the authors have not released the parameters of those methods (note that the authors in [28] have reimplemented and trained TokenSkip using their proposed experimental protocol). Please, note also that the protocol in Tab. 2 (taken from [17, 28]) is based on greedy decoding, thus we cannot repeat those experiments using multiple seeds. Finally, the results reported below include DAPO (as requested by Reviewer p7Mj) and are based on a training budget of 4k tokens. Please, see our answer to question Q2 of Reviewer p7Mj for more details.

Method GSM8K Ave. Len. GSM8K Acc. GSM8K AES MATH-500 Ave. Len. MATH-500 Acc. MATH-500 AES AMC2023 Ave. Len. AMC2023 Acc. AMC2023 AES MMLU (STEM) Ave. Len. MMLU (STEM) Acc. MMLU (STEM) AES Average Ave. Len. Average Acc. Average AES
TreeRL 786±9 87.1±0.4 0.11±0.03 1618±42 76.2±0.8 0.59±0.05 2050±95 59.2±3.6 0.76±0.23 932±9 76.8±0.4 0.25±0.03 1347±28 74.8±0.9 0.43±0.06
DAPO 606±7 89.2±0.4 0.39±0.02 1307±31 80.7±0.8 1.00±0.04 2011±92 60.7±3.4 0.87±0.22 663±7 79.0±0.4 0.58±0.02 1147±24 77.4±0.8 0.71±0.05
BFS-PO 310±7 89.7±0.4 0.75±0.02 1051±38 81.8±0.7 1.19±0.04 1672±98 63.5±3.7 1.21±0.23 500±5 79.8±0.4 0.77±0.02 883±29 78.7±0.8 0.98±0.05

Q2: Complex sentences, typos and grammatical errors.

A Thank you for your suggestions! We will carefully review the entire article and correct all errors.

Q3: Experiments are conducted on relatively small models, making it difficult to assess how BFS-PO scales to larger settings. That said, the authors note that larger-scale experiments are computationally expensive, which is a reasonable constraint.

A Please, see our answer to question Q3 of Reviewer PPA8.

Q4: How does BFS-PO behave when the entropy signal is poorly calibrated early in training?

A To test this scenario, we used a "Base" model, i.e., a model without post-training (specifically, Qwen3-4B-Base), which, like all Base models, has a much higher entropy than post-trained models and, therefore, in the early training phases of BFS-PO generates tokens with a much higher entropy. Please, see the results reported in our answer to question Q2 of Reviewer PPA8, which show that also in this setting BFS-PO can significantly reduce the CoT length and outperforms its closest competitors (DAPO and TreeRL).

Authors · CommentOpenReview ↗

Q5: The exponential growth of search paths with respect to K suggests this could become a significant limitation in more complex settings.

A Please, note that we do not actually have an exponential growth of the search paths, and the main reason is that our exploration strategy follows a greedy strategy and does not aim to be exhaustive (as practically all RL-based exploration methods for LRMs do, implicitly or explicitly). To be more specific, our goal, as mentioned in the Abstract and in Sec. 4, is to explore the discrete-state solution space (i.e., the space of all possible CoT, an absolutely enormous space) using a greedy strategy, in which initial solutions are progressively locally modified (using the backtracking mechanism) and exploration is biased towards a local optimum by progressively refining the current best solution to make it increasingly shorter. In other words, while, for instance, the exploration of the solution space in GRPO or DAPO is limited by a group size G (only G trajectories are independently explored for a given question), in BFS-PO, exploration is governed by a best-first backtracking mechanism. And, in our case, it is bounded by both G and K. Specifically, we limit K to 3 (please, see the Ablation section). Exploring all possible backtracking paths would be intractable, even for a single question and in relatively simple domains, thus our search tree is limited using a fixed K.

Moreover, in Sec. 4.2 and in App. D we analyse the computational costs of BFS-PO and we compare it with DAPO, showing that empirically they are very similar. Finally, please, see also our answer to question Q1 of Reviewer PPA8, in which we report the wall-clock times of all our experiments and we compare BFS-PO with DAPO and TreeRL.

Reviewer venV · CommentOpenReview ↗

Thank you for the satisfactory answers to Q1 through Q4. However, I remain unconvinced by your response to Q5. The paper proposes a tree search algorithm, similar to greedy A*, whose worst-case behavior is still exponential. Naturally, the algorithm is bounded if the branching factor and the depth are restricted to fixed constants, as done in this paper, but this does not change the combinatorial nature of the growth. Complexity is defined asymptotically, that is, by how the computation scales as parameters such as G and K increase. Empirical evaluation and analogies to other LRMs do not address this point. Suppose, for instance, that someone wishes to run your algorithm with K = 1000 and substantially more sampling than the values you report. In the worst case, this would exhaust the exponentially large search space induced by these parameters. My point is that the claim about the algorithm being polynomial seems to be false. The complexity analysis should take parameters such as K and G as input, as opposed to fixing them.

Reviewer PPA8OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a reinforcement learning algorithm called BFS-PO (Best First Search Policy Optimization), which aims to alleviate the "overthinking" phenomenon and high computational cost problems encountered by large reasoning models (LRM) when performing long chain of thought (CoT) tasks. During the training process, BFS-PO organizes the generated inference chains into a search tree, selects the shortest correct sequence as the optimal path, and expands it using a self-backtracking mechanism based on maximum entropy nodes. Experimental results show that BFS-PO can effectively balance the accuracy and computational efficiency of the model, significantly shorten the length of the inference chain, and improve the accuracy of the model.

Strengths and weaknesses

Strengths

  1. The paper innovatively combines Best-First Search with reinforcement learning to encourage the model to autonomously explore and generate more concise, correct reasoning paths, eliminating the need for expensive, static short-CoT supervised fine-tuning (SFT) datasets.
  2. It avoids the substantial training costs of using an external Process Reward Model (PRM) to evaluate intermediate steps. Instead, it uses an answer verifier combined with generation entropy to locate backtracking nodes, drastically reducing computational resource consumption.
  3. The model performs exceptionally well across multiple benchmarks (such as GSM8K and MATH-500) and different base models. Compared to zero-shot baselines and standard DAPO algorithms, it successfully boosts accuracy while substantially reducing the average generation length.

Weaknesses:

  1. Although PRM training costs are avoided, the serial iteration of sequence generation during the search tree construction and path expansion phases might introduce high latency. The paper lacks detailed comparative data on wall-clock time overhead during practical training.
  2. Relying on the maximum entropy node as the optimal forking point for backtracking may lack robustness in certain reasoning tasks, particularly when model outputs are under high uncertainty or subjected to specific instruction interference.
  3. The experiments primarily focus on models with 3B to 8B parameters. There is a lack of validation regarding the "overthinking" phenomenon in much larger models (e.g., 32B, 70B, or beyond), which restricts the generalization of the conclusions to frontier LLMs.
Questions
  1. Does the generation of multiple candidate paths during the tree expansion phase cause severe memory or communication bottlenecks on specific hardware configurations? Are there concrete comparative analyses of wall-clock time and VRAM usage?
  2. The paper assumes that the maximum entropy node is the optimal backtracking fork point. Have you evaluated the failure rate of this assumption in adversarial settings or extremely complex mathematical proof scenarios?
  3. Can BFS-PO maintain a comparable degree of length compression and accuracy improvement in larger-scale LRMs (e.g., 70B parameters and above)?
Limitations

yes

Final justification

Thanks for your detailed responses. My major concerns have been solved, and I'd like to raise the score.

Formatting concerns

no

7 comments
Authors · CommentOpenReview ↗

We thank the Reviewer for their work and for appreciating the originality of our method, its very good empirical results and the comparison with PRM-based approaches. We're preparing the answers and running the requested experiments. In the meantime, we'd like to kindly ask the Reviewer for some clarifications regarding the entropy question, which would help us provide a more precise answer. Specifically, we'd like to know what she/he means by “specific instruction interference” and “evaluate the failure rate of this assumption in adversarial settings or extremely complex mathematical proof scenarios”. Unfortunately, both sentences are not very clear to us, so we would be very grateful for any further suggestions on this matter. Thank you in advance.

Reviewer PPA8 · CommentOpenReview ↗

Thanks for your response. I am sorry for the unclear expression. What I mean is actually the reliability of the assumption “the maximum entropy node is the optimal backtracking fork point”. Is this true all the time? Or there are some counter-cases? Simply providing some discussions or statistics on the failure case/mechanism, if there is, would be helpful.

Authors · CommentOpenReview ↗

Thank you so much for your kind clarification; we really appreciate it! We're preparing all the answers and running the experiments, and will soon provide all our answers, including a discussion and experimental data regarding our backtracking mechanism based on maximum entropy nodes. Thank you again!

The Authors

Reviewer p7MjOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes an exploration method to learn reasoning model that generate short thinking sequences. This is done by sequentially generating a small batch, selecting the shortest correct sequence, selecting the maximum entropy node from that sequence, generating a new batch by branching on the node, and repeating the process for K iterations. Experiments show that the method trains generators that generates shorter thinking sequences with the same or slightly better accuracy.

Strengths and weaknesses

Strengths

  • The exploration method is reasonable and there has not been much research on exploration in LLMs.
  • The experiment results are good.

Weaknesses

  • The generated sequences used for training are off-policy but the training method used does not take that into account.
  • DAPO is not compared in Table 3 for out of domain results although it is the closest competitor on the in-domain results.

Update: The authors provide DAPO results in Table 3 during rebuttal showing that their proposed method outperforms DAPO.

Questions

How does DAPO compare on out of domain datasets?

Limitations

Yes

Final justification

The authors acknowledged that their method does not take into account off-policy generation and will discuss it in their paper. They have provide DAPO results in Table 3 during rebuttal showing that their proposed method outperforms DAPO -- this addresses one of my main concerns. Overall the method is practically effective and I have increased my score.

Formatting concerns

Nil.

3 comments
Authors · CommentOpenReview ↗

We thank the Reviewer for their work and for appreciating our exploration method and its experimental results. We answer below to all the comments.

Q1: The generated sequences used for training are off-policy but the training method used does not take that into account.

A We thank the Reviewer for raising this point. We agree that the discrepancy between the rollout distribution used to generate the tree sentences and the current policy πθ\pi_{\theta} should be better clarified. In standard RL algorithms such as PPO, GRPO and DAPO, the discrepancy between the old policy πθold\pi_{\theta_{old}}, used for sequence sampling, and the current policy πθ\pi_{\theta}, whose parameters are updated, is handled with importance sampling. This corresponds to the ratio ri,t(θ)r_{ i,t }(\theta) in Eq. 2 and 12. We also use the same ratio in our objective (Eq. 9). However, we agree with the Reviewer that this is not completely correct, because, in our case, the sampling process is conditioned by our exploration strategy described in Alg. 1. Thus, a more correct formulation of our objective function would consist in replacing T∼πθold(⋅∣q){\cal T} \sim \pi_{\theta_{old}}(\cdot|q) in Eq. 9 with: T∼μBFS(⋅∣q;πθold){\cal T} \sim \mu_{BFS} (\cdot|q; \pi_{\theta_{old}}), where μBFS(⋅∣q;πθold)\mu_{BFS} (\cdot|q; \pi_{\theta_{old}}) represents the entire sampling procedure, which depends on both the old policy πθold\pi_{\theta_{old}} and Alg. 1. Accordingly, ri,t(θ)r_{ i,t }(\theta) in Eq. 9 should be reformulated as: ri,t(θ)=πθ(oi,t∣q,oi,<t)μBFS(oi,t∣q,oi,<t;πθold)r_{i,t}(\theta) = \frac{\pi_{\theta}(o_{i,t}|q, o_{i,<t})}{\mu_{BFS}(o_{i,t}|q, o_{i,<t}; \pi_{\theta_{old}})}. However, the dependence of μBFS(⋅∣q;πθold)\mu_{BFS} (\cdot|q; \pi_{\theta_{old}}) on the procedure described in Alg. 1 makes the estimation of this likelihood non straightforward. Thus, Eq. 9 is actually a surrogate objective and is not an unbiased estimator of the standard DAPO objective. We will add this discussion to our paper and we will clarify this difference.

Authors · CommentOpenReview ↗

Q2: DAPO is not compared in Table 3 for out of domain results although it is the closest competitor on the in-domain results.

A We agree that this experiment is important and the reason for its absence is that, due to its high computational cost, it was not yet finished at submission time. Moreover, again for computational reasons, in Tab. 3 of the paper, both TreeRL and BFS-PO were trained with 2k tokens only (see the footnote at the end of pag. 7), while all other methods were trained and tested with 4k tokens (results taken from [28]). Therefore, we added DAPO and we repeated the experiments with both TreeRL and BFS-PO. Now all the methods have been trained and tested with 4k tokens. Finally, as requested by Reviewer venV, we repeated testing with 16 different seeds and we report the average values (please, see our answer to question Q1 of Reviewer venV, where we also report the standard deviations).

Method Ratio GSM8K Ave. Len. GSM8K Acc. GSM8K AES MATH-500 Ave. Len. MATH-500 Acc. MATH-500 AES AMC2023 Ave. Len. AMC2023 Acc. AMC2023 AES MMLU(STEM) Ave. Len. MMLU (STEM) Acc. MMLU (STEM) AES Average Ave. Len. Average Acc. Average AES
Zero-shot – 873 86.8 0.00 1675 64.2 0.00 2092 47.5 0.00 1081 74.1 0.00 1430 68.2 0.00
LC-Prompt 0.6 763 86.2 0.09 1466 60.4 -0.17 2015 45.0 -0.23 – – – 1415 63.9 -0.10
Truncation 0.6 692 81.7 -0.09 1271 49.8 -0.88 1334 25.0 -2.01 – – – 1099 52.2 -0.99
TokenSkip 1.0 916 83.7 -0.23 1696 54.4 -0.78 2333 37.5 -1.17 1556 56.0 -1.66 1625 57.9 -0.96
TokenSkip 0.8 794 84.3 -0.05 1527 53.0 -0.78 2302 27.5 -2.21 1481 54.5 -1.69 1526 54.8 -1.18
TokenSkip 0.6 770 78.5 -0.36 1517 47.4 -1.21 2077 20.0 -2.89 1310 47.5 -2.01 1418 48.4 -1.62
TokenSkip 0.4 516 74.2 -0.32 1259 34.4 -2.07 1743 12.5 -3.52 877 29.8 -2.80 1099 37.7 -2.18
TokenSkip 0.2 273 59.1 -0.91 660 23.4 -2.57 911 10.0 -3.38 446 18.1 -3.19 572 27.7 -2.51
TokenSkip <POLICY> 473 70.0 -0.51 1182 35.8 -1.92 1437 12.5 -3.37 1035 32.6 -2.76 1032 37.7 -2.14
Extra-CoT 1.0 902 86.7 -0.04 1698 64.0 -0.03 2153 42.5 -0.56 1252 70.5 -0.40 1501 65.9 -0.26
Extra-CoT 0.8 807 86.7 0.07 1520 64.2 0.09 1845 42.5 -0.41 1267 71.3 -0.36 1360 66.2 -0.15
Extra-CoT 0.6 641 85.5 0.19 1304 59.6 -0.14 1624 40.0 -0.57 1012 60.6 -0.85 1145 61.4 -0.34
Extra-CoT 0.4 469 82.3 0.20 920 54.2 -0.33 945 25.0 -1.82 730 61.3 -0.54 766 55.7 -0.62
Extra-CoT 0.2 303 80.2 0.27 481 47.8 -0.56 782 17.5 -2.53 458 54.3 -0.76 506 49.9 -0.90
Extra-CoT <POLICY> 569 86.3 0.32 1312 63.0 0.12 1515 42.5 -0.25 1026 67.5 -0.39 1106 64.8 -0.05
Thinkless(DeGRPO) – 356 85.5 0.52 888 63.6 0.42 1369 50.0 0.50 – – – 871 66.4 0.47
Extra-CoT(CHRPO) <POLICY> 210 85.8 0.70 452 64.8 0.76 675 50.0 0.84 330 67.1 0.22 417 66.9 0.63
TreeRL – 786 87.1 0.11 1618 76.2 0.59 2050 59.2 0.76 932 76.8 0.25 1347 74.8 0.43
DAPO – 606 89.2 0.39 1307 80.7 1.00 2011 60.7 0.87 663 79.0 0.58 1147 77.4 0.71
BFS-PO – 310 89.7 0.75 1051 81.8 1.19 1672 63.5 1.21 500 79.8 0.77 883 78.7 0.98

From the above results, it clearly emerges that BFS-PO significantly outperforms DAPO with respect to both the CoT length reduction and the AES score, while also slightly increasing the accuracy.

Reviewer p7Mj · CommentOpenReview ↗

The updated results in Table 3 shows that the proposed method outperforms DAPO on out of domain datasets -- this addresses one of my main concerns. The authors will also be discussing off-policy training in the paper. Overall the method is practically effective and I have increased my score.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…