Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing

Despite the impressive capabilities of Large Language Models (LLMs) on various tasks, they still struggle with scenarios that involves complex reasoning and planning. Recent work proposed advanced prompting techniques and the necessity of fine-tuning with high-quality data to augment LLMs' reasoning abilities. However, these approaches are inherently constrained by data availability and quality. In light of this, self-correction and self-learning emerge as viable solutions, employing strategies that allow LLMs to refine their outputs and learn from self-assessed rewards. Yet, the efficacy of LLMs in self-refining its response, particularly in complex reasoning and planning task, remains dubious. In this paper, we introduce AlphaLLM for the self-improvements of LLMs, which integrates Monte Carlo Tree Search (MCTS) with LLMs to establish a self-improving loop, thereby enhancing the capabilities of LLMs without additional annotations. Drawing inspiration from the success of AlphaGo, AlphaLLM addresses the unique challenges of combining MCTS with LLM for self-improvement, including data scarcity, the vastness search spaces of language tasks, and the subjective nature of feedback in language tasks. AlphaLLM is comprised of prompt synthesis component, an efficient MCTS approach tailored for language tasks, and a trio of critic models for precise feedback. Our experimental results in mathematical reasoning tasks demonstrate that AlphaLLM significantly enhances the performance of LLMs without additional annotations, showing the potential for self-improvement in LLMs.

Paper

References (67)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer iEWd5/10 · confidence 3/52024-07-08

Summary

This paper introduces ALPHALLM, which is an imagination-searching-criticizing framework designed for self-improvement. Inspired by AlphaGo, authors integrate MCTS and LLMs to establish the self-improvement loop. Additionally, authors proposed eta-MCTS, which is a decoding method used to reduce the search space. The experiments show that ALPHALLM can increase LLMs’ reasoning ability obviously, especially combined with eta-MCTS decoding.

Strengths

1. It’s innovative to use tree search to do self-improvement and it’s good to identify some challenges very clearly. 2. The experiments show that the reasoning ability of LLMs can be improved effectively.

Weaknesses

1. It could be more clear in some parts and including some examples would be helpful. For example, in the part of 4.2 data synthesizing, I’m curious about how the synthesized data looks like. 2. Authors identify that one of the challenges in working on LLMs’ self-improvement is the difficulty to get clear evaluations, and they proposed some method to get the evaluations, i.e. value function, PRM, ORM. But they do not discuss whether these methods are reliable to get perfect feedback.

Questions

Please refer to the part of weaknesses.

Rating

5

Confidence

3

Soundness

3

Presentation

2

Contribution

3

Limitations

Limitations are sufficiently discussed.

Reviewer LHqU6/10 · confidence 3/52024-07-13

Summary

This paper proposes an imagination-searching-criticizing approach called ALPHALLM to enhance the capabilities of large language models (LLMs). ALPHALLM integrates Monte Carlo Tree Search (MCTS) with LLMs to establish a self-improving framework.

Strengths

- This paper introduces a novel approach to LLM self-improvement using MCTS, presenting an interesting concept. - The paper is well-written, and the proposed imaginative-searching-criticizing approach is clearly explained. - Using only 7.5k/3k final math answer annotations and after just two iterations of self-improvement, ALPHALLM achieves impressive results: 92.0 on GSM8K and 51.0 on MATH. These results are remarkable.

Weaknesses

- Given only final math answer annotations, ALPHALLM essentially performs the final-label (reward) classification problem and tree search based on the predicted reward to generate rationales for each final answer. It is still unclear how ALPHALLM could outperform other LLM-SFTs that utilize both rationale annotations and final answer annotations. - ALPHALLM is a general framework. The authors should apply ALPHALLM to other tasks where learning signals are clear to demonstrate the overall effectiveness of this self-improvement framework.

Questions

- Have you ever tried using your value/reward function to perform RL fine-tuning with PPO?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

None.

Reviewer LHqU2024-08-13

Thank you for your response. Below is my feedback: - To support the hypothesis that the rationales generated by ALPHALLM are more robust and aligned, the author should provide additional examples of these rationales and analyze the differences between human-annotated rationales and those generated by ALPHALLM. Without this, the theoretical strength of ALPHALLM remains unclear. - After reading comments from Reviewers SX7Z and PPNK, I agree with their concerns about the implementation details. I also believe that the code should be provided to allow for verification of each component of your method. Due to the main concerns raised above, I have decided to lower my score. However, given that the experimental results are indeed remarkable, I still support the acceptance of this paper.

Authorsrebuttal2024-08-14

Thank you for your feedback

Thank you for the constructive feedback! We agree that a specific analysis between human-annotated rationales with those generated by ALPHALLM is valuable. Indeed, we have already provided evidence in the fine-tuning results. For instance, in Table 2 (around line 313), we show that ALPHALLM, trained with self-generated rationales, outperforms LLaMA-2 70B SFT, which uses human-annotated rationales. This empirical evidence could support the hypothesis that the rationales generated by ALPHALLM are more effective. We also agree that providing additional examples of these rationales and analyze the differences could provide deep insights. We will definitely include this analysis in the appendix in the next version. Regarding the implementation details, we have included additional ablations and details in our response to Reviewer PPNK and Reviewer SX7Z. We kindly ask you to review those additional results to see if they address your concerns. We understand that some details (e.g. Appendix A.6) might be overlooked without a thorough review of the appendix. To further ensure the reproducibility of our results and to facilitate the verification of each component of our method, we are also committed to providing the codebase associated with ALPHALLM. Thank you for your understanding!

Reviewer PPNk6/10 · confidence 5/52024-07-30

Summary

The paper proposes AlphaLLM, a tree-search enhanced framework with a few improvements over Data Synthesizing, option-level MCTS, Importance-Based Adaptive Branching, state merging, fast rollout, critic function and policy improvement process. Experimental results verify the framework's effectiveness on GSM8k and MATH.

Strengths

1. The technical contribution seems solid. The paper proposes a comprehensive framework and address modifications/improvements over the full pipeline of tree-search. 2. Experimental results demonstrate great potentials for the proposed algorithms.

Weaknesses

1. The writing is not clear enough. It is not that clear to me how the option-level is implemented to separate sentences (how the Termination function is determined). 2. There are many different components in the pipeline design but the ablation studies are not enough to validate them one by one. For example, It at least need to involve: 2.1 Comparison with other heuristic search methods, for example: (1) the beam-search + value function described in [1, 2]) (2) majority-vote or reranking with ORM. 2.2 Wall time or token consumption comparison between different methods. 2.3 The ablation studies seem to be too simple to present how different components can really influence the performance. Pure with/without results seem to be too simple. More experiments like how to control the hyperparameter for these things are required. For example, how different heuristic functions can influence the State Merge, how different fast rollout model can influence the effiency, how the thresold in ORM in the process of data generation can influence the improvement process, etc. Reference [1] Feng, Xidong, et al. "Alphazero-like tree-search can guide large language model decoding and training." arXiv preprint arXiv:2309.17179 (2023). [2] Yu, Fei, Anningzhe Gao, and Benyou Wang. "Outcome-supervised verifiers for planning in mathematical reasoning." arXiv preprint arXiv:2311.09724 (2023).

Questions

1. What is the difference between value function training and PRM training? From the description it seems that the PRM's training is exactly the same as value function training in Monte-Carlo estimation (except you tend to take more simulations starting from a fixed state). Also, it seems that the technique described in the critic section has almost been described in many previous works: value function training in [1], PRM training in [2, 3], and ORM in [4], the author needs to clarify more on their own contributions and make proper citations. 2. One difference between your work and [1] is that they leverage the value function itself to backward (like AlphaZero) while you are using the fast model to rollout to reach the terminal state, which is like the initial version of AlphaGo (where they have a fast-move network) and [5]. What do you think of these differences and why do you make this design choices? Reference [1] Feng, Xidong, et al. "Alphazero-like tree-search can guide large language model decoding and training." arXiv preprint arXiv:2309.17179 (2023). [2] Wang, Peiyi, et al. "Math-shepherd: A label-free step-by-step verifier for llms in mathematical reasoning." arXiv preprint arXiv:2312.08935 (2023). [3] Lightman, Hunter, et al. "Let's verify step by step." arXiv preprint arXiv:2305.20050 (2023). [4] Uesato, Jonathan, et al. "Solving math word problems with process-and outcome-based feedback." arXiv preprint arXiv:2211.14275 (2022). [5] Hao, Shibo, et al. "Reasoning with language model is planning with world model." arXiv preprint arXiv:2305.14992 (2023).

Rating

6

Confidence

5

Soundness

3

Presentation

2

Contribution

3

Limitations

See questions and weaknesses.

Authorsrebuttal2024-08-07

Rebuttal Supplement: References

Due to the word limit, we included the references used in the rebuttal for reviewer PPNk in this comment. We would also like to greatly thank the reviewer PPNk for the valuable feedback and insightful questions. We appreciate the recognition of our technical contributions and the potential of our algorithm. The reviewer's questions and suggestions have been crucial in improving the clarity of our work. ## Reference [1] Feng, Xidong, et al. "Alphazero-like tree-search can guide large language model decoding and training." arXiv preprint arXiv:2309.17179 (2023). [2] Wang, Peiyi, et al. "Math-shepherd: A label-free step-by-step verifier for llms in mathematical reasoning." arXiv preprint arXiv:2312.08935 (2023). [3] Lightman, Hunter, et al. "Let's verify step by step." arXiv preprint arXiv:2305.20050 (2023). [4] Uesato, Jonathan, et al. "Solving math word problems with process-and outcome-based feedback." arXiv preprint arXiv:2211.14275 (2022).

Reviewer PPNk2024-08-13

Despite the difference on architecture and training loss, the clarification on formulation difference makes me still confused: "Value function training focuses on estimating the expected FUTURE return of a given state or state-action pair. In contrast, PRM evaluates the quality of the current state or node. While PRM ideally requires quality labels for each state, due to the high cost and time involved in obtaining these, MC estimation is used as a proxy." Since you are using MC estimation, then this PRM is exactly the same for estimating the expected future return of a given state or state-action pair, so it should fall back to value function training.

Authorsrebuttal2024-08-13

Thank you for your feedback

Thank you for your insightful comment! We agree that the training objective of the MC proxy is indeed the same as that of the value function, and both the estimated values should tend to be the same as long as the MC samples and data used for training the value function go to infinity. The reason we adopted this approach is due to the high cost and time involved in obtaining quality labels like [1] for each state. Therefore, we adapted the PRM used in [2,3] as a proxy . In practice, this approach has proven to be useful. The value function exhibits better precision and calibration, while PRM has superior recall. By integrating these models, we observed an overall performance improvement from 84.9% to 85.9% on GSM8K. In future work, we plan to explore additional methods to obtain more accurate estimations of the quality of the current step. We appreciate your valuable feedback and thank you once again for your contribution to our research. [1] Lightman, Hunter, et al. "Let's verify step by step." arXiv preprint arXiv:2305.20050 (2023). [2] Wang, Peiyi, et al. "Math-shepherd: A label-free step-by-step verifier for llms in mathematical reasoning." arXiv preprint arXiv:2312.08935 (2023). [3] Jiao, Fangkai, et al. "Learning planning-based reasoning by trajectories collection and process reward synthesizing." arXiv preprint arXiv:2402.00658 (2024).

Reviewer PPNk2024-08-13

I am satisfied by the response, but do remember to include these explanation to make things more clear in the main paper. I will raise my score to 6.

Authorsrebuttal2024-08-14

Thank you for your feedback

Thank you for your positive feedback. We will ensure that these explanations are included in the main paper to enhance clarity.

Reviewer SX7Z6/10 · confidence 3/52024-07-31

Summary

The paper introduces a method for self-imporvement of LLMs called AlphaLLM. The method consists of three components: Generation of expert trajectories Effective Monte-Carlo-Tree-Search over the LLM outputs (nablda-MCTS) A series of critics for evaluating reliable reward signal (value function, Process Reward Model, Outcome Reward Models) The method can be used as a rollout mechanism to generate high quality outputs. To help deal with the large branching factor, the authors propose three subcomponents: State space is set to Options, which is neither token space nor sentence space, but a variable length sequence which terminates based on an auxiliary heuristic beta. States are merged using another auxiliary function p_vM Fast rollouts are used with a smaller LLM to help estimate. The authors then demonstrate incredibly strong empirical results on both MATHS and GSM8K. Training with the proposed method on LLAMA-2-70b is able to achieve 51% on the MATH dataset.

Strengths

The method seems to work well! The discussion on state merge and options helps express difficulties in applying MCTS. The paper seems to combine many subcomponents to produce a strong algorithm. The branching factor is well-motivated.

Weaknesses

Lots of experimental details are missing. There is very little discussion of how AlphaLLM is trained or what base model it is (it's only mentioned in the introduction!). In particular, no information is given about the actual training of either the policy (LLM), the Critics, or the heuristic functions p_vM. The explanation of the options is lacking - even looking at A.2 the explanation of options is unclear. Is Beta learnt as a function or generated in some other way? Are the set of options I, learnt before a rollout or generated on the fly? Ablations are missing - in particular using different state methods, removing the Importance-Based Adaptive Branching, State Merge or Option-Level MCTS. The prompts in the appendix are reduced so we can’t replicate. No Code provided. Weird choice of baselines - surely to keep evaluations consistent with other LLMs, you should allow models to generate the same amount of output tokens with access to the PRM or ORM? I find it hard to believe COT on Claude-2 is a fair comparison, when the amount of optimisation pressure applied to multiple components of the method (including gradient updates). There is no example of a rollout provided.

Questions

- What policy was used in the end for the fast rollout? - The prompt templates are missing key parts - [A detailed rubric that specifies how to evaluate a step of a task] would be helpful if shared. - In particular when comparing to GPT-4 or other model perform was an equally informative prompt used? (Or at least a prompt of equal input tokens). - If the synthetic data generated is used few-shot by llama2, how does your model perform? - I think the related work is missing some key papers such as: [https://arxiv.org/abs/2203.14465] (the STAR family of papers)

Rating

6

Confidence

3

Soundness

2

Presentation

3

Contribution

3

Limitations

The paper in its current form is not replicable.

Authorsrebuttal2024-08-06

Rebuttal Supplement: Templates, Examples and References

Due to the word limit, I am providing the prompts, examples, and references used in our rebuttal for reviewer SX7Z in this comment. ## A. Rubrics in Prompt Templates As mentioned in our response to **[W5]**, the prompt templates for PRM and ORM are detailed in Appendix A.5 , with specific rubrics for PRM and ORM are - PRM: ``` You are given a math problem, followed by a step-by-step reasoning process. Your task is to read the problem carefully, understand the solving steps, and check the correctness of the last reasoning step. Output 'True' if the last step is correct, and 'False' otherwise. ``` - ORM: ``` Assess a solution including final answer to a given math problem by following below steps.\n- Evaluate the method used for solving the problem.\n- Review each calculation step for accuracy. Check for computational errors, incorrect formula applications, or arithmetic mistakes.\n- The solution should use all the information provided in the question.\n- Examine the final answer for correctness, considering the calculations and method used.\n. ``` ## B. Rollout Example Here's a detailed rollout example addressing **[W7]**: Consider the following GSM-like question: ``` Question: Sandy's monthly phone bill expense is equal to ten times her age now. In two years, Sandy will be three times as old as Kim. If Kim is currently x years old, calculate Sandy's monthly phone bill expense.\nIf we know the answer to the above question is 340, what is the value of the unknown variable x?\n ``` A node in the second layer could have the following content: ``` Answer: We know that Sandy's monthly phone bill is 10 times her age. In two years, Sandy will be 3 times as old as Kim. The sum of Sandy's age now and 2 years is 3 times the sum of Kim's age now and two years.\nSandy's age now is 340/10 = <<340/10=34>>34. In two years, Sandy's age will be 34 + 2 = <<34+2=36>>36.\n ``` The parent of this node has the content: ``` Answer: We know that Sandy's monthly phone bill is 10 times her age. In two years, Sandy will be 3 times as old as Kim. The sum of Sandy's age now and 2 years is 3 times the sum of Kim's age now and two years.\n ``` And one of its fast-rollout paths could be: ``` The sum of Sandy's age now and 2 years is 36. The sum of Kim's age now and two years is x + 2.\n36 = 3(x + 2)\n36 = 3x + 6\n3x = 30\nx = 10\n#### 10 ``` ## C. Reference [1]. Zhang, Dan, et al. "ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Search." arXiv preprint arXiv:2406.03816 (2024). [2]. Yu, Longhui, et al. "Metamath: Bootstrap your own mathematical questions for large language models." arXiv preprint arXiv:2309.12284 (2023). [3]. Li, Xian, et al. "Self-alignment with instruction backtranslation." arXiv preprint arXiv:2308.06259 (2023). [4]. Guo, Hongyi, et al. "Human-instruction-free llm self-alignment with limited samples." arXiv preprint arXiv:2401.06785 (2024).

Reviewer SX7Z2024-08-09

Thank you for your comments.

I thank the authors for these comments and apologise for not seeing the training section earlier. My concerns about the writing and lack of correct ablations have been re-enforced by the other reviewers, I believe stand. I still think your baselines are wrong, you want to show your method relative to other methods either generates more informative datapoints (similar to compare to Lightman's Process-based supervision) or that this is just a method for boostrapping from a weak learner (in which case i imagine using BoN with these new value functions should get a similar result). The paper is still of weak quality in my opinion but the results are truly exciting. I think if the authors can make a deliberate effort to tidy up writing and compare to baselines with their base models. I'm updating my score to an accept because the result is really good but this paper still really lacks clear communication or generating knowledge on whats happening here.

Authorsrebuttal2024-08-10

Thank you for your feedback

Thank you for your constructive suggestions! We truly appreciate your feedback and will work on improving the writing to make the paper clearer and more accessible. Regarding the ablations, could you please specify any particular ablations you feel may be missing? In addition to the ablations we included in our submission (with and without certain components), we have also provided more detailed ablations, including hyperparameter controls, in our response to Reviewer PPNk. We would be happy to consider incorporating any additional specific ablations you might suggest. As for the baselines, we have included a similar discussion in Section 5.3 and Figure 2. The result demonstrates that, in self-improving, using \etaMCTS for data collection outperforms Reranking (BoN) in various aspects, including the improved policy itself, as well as when combined with reranking and \etaMCTS in both iterations 1 and 2. We believe this evidence shows that our method generates more informative data points. Thank you again for your valuable feedback. We will keep refining our paper to enhance its clarity and overall presentation.

Reviewer iEWd2024-08-13

Thanks for the reply and these address some of the questions. I will maintain my score.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC