Cyclical Entropy Eruption: Entropy Dynamics of Agent Reinforcement Learning

Wendi Li, Shawn Im, Sharon LiNeurIPS 2026

TL;DR

When you train a standard LLM with reinforcement learning (RL) on single-turn math problems, its uncertainty (entropy) usually drops and stays low. When you train an agentic LLM over multi-step tool-use tasks, something bizarre happens: its entropy violently spikes and subsides in an endless loop—a phenomenon the authors call cyclical entropy eruption. By discovering that this happens because right and wrong trajectories look too similar inside the model's "brain," the authors design a tiny, zero-inference-cost fix that stops the eruptions, prevents hallucinations from taking root, and rescues collapsing training runs.

What Problem Does This Paper Address?

Large Language Models are evolving from chatbots into agents that browse the web, call APIs, and execute multi-step plans. Reinforcement learning (specifically group-relative algorithms like GRPO and GIGPO) is the go-to way to train them: generate a group of action trajectories, reward the winners, and penalize the losers.

While we have plenty of theory on how RL behaves for single-turn tasks, multi-turn agentic RL has largely been a black box. Practitioners often watch their agents stagnate, start repeating sentences, hallucinate, or abruptly collapse to zero reward mid-training without knowing why. Looking at the policy entropy—a measure of how spread out or uncertain the model’s action choices are—reveals a wild heartbeat that single-turn RL never exhibits:

Instead of smoothly converging, the agent is trapped in a recurring cycle of instability. The authors set out to diagnose the physics of this oscillation and figure out how to tame it.

Methods

To cure the instability, the authors pair standard group-based RL objectives (GRPO and GIGPO) with a novel, lightweight auxiliary method called SEAL (Separation-Enhanced Agent Learning).

Because their theoretical analysis shows that entropy eruptions happen when successful and failed trajectories share overlapping internal representations, SEAL forces them apart:

  • What is new: They attach a simple MLP binary classifier on top of the policy model’s last-layer token hidden states during training. Every token in a semantically correct trajectory gets a label of 1, and every token in a wrong trajectory gets a 0.
  • How it works: The model minimizes a standard RL loss plus a weighted binary cross-entropy loss ($\mathcal{L} = \mathcal{L}_{\text{RL}} + \alpha \mathcal{L}_{\text{SEAL}}$). This nudges the backbone to make token representations from winning and losing trajectories linearly separable, neutralizing destructive gradient interference.
  • Zero inference overhead: At test time, the auxiliary classifier is simply thrown away.

Datasets

No new benchmarks are introduced; instead, the authors evaluate existing environments to test multi-turn tool use and decision-making:

  • ALFWorld: A text-based embodied household environment with 3,827 tasks across six categories (e.g., Pick & Place, Heat & Place).
  • WebShop: A simulated HTML e-commerce website with 1.1M+ products and 12k instructions requiring searching, comparing, and buying.
  • Search-augmented QA: Multi-turn question answering using search tools (detailed in their appendix).
  • OpenManus (subset): Used for mid-training Llama3.2 base instruct models so they can output valid formatting early in RL.

Key Insights and Ideas

  • Phase 1 is all about syntax, not smarts: Early in RL, entropy plummets solely because the model is learning rigid formatting schemas (JSON, XML tags). Semantic reasoning barely improves until valid action formatting saturates near 100%.
  • Right and wrong look identical in agent hidden space: Unlike standard LLM tasks, successful and failed agent trajectories share the exact same boilerplate tool syntax and environmental observations. Consequently, their hidden representations overlap heavily:
PCA visualization of hidden states showing massive overlap between correct (-p) and wrong (-n) trajectories across three agent tasks.
  • Gradient interference causes the eruption: When representations overlap, per-token gradients align. Pushing down the probability of a wrong trajectory accidentally drags down the likelihood of correct trajectories too. Flattening the probability of top choices forces entropy to erupt.
  • A self-perpetuating loop: High entropy forces diverse exploration $\rightarrow$ diversity reduces representation similarity $\rightarrow$ less interference lets the model converge on good answers again (subsidence) $\rightarrow$ convergence crowds trajectories back together $\rightarrow$ boom, the next eruption begins.
  • Lasting evolutionary scars: During flat, high-entropy eruptions, weird mutations like sentence duplication and attribute hallucinations get sampled. If an agent hallucinates or repeats itself and still stumbles into the right final answer, RL positively reinforces the toxic habit, locking it into future cycles.

Key Results

Tested across Qwen2.5 (1.5B, 7B) and Llama3.2 (1B, 3B) using GRPO and GIGPO, SEAL consistently stabilizes entropy and boosts task success:

  • Rescuing total collapse: On WebShop, standard GRPO with Llama3.2-1B suffers a catastrophic semantic collapse, ending at 0.00% success. Adding SEAL stabilizes training and achieves a 79.69% success rate.
  • Broad accuracy gains: For Qwen2.5-7B with GRPO, SEAL lifts average ALFWorld accuracy by 2.81% (80.98% $\rightarrow$ 83.79%) and WebShop success by 3.13% (76.95% $\rightarrow$ 80.08%). On smaller models like Qwen2.5-1.5B, ALFWorld GRPO jumps from 87.17% to 94.42%, and WebShop jumps from 73.04% to 81.25%.
  • Cleaner generations: On WebShop, SEAL noticeably cuts down both sentence duplication percentages and GPT-4-judged degeneracy scores across Qwen2.5-7B and Llama3.2-3B.

Limitations and Future Work

The authors emphasize that their primary contribution is diagnosing the training dynamics, framing SEAL deliberately as a "minimal intervention" to prove their theory is actionable. Because SEAL assigns a coarse trajectory-level binary label (0 or 1) equally to every token in a long multi-turn rollout, the authors note that they expect future work to build more sophisticated credit-assignment and representation-shaping methods along this line of inquiry. Additionally, models completely lacking format competence (like out-of-the-box Llama3.2-Instruct) still require supervised mid-training before RL can even get off the ground.

Summary updated

Abstract

Agentic large language models are increasingly used to solve real-world tasks by reasoning over goals, invoking tools, and interacting with external environments. Reinforcement learning provides a natural framework for improving these behaviors, and recent agent RL methods have achieved strong results across domains. However, the training dynamics of agent RL remain poorly understood, limiting our ability to diagnose instabilities and design more effective training algorithms. In this work, we identify a previously underexplored phenomenon in agent RL, which we term \emph{cyclical entropy eruption}. Unlike single-turn reasoning RL, where entropy typically collapses and stays low, agent RL training exhibits unique recurring cycles of sharp entropy eruption and gradual subsidence. We decompose this dynamic into three phases and provide theoretical and empirical analyses of each, explaining the mechanisms underlying its cyclical oscillation. We further show that degenerate patterns such as sentence duplication and hallucination, once acquired during eruption, can persist and accumulate across cycles. Motivated by these findings, we propose SEAL (Separation-Enhanced Agent Learning), a lightweight auxiliary loss that separates correct and incorrect trajectories in representation space, directly targeting the root cause of entropy eruption. Experiments across multiple benchmarks, models, and RL algorithms demonstrate that SEAL stabilizes training and yields stronger downstream agent performance.
BibTeX
@inproceedings{li2026cyclical,
  author = {Wendi Li and Shawn Im and Sharon Li},
  title = {{Cyclical Entropy Eruption: Entropy Dynamics of Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lvlmhvccQi},
}
Figure