SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.07312 · 2025

BOOTSTRAPPING LLMS TO REASON OVER LONGER HORIZONS VIA REINFORCEMENT LEARNING

Philip Torr, Christian Schroeder De Witt, Riashat Islam, Ziyang Cai, Charles London, Ramesh Sumeet, Motwani, Alesia Ivanova, Shital Shah

arXiv · PDF · Open in the Atlas

Code that ran

18 of 18 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 13 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2510.07312.json · badge: /api/ran/2510.07312.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
AlesyaIvanova/h1 canonical (classifier label)
classifier basis: census
18 ran · 0 no recorded run
FunctionStatusWhere it lives
combine_datasets Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/combine_datasets.py
pointer only (licence: NONE) · get_code("7d22cc3425cfa2c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

count_unknown_letters_in_expr Ran
ran, honoured the contract we drafted
AlesyaIvanova/h1/math_utils.py
pointer only (licence: NONE) · get_code("368d3db6347269c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

extract_answer_from_text Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/grpo.py
pointer only (licence: NONE) · get_code("3d0358bbcc423041")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

extract_xml_answer Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/grpo.py
pointer only (licence: NONE); the stored copy get_code serves, from xingzhejun/d-OPSD, is pointer only (licence: NONE) · get_code("08fcee8ccfd3d4a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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_integers_in_problem Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/combine_questions_without_code_generation.py
pointer only (licence: NONE) · get_code("794cac8b76f7d705")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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_number_in_question Ran
ran, honoured the contract we drafted
AlesyaIvanova/h1/combine_questions_into_long_horizon_resoning.py
pointer only (licence: NONE) · get_code("d374f5c33a2daed9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

get_final_answer Ran
ran, honoured the contract we drafted
AlesyaIvanova/h1/combine_questions_into_long_horizon_resoning.py
pointer only (licence: NONE) · get_code("405ed0fe777e94ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

is_integer_answer Ran
ran, violated the contract we drafted
AlesyaIvanova/h1/combine_questions_without_code_generation.py
pointer only (licence: NONE) · get_code("67d97e1447eb564b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

legacy_extract_answer Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/grpo.py
pointer only (licence: NONE) · get_code("b72d7afd1ebdc85a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

load_dataset Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/combine_datasets.py
pointer only (licence: NONE) · get_code("d95024e36958b9e1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

load_general_dataset Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/math_eval.py
pointer only (licence: NONE) · get_code("962775950d8d4e55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

normalize_answer Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/math_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from PKU-SEC-Lab/SPEX, is pointer only (licence: NONE) · get_code("101b1e54fcdadf90")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

parse_final_answer Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/solution_code_generation.py
pointer only (licence: NONE) · get_code("b0078f06062c1ce9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

replace_integer_with_variable Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AlesyaIvanova/h1/combine_questions_without_code_generation.py
pointer only (licence: NONE) · get_code("5127f5edca18c9b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

should_allow_eval Ran
ran, violated the contract we drafted
AlesyaIvanova/h1/math_utils.py
pointer only (licence: NONE) · get_code("95f02454eddf082a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

strip_code_block_markers Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/solution_code_generation.py
pointer only (licence: NONE) · get_code("481fad6e04e6c4bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

take_first_samples Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/combine_datasets.py
pointer only (licence: NONE) · get_code("a76d39c0f782065f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

test_generated_code Ran
ran; our contract draft was wrong, not the code
AlesyaIvanova/h1/solution_code_generation.py
pointer only (licence: NONE) · get_code("900e6c1fd3363c0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlesyaIvanova/h1 when it was checked. 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.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 4 later) and 14 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
should_allow_eval 13 other papers
7 dated earlier, 6 later
2305.20050 (2023-05)
Let's Verify Step by Step
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
2502.06703 (2025-02)
Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling
and 10 more not named here
count_unknown_letters_in_expr 12 other papers
6 dated earlier, 6 later
2305.20050 (2023-05)
Let's Verify Step by Step
2502.06703 (2025-02)
Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling
2503.10460 (2025-03)
Light-R1: Curriculum SFT, DPO and RL for Long COT from Scratch and Beyond
and 9 more not named here
normalize_answer 10 other papers
7 dated earlier, 3 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
2412.01981 (2024-12)
Free Process Rewards without Process Labels
and 7 more not named here
extract_xml_answer 2 other papers
2 later
2602.06462 (2026-02)
Diffusion-State Policy Optimization for Masked Diffusion Language Models
2606.18195 (2026-06)
Learning from the Self-future: On-policy Self-distillation for dLLMs

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-23.

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 language models excel at short-horizon reasoning tasks, but performance drops as reasoning horizon lengths increase. Existing approaches to combat this rely on inference-time scaffolding or costly step-level supervision, neither of which scales easily. In this work, we introduce a scalable method to bootstrap long-horizon reasoning capabilities using only existing, abundant short-horizon data. Our approach synthetically composes simple problems into complex, multistep dependency chains of arbitrary length. We train models on this data using outcome-only rewards under a curriculum that automatically increases in complexity, allowing RL training to be scaled much further without saturating. Empirically, our method generalizes remarkably well: curriculum training on composed 6th-grade level math problems (GSM8K) boosts accuracy on longer, competitionlevel benchmarks (GSM-Symbolic, MATH-500, AIME) by up to 2.06×. It also transfers significantly to diverse out-of-distribution ReasoningGym domains and long-context benchmarks, indicating broader generalization. Importantly, our long-horizon improvements are significantly higher than baselines even at high pass@k, showing that models can learn new reasoning paths under RL. Theoretically, we show that curriculum RL with outcome rewards achieves an exponential improvement in sample complexity over full-horizon training, providing training signal comparable to dense supervision. h1 therefore introduces an efficient path towards scaling RL for long-horizon problems using only existing data.

For agents

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

get_harvested_code_for_paper("2510.07312")
get_code_for_paper("2510.07312")
have("2510.07312")

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

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

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

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

Connect an agent — have() is free.