HyperAIHyperAI

Command Palette

Search for a command to run...

훈련 정책 최적화의 신기루: LLM 강화학습의 실제 목표로서의 단조적 추론 정책

초록

강화학습(RL)은 대규모 언어 모델(LLM)의 후속 훈련에서 주목을 받고 있지만, RL 훈련은 여전히 불안정하며 불안정성이나 붕괴를 겪을 수 있다. 중요한 원인 중 하나는 훈련-추론 불일치이다. LLM은 생성 효율성과 훈련 정밀도를 위해 별도의 추론 엔진과 훈련 엔진을 채택하는데, 이는 실제로 동기화된 모델 매개변수에도 불구하고 훈련 측과 추론 측에서 동일한 궤적에 대해 일관되지 않은 확률을 보인다. 이는 자연스럽게 항상 존재하며 훈련을 저해하는 특수한 유형의 오프폴리시성을 유발한다. 이전 연구들은 이러한 불일치 하에서 훈련 정책을 안정화하기 위해 오프폴리시성을 해결하려는 다양한 노력을 기울여 왔다. 본 논문에서 우리는 기존 연구들이 간과한 목표 불일치를 지적하는데, 즉 훈련 엔진에서의 정책에 대한 효과적인 업데이트가 반드시 배포 시 사용되는 추론 정책의 개선을 보장하지는 않는다는 점이다. 이를 위해 우리는 LLM RL을 위한 새로운 정책 최적화 목표인 단조적 추론 정책 개선(MIPI)을 제안한다. 이 원칙에 따라 우리는 샘플러 참조 후보 업데이트를 구성하고 추론 측 간극 프록시를 사용하여 동기화된 후보를 선택적으로 수용하는 2단계 LLM RL 프레임워크인 단조적 추론 정책 업데이트(MIPU)를 소개한다. 높은 불일치 조건에서 두 가지 모델 규모에 대해 수행된 실험은 MIPU가 평균 추론 성능과 훈련 안정성을 향상시킴을 보여준다.

One-sentence Summary

Addressing training-inference mismatch in LLM reinforcement learning, researchers from Tianjin University and Alibaba introduce Monotonic Inference Policy Update (MIPU), a two-step framework that implements the Monotonic Inference Policy Improvement (MIPI) objective by constructing sampler-referenced candidate updates and selectively accepting synchronized candidates using an inference-side gap proxy, thereby enhancing reasoning performance and training stability.

Key Contributions

  • The paper identifies the objective misalignment that updating the training policy does not guarantee improvement of the inference policy used at deployment, and formulates Monotonic Inference Policy Improvement (MIPI) as a new optimization objective to address this.
  • It introduces Monotonic Inference Policy Update (MIPU), a two-step framework that constructs sampler-referenced candidate updates and selectively accepts synchronized candidates using an inference-side gap proxy.
  • Experiments on two model scales under high mismatch (FP8-quantized rollout) show that MIPU improves average reasoning performance and training stability, and further analysis confirms the rationality of the candidate acceptance step.

Introduction

Reinforcement learning (RL) has become a key paradigm for post-training large language models, especially for reasoning tasks. Modern LLM RL pipelines decouple rollout generation on an inference engine from gradient computation on a training engine, which creates a training-inference mismatch: even with synchronized parameters, the training policy and the inference policy can assign different probabilities to the same trajectories due to differences in precision, decoding, and serving backends. Existing remedies address this mismatch by stabilizing the training-side optimization, but they offer no guarantee that an update that improves the training policy also yields a better inference policy, the one actually used for deployment. The authors redefine the problem from an objective-level perspective, proposing the Monotonic Inference Policy Improvement (MIPI) principle, which requires policies to be optimized for the inference engine’s performance. They then introduce a two-step framework, Monotonic Inference Policy Update (MIPU), that decouples policy improvement into a sampler-referenced update and an inference-gap-aware acceptance step, ensuring monotonic improvement for the inference policy. In experiments with FP8-quantized rollout, a high-mismatch setting, MIPU achieves stronger average performance and more stable training than existing approaches.

Dataset

The authors rely on a held-out validation set, denoted D_val, to decide whether to accept or roll back candidate training policies. The dataset description is sparse in the provided text, but the following points capture what is stated and implied about its construction and usage.

  • Composition and sources

  • The dataset consists of prompts x drawn from a validation split. No details about the original source (e.g., open‑source corpora, task‑specific collections) are included in the excerpt.

  • The primary role of D_val is to produce completions y_i sampled from the current inference policy μ_{k+1}, enabling an online estimate of the post‑update inference gap.

  • Key details

  • A single subset, D_val, is mentioned. Its total size, number of prompts per evaluation step, and filtering rules (if any) are not specified.

  • For each prompt, the inference engine generates multiple completions; the batch size and sampling temperature are not detailed here.

  • The completions serve as the basis for group‑relative advantage computation under μ_{k+1}.

  • How the data is used

  • The validation set supports the acceptance test in Step 2: Inference‑Gap‑Aware Update Acceptance.

  • For each prompt, the completions from μ_{k+1} yield group‑relative advantages Â_i^{μ_{k+1}}. These advantages are multiplied by importance weights ρ_i (Equation 9) to approximate the reverse‑form performance difference (Equation 8).

  • The expectation over D_val produces the proxy \widehat{T}_{post}. A negative value above a tolerance -c signals that the training‑side improvement may not hold under the inference policy, triggering a rollback of both the trainer and the inference engine.

  • The data is not used for training but exclusively as an online validation signal after each candidate update is synchronized to the inference engine.

  • Processing details

  • No cropping or deduplication is described. The only custom processing is the computation of length‑normalized importance weights ρ_i, which stabilizes the reverse‑form expectation by avoiding the high variance of full‑sequence importance sampling.

  • Advantage calculation follows the same group‑relative scheme used during training (GRPO‑style), but applied to validation‑side completions.

  • The procedure assumes that D_val is a representative sample of prompts where the inference gap can be reliably measured; however, no specific schema or metadata beyond the raw prompts is mentioned.

Method

The authors address the training-inference mismatch inherent in modern large language model reinforcement learning pipelines. Due to implementation differences in precision, decoding, or serving backends between the training and inference engines, the training policy π\piπ and the inference policy μ\muμ often assign different probabilities to the same trajectories. Consequently, optimizing the training-side objective does not guarantee an improvement in the deployed inference policy.

To resolve this objective misalignment, the authors propose Monotonic Inference Policy Improvement (MIPI), a principle that redefines the optimization target to align directly with the inference-policy transition. They formally decompose the inference-policy improvement into three distinct components: the post-update inference gap, the training-side update, and the pre-update inference gap. This decomposition is expressed as:

J(μk+1)J(μk)=J(μk+1)J(πk+1)post-update inference gap+J(πk+1)J(πk)training-side update+J(πk)J(μk)pre-update inference gapJ(\mu_{k+1}) - J(\mu_k) = \underbrace{J(\mu_{k+1}) - J(\pi_{k+1})}_{\text{post-update inference gap}} + \underbrace{J(\pi_{k+1}) - J(\pi_k)}_{\text{training-side update}} + \underbrace{J(\pi_k) - J(\mu_k)}_{\text{pre-update inference gap}}J(μk+1)J(μk)=post-update inference gapJ(μk+1)J(πk+1)+training-side updateJ(πk+1)J(πk)+pre-update inference gapJ(πk)J(μk)

The authors realize the MIPI principle through a two-step mechanism called Monotonic Inference Policy Update (MIPU), which separates candidate construction from post-synchronization verification.

In the first step, the authors perform a sampler-referenced policy update to optimize the training-side update and pre-update inference gap terms. Standard algorithms like GRPO clip the probability ratio relative to the old training policy, which misaligns with the sampler generating the rollouts. To correct this, the authors factorize the full trainer-to-sampler ratio into a pre-update mismatch weight and a current update ratio. To prevent high variance caused by large pre-update discrepancies, they apply a truncated importance weight to the mismatch correction term while applying PPO-style clipping exclusively to the current update ratio. This yields a candidate training policy that is better aligned with the inference sampler.

In the second step, the authors implement inference-gap-aware update acceptance to validate the post-update inference gap. After synchronizing the candidate training policy to the inference engine, they evaluate whether the inference engine successfully realizes the proposed gains. Since the exact advantage under the candidate policy is unavailable, the authors derive a stable validation-based proxy using a reverse identity and length-normalized importance weights. This proxy serves as a risk signal. If the estimated gap falls below a defined tolerance threshold, indicating that the inference policy underperforms its training-side counterpart, the update is rejected and the system rolls back to the previous checkpoint. If the proxy passes the acceptance criterion, the candidate is accepted as the new policy.

Experiment

MIPU is evaluated under FP8-quantized rollout, a high training-inference mismatch setting, on Qwen3 models of two scales using mathematical reasoning benchmarks. It achieves both better final performance and sustained training stability, while baseline methods degrade after early peaks. Ablation studies show that Step 1 improves the candidate update direction and Step 2 conditions synchronization on a post-update inference-gap signal, addressing complementary failure modes; random rollback fails to prevent collapse, demonstrating that the signal-driven acceptance, not mere update rejection, is essential.

Under FP8-quantized rollout, MIPU achieves the highest average accuracy on both Qwen3-4B (66.71%) and Qwen3-1.7B (53.97%), outperforming baselines across five mathematical benchmarks. It is the only method that remains stable throughout continued training, while other approaches exhibit collapse or sharp degradation after reaching competitive intermediate scores. Gains are especially pronounced on AMC23 and Minerva for the 4B model, and on MATH-500 and OlympiadBench for the 1.7B model. MIPU is the only method that avoids training collapse under extended FP8-quantized rollout, whereas all baselines (Baseline, MIS, LR-decay) eventually degrade. MIPU sets the best average accuracy on both model sizes, with standout improvements on AMC23 and Minerva for Qwen3-4B, and on MATH-500 and OlympiadBench for Qwen3-1.7B.

Under FP8-quantized rollout, combining sampler-referenced candidate construction (Step 1) with inference-gap-aware acceptance (Step 2) yields the highest average accuracy and top scores on most benchmarks. Step 1 alone improves some tasks but still accepts all synchronized candidates, while Step 2 alone prevents collapse but cannot improve candidate quality and can reduce performance. The full method demonstrates that corrected candidate updates and selective acceptance are complementary. Adding Step 1 alone raises average accuracy over the baseline but falls short of the full method because every synchronized candidate is accepted without filtering. Step 2 alone lowers average accuracy below the baseline and substantially degrades AMC23, indicating that gap-aware rejection without better candidate construction undermines performance. The full method attains the highest average and the best scores on MATH 500, AIME 24, Minerva, and AMC23, with only a minor drop on Olympiad compared to Step 1 alone. Combining both steps improves AIME 24 and Minerva relative to either single-step variant, showing that corrected candidate updates and inference-gap filtering provide complementary benefits.

The evaluation assesses MIPU under FP8-quantized rollout on mathematical reasoning tasks, showing it consistently achieves the highest accuracy across multiple benchmarks and model sizes, while remaining stable during extended training where other methods collapse. An ablation study confirms that sampler-referenced candidate construction and inference-gap-aware acceptance are complementary: using either step alone fails to match the full method, with construction alone lacking quality filtering and acceptance alone degrading performance. Overall, MIPU's dual strategy produces robust improvements without the degradation observed in baselines.


AI로 AI 구축

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

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

HyperAI Newsletters

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