SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.05315 · 2025

Scalable Chain of Thoughts via Elastic Reasoning

arXiv · PDF · Open in the Atlas

Code that ran

5 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 6 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.05315.json · badge: /api/ran/2505.05315.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
salesforceairesearch/elastic-reasoning canonical (classifier label)
classifier basis not recorded on the link
5 ran · 6 no recorded run
FunctionStatusWhere it lives
check_correctness Ran
ran on a synthesized input
salesforceairesearch/elastic-reasoning/rllm/rewards/code_reward.py
pointer only (licence: Apache-2.0) · get_code("7134e7134bb2121a")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_huggingface_actor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
salesforceairesearch/elastic-reasoning/verl/verl/utils/model.py
pointer only (licence: Apache-2.0) · get_code("360c671d6041ba3b")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_available_ports Ran
ran on a synthesized input
salesforceairesearch/elastic-reasoning/rllm/utils.py
pointer only (licence: Apache-2.0) · get_code("151c4e0f70dc5941")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

union_tensor_dict Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/elastic-reasoning/verl/verl/protocol.py
pointer only (licence: Apache-2.0) · get_code("21331a58f93375e4")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unpad_dataproto Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/elastic-reasoning/verl/verl/protocol.py
pointer only (licence: Apache-2.0) · get_code("25f0ea3f460f6ce1")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clean_code_main_block Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/rllm/rewards/code_reward.py
pointer only (licence: Apache-2.0) · get_code("07ead07d3ca3efae")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

extract_code_from_model Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/rllm/rewards/code_reward.py
pointer only (licence: Apache-2.0) · get_code("b26564a83d116677")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_huggingface_actor_config Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/verl/verl/utils/model.py
pointer only (licence: Apache-2.0) · get_code("19472d4343d0a082")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/verl/verl/models/weight_loader_registry.py
pointer only (licence: Apache-2.0) · get_code("919cf310ad4c189a")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_input_output Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/rllm/rewards/code_utils/codeforces.py
pointer only (licence: Apache-2.0) · get_code("db318652fa9fa6ec")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

squeeze Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/elastic-reasoning/verl/verl/utils/model.py
pointer only (licence: Apache-2.0) · get_code("3b15e2ac7497c441")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/elastic-reasoning, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 6 the same month, 6 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
unpad_dataproto 89 other papers
12 dated earlier, 11 the same month, 62 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
squeeze 82 other papers
11 dated earlier, 11 the same month, 56 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 79 more not named here
union_tensor_dict 64 other papers
12 dated earlier, 13 the same month, 35 later, 1 same year, order not determinable, 3 undated · 4 only as an assembly brick
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 61 more not named here
get_huggingface_actor_config 53 other papers
11 dated earlier, 11 the same month, 28 later, 1 same year, order not determinable, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 50 more not named here
get_weight_loader 20 other papers
6 dated earlier, 6 the same month, 6 later, 1 same year, order not determinable, 1 undated
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
2502.14768 (2025-02)
Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
and 17 more not named here
create_huggingface_actor 17 other papers
4 dated earlier, 6 the same month, 5 later, 1 same year, order not determinable, 1 undated
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
2502.14768 (2025-02)
Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
2503.10460 (2025-03)
Light-R1: Curriculum SFT, DPO and RL for Long COT from Scratch and Beyond
and 14 more not named here
find_available_ports 1 other paper
1 undated
no dated paper among those named
openreview_v70fTOqer2
Knapsack RL: Compute-Efficient Reinforcement Learning via Heterogeneous Rollout Allocation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large reasoning models (LRMs) have achieved remarkable progress on complex tasks by generating extended chains of thought (CoT). However, their uncontrolled output lengths pose significant challenges for real-world deployment, where inference-time budgets on tokens, latency, or compute are strictly constrained. We propose Elastic Reasoning, a novel framework for scalable chain of thoughts that explicitly separates reasoning into two phases--thinking and solution--with independently allocated budgets. At test time, Elastic Reasoning prioritizes the completeness of solution segments, significantly improving reliability under tight resource constraints. To train models that are robust to truncated thinking, we introduce a lightweight budget-constrained rollout strategy, integrated into GRPO, which teaches the model to reason adaptively when the thinking process is cut short and generalizes effectively to unseen budget constraints without additional training. Empirical results on mathematical (AIME, MATH500) and programming (LiveCodeBench, Codeforces) benchmarks demonstrate that Elastic Reasoning performs robustly under strict budget constraints, while incurring significantly lower training cost than baseline methods. Remarkably, our approach also produces more concise and efficient reasoning even in unconstrained settings. Our code has been made available at https://github.com/SalesforceAIResearch/Elastic-Reasoning.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.05315")
get_code_for_paper("2505.05315")
have("2505.05315")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.05315.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.05315.svg)](https://syntology.ai/paper/2505.05315)

Connect an agent — have() is free.