Papers › Accelerate Parallelizable Reasoning via Parallel Decoding within One Sequence

Accelerate Parallelizable Reasoning via Parallel Decoding within One Sequence

26 Mar 2025arXiv:2503.20533archive 2025-07-28

Yijiong Yu

Recent advances in reasoning models have demonstrated significant improvements in accuracy, particularly for complex tasks such as mathematical reasoning, by employing detailed and comprehensive reasoning processes. However, generating these lengthy reasoning sequences is computationally expensive and time-consuming. To address this inefficiency, we leverage the inherent parallelizability of certain tasks to accelerate the reasoning process. Specifically, when multiple parallel reasoning branches exist, we decode multiple tokens per step using a specialized attention mask, processing them within a single sequence. Experimental results show that our method achieves over 100% speedup in decoding time while basically maintaining accuracy.

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

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yuyijiong/parallel-decoding-in-one-sequence officialmentioned in papermentioned on GitHubpytorch 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

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 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 · our draft was wrong
2ran · fixture could not drive it
5ran
4unverified

Licence: 13 of the 13 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 yuyijiong/parallel-decoding-in-one-sequence. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

Qwen2Attention yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · bb3e5ab4d14134fa · report
Qwen2MLP yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 0b7204a99a29e9f0 · report
Qwen2PreTrainedModel yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 6641879fc0a39433 · report
Qwen2RMSNorm yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · ea8879988dece177 · report
Qwen2RotaryEmbedding yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · f3c1b1406deb4ad1 · report
_prepare_4d_causal_attention_mask_with_cache_position yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository ran · our draft was wrong no licence file found · pointer only · a73c20a30e591545 · report
Qwen2DecoderLayer yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository unverified no licence file found · pointer only · 3fcec7a2529f7ff3 · report
Qwen2FlashAttention2 yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository unverified no licence file found · pointer only · be6ea9cb7fa07851 · report
Qwen2ParaModel yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository unverified no licence file found · pointer only · 252125a25cb155ce · report
Qwen2SdpaAttention yuyijiong/parallel-decoding-in-one-sequence/modeling_qwen2.py official repository unverified no licence file found · pointer only · c9686309ac575131 · report
repeat_kv identical code first harvested elsewhere ran · fixture could not drive it fingerprinted licence of this copy not recorded · 3c76e52815c5401d · report
apply_rotary_pos_emb identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 0fe82a947dc39b42 · report
rotate_half identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · e03d53ba9d4f9ae5 · report

Tasks

Mathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

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