SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.00782 · 2024

Step-Controlled DPO: Leveraging Stepwise Error for Enhanced Mathematical Reasoning

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2407.00782.json · badge: /api/ran/2407.00782.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
mathllm/Step-Controlled_DPO canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
get_prompt Ran
ran; our contract draft was wrong, not the code
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/lce_solution_gen_different_negative_gsm8k.py
pointer only (licence: NONE) · get_code("587a8be3d359400c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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_prompt Ran
ran; our contract draft was wrong, not the code
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/lce_solution_gen_different_negative_gsm8k_divided.py
pointer only (licence: NONE) · get_code("a681b908de92655d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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_noisy_data Ran
ran, violated the contract we drafted
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/process_for_dro.py
pointer only (licence: NONE) · get_code("5b11ae21b67cdb53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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_jsonl Ran
ran; our contract draft was wrong, not the code
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/lce_solution_gen_different_negative_gsm8k.py
pointer only (licence: NONE) · get_code("17081a7b73a41850")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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_jsonl Ran
ran; our contract draft was wrong, not the code
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/analyze_different_negative.py
pointer only (licence: NONE) · get_code("2cadca037a753806")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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.

prepare_initial_data Ran
ran; our contract draft was wrong, not the code
mathllm/Step-Controlled_DPO/src/step_controled_dpo_lce/process_for_dro.py
pointer only (licence: NONE) · get_code("11de2f16614e2848")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathllm/Step-Controlled_DPO 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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
load_jsonl 6 other papers
1 dated earlier, 5 later
2310.03731 (2023-10)
MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
2409.02834 (2024-09)
CMM-Math: A Chinese Multimodal Math Dataset To Evaluate and Enhance the Mathematics Reasoning of Large Multimodal Models
and 3 more not named here

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

Direct Preference Optimization (DPO) has proven effective at improving the performance of large language models (LLMs) on downstream tasks such as reasoning and alignment. In this work, we propose Step-Controlled DPO (SCDPO), a method for automatically providing stepwise error supervision by creating negative samples of mathematical reasoning rationales that start making errors at a specified step. By applying these samples in DPO training, SCDPO can better align the model to understand reasoning errors and output accurate reasoning steps. We apply SCDPO to both code-integrated and chain-of-thought solutions, empirically showing that it consistently improves the performance compared to naive DPO on three different SFT models, including one existing SFT model and two models we finetuned. Qualitative analysis of the credit assignment of SCDPO and DPO demonstrates the effectiveness of SCDPO at identifying errors in mathematical solutions. We then apply SCDPO to an InternLM2-20B model, resulting in a 20B model that achieves high scores of 88.5% on GSM8K and 58.1% on MATH, rivaling all other open-source LLMs, showing the great potential of our method.

For agents

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

get_harvested_code_for_paper("2407.00782")
get_code_for_paper("2407.00782")
have("2407.00782")

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

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

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

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

Connect an agent — have() is free.