Papers › Guided Stream of Search: Learning to Better Search with Language Models via Optimal...

Guided Stream of Search: Learning to Better Search with Language Models via Optimal Path Guidance

3 Oct 2024arXiv:2410.02992archive 2025-07-28

Seungyong Moon, Bumsoo Park, Hyun Oh Song

While language models have demonstrated impressive capabilities across a range of tasks, they still struggle with tasks that require complex planning and reasoning. Recent studies have proposed training language models on search processes rather than optimal solutions, resulting in better generalization performance even though search processes are noisy and even suboptimal. However, these studies overlook the value of optimal solutions, which can serve as step-by-step landmarks to guide more effective search. In this work, we explore how to leverage optimal solutions to enhance the search and planning abilities of language models. To this end, we propose guided stream of search (GSoS), which seamlessly incorporates optimal solutions into the self-generation process in a progressive manner, producing high-quality search trajectories. These trajectories are then distilled into the pre-trained model via supervised fine-tuning. Our approach significantly enhances the search and planning abilities of language models on Countdown, a simple yet challenging mathematical reasoning task. Notably, combining our method with RL fine-tuning yields further improvements, whereas previous supervised fine-tuning methods do not benefit from RL. Furthermore, our approach exhibits greater effectiveness than leveraging optimal solutions in the form of subgoal rewards.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.02992")

Code

Syntology Ran 18 of 19 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · fixture could not drive it; 17 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 9 ran; found in paper text by Syntology: 9 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

symoon11/guided-stream-of-search officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 18 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
17ran
1unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

combine_nums symoon11/guided-stream-of-search/stream-of-search/src/countdown_utils.py official repository ran fingerprinted MIT (permissive) · 088b5a4931c549e9 · report
generate symoon11/guided-stream-of-search/tril/sample.py official repository ran MIT (permissive) · ce288b4b6be413e0 · report
get_prompts symoon11/guided-stream-of-search/stream-of-search/src/sample.py official repository ran MIT (permissive) · 6ee6c56846603d81 · report
get_search_paths symoon11/guided-stream-of-search/stream-of-search/src/sample.py official repository ran MIT (permissive) · 49715be63a40e887 · report
get_subgoal_nodes symoon11/guided-stream-of-search/stream-of-search/src/augment.py official repository ran MIT (permissive) · 4893fcecbcbd648b · report
get_subgoals_list symoon11/guided-stream-of-search/stream-of-search/src/augment.py official repository ran MIT (permissive) · 8551c0600f5ecd28 · report
mult_heuristic symoon11/guided-stream-of-search/stream-of-search/src/countdown_utils.py official repository ran fingerprinted MIT (permissive) · 3b9eb49d3b384506 · report
parse_operation symoon11/guided-stream-of-search/stream-of-search/src/augment.py official repository ran MIT (permissive) · c6e7682bbaa501cb · report
sum_heuristic symoon11/guided-stream-of-search/stream-of-search/src/countdown_utils.py official repository ran MIT (permissive) · 221eded453668b01 · report
generate symoon11/guided-stream-of-search/stream-of-search/src/sample.py official repository unverified MIT (permissive) · 9b5682ed4efd3768 · report
compute_ce_dpo_loss_rm snu-mllab/guided-rest/recipe/prime/prime_core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · f220595adfc5e83c · report
compute_detach_dpo_loss_rm snu-mllab/guided-rest/recipe/prime/prime_core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4d91e4383716e42c · report
compute_online_dpo_loss snu-mllab/guided-rest/recipe/spin/core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · f19825983a523003 · report
compute_onlinedpo_pref snu-mllab/guided-rest/recipe/spin/core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · 41b6e81dc3ecba79 · report
generate_config_from_args snu-mllab/guided-rest/verl/model_merger/base_model_merger.py found in paper text by Syntology ran Apache-2.0 (permissive) · 8896f4e2bafe8abc · report
get_child_nodes snu-mllab/guided-rest/recipe/countdown/core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · b2b11fca3d7fe4d1 · report
get_dynamic_pipeline_shards snu-mllab/guided-rest/verl/model_merger/megatron_model_merger.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 94209884dcb2308e · report
get_kl_controller snu-mllab/guided-rest/recipe/spin/core_algos.py found in paper text by Syntology ran Apache-2.0 (permissive) · 757d109d90121142 · report
reward_func snu-mllab/guided-rest/recipe/r1/reward_score.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · 8a84f8cc921357e2 · report

Tasks

Mathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections