paper-with-me

홈 › Papers

S$^2$R: Teaching LLMs to Self-verify and Self-correct via Reinforcement Learning

2025-02-18 · Ruotian Ma, Peisong Wang, Cheng Liu, Xingyan Liu, Jiaqi Chen, Bang Zhang, Xin Zhou, Nan Du, Jia Li

Recent studies have demonstrated the effectiveness of LLM test-time scaling. However, existing approaches to incentivize LLMs' deep thinking abilities generally require large-scale data or significant training efforts. Meanwhile, it remains unclear how to improve the thinking abilities of less powerful base models. In this work, we introduce S$^2$R, an efficient framework that enhances LLM reasoning by teaching models to self-verify and self-correct during inference. Specifically, we first initialize LLMs with iterative self-verification and self-correction behaviors through supervised fine-tuning on carefully curated data. The self-verification and self-correction skills are then further strengthened by both outcome-level and process-level reinforcement learning, with minimized resource requirements, enabling the model to adaptively refine its reasoning process during inference. Our results demonstrate that, with only 3.1k self-verifying and self-correcting behavior initialization samples, Qwen2.5-math-7B achieves an accuracy improvement from 51.0\% to 81.6\%, outperforming models trained on an equivalent amount of long-CoT distilled data. Extensive experiments and analysis based on three base models across both in-domain and out-of-domain benchmarks validate the effectiveness of S$^2$R. Our code and data are available at https://github.com/NineAbyss/S2R.

📄 PDF Abstract BibTeX arXiv:2502.12853

Code (1)

nineabyss/s2r 공식 구현

Tasks

Math

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

Reinforcing Step-level Reasoning for Effective Self-Correction in LLMs

2026-08-12 · Vu Duc Anh, Nhat M. Hoang, Do Xuan Long, Cong-Duy Nguyen 외 arxiv

Achieving effective self-correction, where models verify and correct their own mistakes, remains a fundamental challenge for large language models (LLMs). In this work, we propose Self-Fix Step-DPO (SFS-DPO), a reinforce…

ProgCo: Program Helps Self-Correction of Large Language Models

2025-01-02 · Xiaoshuai Song, Yanan Wu, Weixun Wang, Jiaheng Liu 외

Self-Correction aims to enable large language models (LLMs) to self-verify and self-refine their initial responses without external feedback. However, LLMs often fail to effectively self-verify and generate correct feedb…

Instruction Following

Teaching Large Language Models to Self-Debug

2023-04-11 · Xinyun Chen, Maxwell Lin, Nathanael Schärli, Denny Zhou

Large language models (LLMs) have achieved impressive performance on code generation. However, for complex programming tasks, generating the correct solution in one go becomes challenging, thus some prior works have desi…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model+4

Large Language Models Can Self-Correct with Key Condition Verification

2024-05-23 · Zhenyu Wu, Qingkai Zeng, Zhihan Zhang, Zhaoxuan Tan 외

Intrinsic self-correct was a method that instructed large language models (LLMs) to verify and correct their responses without external feedback. Unfortunately, the study concluded that the LLMs could not self-correct re…

Arithmetic ReasoningMathOpen-Domain Question AnsweringQuestion Answering

PAG: Multi-Turn Reinforced LLM Self-Correction with Policy as Generative Verifier

2025-06-12 · Yuhua Jiang, Yuwen Xiong, Yufeng Yuan, Chao Xin 외

Large Language Models (LLMs) have demonstrated impressive capabilities in complex reasoning tasks, yet they still struggle to reliably verify the correctness of their own outputs. Existing solutions to this verification …

Reinforcement Learning (RL)