Based on Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8B by Zhang, et al.
At a high level, MCTSr iteratively generates solutions to a specified (math) problem.
In a MCTSr tree, nodes correspond to attempted answers, and edges correspond to attempts to improve the answer.
Generate an solution to the problem. This paper uses a "dummy" solution (e.g. "I don't know").
We gather a set of candidate nodes which haven't been fully expanded.
A node is fully expanded if either:
max_childrenOnce we've gathered the candidates, we compute UCT scores for each candidate node. There are a few ways we can make our selection:
The authors mention that they perform greedy selection in the paper. In their repo, they also perform pairwise sampling and save the (question, answer1, answer2) tuples for use in DPO.
Expansion involves several steps:
reward of the new child.I haven't run extensive evals on this.
max_rollouts=8max_children=279 followers · starred Jul 2024
102 followers · starred Aug 2024
Based on Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8B by Zhang, et al.
At a high level, MCTSr iteratively generates solutions to a specified (math) problem.
In a MCTSr tree, nodes correspond to attempted answers, and edges correspond to attempts to improve the answer.
Generate an solution to the problem. This paper uses a "dummy" solution (e.g. "I don't know").
We gather a set of candidate nodes which haven't been fully expanded.
A node is fully expanded if either:
max_childrenOnce we've gathered the candidates, we compute UCT scores for each candidate node. There are a few ways we can make our selection:
The authors mention that they perform greedy selection in the paper. In their repo, they also perform pairwise sampling and save the (question, answer1, answer2) tuples for use in DPO.
Expansion involves several steps:
reward of the new child.I haven't run extensive evals on this.
max_rollouts=8max_children=279 followers · starred Jul 2024
102 followers · starred Aug 2024