Papers › Self-rewarding correction for mathematical reasoning

Self-rewarding correction for mathematical reasoning

26 Feb 2025arXiv:2502.19613archive 2025-07-28

Wei Xiong, Hanning Zhang, Chenlu Ye, Lichang Chen, Nan Jiang, Tong Zhang

We study self-rewarding reasoning large language models (LLMs), which can simultaneously generate step-by-step reasoning and evaluate the correctness of their outputs during the inference time-without external feedback. This integrated approach allows a single model to independently guide its reasoning process, offering computational advantages for model deployment. We particularly focus on the representative task of self-correction, where models autonomously detect errors in their responses, revise outputs, and decide when to terminate iterative refinement loops. To enable this, we propose a two-staged algorithmic framework for constructing self-rewarding reasoning models using only self-generated data. In the first stage, we employ sequential rejection sampling to synthesize long chain-of-thought trajectories that incorporate both self-rewarding and self-correction mechanisms. Fine-tuning models on these curated data allows them to learn the patterns of self-rewarding and self-correction. In the second stage, we further enhance the models' ability to assess response accuracy and refine outputs through reinforcement learning with rule-based signals. Experiments with Llama-3 and Qwen-2.5 demonstrate that our approach surpasses intrinsic self-correction capabilities and achieves performance comparable to systems that rely on external reward models.

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

Code

Syntology Ran 5 of 16 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: community (archive-listed): 16 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rlhflow/self-rewarding-reasoning-llm officialmentioned in papermentioned on GitHub report
agentica-project/verl-pipeline mentioned on GitHubpytorchApache-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

16 samples harvested; 5 ran; 0 honoured the contract we drafted; 11 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.

1ran · fixture could not drive it
4ran
11unverified

Licence: 0 of the 16 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 agentica-project/verl-pipeline. “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.

is_transformers_version_in_range agentica-project/verl-pipeline/verl/models/transformers/monkey_patch.py community (archive-listed) ran Apache-2.0 (permissive) · 42a7954a8cfa89e0 · report
pad_input agentica-project/verl-pipeline/verl/models/bert_padding.py community (archive-listed) ran Apache-2.0 (permissive) · a8cf6124094beaab · report
union_tensor_dict agentica-project/verl-pipeline/verl/protocol.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 21331a58f93375e4 · report
unpad_input agentica-project/verl-pipeline/verl/models/bert_padding.py community (archive-listed) ran Apache-2.0 (permissive) · d84093c20a0ed8fd · report
unpad_input_for_concatenated_sequences agentica-project/verl-pipeline/verl/models/bert_padding.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 62394c842aafb022 · report
apply_monkey_patch agentica-project/verl-pipeline/verl/models/transformers/monkey_patch.py community (archive-listed) unverified Apache-2.0 (permissive) · 63fac81eb8667d39 · report
flash_attention_forward agentica-project/verl-pipeline/verl/models/transformers/qwen2_vl.py community (archive-listed) unverified Apache-2.0 (permissive) · 736144d442549c26 · report
get_generation_config agentica-project/verl-pipeline/verl/utils/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 660713a8fa047736 · report
get_huggingface_actor_config agentica-project/verl-pipeline/verl/utils/model.py community (archive-listed) unverified Apache-2.0 (permissive) · fe79c459a3e4cc64 · report
get_rope_index agentica-project/verl-pipeline/verl/models/transformers/qwen2_vl.py community (archive-listed) unverified Apache-2.0 (permissive) · e29ba2dcd05add9f · report
get_weight_loader agentica-project/verl-pipeline/verl/models/weight_loader_registry.py community (archive-listed) unverified Apache-2.0 (permissive) · af005d03c2088909 · report
get_weight_saver agentica-project/verl-pipeline/verl/models/weight_loader_registry.py community (archive-listed) unverified Apache-2.0 (permissive) · 914227ac881d05be · report
make_batch_generator agentica-project/verl-pipeline/verl/utils/megatron/pipeline_parallel.py community (archive-listed) unverified Apache-2.0 (permissive) · 6db82df20842d655 · report
prepare_fa2_from_position_ids agentica-project/verl-pipeline/verl/models/transformers/qwen2_vl.py community (archive-listed) unverified Apache-2.0 (permissive) · e89bd73550a8c08f · report
squeeze agentica-project/verl-pipeline/verl/utils/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 3b15e2ac7497c441 · report
unpad_dataproto agentica-project/verl-pipeline/verl/protocol.py community (archive-listed) unverified Apache-2.0 (permissive) · 80bcfef75cb84b53 · report

Tasks

Mathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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