HyperAIHyperAI

Command Palette

Search for a command to run...

한 달 전
강화 학습
LLM

자신의 실수로부터 배우기: 자기 증류를 위한 학습 가능한 미세 반성 궤적 구성하기

Zhilin Huang Hang Gao Ziqiang Dong Yuan Chen Yifeng Luo Chujun Qin Jingyi Wang Yang Yang Guanjun Jiang

초록

Self-distillation은 대규모 언어 모델의 추론 능력을 향상시키기 위해 모델의 자체 rollout을 학습 신호로 활용하며, 일반적으로 특권 대상 분포에 대한 KL 발산을 최소화하는 암시적 로짓 레벨 정렬 방식을 통해 수행됩니다. 그러나 이러한 지도 신호는 통제되지 않은 샘플링을 통해 생성되므로, 모델의 구체적인 오류에 대한 진단적 통찰이나 개별 실패 패턴에 대한 수정 지침을 제공하지 못합니다. 결과적으로 모델은 자신의 추론이 어디서, 그리고 왜 실패하는지를 정확히 지적하는 세분화된 수정을 받는 대신 특권 분포를 모방하는 방식을 학습하게 됩니다. 본 논문에서는 암시적 분포 정렬에서 명시적 궤적 구성으로 Self-distillation을 발전시키는 궤적 증강 정책 최적화(Trajectory-Augmented Policy Optimization, TAPO)를 제안합니다. 강화학습(RL) 훈련 과정에서 모델은 동일한 쿼리에 대해 정답과 오답 rollout을 모두 생성하며, TAPO는 이러한 대조적 구조를 활용하여 모델의 오류가 포함된 추론 과정을 실패 지점까지 그대로 유지한 뒤 동일한 샘플링 그룹에서 도출된 정답 참조에 의해 안내된 자연어 기반 진단과 수정된 추론을 삽입하는 새로운 학습 궤적인 미세 반성적 수정(micro-reflective corrections)을 구성합니다. 각 궤적이 학습 모델 자체의 접두사(prefix)와 해답에 기반을 두고 있으므로, 이러한 수정 신호는 KL 기반 방법이 부과하는 위치별 정렬 방식보다 모델의 온-폴리시(on-policy) 분포를 더 잘 보존합니다. 이러한 궤적을 통합하기 위해 TAPO는 모델의 능력 한계(capability boundary)에서 난이도 인식 후보 선택(difficulty-aware candidate selection)과 기울기 오염(gradient contamination)을 방지하기 위한 분리형 이점 추정(decoupled advantage estimation)을 도입합니다. AIME 2024, AIME 2025, HMMT 2025를 대상으로 한 실험 결과, TAPO는 동일한 학습 단계 수에서 GRPO 대비 일관된 성능 향상을 달성함을 보여줍니다. 추가 분석을 통해 TAPO가 초기 추론(first-pass reasoning) 능력과 오류 수정(error-correction) 효과성 모두를 강화함을 확인하였습니다.

One-sentence Summary

The authors propose Trajectory-Augmented Policy Optimization (TAPO), a self-distillation framework that advances beyond implicit logit-level alignment by constructing explicit micro-reflective trajectories from contrastive correct and incorrect rollouts, retaining the model's erroneous reasoning up to the failure point and then inserting a natural-language diagnosis and corrected reasoning guided by a correct reference, thereby providing fine-grained, interpretable supervision to improve large language model reasoning.

Key Contributions

  • TAPO advances self-distillation from implicit distributional alignment to explicit trajectory construction by creating new trajectories that preserve the model’s erroneous reasoning up to the point of failure and then insert a natural-language diagnosis and corrected reasoning guided by a correct rollout from the same GRPO sampling group.
  • The approach incorporates difficulty-aware ZPD candidate selection, decoupled advantage estimation, and out-of-distribution token suppression to integrate these micro-reflective corrections into single-pass policy-gradient training without multi-turn loops or extra teacher models.
  • Evaluations on AIME 2024, AIME 2025, and HMMT 2025 show consistent improvements over GRPO and OPSD, with DSR and ERR analysis confirming gains in both first-pass reasoning and error correction, while ablation studies validate each component.

Introduction

In reinforcement learning for reasoning, algorithms like GRPO sample multiple candidate solutions per problem to compute group-relative advantages, but the contrast between correct and incorrect outputs is only used implicitly during advantage normalization. Self-distillation methods provide dense token-level supervision yet offer no structured representation of the error-to-correction transition, and multi-turn error-driven approaches incur extra generation cost or require rich feedback that is unavailable in math reasoning tasks with binary correctness signals. The authors propose TAPO, which constructs explicit micro-reflective corrective trajectories from the model’s own erroneous prefixes found within GRPO sampling groups, turning the implicit contrastive signal into learnable supervision that teaches the model to diagnose and recover from its mistakes in a single-pass training framework.

Method

The authors propose Trajectory-Augmented Policy Optimization (TAPO), a framework that advances self-distillation from implicit distributional alignment to explicit trajectory construction. The core idea is to construct learnable corrective trajectories anchored in the model's own errors while remaining within its distributional neighborhood.

Before RL training, the authors perform a cold-start phase to equip the model with the ability to follow structured trajectory construction prompts and analyze its own errors. This phase constructs training examples by sampling responses, partitioning them into correct and incorrect groups, and building micro-reflective corrective trajectories.

During RL training, the model produces both correct and incorrect rollouts for the same query. TAPO leverages this contrastive structure through Micro-Reflective Trajectory Construction. As shown in the figure below:

First, Difficulty-Aware Candidate Selection (DCS) identifies queries within the model's Zone of Proximal Development (ZPD). A query is eligible if it has at least nposn_{\text{pos}}npos correct responses and nnegn_{\text{neg}}nneg incorrect responses. This condition naturally partitions problems into mastered, ZPD, and beyond-capability zones, creating an emergent curriculum as the model improves. For eligible queries, incorrect responses are paired with correct references.

Next, Trajectory Synthesis constructs a prompt presenting the original question, the incorrect response, and the correct reference. The model is instructed to analyze the error and construct a corrective trajectory. This micro-reflective trajectory preserves the model's erroneous reasoning up to the point of failure, inserts a natural-language diagnosis and corrected reasoning, and continues to the final answer.

To integrate these trajectories into advantage-based RL, the authors introduce Decoupled Advantage Estimation (DAE). Appending constructed trajectories to the original group would inflate the group mean reward, causing advantage contamination and penalizing response length. To resolve this, advantages are computed independently for the original group Gorig\mathcal{G}_{\text{orig}}Gorig and the reflection group Gref\mathcal{G}_{\text{ref}}Gref. The advantage for each response in the original group is computed as:

Aiorig=riorigμGorigσGorig+ϵA _ { i } ^ { \mathrm { o r i g } } = \frac { r _ { i } ^ { \mathrm { o r i g } } - \mu _ { \mathcal { G } _ { \mathrm { o r i g } } } } { \sigma _ { \mathcal { G } _ { \mathrm { o r i g } } } + \epsilon }Aiorig=σGorig+ϵriorigμGorig

Similarly, for the reflection group:

Ajref=rjrefμGrefσGref+ϵA _ { j } ^ { \mathrm { r e f } } = \frac { r _ { j } ^ { \mathrm { r e f } } - \mu _ { \mathcal { G } _ { \mathrm { r e f } } } } { \sigma _ { \mathcal { G } _ { \mathrm { r e f } } } + \epsilon }Ajref=σGref+ϵrjrefμGref

The final training loss combines both groups:

LTAPO=LGRPO(Gorig)+λLref(Gref)\mathcal { L } _ { \mathrm { T A P O } } = \mathcal { L } _ { \mathrm { G R P O } } ( \mathcal { G } _ { \mathrm { o r i g } } ) + \lambda \cdot \mathcal { L } _ { \mathrm { r e f } } ( \mathcal { G } _ { \mathrm { r e f } } )LTAPO=LGRPO(Gorig)+λLref(Gref)

Finally, to maintain stable optimization, the authors apply OOD Token Suppression (OTS) to the reflection trajectory loss. Since the construction process may produce tokens that deviate from the model's natural generation distribution, a distribution alignment score is computed for each token yty_tyt:

st=logpθ(ytx,y<t)+H[pθ(x,y<t)]s _ { t } = \log p _ { \theta } ( y _ { t } | \mathbf { x } , \mathbf { y } _ { < t } ) + H [ p _ { \theta } ( \cdot | \mathbf { x } , \mathbf { y } _ { < t } ) ]st=logpθ(ytx,y<t)+H[pθ(x,y<t)]

This score is converted into a multiplicative weight wtw_twt, down-weighting out-of-distribution corrective tokens while preserving the learning signal from in-distribution reasoning portions. The reflection trajectory loss is then computed as:

Lref=1Tt=1Twtmin(ρtAref, clip(ρt,1ϵ,1+ϵ)Aref)\mathcal { L } _ { \mathrm { r e f } } = - \frac { 1 } { T } \sum _ { t = 1 } ^ { T } w _ { t } \cdot \operatorname* { m i n } \left( \rho _ { t } \cdot A ^ { \mathrm { r e f } } , \ \mathrm { c l i p } ( \rho _ { t } , 1 - \epsilon , 1 + \epsilon ) \cdot A ^ { \mathrm { r e f } } \right)Lref=T1t=1Twtmin(ρtAref, clip(ρt,1ϵ,1+ϵ)Aref)

Experiment

The evaluation pits TAPO against GRPO and OPSD on AIME and HMMT math benchmarks using Qwen3-8B-Instruct, with and without cold-start initialization. Cold-start TAPO yields consistent improvements by internalizing error-correction capability, as evidenced by gains in both direct solution rate and effective reflection rate. Ablation studies confirm that preserving correct prefixes, decoupled advantages, negative samples, and out-of-distribution token suppression are essential; training dynamics show cold-start pre-alignment prevents policy drift and enables robust optimization.

The authors evaluate whether the proposed method internalizes genuine error-correction capabilities by measuring direct solution rates and effective reflection rates. Results show that the method significantly outperforms the baseline across all benchmarks in both metrics, indicating that training on corrective trajectories strengthens both first-pass reasoning and the ability to successfully recover from errors. The method achieves substantial improvements in direct solution rates across all evaluated benchmarks, demonstrating stronger first-pass reasoning without relying on explicit reflection. Effective reflection rates are consistently higher for the proposed method, showing that when the model engages in self-correction, it is more likely to accurately diagnose and fix errors. The gains in first-pass reasoning are most pronounced on the hardest benchmark, suggesting that corrective training is particularly beneficial for complex tasks.

The authors evaluate TAPO on challenging mathematical reasoning benchmarks, comparing it against GRPO and OPSD baselines under both direct training and cold-start initialization settings. Results show that TAPO with cold-start initialization consistently achieves the highest pass rates across all benchmarks and sampling counts, demonstrating genuine capability enhancement. However, without cold-start initialization, TAPO underperforms on harder benchmarks, highlighting the importance of the initial supervised fine-tuning phase for trajectory construction. Cold-start TAPO achieves the best first-pass accuracy on all three mathematical benchmarks, outperforming both GRPO and OPSD baselines. The performance gains from TAPO are sustained across multiple sampling attempts, indicating robust capability enhancement rather than single-path variance reduction. Direct training without cold-start initialization leads to mixed results, where TAPO underperforms GRPO on the more difficult benchmarks.

The authors conduct an ablation study to verify the necessity of each integration component in the TAPO pipeline, progressively adding Decoupled Advantage Estimation, negative samples, and OOD Token Suppression to a cold-start baseline. Results show that the full TAPO configuration consistently achieves the highest performance across all evaluated mathematical reasoning benchmarks. The study highlights that while the interaction between decoupled advantage estimation and negative samples is benchmark-dependent, OOD Token Suppression provides consistent gains by preventing the model from learning from distributionally distant tokens. The full TAPO pipeline outperforms all ablated variants across all benchmarks, demonstrating the cumulative benefit of its integration components. OOD Token Suppression consistently improves performance, confirming that reconstructed trajectories contain out-of-distribution tokens that harm learning under uniform weighting. The interaction between decoupled advantage estimation and negative samples varies by benchmark, with negative samples acting as necessary counterweights to prevent bias toward corrective trajectories on certain tasks.

The authors conduct an ablation study to evaluate the contributions of RL optimization and micro-reflective trajectory design. Results show that TAPO with micro-reflective construction outperforms all variants, demonstrating that advantage-based RL provides a meaningful advantage over supervised imitation and that preserving the learner's partial reasoning path is critical for effective learning. RL optimization significantly outperforms supervised fine-tuning on the same trajectory data, enabling the model to distinguish effective from ineffective corrections. Full reconstruction underperforms micro-reflective construction across all benchmarks, validating that preserving the valid reasoning prefix is essential for learnability. The complete TAPO configuration achieves the highest performance on all benchmarks, confirming the necessity of both RL optimization and prefix preservation.

The authors investigate the sensitivity of their method to variations in the candidate selection mechanism parameters, specifically the ZPD threshold and maximum construction count. Results indicate that the method is reasonably robust to moderate parameter changes, with the default configuration performing consistently well across benchmarks. Adjusting the construction volume and threshold tightness reveals that construction quantity is a critical factor for maintaining performance. The default parameter configuration achieves the highest first-pass accuracy on two of the three benchmarks and the best overall accuracy across all benchmarks. Reducing the maximum number of constructions per query leads to a noticeable performance drop, which is largely recovered when the construction volume is increased. Tightening the selection threshold to focus on a narrower set of high-confidence queries yields the best first-pass accuracy on the most recent competition benchmark.

The evaluation setup uses challenging mathematical reasoning benchmarks, measuring direct solution rates, effective reflection, and pass rates under multiple sampling against RL baselines. Training on corrective trajectories strengthens both first-pass reasoning and self-correction, with the largest gains on the hardest tasks, and cold-start initialization is critical for difficult benchmarks. Ablation studies confirm that the full TAPO pipeline combining RL optimization, micro-reflective trajectory preservation, and OOD token suppression consistently outperforms ablated variants, while parameter sensitivity tests show robustness and highlight the importance of construction quantity.


AI로 AI 구축

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

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

HyperAI Newsletters

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