Critic-free · Single-rollout · Off-policy

KL-Regularized
Policy Optimization

Critic-Free Agentic Reinforcement Learning.
Default: KLPO token regression + Monte Carlo KL (MC-KL).

Princeton University
arXiv:2610.08963  ·  September 18, 2026  ·  Updated October 5, 2026
Token regressionMC-KL (default)Native Molt integration

Abstract

Asynchronous reinforcement learning (RL) for large language model (LLM) agents trains one policy on trajectories generated by another: rollouts come from stale checkpoints, and the inference engine’s probabilities differ from the trainer’s even at identical parameters. Standard remedies either clip importance ratios, which biases the update, or, as in GRPO, sample a group of responses per prompt, which is costly when episodes are long. We propose KL-Regularized Policy Optimization (KLPO), a framework that anchors the KL regularizer at the sampler. The regularized improvement step then has a closed-form Gibbs solution, and KLPO fits its log-ratio optimality condition by least squares on the sampler’s own trajectories, so the sampler probability enters through a log-ratio and no importance weights are needed. Profiling out the regression intercept replaces the intractable log-partition function with the signal’s sampler mean plus a sampler-to-trainer KL divergence. For token-level policy mirror descent targets, we show that the resulting gradient can be computed from terminal returns without a critic, via sampler-centered scores or a single trajectory residual, even under stochastic tool outputs. We further prove that independent Monte Carlo estimates of the KL term keep these gradients unbiased, derive the exact KL gap of cheaper top-K and binary approximations, and show that SPPO, GPO, REBEL, and BPO arise as special cases of KLPO. The result is a critic-free update that uses one rollout per prompt and requires neither a learned normalizer nor a group of responses.

Method and execution

01 / COLLECTION

One complete rollout.

No same-prompt response group is required. Auxiliary MC samples are token draws at visited prefixes, not additional completions.

02 / FEEDBACK

A coefficient for each token.

Terminal rewards and trainer-to-sampler log-ratios supply per-token feedback. No critic or learned prompt normalizer is needed.

03 / CORRECTION

Independent Monte Carlo KL.

Independent auxiliary draws estimate the sampler-conditioned score mean. Token regression supports any M ≥ 1, with no extra response rollouts.

Historical sampler. Current trainer.

Retain the collection version and actual sampler probabilities. Recompute trainer scores and feedback at each update, with no multiplicative importance weights. The default is KLPO token regression + MC-KL.

Sample under qOne complete response · terminal reward R
Independent auxiliary tokens at each prefix
Score under pCurrent trainer log-probabilities
Action score − mean auxiliary score
Token feedback: hu = R − β log[p(au) / q(au)]

Sum over generated policy tokens. Average over complete responses.

MC draws are independent of the complete rollout and sampled with replacement. M counts auxiliary tokens per prefix, not full response rollouts.

From local policy improvement to a critic-free update.

Figure 1 derives the local RPG-URKL objective, Gibbs optimum, profiled regression, and critic-free token update with independent MC-KL.
Figure 1 from the paper. Step 7 builds on BPO’s critic-free PMD reformulation; Step 8 uses Score Centering. Figure 4 in the appendix presents the sequence-regression alternative. Open in the paper ↗

Regression routes and KL estimators

The regression route determines how tokens are weighted. The KL estimator determines how their scores are corrected. Explore all eight implemented combinations.

Regression route
KL estimator

KLPO token regression + MC-KL

Default
FEEDBACK

Each token uses h_u = R − βℓ_u, where ℓ_u = log p(a_u) − log q(a_u).

SAMPLER RECORDS

M independent token draws per prefix, with replacement. M ≥ 1; launcher default M = 16.

SINGLE-RESPONSE LOSS GRADIENT
−∑_u h_u [∇ log p(a_u) − (1/M) ∑_j ∇ log p(v_u,j)]

Independent auxiliary draws recover the full-KL token gradient in expectation, including M = 1.

LOSS APIklpo_token_loss(..., kl_estimator="mc")TRY IT ON CPUpython examples/train_toy.py

Here q is the actual sampler and p is the trainer; all probabilities are conditional on the visited prefix. Sum over policy tokens, then average over complete responses. M counts random draws; K counts head tokens.

Keep the sampler matched.

MC draws are independent of the complete rollout and across prefixes. Fresh draws from the historical sampler preserve conditional unbiasedness after adaptive updates. Reusing fixed records gives an empirical surrogate.

Equivalence has assumptions.

Token and sequence population gradients agree for Full KL and independent MC-KL under the paper’s finite-model and matched-collection assumptions; deterministic transitions are not required. Single-sample gradients can differ; TopK-KL and Binary KL are approximations.

Full formulas, APIs, and numerical contracts

Implementation and quick start

A CPU example to inspect the update, with a native Molt interface for model training. The toy policy uses variable-length responses, a terminal verifier, historical sampler versions, and repeated learner updates. No model or dataset download is needed.

Requirements: uv, which sets up Python 3.10+ and PyTorch 2.2+ from the lockfile. Code is licensed under Apache 2.0.

# Clone and install
git clone https://github.com/yifanzhang-pro/KLPO.git
cd KLPO
uv sync

# Token regression + MC-KL (default, M=16)
uv run python examples/train_toy.py

# A single auxiliary draw is also valid
uv run python examples/train_toy.py --mc-samples 1

# Verify the loss implementation
uv run pytest -q
ResourceContents
Algorithm referenceAll eight loss combinations, sampling contracts, and numerical stabilization.
Training guidePinned native Molt installation, R1/Qwen-Math launchers, and execution limits.
Single-turn and multi-turn experimentsR1/Qwen-Math (1 turn), Python tools (10 / 20 turns), and ALFWorld (50 turns). Token regression + MC-KL by default.
Native Molt backendSampler probability capture, replay transport, and differentiable trainer scoring.
CPU tests and CIGradient identities, numerical boundaries, and the native backend contract.
Release scope. Theory, mathematical loss APIs, CPU verification, and native training integration. GPU training and paper-scale benchmark reproduction have not been validated. The current Molt launcher runs synchronously; see the training guide for execution and fixed-record replay limits. Example hyperparameters are starting values.

Paper and resources

On KL-Regularized Policy Optimization
Yifan Zhang · Princeton University · arXiv:2610.08963 · 58 pages
September 18, 2026 · Updated October 5, 2026

The paper includes the complete derivation, proofs, implementation details, and the response-level instance (SKLPO) with its normalization and implicit soft-Q interpretation.

Download paper ↓arXiv ↗LaTeX source ↗GitHub ↗

The PDF here is an unmodified snapshot of paper-source commit 9a778da, which revises arXiv v1 (built from b485b29) with the β → 0⁺ extension of the update.

Citation

If you find this work useful, please cite:

@article{zhang2026klpo,
  title         = {On {KL}-Regularized Policy Optimization},
  author        = {Zhang, Yifan},
  journal       = {arXiv preprint arXiv:2610.08963},
  year          = {2026},
  eprint        = {2610.08963},
  archivePrefix = {arXiv},
  primaryClass  = {cs.LG},
  url           = {https://arxiv.org/abs/2610.08963}
}
Download .bib ↓