EPIC: Rethinking Trust Regions for Autoregressive LLM Policies via Exact-KL Prefix Importance-Ratio Clipping

Chengxi Li, Hanlin Wu, Zhicheng Cai, Huan-ang Gao, Wei-Ying Ma +2 more
10/21/2026
cs.LG
rl

Official code: LiChengxi666/EPIC (1 star, Apache-2.0, last commit 2026-10-21).

Abstract

Reinforcement learning (RL) based on PPO-style clipping has become an effective approach to improving the reasoning capabilities of large language models (LLMs). However, standard token-level clipping measures policy change only through the conditional probability of the current token, while the prefix conditioning context is itself generated by the policy. This mismatch becomes especially consequential in long-response and off-policy training. We reformulate autoregressive generation as a finite-horizon Markov decision process and derive its performance-difference identity under behavior-policy sampling. The resulting change of measure identifies the cumulative likelihood ratio of the generated prefix as the exact importance weight for each stepwise policy-improvement term. Starting from the monotonic-improvement principle of trust-region policy optimization, we then construct a prefix-level trust region using the exact reverse-KL coordinate $r-1-\log r$, whose behavior-policy expectation equals the corresponding prefix-distribution KL divergence. This yields EPIC, a PPO-style sequence-clipping method that directly regulates prefix-level policy drift without relying on a local quadratic approximation or expert-routing replay. Experiments on off-policy reinforcement learning with a sparse mixture-of-experts language model show that EPIC consistently outperforms standard and sequence-level clipping baselines across mathematical-reasoning benchmarks, while remaining competitive with routing-replay-based alternatives. Code is available at https://github.com/LiChengxi666/EPIC.

View on arXivView PDF

Code Implementations(1)

LiChengxi666/EPICOfficial100%
Apache-2.0
10PythonOct 20, 20263 days agoApache-2.0

Similar Papers

Cite this paper

@article{li2026epic,
  title  = {EPIC: Rethinking Trust Regions for Autoregressive LLM Policies via Exact-KL Prefix Importance-Ratio Clipping},
  author = {Chengxi Li and Hanlin Wu and Zhicheng Cai and Huan-ang Gao and Wei-Ying Ma and Jingjing Liu and Hao Zhou},
  year   = {2026},
  eprint = {2610.29999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29999v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29999.svg)](https://codeofpaper.com/paper/2610.29999)

Discussion