Manuscript Offprint

arXiv:2608.23939

CoDrift: Compositional Drifting for Offline Reinforcement Learning

Xiewei Ni, Ruofeng Mei, Xiangyu Xu

Xiewei Ni, Ruofeng Mei, Xiangyu Xu ∗^{*}

Xi'an Jiaotong University

∗^{*}Corresponding author

Offline reinforcement learning is intrinsically multi-objective: a policy must remain compatible with the behavioral support of a fixed dataset while preferentially selecting high-value actions. We recast these objectives in a common form by viewing each as an action-space motion field that specifies how generated actions should move. This perspective enables heterogeneous learning objectives to be combined directly through field composition. Inspired by drifting models, we propose CoDrift, a compositional framework for one-step generative policy learning. CoDrift combines three objective-level fields into a unified policy field. The conditional field preserves state-dependent behavioral structure, while the marginal field pools actions across states to provide a more stable generative signal in the single-positive-sample regime of continuous-control offline RL. The value field moves generated actions toward higher-value regions. The composed field is absorbed into a stochastic generator that produces an action with a single forward pass at deployment. We evaluate CoDrift on 73 tasks from OGBench and D4RL in both offline and offline-to-online settings. CoDrift compares favorably with state-of-the-art methods and achieves the best average rank in both settings.

1 Introduction

Offline reinforcement learning (RL) aims to learn effective policies entirely from previously collected experience, without further interaction with the environment (Levine et al., 2020). A central challenge is that policy optimization must satisfy multiple objectives simultaneously. On the one hand, the learned policy should remain compatible with the behavioral support of the offline dataset, since actions far outside the data distribution may lead to unreliable value estimates and poor decisions. On the other hand, merely reproducing the behavior policy is insufficient: the policy must preferentially select high-value actions in order to improve return. Offline RL can therefore be viewed as an intrinsically multi-objective policy-learning problem, balancing behavioral fidelity with value maximization.

Generative policies provide a powerful way to model the behavioral side of this problem. In particular, diffusion-based policies have demonstrated good capability to represent complex and multimodal action distributions (Wang et al., 2023; Hansen-Estruch et al., 2023), while flow-matching approaches provide an even stronger generative policy class (Park et al., 2025b). These successes suggest that expressive generative modeling is a natural foundation for offline policy learning. We build on this perspective, but take a different view of how the multiple objectives of offline RL should be incorporated into a generative policy.

Our starting point is simple: different learning objectives can all be interpreted as specifying how a generated action should move in action space. A behavioral objective moves generated actions toward regions supported by the offline data, whereas a value objective moves them toward directions of higher predicted return. Once expressed as action-space displacements, these heterogeneous objectives share a common representation and can thereby be composed naturally. This motivates the central principle of our approach: offline policy learning can be formulated as the composition of action-space motion fields, with each field corresponding to a distinct learning objective.

Our formulation is inspired by drifting models (Deng et al., 2026), a recent class of generative models that learns stochastic generators from displacement fields acting directly on generated samples. In the original drifting formulation, a displacement field is constructed from two elementary components: attraction toward

Figure

VCoDrift=ηcVcond(a^i,k)+ηmVmarg(a^i,k)+ηvVvalue(si,a^i,k)V_{\mathrm{CoDrift}}=\eta_{c}V_{\mathrm{cond}}\big(\hat{a}_{i,k}\big)+\eta_{m}V_{\mathrm{marg}}\big(\hat{a}_{i,k}\big)+\eta_{v}V_{\mathrm{value}}\big(s_{i},\hat{a}_{i,k}\big)

Figure 1 Overview of CoDrift. Conditional and marginal behavioral fields keep generated actions within the support of the offline data at two statistical scales, while the value field moves them toward higher-return regions. The three are composed additively into a single policy field VCoDriftV_{CoDrift}.

positive data samples and repulsion from negative generated samples. For our setting, it suggests a broader principle: while the original attraction and repulsion components jointly realize a single distribution-matching objective, different learning objectives can themselves be represented as displacement fields and composed directly in action space.

Based on this principle, we propose CoDrift, a compositional drifting framework for offline RL. CoDrift instantiates three complementary action-space fields as illustrated in Figure 1. First, a conditional behavioral field preserves state-dependent behavioral support by attracting candidate actions toward actions observed at the corresponding states while maintaining stochasticity through repulsion among generated actions. Second, a marginal behavioral field captures global structure in the action distribution by pooling data and generated actions across states within a minibatch. This marginal field is particularly useful in continuous-control offline RL, where essentially every state is paired with only a single observed action. Consequently, the conditional field is estimated from a single Monte Carlo sample at each state, whereas marginal field can exploit multiple actions across the batch, yielding a more stable, lower-variance generative signal. Finally, a value field pushes generated actions toward higher-value regions using action gradients from learned critics. These fields play complementary roles and are combined additively into a single generative policy field.

Our contributions are summarized as follows:

  • We introduce CoDrift, a compositional drifting framework for generative policy learning in offline RL, where heterogeneous learning objectives are represented as additive action-space fields. CoDrift achieves expressive stochastic generation while requiring only a single forward pass at deployment.

  • We identify the single-positive-sample problem in conditional drifting for offline RL. We address this issue with marginal drifting, which pools actions across states to provide a more stable training signal.

  • We conduct extensive experiments across 73 tasks from OGBench and D4RL in both offline and offline-to-online settings. CoDrift compares favorably with state-of-the-art approaches, achieving the best average rank in both settings.

References (33)