Papers › Learning Adaptive Parallel Reasoning with Language Models

Learning Adaptive Parallel Reasoning with Language Models

21 Apr 2025arXiv:2504.15466archive 2025-07-28

Jiayi Pan, Xiuyu Li, Long Lian, Charlie Snell, Yifei Zhou, Adam Yala, Trevor Darrell, Kurt Keutzer, Alane Suhr

Scaling inference-time computation has substantially improved the reasoning capabilities of language models. However, existing methods have significant limitations: serialized chain-of-thought approaches generate overly long outputs, leading to increased latency and exhausted context windows, while parallel methods such as self-consistency suffer from insufficient coordination, resulting in redundant computations and limited performance gains. To address these shortcomings, we propose Adaptive Parallel Reasoning (APR), a novel reasoning framework that enables language models to orchestrate both serialized and parallel computations end-to-end. APR generalizes existing reasoning methods by enabling adaptive multi-threaded inference using spawn() and join() operations. A key innovation is our end-to-end reinforcement learning strategy, optimizing both parent and child inference threads to enhance task success rate without requiring predefined reasoning structures. Experiments on the Countdown reasoning task demonstrate significant benefits of APR: (1) higher performance within the same context window (83.4% vs. 60.0% at 4k context); (2) superior scalability with increased computation (80.1% vs. 66.6% at 20k total tokens); (3) improved accuracy at equivalent latency (75.2% vs. 57.3% at approximately 5,000ms). APR represents a step towards enabling language models to autonomously optimize their reasoning processes through adaptive allocation of computation.

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="2504.15466")

Code

Syntology Ran 2 of 15 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

parallel-reasoning/apr officialmentioned in papermentioned on GitHubjaxApache-2.0 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

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

2ran
13unverified

Licence: 0 of the 15 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 parallel-reasoning/apr. “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 parallel-reasoning/apr/src/countdown_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 088b5a4931c549e9 · report
sum_heuristic parallel-reasoning/apr/src/countdown_utils.py official repository ran Apache-2.0 (permissive) · 221eded453668b01 · report
add_angle_brackets parallel-reasoning/apr/src/eval/eval_apr.py official repository unverified Apache-2.0 (permissive) · 4fd67e6475ff3cc8 · report
check_solution parallel-reasoning/apr/tinyrl/rollout/apr_utils.py official repository unverified Apache-2.0 (permissive) · 2b01db146b04318e · report
check_solution parallel-reasoning/apr/src/eval/parallel_infernce_utils.py official repository unverified Apache-2.0 (permissive) · a96a42bbb91f34c7 · report
count_tokens parallel-reasoning/apr/src/eval/eval_sosp.py official repository unverified Apache-2.0 (permissive) · 56c7087a3cd9e36e · report
get_path_to_target parallel-reasoning/apr/src/countdown_utils.py official repository unverified Apache-2.0 (permissive) · 70347da79ebc7338 · report
get_search_result parallel-reasoning/apr/tinyrl/rollout/apr_utils.py official repository unverified Apache-2.0 (permissive) · c1edf254dc0877ed · report
get_subsearch_info parallel-reasoning/apr/tinyrl/rollout/apr_utils.py official repository unverified Apache-2.0 (permissive) · cb5043aeca4f7e86 · report
get_subsearch_info parallel-reasoning/apr/src/eval/parallel_infernce_utils.py official repository unverified Apache-2.0 (permissive) · e896f01e2ba9ba15 · report
is_correct parallel-reasoning/apr/tinyrl/rollout/sos_utils.py official repository unverified Apache-2.0 (permissive) · b26c2e702307ed07 · report
parse_bool parallel-reasoning/apr/src/eval/eval_apr.py official repository unverified Apache-2.0 (permissive) · bb04fa2661e23ef6 · report
popen_launch_server parallel-reasoning/apr/tinyrl/utils.py official repository unverified Apache-2.0 (permissive) · 3bd024d40a65bf30 · report
process_pretrain_example parallel-reasoning/apr/supervised-jax/llama3_train/gpt2_train_script.py official repository unverified Apache-2.0 (permissive) · 15ffd7bbc040d815 · report
rollout_sos parallel-reasoning/apr/tinyrl/rollout/sos_utils.py official repository unverified Apache-2.0 (permissive) · a5bf59b3bfbdeaaa · report

Tasks

4k

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