LANPO: Bootstrapping Language and Numerical Feedback for Reinforcement Learning in LLMs
Ang Li, Yifei Wang, Zhihang Yuan, Stefanie Jegelka, Yisen Wang
TL;DR
LANPO addresses the inefficiency of scalar rewards in RL for LLMs by separating language feedback from numerical optimization. It uses Reward-Agnostic Reflection to safely exploit intra-sample feedback and Relevant Abstraction to distill transferable lessons from inter-sample experiences, all mediated through a dynamic experience pool. The approach yields significant improvements on mathematical reasoning benchmarks for 7B and 14B models, including notable zero-shot gains and improved sample efficiency, and enables experience-driven inference without leakage. This framework offers a scalable, data-efficient path to integrate linguistic structure into RL for reasoning tasks and suggests avenues for broader applicability and automation.
Abstract
Reinforcement learning in large language models (LLMs) often relies on scalar rewards, a practice that discards valuable textual rationale buried in the rollouts, forcing the model to explore \textit{de novo} with each attempt and hindering sample efficiency. While LLMs can uniquely learn from language feedback provided in-context, naively integrating on-line experiences into RL training presents a paradox: feedback from the same problem risks information leakage and memorization, while feedback from different problems often leads to behavior collapse due to irrelevant context. To resolve this tension, we propose \textbf{Language-And-Numerical Policy Optimization (LANPO)}, a framework that cleanly separates the roles of feedback: language guides exploration, while numerical rewards drive optimization. LANPO builds a dynamic experience pool from past trials and introduces two principles to ensure feedback is effective: \emph{Reward-Agnostic Reflection} for safe intra-sample self-correction and \emph{Relevant Abstraction} to distill generalizable lessons from inter-sample experiences. Across mathematical reasoning benchmarks, LANPO enables 7B and 14B models to significantly outperform strong baselines trained with GRPO in test accuracy. Our work provides a robust method for integrating historical experiences into the LLM RL loop, creating more effective and data-efficient learning agents.
