Preprint
Large Language Models

Bridging Offline and Online Reinforcement Learning for LLMs

Jack Lanchantin, Angelica Chen, Janice Lan, Xian Li, Swarnadeep Saha, Tianlu Wang, Jing Xu, Ping Yu, Weizhe Yuan, J. Weston, Sainbayar Sukhbaatar, Ilia Kulikov
June 26, 2025arXiv.org22 citations

22

Citations

1

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

We investigate the effectiveness of reinforcement learning methods for finetuning large language models when transitioning from offline to semi-online to fully online regimes for both verifiable and non-verifiable tasks. Our experiments cover training on verifiable math as well as non-verifiable instruction following with a set of benchmark evaluations for both. Across these settings, we extensively compare online and semi-online Direct Preference Optimization and Group Reward Policy Optimization objectives, and surprisingly find similar performance and convergence between these variants, which all strongly outperform offline methods. We provide a detailed analysis of the training dynamics and hyperparameter selection strategies to achieve optimal results. Finally, we show that multi-tasking with verifiable and non-verifiable rewards jointly yields improved performance across both task types.

Analysis

Why This Paper Matters

Reinforcement learning (RL) has become a crucial step in aligning large language models (LLMs) with human preferences and improving reasoning capabilities. However, practitioners face a critical choice: whether to use offline RL (using a fixed preference dataset), semi-online RL (periodically updating the dataset with model-generated responses), or fully online RL (continuously learning from the model's own outputs). This paper directly addresses this question, providing a systematic comparison across verifiable (math) and non-verifiable (instruction following) tasks. The finding that semi-online methods can match fully online performance is particularly significant, as it suggests that substantial computational savings are possible without sacrificing quality.

The paper also compares two popular RL objectives—Direct Preference Optimization (DPO) and Group Reward Policy Optimization (GRPO)—in both online and semi-online settings. Surprisingly, they find similar performance and convergence between these variants, which simplifies the choice of objective for practitioners. Additionally, the demonstration that multi-tasking with verifiable and non-verifiable rewards improves performance on both task types is a novel and practical insight, suggesting that combining different reward signals can lead to more robust alignment.

Technical Contributions

  • Comprehensive comparison of RL regimes: The paper evaluates offline, semi-online, and fully online RL finetuning, providing a clear picture of how performance scales with the degree of online interaction.
  • DPO vs. GRPO: It compares DPO and GRPO objectives in both online and semi-online settings, showing that they achieve similar results, which is a valuable finding for algorithm selection.
  • Training dynamics analysis: The authors analyze the training dynamics, including convergence behavior and hyperparameter sensitivity, offering practical guidance for achieving optimal results.
  • Multi-task reward learning: They show that jointly optimizing verifiable and non-verifiable rewards improves performance on both, suggesting a new approach to multi-objective alignment.

Results

The paper reports that online and semi-online DPO and GRPO variants perform similarly and converge comparably, all strongly outperforming offline methods. While specific numerical metrics are not provided in the abstract, the qualitative claim is clear: offline methods lag significantly behind. The multi-tasking experiment yields improved performance on both verifiable math and non-verifiable instruction following, indicating that reward diversity is beneficial. The detailed analysis of hyperparameters and training dynamics likely includes concrete recommendations, but the abstract does not enumerate them.

Significance

This research has immediate practical implications for LLM alignment. By showing that semi-online RL can match fully online performance, it reduces the computational barrier for high-quality finetuning. The finding that DPO and GRPO are equally effective simplifies the choice of objective, allowing practitioners to focus on other aspects of the pipeline. Moreover, the multi-task reward approach opens new avenues for combining diverse feedback signals, potentially leading to more capable and aligned models. This work is a valuable reference for both researchers and engineers working on RL finetuning of LLMs.