HyperAIHyperAI

Command Palette

Search for a command to run...

언어 모델 추론에서 리셋이 포함된 크레딧 할당

Ankur Samanta Akshayaa Magesh Ayush Jain Youliang Yu Daniel Jiang Kavosh Asadi Kaveh Hassani Paul Sajda Jalaj Bhandari Yonathan Efroni

초록

검증 가능한 보상 검증 가능 보상 기반 강화 학습(Reinforcement Learning with Verifiable Rewards, RLVR) 방법은 언어 모델의 사후 훈련(post-training) 과정において, 단일 결과 보상을 모든 중간 단계에 균일하게 전파합니다. 장문의 다단계 추론 작업을 수행하는 언어 모델의 경우, 이는 모든 단계에 동일한 크레딧(공로)을 부여하여 관찰된 결과에 가장 큰 영향을 미친 단계가 무엇인지 가려지게 만듭니다. 결과에 직접적으로 영향을 미치는 단계로부터 학습하면 정책 업데이트(policy updates)에 더 의미 있는 신호를 제공하므로 학습 효율성을 높일 수 있습니다. 이러한 메커니즘은 생물학적 시스템에서도 발견되는데, 생물체는 높은 영향력을 가진 결정 지점을 재방문하고, 해당 상태에서 시뮬레이션된 반사실적(Counterfactual) '만약에' 결과들을 통해 학습합니다. 이러한 동기 하에, 우리는 개선 가능한 상태(Improvable States)의 반사실적 결과를 학습함으로써 크레딧 할당(Credit Assignment)을 개선하기 위한 '리셋(Reset)'을 활용하는 RL 사후 훈련 방법들을 연구합니다. 리셋은 이전에 방문했던 상태로 다시 진입하여 지속 경로(continuation)를 재표본추출(Sampling)함으로써, 그 상태에서의 결정으로 인한 결과 차이를 연결합니다.본 연구에서는 리셋이 해당 상태가 엄밀히 더 나은 행동을 허용할 때, 즉 상태 개선에 충분한 잠재력이 있을 때 크레딧 할당에 유용하다고 주장합니다. 우리는 언어 모델을 위한 두 가지 리셋 기반 RLVR 사후 훈련 방법인 무작위 리셋 정책 최적화(Random-Reset Policy Optimization, RRPO)와 셀프 리셋 정책 최적화(Self-Reset Policy Optimization, SRPO)를 제안합니다. 두 방법 모두 실패한 궤적(Trajectory)에서 추출된 리셋 상태에서 여러 개의 접미사( suffix ) 지속 구문을 재표본추출하며, 정책 경사(policy gradient)는 해당 접미사 토큰(Suffix Tokens)에만 적용합니다. 이때 공유 접두사 그룹(Shared-prefix group)은outcome(결과) 차이가 분기된 접미사 토큰에 크레딧을 귀속시키는 반사실적 롤아웃 그룹(Counterfactual group of rollouts)으로 간주할 수 있습니다. 두 방법은 리셋 상태 선택 방식에서 차이가 납니다. RRPO는 추론 단계 전반에 걸쳐 리셋 상태를 균일한 확률로 무작위 선택하는 반면, SRPO는 첫 번째 오류 단계(Self-localization of the first erroneous step)의 셀프 로컬라이제이션을 통해 리셋 상태를 선택합니다. SRPO는 외부의 단계별 피드백이 필요 없는데, 이는 언어 모델이 실패한 구조적 추론 트레이스에서 첫 번째 오류 사고를 스스로 국면화(Self-localize)하는 능력이 자가 교정(Self-correction)을 이끌어낼 만큼 충분하다는 사실을 활용하기 위함입니다.오류의 셀프 로컬라이제이션이 무작위 리셋 대비 가져오는 이득을 정량화하기 위해, 우리는 정책 최적화를 위한 기초 알고리즘인 보수적 정책 반복(Conservative Policy Iteration, CPI)의 프레임워크를 사용합니다. CPI는 무작위 리셋을 통해 온-폴리시(On-policy) 상태 샘플을 그리고, 이점을 추정하며, 보수적인 정책 업데이트를 적용합니다. 우리는 이 알고리즘을 무작위 리셋 기반 CPI(Convenience Policy Iteration with Random Resets, CPI-RR)라고 명명합니다. 우리는 CPI-RR의 성능을 크레딧 할당 오라클(Credit-assignment oracle)에 접근할 수 있다고 가정하는 대체 CPI 알고리즘과 비교합니다. 이 오라클은 개선 가능한 상태(Improvable States)에 대한 멤버십 테스트로, 해당 상태가 임계값 τ\tauτ보다 큰 이점을 가진 행동을 허용하는지 여부를 판단합니다. 이렇게 도출된 변형 알고리즘(CPI-CARO)은 오라클을 사용하여 리셋 상태를 오직 개선 가능한 상태에서만 추출하고, 정책 업데이트도 해당 상태에만 적용합니다. 우리는 CPI-CARO가 CPI-RR 대비 샘플 복잡성(Sample Complexity)을 1/pπ21/p_\pi^21/pπ2만큼 감소시키고, 반복당 개선폭(Per-iteration improvement)을 1/pπ1/p_\pi1/pπ만큼 증가시킴을 입증합니다. 여기서 pπp_\pipπ는 온-폴리시 확률로, 개선 가능한 상태에 도달할 확률을 의미합니다.수학, 과학, 전략적 추론, 그리고 상식 추론을 아우르는 10개 벤치마크 스위트에서 SRPO는 자가 교정(Self-correction)이나 공유 접두사 지속 경로(Shared-prefix continuation)를 사용하는 GRPO 및 기타 Contemporary RL Baselines을 능가합니다. 또한 코드링 도메인에서 SRPO를 테스트한 결과, GRPO 및 RRPO보다 2~3배 더 빠른 속도로 수렴하며 더 높은 통과율(Pass Rate)을 달성함을 확인했습니다. 더 높은 품질의 셀프 로컬라이제이션은 더 높은 교정율과 더 우수한 접미사 그룹을 유도합니다. 깨끗한 접두사( Clean Prefixes )는 오류가 있는 접두사에 비해 약 2배 더 자주 교정을 성공시키며, 이는 명시적 셀프 로컬라이제이션이 크레딧 할당 오라클의 불완전하지만 효과적인 대체재임을 입증합니다. 이러한 국면화(Localization) 품질에 대한 민감성은 더 효율적인 학습을 가능하게 하기 위해 리셋 기반 RL 분야에서 국면화 성능을 개선하기 위한 추가 연구를 동기가 됩니다.

One-sentence Summary

Researchers from multiple institutions propose Self-Reset Policy Optimization (SRPO), a reinforcement learning method that improves credit assignment in language model reasoning by resetting and resampling from self-identified erroneous steps to create counterfactual suffix groups that attribute outcome differences to specific decisions, achieving 2–3× faster learning and higher accuracy than GRPO across math, science, and coding benchmarks.

Key Contributions

  • Introduces Random-Reset Policy Optimization (RRPO) and Self-Reset Policy Optimization (SRPO), two reset-based reinforcement learning methods that improve credit assignment by resampling suffix continuations from a reset state in a failed trajectory and applying the policy gradient only to those suffix tokens.
  • A theoretical analysis using Conservative Policy Iteration shows that resetting from improvable states via a credit-assignment oracle (CPI-CARO) reduces sample complexity by 1/pπ² and increases per-iteration improvement by 1/pπ compared to random resets (CPI-RR), where pπ is the on-policy probability of reaching such states.
  • Experiments across a 10-benchmark reasoning suite (math, science, strategic, commonsense) and a coding domain demonstrate that SRPO outperforms GRPO and contemporary RL baselines, converges to a higher pass rate, and learns 2–3× faster than GRPO and RRPO; higher-quality self-localizations yield nearly twice the correction rate of erroneous ones.

Introduction

Standard reinforcement learning with verifiable rewards (RLVR) methods for post-training language models assign a single outcome reward uniformly to every token in a reasoning trajectory. This uniform assignment ignores the fact that some reasoning steps are directly responsible for the final success or failure, diluting the learning signal and preventing targeted refinement of faulty steps. The authors address this limitation by introducing reset-based credit assignment methods that return to an intermediate state and resample counterfactual continuations, so that outcome differences can be attributed to specific decisions. They propose two algorithms, Random-Reset Policy Optimization (RRPO) and Self-Reset Policy Optimization (SRPO), and analyze them within the Conservative Policy Iteration (CPI) framework. Their main contribution is demonstrating that a credit-assignment oracle targeting improvable states yields provable improvements over random resets, and that SRPO, which uses the model itself to localize errors with no external supervision, consistently outperforms standard GRPO and RRPO across models and reasoning benchmarks.

Method

The authors proposea post-training RLVR method that frames resets as a credit-assignment primitive. They operate at a thought-level granularity, formalizing the generation process as a Thought MDP where each action is a semantically coherent reasoning step (a "thought") delimited by a stop pattern. This abstraction allows the model to self-determine boundaries during generation, making every thought an atomic, self-contained unit for credit assignment without requiring retroactive parsing.

To construct training rollouts, the authors build a buffer combining a base group of GGG i.i.d. rollouts from the prompt x0x_0x0 (standard GRPO) and a shared-prefix group of GGG rollouts from a reset state xx^*x. As shown in the figure below, different configurations of these groups can be utilized, ranging from the standard GRPO baseline to various SRPO splits such as 1x4, 2x4, and 1x8. The shared-prefix group is generated by first drawing rollouts until an incorrect "seed" is found. The methods differ in how the reset index hh^*h is chosen to form the reset state x=(x0,y~1:h1)x^* = (x_0, \tilde{y}_{1:h^*-1})x=(x0,y~1:h1). In Random Reset Policy Optimization (RRPO), hh^*h is drawn uniformly, realizing a uniform reset. In Self-Reset Policy Optimization (SRPO), the model performs explicit self-localization to identify the index of the first incorrect thought in the seed. The same policy that generated the seed is prompted to analyze its own reasoning trace, effectively acting as a credit-assignment oracle to find the verified-correct prefix preceding the error.

Refer to the framework diagram for a detailed view of the SRPO process. In the initial iteration, the model generates a sequence of thoughts. Upon verifying accuracy, a localization step identifies the first erroneous thought (e.g., y~4\tilde{y}_4y~4). The process then resets to the verified-correct prefix (keeping y~1:3\tilde{y}_{1:3}y~1:3) and samples multiple alternative suffixes (Suffix 1 through Suffix 4). The gradients for the shared prefix are masked out, ensuring credit is assigned only to the resampled suffixes based on their final outcomes.

Finally, the authors reinforce these rollouts using group-relative advantages. For each group, advantages are self-normalized based on the group's empirical mean and standard deviation, measuring each rollout's outcome relative to the rest of its group. For the shared-prefix group, the loss applies this advantage only to the suffix tokens, masking the shared prefix. This prefix masking serves as the parametric analog of the theoretical policy update on the reset state, ensuring the credit signal lives on thoughts rather than tokens. The policy is updated via a single on-policy gradient step over the combined buffer without PPO clipping or KL regularization.

Experiment

Resets re-enter a previously visited state to resample continuations, attributing credit to the decisions made from that state, and are most useful when the reset state has significant potential for improvement. The work introduces two reset-based RL post-training methods—RRPO, which selects reset states uniformly at random, and SRPO, which uses the model’s own self-localization of the first erroneous step—and shows that SRPO consistently outperforms random-reset and no-reset baselines across math, science, strategic, commonsense, and coding benchmarks while learning faster. Self-localization acts as an imperfect but effective proxy for a credit-assignment oracle, with clean prefixes correcting nearly twice as often as erroneous ones, making localization quality the primary bottleneck and motivating further work on improving it. The methods rely on verifiable rewards and multi-step reasoning structures, and the theoretical analysis establishes sample-complexity gains from resetting only at improvable states.

The authors compare the computational efficiency and resource usage of GRPO, RRPO, and SRPO under a fixed rollout budget. Results show that while reset-based methods like RRPO and SRPO require more total training time than GRPO, SRPO is more efficient than RRPO in terms of total hours and token consumption. Additionally, the reset-based strategies exhibit slower generation speeds and longer response lengths compared to the standard GRPO baseline. SRPO requires less total training and validation time than RRPO, making it the more efficient reset-based method. RRPO consumes the most tokens and generates the longest responses, while SRPO maintains moderate resource usage. GRPO achieves the highest generation speed, whereas reset-based methods experience slower token generation due to their sampling overhead.

The authors evaluate different reset-based sampling strategies for SRPO under a fixed compute budget across ten reasoning benchmarks. The 1x4 split, which balances base-policy coverage with shared-prefix depth, achieves the best performance on the majority of tasks for both evaluated models. Consequently, this configuration is adopted as the default SRPO setup for remaining experiments. The 1x4 sampling strategy outperforms 2x4 and 1x8 splits on most benchmarks for both Qwen2.5-14B-Instruct and OLMo-3-7B-Instruct. Increasing suffix depth to 1x8 or prefix diversity to 2x4 generally yields lower performance compared to the balanced 1x4 split. RRPO with a 2x4 split occasionally achieves top scores on specific tasks but is generally outperformed by the 1x4 SRPO configuration.

The authors evaluate different sampling strategies for Self-Reset Policy Optimization under a fixed compute budget to determine the optimal balance between base-policy coverage and shared-prefix depth. Results indicate that the 1x4 split, which combines independent base rollouts with resampled suffixes from a single self-localized prefix, achieves the best performance across the majority of reasoning benchmarks. Consequently, this configuration is adopted as the default for subsequent experiments. The 1x4 sampling strategy outperforms alternatives like 2x4 and 1x8 on most benchmarks by effectively balancing base rollouts and shared-prefix depth. Increasing prefix diversity or maximizing suffix depth generally leads to lower performance compared to the balanced 1x4 approach. The 1x4 configuration achieves the highest scores in tasks such as strategy, math, and science reasoning, demonstrating its robustness across different domains.

The authors compare SRPO and RRPO against GRPO and related baselines across ten reasoning benchmarks using two language models. SRPO emerges as the strongest method, achieving the best results on the majority of tasks for both models, while RRPO performs comparably to GRPO. These gains on diverse benchmarks indicate strong out-of-distribution generalization from training solely on math problems. SRPO outperforms all other evaluated methods on most benchmarks for both Qwen2.5-14B-Instruct and OLMo-3-7B-Instruct. RRPO demonstrates performance levels similar to GRPO across the tested reasoning tasks. The performance improvements from SRPO extend beyond the training domain, showing effective generalization to science, strategic, and commonsense reasoning.

The the the table compares the general reasoning performance of SRPO variants, specifically analyzing the impact of clipping, across two language models on ten diverse benchmarks. The results indicate that the unclipped SRPO configuration generally achieves superior performance across the majority of math, science, and strategy tasks compared to the clipped variant. The SRPO variant without clipping achieves the best results on most benchmarks for both the Qwen and OLMo models. Clipping appears beneficial only for a minority of specific tasks, such as Olympiad math and HMMT for the larger model. The method demonstrates robust performance across science and commonsense domains, reflecting strong generalization from the math-focused training data.

The experiments first compare the computational efficiency of GRPO, RRPO, and SRPO, finding that while reset-based methods incur higher training time and slower generation speeds, SRPO is more resource-efficient than RRPO. A subsequent ablation on sampling strategies establishes the 1x4 split as optimal for SRPO, as it balances base-policy coverage and shared-prefix depth to achieve the best performance across most reasoning benchmarks. Broader evaluations against baselines show that SRPO consistently outperforms all other methods on diverse reasoning tasks, demonstrating strong out-of-distribution generalization from math-only training, whereas RRPO performs comparably to GRPO. Finally, an analysis of clipping reveals that the unclipped SRPO variant generally yields superior results across the majority of domains.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp