Table of Contents
Fetching ...

EntroPIC: Towards Stable Long-Term Training of LLMs via Entropy Stabilization with Proportional-Integral Control

Kai Yang, Xin Xu, Yangkun Chen, Weijie Liu, Jiafei Lyu, Zichuan Lin, Deheng Ye, Saiyong Yang

TL;DR

The paper tackles unstable entropy dynamics in long-term RL training of LLMs by proposing EntroPIC, a method that uses Proportional-Integral control to adaptively weight positive versus negative samples to keep policy entropy near a target $\mathcal{H}_{tar}$. The authors establish theoretical convergence for on-policy training with P/PI control and for off-policy training with PI control, and validate the approach through large-scale experiments showing stable entropy and improved performance across multiple math-oriented benchmarks. Key innovations include deriving how positive and negative samples affect entropy under binary rewards, and simplifying loss via high-probability token weighting without sacrificing convergence. Practically, EntroPIC enables stable, scalable RL for LLMs in industrial settings, offering plug-and-play applicability and robustness to temperature variations and late-stage entropy decline.

Abstract

Long-term training of large language models (LLMs) requires maintaining stable exploration to prevent the model from collapsing into sub-optimal behaviors. Entropy is crucial in this context, as it controls exploration and helps avoid premature convergence to sub-optimal solutions. However, existing reinforcement learning methods struggle to maintain an appropriate level of entropy, as the training process involves a mix of positive and negative samples, each affecting entropy in different ways across steps. To address this, we propose Entropy stablilization via Proportional-Integral Control (EntroPIC), a novel method that adaptively adjusts the influence of positive and negative samples by dynamically tuning their loss coefficients. This approach stabilizes entropy throughout training, ensuring efficient exploration and steady progress. We provide a comprehensive theoretical analysis for both on-policy and off-policy learning settings, demonstrating that EntroPIC is effective at controlling entropy in large-scale LLM training. Experimental results show that our method successfully maintains desired entropy levels, enabling stable and optimal RL training for LLMs.

EntroPIC: Towards Stable Long-Term Training of LLMs via Entropy Stabilization with Proportional-Integral Control

TL;DR

The paper tackles unstable entropy dynamics in long-term RL training of LLMs by proposing EntroPIC, a method that uses Proportional-Integral control to adaptively weight positive versus negative samples to keep policy entropy near a target . The authors establish theoretical convergence for on-policy training with P/PI control and for off-policy training with PI control, and validate the approach through large-scale experiments showing stable entropy and improved performance across multiple math-oriented benchmarks. Key innovations include deriving how positive and negative samples affect entropy under binary rewards, and simplifying loss via high-probability token weighting without sacrificing convergence. Practically, EntroPIC enables stable, scalable RL for LLMs in industrial settings, offering plug-and-play applicability and robustness to temperature variations and late-stage entropy decline.

Abstract

Long-term training of large language models (LLMs) requires maintaining stable exploration to prevent the model from collapsing into sub-optimal behaviors. Entropy is crucial in this context, as it controls exploration and helps avoid premature convergence to sub-optimal solutions. However, existing reinforcement learning methods struggle to maintain an appropriate level of entropy, as the training process involves a mix of positive and negative samples, each affecting entropy in different ways across steps. To address this, we propose Entropy stablilization via Proportional-Integral Control (EntroPIC), a novel method that adaptively adjusts the influence of positive and negative samples by dynamically tuning their loss coefficients. This approach stabilizes entropy throughout training, ensuring efficient exploration and steady progress. We provide a comprehensive theoretical analysis for both on-policy and off-policy learning settings, demonstrating that EntroPIC is effective at controlling entropy in large-scale LLM training. Experimental results show that our method successfully maintains desired entropy levels, enabling stable and optimal RL training for LLMs.

Paper Structure

This paper contains 28 sections, 4 theorems, 90 equations, 12 figures, 3 tables.

Key Result

Corollary 4.1

When the reward values for positive and negative samples follow a binary distribution, and the expected advantage equals zero, training exclusively with positive/negative samples using a policy gradient method will result in a decrease/increase of the policy's entropy.

Figures (12)

  • Figure 1: Overview of EntroPIC. The method calculates a correction factor based on historical and current entropy values relative to the target entropy and adjusts the weights of high-probability positive and negative samples to achieve entropy control.
  • Figure 2: Investigating how masking positive/negative and high/low-probability tokens affects entropy during training. Left: Entropy variation after masking different token groups (P↑: high-prob. positive, P↓: low-prob. positive, N↑: high-prob. negative, N↓: low-prob. negative). Right: Comparison of entropy changes between high- and low-probability tokens.
  • Figure 3: Schematic of entropy control via weight modulation. Modulating weights for high-probability tokens results in better performance than for low-probability ones.
  • Figure 4: On-policy training results. Left: entropy stabilization process. Right: variation of adaptive coefficient $\alpha$.
  • Figure 5: Off-policy training results. Only PI control successfully stabilizes entropy at the target value.
  • ...and 7 more figures

Theorems & Definitions (4)

  • Corollary 4.1
  • Theorem 4.2
  • Theorem 4.3
  • Corollary 4.4