TL;DR
Training reinforcement learning (RL) agents in simulation and deploying them in the real world often fails due to differences in physics (the "dynamics gap") and a lack of real-world reward signals. This paper introduces BDGxRL, a framework that leverages a Diffusion Schrödinger Bridge (DSB) to translate simulated transitions into target-domain dynamics using only a small set of offline, reward-free target demonstrations. By combining this with a transition-aware reward modulation mechanism, BDGxRL allows agents to learn highly transferable, target-oriented policies entirely within a source simulator.
What Problem Does This Paper Address?
In cross-domain RL (such as Sim2Real transfer), agents are trained in a source domain (e.g., a physics simulator) and deployed in a target domain (e.g., the real world). While both domains typically share the same state and action spaces, their underlying physics—like gravity, friction, or mass—often differ. This discrepancy is known as the dynamics gap.
Adapting to this gap is incredibly challenging because we rarely have permission to let an untrained agent interact online with the real-world target environment to learn its dynamics or collect rewards. Instead, we usually only have access to a limited, static dataset of offline target demonstrations that lack reward annotations. Furthermore, simply reusing the simulator's reward function doesn't work; because the physics are different, the same action will lead to different physical outcomes, causing a severe mismatch between simulated and real-world rewards.
Methods
The authors propose BDGxRL (Bridging Dynamics Gaps for Cross-Domain Reinforcement Learning), which consists of three main components:
- DSB-based Dynamics Alignment: To bridge the physics gap without paired data, the framework uses a Diffusion Schrödinger Bridge (DSB). It treats transitions—represented as concatenated vectors of $[s_t; a_t; s_{t+1}]$—as probability distributions. Using Iterative Markovian Fitting (IMF), it learns a continuous stochastic flow that maps source domain transitions directly to target domain transitions. This allows the agent to predict a target-style next state ($\tilde{s}_{t+1}$) for any source state-action pair.
- Transition-Aware Reward Modulation: To fix the reward mismatch, the authors train an action-independent reward model $R(s_t, s_{t+1})$ on the source domain. Because this model focuses purely on the outcome of a transition rather than the action taken, it can be safely applied to the DSB-translated target states to compute accurate, modulated rewards: $\tilde{r}_t = R(s_t, \tilde{s}_{t+1})$.
- Target-Oriented Policy Learning: Finally, the agent trains an off-policy RL agent (like Soft Actor-Critic) entirely inside the source simulator, but swaps out the simulated outcomes and rewards for the DSB-translated transitions and modulated rewards. The policy is also regularized using Behavior Cloning on the target demonstrations to improve sample efficiency.
Datasets
The method was evaluated using standard physics-based robotic simulation environments from the D4RL benchmark:
- Environments:
HalfCheetahandWalker2d. - Domain Gaps Introduced: The authors modified the underlying MuJoCo physics parameters to create three distinct gaps: (1) $2\times$ gravity, (2) $0.25\times / 0.5\times$ friction, and (3) $2\times$ robot thigh size.
- Demonstration Quality: Evaluated across
Medium,Medium-Replay, andMedium-Expertoffline datasets.
Key Insights and Ideas
- Rewards are Tied to Outcomes, Not Actions: Traditional reward functions $R(s, a)$ fail across domains because an action $a$ in a high-friction environment yields a completely different physical state than in a low-friction one. Shifting to a transition-aware formulation $R(s_t, s_{t+1})$ ensures that rewards remain consistent with the actual physical results of an action.
- Schrödinger Bridges for Unpaired Alignment: While traditional Optimal Transport requires explicit cost functions or paired data, DSB excels at learning smooth, continuous translations between highly complex, unpaired structural distributions (like different physics dynamics).
- Alignment is the Most Critical Pillar: Ablation studies revealed that removing the DSB transition alignment step caused the most catastrophic drop in performance, proving that explicitly mapping the physics shift is far more vital than imitation learning or reward modeling alone.
Key Results
BDGxRL consistently outperformed state-of-the-art cross-domain RL baselines (including xTED, DARA, DARC, and DARAIL) across all tasks, domain gaps, and expert levels.
- Overall Performance: As shown in the summary chart below, BDGxRL achieved the highest average score across all combined tasks.
- Robustness to Low-Quality Data: Even in challenging settings like
Medium-Replay(where demonstrations are highly mixed and imperfect), BDGxRL maintained stable, superior performance, achieving a score of 39.5 inHalfCheetah(Friction gap) compared to DARAIL's 35.0 and xTED's 32.4.
Limitations and Future Work
While the paper provides strong theoretical bounds and empirical results, a few limitations are apparent:
- Shared State/Action Spaces: The framework assumes that the source and target domains share identical state and action spaces, meaning it cannot handle cases where a real-world robot has different sensors or actuators than its simulation counterpart.
- Data Dependence: The quality of the DSB alignment still fundamentally relies on the coverage of the offline target dataset. If the target demonstrations are extremely sparse or fail to cover key regions of the state space, the diffusion bridge may struggle to generalize.
- Computational Overhead: Training bidirectional diffusion models via iterative fitting (IMF) adds a non-trivial computational burden during the offline pretraining phase.
Summary updated