Manuscript Offprint

arXiv:2610.12830

Cross-Behavior Policy Optimization: Unified Learning from Offline Demonstrations and On- and Off-Policy Rollouts via a Shared Regression Target

Du Cheng, Junyu Lu, Jingfan Zhang, Yuzhuo Zhang, Haoxuan Jia, Shichao Weng

ABSTRACT

Reasoning post-training draws on offline demonstrations and policy-generated rollouts, yet conventional supervised fine-tuning (SFT) followed by reinforcement learning (RL) separates their objectives and limits continued reuse of collected responses. We propose Cross-Behavior Policy Optimization (CBPO), which makes these sources compatible with one regression loss through a fixed-reference target. Because the generating policy does not enter this target, positive and negative offline completions, reference responses, and current and historical rollouts can share a common reward-labeled record format and replay buffer. As new responses enter the buffer, optimization retains the same regression objective without coordinating separate SFT and RL objectives or requiring stored behavior-policy probabilities, importance weighting, or a learned critic. Restricting the available sources gives offline, on-policy, and off-policy variants, while CBPO-Unified combines them. Across two model scales and four mathematical reasoning benchmarks, CBPO delivers leading avg@32 and pass@32 performance across benchmarks and data regimes. On Qwen3-1.7B, CBPO-Unified improves benchmark-averaged avg@32 and pass@32 over SFT→DAPO by 2.33 and 4.44 percentage points, respectively. In the replay ablation, retaining historical rollouts improves these metrics by 1.87 and 3.72 percentage points over the no-history configuration.

Figure

Figure 1: CBPO-Unified/SFT→DAPO: L/D=1.0205/1.2207L/D = 1.0205/1.2207, with total turn = 58.20∘/368.75∘58.20^\circ/368.75^\circ.

1 INTRODUCTION

Large language models (LLMs) have advanced rapidly in mathematical reasoning, code generation, and theorem proving. Reinforcement learning from verifiable rewards (RLVR) increasingly drives this progress by scoring reasoning trajectories with automatic verifiers (Shao et al., 2024; DeepSeek-AI, 2025; Xin et al., 2025).

Reasoning post-training can draw on three data regimes. Offline Demonstrations are collected before optimization and commonly used for supervised fine-tuning (SFT). On-Policy Rollouts are sampled from the current model and drive methods including PPO, DAPO, REINFORCE++, and GSPO (Schulman et al., 2017; Yu et al., 2025; Hu et al., 2025; Zheng et al., 2025). Off-Policy Rollouts come from earlier policies and can be reused by methods such as TBRM (Yuan et al., 2025). In practice, conventional reasoning post-training commonly follows a two-stage pipeline consisting of cold-start SFT on positive offline chain-of-thought (CoT) demonstrations followed by RLVR on model-generated rollouts, as in DeepSeekMath and DeepSeek-R1 (Shao et al., 2024; DeepSeek-AI, 2025).

This pipeline fragments optimization and data use. It assigns offline demonstrations and RL rollouts to different objectives, excludes negative demonstrations from SFT, retires positive demonstrations once RLVR begins, and replaces earlier rollout batches even when their verifier rewards remain informative. Fig. 1 shows the projected paths: SFT→DAPO turns sharply at the stage boundary (path ratio 1.2207, turning 368.75°) before reaching a lower-reward endpoint. CBPO-Unified instead follows a more direct path (1.0205, 58.20°) to a higher-reward endpoint.

The closed-form optimal policy of KL-regularized RL induces a fixed-reference regression target that combines a completion’s reference-policy log-probability, scaled verifier reward, and frozen prompt-level normalizer, yet is independent of the behavior policy that generated the completion (Rafailov et al., 2023; Brantley et al., 2025).

Building on this property, we propose Cross-Behavior Policy Optimization (CBPO), which applies one regression loss to Offline Demonstrations and On- and Off-Policy Rollouts through common reward-labeled records. CBPO-Offline uses offline demonstrations and reference responses. CBPO-OnPolicy trains on current rollouts only. CBPO-OffPolicy combines reference responses with current and historical rollouts. CBPO-Unified uses all of these sources. On Qwen3-1.7B and Qwen3-8B, each restricted CBPO variant improves aggregate avg@32 over its regime-matched baselines, while CBPO-Unified achieves the best avg@32 and pass@32 on all four benchmarks.

References (30)