Natural Language Reinforcement Learning

Xidong Feng, Ziyu Wan, Mengyue Yang, Ziyan Wang, Girish A. Koushik, Yali Du, Ying Wen, Jun Wang · DOI

Abstract

Reinforcement Learning (RL) traditionally relies on scalar rewards, which often fail to capture the semantic complexity of environments and can lead to reasoning degradation in Large Language Models (LLMs). This paper introduces Natural Language Reinforcement Learning (NLRL), a framework that replaces scalar values with Language Value Functions (LVFs). NLRL leverages LLMs to perform active, deliberative learning through linguistic narratives, improving sample efficiency and maintaining high-quality reasoning across diverse agentic tasks.

Introduction: Beyond the Scalar

In the world of Reinforcement Learning (RL), agents have traditionally been trained to optimize a single scalar reward. While effective for simple games, this one-dimensional signal collapses the complexity of nuanced, human-centric environments. It tells an agent what happened, but never why. As we move toward the "Era of Experience," where AI agents must navigate complex scenarios, a more expressive feedback mechanism is required.

The Natural Language Reinforcement Learning (NLRL) framework proposes a radical shift: replacing cold, hard scalars with the richness of natural language. By using Language Value Functions (LVF), NLRL provides interpretable narratives that explain the rationale behind evaluations, enabling more robust learning.

The Problem: Semantic Loss and Reasoning Degradation

Traditional RL relies on scalar value functions to estimate future rewards. This approach suffers from two major flaws when applied to modern LLM agents:

  1. Semantic Loss: A scalar is an "aggressive compression" of a trajectory. It discards the "why"—failing to distinguish if a state was valuable due to a tactical advantage, a long-term strategy, or a narrow escape.
  2. Reasoning Degradation: Training LLMs with standard RL (e.g., PPO) to improve Chain-of-Thought (CoT) reasoning often causes the "thinking" process to degrade into gibberish. The model learns to "hack" the reward by outputting tokens that lead to the correct answer without maintaining logical coherence.

The NLRL Framework

NLRL "verbalizes" the fundamental components of RL to preserve semantic richness and reasoning quality.

Comparison between Traditional RL (left) and the proposed NLRL framework (right).
  • Language Value Function (LVF): Instead of a number, the value of a state is a linguistic narrative. For example, in a maze, an LVF might state: "I am one block closer to the goal, but there is a hole to my left, so I should move up then right."
  • Language Operators (MC & TD): NLRL adapts Monte Carlo (MC) and Temporal Difference (TD) learning for language. An LLM acts as an "aggregator," synthesizing multiple future rollouts into a coherent summary of a state's utility.
  • Language Policy Improvement (LPI): Rather than using gradient ascent on probabilities, NLRL uses an LLM to compare action evaluations. The agent reasons about the best action based on LVF descriptions.
  • Training via Distillation: High-quality reasoning from a "deliberative" LLM process is used to fine-tune smaller student models via supervised learning, effectively distilling RL wisdom into the agent.

Experimental Evaluation

The researchers evaluated NLRL across four distinct agentic environments: LMRL Gym Maze, Breakthrough (a strategic board game), Tic-tac-toe, and FrozenLake. These tasks test the framework's ability to learn from scratch in environments with varying degrees of stochasticity and complexity.

Key Results and Insights

NLRL demonstrates significant improvements over traditional scalar-based methods:

  • Superior Performance: In the Breakthrough game, the NLRL-trained value function achieved >85% accuracy in state evaluation, significantly outperforming prompted GPT-4o and Llama-3-70B (~60%).
  • Stability and Efficiency: In FrozenLake, NLRL improved more stably and quickly than RAGEN, a recent RL-for-LLM baseline, which often suffered from performance collapses.
  • Preserving Reasoning: By forcing the agent to maintain a language-based value function, NLRL prevents CoT degradation. The agent's "critic" requires a logical explanation, ensuring the thinking process remains coherent.
Qualitative comparison of reasoning between RAGEN and NLRL in a FrozenLake environment.

Conclusion and Future Work

NLRL marks a significant step toward agents that understand their actions. However, challenges remain regarding the computational cost of using LLMs as critics and the need for advanced multi-modal descriptors in non-textual environments. Future work will focus on establishing a formal mathematical grounding for RL in "language space."

Summary updated

BibTeX
@inproceedings{feng2025natural,
  author = {Xidong Feng and Ziyu Wan and Mengyue Yang and Ziyan Wang and Girish A. Koushik and Yali Du and Ying Wen and Jun Wang},
  title = {{Natural Language Reinforcement Learning}},
  booktitle = {SSI-FM @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=wzlDTzqPu3},
}
Figure