Source-linked AI summary

Rethinking Optimal Transport in Offline Reinforcement Learning

Arip Asadulaev, Rostislav Korst, Alexander Korotin, Vage Egiazarian, Andrey Filchenkov, Evgeny Burnaev

arXiv:2410.14069v1cs.LG

TL;DR

Offline RL can suffer critic instability under behavior-policy distribution shift, while expert data may contain suboptimal paths that behavior cloning would mimic. We recast offline RL as optimal transport and introduce Partial Policy Learning, which outperforms existing OT and state-of-the-art model-free offline RL methods on D4RL.

  • Problem

    Offline RL can suffer critic instability from behavior-policy distribution shift, and equality-constrained behavior cloning can mimic suboptimal expert paths.

    Source: §1 · p. 1, §2.2 · p. 3, §3.1 · p. 4
  • Method

    Partial Policy Learning treats offline RL as optimal transport, using the Q-function as transport cost and the policy as the transport map to identify a partial distribution of best actions per state.

    Source: §1 · pp. 1–2
  • Results

    On D4RL, the method achieved superior performance to existing OT-based methods and current state-of-the-art model-free offline RL techniques.

    Source: §1 · p. 2
  • Takeaways & Limitations

    The method is intended to extract efficient policies by selecting and mapping best expert actions from noisy or suboptimal datasets.

    Source: §7 · p. 9

    The equality-constrained formulation forces policy mimicry and is inappropriate when the expert dataset contains suboptimal paths.

    Source: §3.1 · p. 4

Abstract

from arXiv · show

We propose a novel algorithm for offline reinforcement learning using optimal transport. Typically, in offline reinforcement learning, the data is provided by various experts and some of them can be sub-optimal. To extract an efficient policy, it is necessary to \emph{stitch} the best behaviors from the dataset. To address this problem, we rethink offline reinforcement learning as an optimal transportation problem. And based on this, we present an algorithm that aims to find a policy that maps states to a \emph{partial} distribution of the best expert actions for each given state. We evaluate the performance of our algorithm on continuous control problems from the D4RL suite and demonstrate improvements over existing methods.

1 Introduction

The introduction motivates offline RL for settings where environment interaction is costly or risky, but notes that distribution shift and mixed-quality expert demonstrations complicate policy learning. It presents optimal transport as a framework for stitching useful behaviors and introduces a policy that selects partial distributions of strong actions for each state.

1 Introduction

  • Offline RL faces distribution shift between learned and behavior policies, which can destabilize critic evaluation and motivate behavior-cloning objectives [33] [15] [52].Source: §1 · p. 1
  • Mixed expert demonstrations may be incorrect or effective only in parts of an environment, so cloning the full behavior can limit improvement; stitching selects and recombines strong state-specific actions [30].Source: §1 · p. 1
  • The paper reframes offline RL as an optimal transport problem between state and action distributions, using the Q-function as transport cost and the policy as the transport map.The proposed policy identifies a partial distribution of the best actions for each state.Source: §1 · pp. 1–2
  • The authors distinguish their approach from prior OT-based methods by not adding an OT regularizer or reward function [11] [40].Source: §1 · p. 1
  • PPL achieves superior performance on D4RL compared with existing OT-based methods and state-of-the-art model-free offline RL techniques.The contribution reports evaluation across various environments in the D4RL benchmark suite.Source: §1 · p. 2

2 Background and Related Work

The background introduces optimal transport as a way to map or couple distributions, then outlines partial transport and maximin formulations. It connects these ideas to offline RL, where distribution shift and mixed-quality datasets make policy evaluation and behavior cloning challenging.

2.1 Optimal Transport

  • Monge OT seeks a measurable map T that sends distribution μ to ν at minimum cost, while Kantorovich OT uses transport plans that allow mass splitting.An optimal transport plan is a coupling with marginals μ and ν.Source: §2.1 · p. 2
  • Maximin formulations jointly recover an OT distance and map by optimizing over functions T, and neural OT methods have been used for strong, weak, and general OT problems [27, 43].The paper draws on these developments for offline RL.Source: §2.1 · p. 2
  • Partial or extremal OT matches the full input distribution to only part of the target, with coefficient w controlling imbalance so cost favors closer target samples [17].For Euclidean costs such as ℓ2, the passage describes partial transport maps as selecting nearest target samples.Source: §2.1 · p. 3

2.2 Offline Reinforcement Learning

  • In offline RL, policies are learned from fixed experience data; a critic estimates expected cumulative reward and can support policy recovery through methods such as DPG or TD3 [15].The background defines the MDP using state and action spaces, transition probabilities, rewards, and a discount factor.Source: §2.2 · p. 3
  • Offline RL can suffer critic inefficiency and overestimation under policy–dataset distribution shift; behavior-cloning methods address this issue, while mixed-quality expert data makes cloning the whole dataset problematic [15].The background also notes that Wasserstein-1 computation requires a 1-Lipschitz potential and that the behavior-cloning coefficient α is task-dependent [25, 1, 6].Source: §2.2 · p. 3
  • Datasets may combine near-optimal expert policies even when only one expert is optimal, and conventional cloning lacks a mechanism to weigh each action's importance.The passage also identifies task-dependent α and the 1-Lipschitz constraint as challenges for Wasserstein-1-based approaches [25, 1, 6].Source: §2.2 · p. 3

3 Rethinking OT in RL

The section formulates offline RL as transport from states to behavior-policy actions, then uses partial transport to select critic-relevant actions rather than imitate the full behavior distribution.

3.1 Considering RL as OT problem

  • The Monge formulation uses negative Qπ as transport cost and the policy as a map from the state distribution to behavior-policy actions.Source: §3.1 · p. 4
  • Equality constraints force this formulation to mimic the expert policy, making it inappropriate when the dataset contains sub-optimal paths.Source: §3.1 · p. 4

3.2 Stitching with Partial OT

  • Partial OT replaces equality with inequality constraints so states map only to relevant parts of the action distribution, with Q defining action optimality.Source: §3.2 · p. 4
  • With critic-based cost Qβ, a policy trained by (10) improves over the behavior policy β.Source: §3.2 · p. 4
  • The maximin dual enables neural approximations, trained with stochastic gradient ascent-descent on batches sampled from the offline dataset.Source: §3.2 · pp. 4–5
  • Increasing w shrinks the mapped action subset, and scaling it can hurt performance when actions come from a single expert.Source: §3.2 · p. 5
  • Unlike prior OT approaches, the method treats the entire policy optimization as OT and does not require a 1-Lipschitz potential for Wasserstein-1.Source: §3.2 · p. 5

4 Toy Experiments

In a toy offline-RL task with three sub-optimal trajectories, PPL recovered an optimal straight route, while the comparison behavior-cloning approach produced average expert solutions.

4 Toy Experiments

  • The toy dataset contains three sub-optimal expert trajectories, with reward only at the final target; the task is to find the shortest path from S0 to ST.Source: Figure 1 · p. 5, §4 · p. 6
  • PPL with w = 8 identified an optimal straight trajectory, outperforming the average expert solutions produced by the behavior-cloning comparison.Source: Figure 1 · p. 5, §4 · p. 6
  • Both critic and policy used single-layer 32-neuron ReLU networks trained for 5,000 steps with Adam at learning rate 1e-3.Source: §4 · p. 6

5 D4RL Experiments

The D4RL experiments evaluate PPL across MuJoCo, Antmaze, and Android tasks against offline RL baselines. The reported Antmaze results are state of the art across the evaluated datasets, while the effect of action-subspace parameter w varies by task.

5.1 Benchmarks and Baselines

  • The evaluation uses D4RL tasks including Gym MuJoCo-v2, Antmaze-v2, and Android-v1, with comparisons against CQL, TD3+BC, IQL, ReBRAC, IQL+OTR, and behavior cloning.The reported score tables average final evaluations over five random seeds.Source: §5.1 · p. 6, Table 1 · p. 7, Table 2 · p. 7

5.2 Settings

  • Experiments combine PPL with One-Step RL on MuJoCo, CQL on Antmaze, and ReBRAC on MuJoCo, Android, and Antmaze, using the respective method settings.The One-Step RL setup pre-trains β for 500k steps and Qβ for 2 million steps; the CQL and ReBRAC runs train for 1M steps without pre-trained models.Source: §5.2 · p. 6

5.3 Results

  • PPL achieves state-of-the-art results on all Antmaze datasets, improving scores by +16 on large-play-v2 and +21 on large-play-diverse-v2 while consistently outperforming OTR+IQL.Table 1 reports averaged normalized scores from the final 100 evaluations and five random seeds.Source: §5.3 · p. 7, Table 1 · p. 7
  • PPL is interpreted as balancing behavior cloning with Q maximization by selecting high-Q actions from the expert action distribution that remain close to critic-training actions.The authors contrast this with direct Q maximization, which can be sub-optimal due to overestimation bias, and staying too close to expert behavior, which prevents improvement.Source: §5.3 · p. 7

5.4 Parameter w

  • The effect of w varies by task: its largest effect appears on Antmaze large-play and large-diverse, while some datasets do not need action-subspace reduction.Figure 2 compares normalized-score curves for w = 3, 5, 8, and 12; w controls the policy's action support range.Source: §5.4 · pp. 8–9, Figure 2 · p. 8

6 Related work

Related work addresses offline policy learning through behavior regularization, conservative critic objectives, and methods for stitching or improving behavior from data. Prior OT applications mainly use transport as an auxiliary loss or to create rewards or reward-labeled data.

6 Related work

  • BRAC regularizes policy optimization by minimizing a divergence between the learned policy and the expert policy, and TD3+BC combines TD3 with behavior-cloning loss.The divergence is described as a behavior-cloning loss.Source: §6 · p. 9
  • DICE incorporates f-divergence regularization into the critic, while CQL and Adversarial Trained Actor-Critic use pessimistic critic terms on learned-policy and dataset actions..Source: §6 · p. 9
  • One-step RL and IQL estimate better actions for each state, while prior OT methods use transport for imitation rewards or reward labeling rather than as the whole offline-RL formulation.One-step RL weights actions using an advantage function; IQL uses a state-conditional upper expectile.Source: §6 · p. 9

7 Conclusion and Discussion

The paper frames offline reinforcement learning as partial optimal transport to select strong expert actions, and identifies task-dependent w as a limitation.

7 Conclusion and Discussion

  • Partial optimal transport with the action-value function and policy selects the best expert actions for each state from noisy or sub-optimal datasets.The proposed method penalizes inefficient actions in the dataset.Source: §7 · p. 9

7.1 Reproducibility

  • The parameter w is task dependent, and the authors provide source code in supplementary materials with hyperparameter details in the settings section.The cited reproducibility passage points to settings (M5.2) for hyperparameters.Source: §7 · p. 9, §7.1 · p. 9

7 Conclusion and Discussion

  • The authors propose integrating other OT methods, including regularizations, general costs, and Weak Neural OT, into offline RL.They identify hierarchical RL and exploration with multimodal goals as potentially relevant settings.Source: §7 · p. 9

8 Societal Impact

The paper states that it has societal implications but does not identify any particular ones for emphasis.

  • The authors do not identify particular societal implications as needing specific emphasis.Source: §8 · p. 9

9 Appendix

The appendix presents a policy-improvement proof and additional illustrations, including training curves and parameter settings.

9.1 Proofs

  • Proposition 9.1 states policy improvement for π obtained by solving Eq. 10 with the expert policy β’s Qβ cost, with the displayed return difference nonnegative.The proof compares the best actions in the expert policy’s support with its average actions.Source: §9.1 · p. 13
  • As w approaches infinity, the solution of Eq. 10 converges to a problem whose support, in these settings, identifies expert actions maximizing Q.Source: §9.1 · p. 13
  • The proof contrasts its maximization over actions in the expert policy’s support with classic policy iteration’s maximization over all actions.Source: §9.1 · p. 13

9.2 Additional Illustrations

  • Figure 3 presents normalized Antmaze score curves during training for the proposed method and CQL; the caption identifies the methods by blue and red, respectively.Source: §9.2 · p. 13, Figure 3 · p. 14
  • Table 4 reports averaged normalized MuJoCo scores from the final 10 evaluations and 5 random seeds, while Table 5 lists optimal w values by environment.For most tasks, higher w values are preferable, which the authors associate with suboptimal trajectories in the datasets.Source: Table 4 · p. 13, §9.2 · p. 13, Table 5 · p. 14

NeurIPS Paper Checklist

The checklist points to the paper’s contributions, experimental details, code and data, and ethics and societal-impact statements.

  • The checklist directs readers to sections supporting the abstract and introduction’s contribution claims and states that experimental details are provided in Section 5.Source: NeurIPS Paper Checklist · p. 15
  • The authors report using publicly available datasets and including code in supplementary materials, with the solver code to be made public after acceptance.Source: NeurIPS Paper Checklist · p. 15
  • The checklist says experimental resources are discussed in the results section, while comparisons across environments are offered as sufficient for significance assessment in offline RL.Source: NeurIPS Paper Checklist · pp. 15–16
  • The authors state that the work conforms to the NeurIPS Code of Ethics and that the paper discusses societal impact; they report no human-subject research.Source: NeurIPS Paper Checklist · p. 16
Loading 2410.14069v1…