NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Localized Dynamics-Aware Domain Adaptation for Off-Dynamics Offline Reinforcement Learning

Zhangjie Xia, Yu Yang, Pan XuNeurIPS 2026

TL;DR

Training robots in the real world is expensive, so we often lean on abundant simulation data—except simulations never quite match reality. Instead of treating this physics mismatch as a uniform, global problem or doing expensive sample-by-sample checks, LoDADA groups experiences into local "neighborhoods" to selectively salvage simulation data where the physics actually align. It’s a Goldilocks approach to data filtering that makes cross-domain offline reinforcement learning faster, sharper, and significantly more effective.

What Problem Does This Paper Address?

Imagine teaching a robot to walk on Mars using a million hours of Earth simulation data, plus five minutes of actual Martian footage, without ever letting the robot practice live. Welcome to off-dynamics offline reinforcement learning (RL): learning an optimal decision-making policy from static datasets ("offline") when your massive source dataset and tiny target dataset follow different rules of physics, or transition dynamics ("off-dynamics").

Existing solutions usually fall into two extremes. Global methods train a single classifier across the entire state space to measure how "off" the source physics are. This is a blunt instrument: even if two worlds differ globally, they might share identical physics in specific scenarios (like swinging a leg in mid-air before touching slippery ground). Conversely, pointwise methods (like Optimal Transport) compare individual data points one by one. That captures fine-grained similarities, sure, but the computational cost explodes as datasets grow. The authors ask: can we find a scalable middle ground that exploits localized similarities?

Methods

Enter LoDADA (Localized Dynamics-Aware Domain Adaptation), which trades global assumptions and pointwise bottlenecks for cluster-level precision.

Figure 1: An overview of our proposed framework. We first perform K-means clustering on the next state for the target dataset and then assign source transitions to clusters via their next state. We estimate the local KL divergence between source and target dynamics in each cluster using cluster-wise classifiers, and selectively retain source transitions for downstream offline RL algorithms. We further introduce a dataset regularization term to ensure policy consistency with the target dataset.

Here is how the pipeline works:

  1. Local Clustering (New Application): LoDADA runs standard K-means clustering on the next states ($s'$) of the small target dataset, carving the state space into $K$ local neighborhoods. Source transitions are assigned to the nearest target cluster (and tossed out if they are too far away).
  2. Cluster-Wise Discrepancy Estimation (Novel): Within each cluster, since the landing states ($s'$) are already similar, differences in the starting state-action pairs $(s, a)$ directly reveal shifts in physics! LoDADA trains a lightweight binary classifier per cluster to tell source and target $(s, a)$ pairs apart, using the outputs to estimate the local Kullback-Leibler (KL) divergence—a mathematical measure of how much the two physics distributions diverge.
  3. Smart Filtering: Rather than deleting noisy clusters entirely (which would ruin state-space coverage), LoDADA keeps a higher percentage of source data from low-divergence clusters (90%) and less from high-divergence ones (70%).
  4. Target-Anchored Policy Optimization (Modified Standard): Using Implicit Q-Learning (IQL) as the standard offline RL backbone, the authors add two twists: they downweight remaining source samples during critic training based on their individual KL estimates, and they fit a Conditional Variational Autoencoder (CVAE) to the target dataset to gently tether the learned policy to realistic target behaviors.

Datasets

The authors evaluate LoDADA using static datasets from D4RL (typically 1 million source transitions) paired with shifted target datasets from the ODRL benchmark (typically 5,000 target transitions):

  • MuJoCo Locomotion (HalfCheetah, Ant, Walker2d, Hopper): Tested under global gravity/friction rescaling (0.1x to 5.0x) and robot morphology changes.
  • Custom Localized Perturbations: A newly constructed testbed where D4RL MuJoCo source datasets are partitioned into 15 state-space regions and injected with region-specific Gaussian noise, simulating heterogeneous, patchy dynamics shifts.
  • AntMaze Navigation: Medium mazes (Play and Diverse datasets) where wall layouts change between source and target maps.
  • Adroit Manipulation (Pen and Door): High-dimensional dexterous hand tasks featuring broken joints and shrunken fingers.

Key Insights and Ideas

  • Dynamics mismatch is equivalent to representation mismatch—if you look backward: By grouping transitions that end up in the same place ($s'$), measuring how different the physics are ($P(s'|s,a)$) mathematically reduces to measuring how different the preceding state-action pairs look ($P(s,a|s')$). This clever flip makes local KL estimation via simple classifiers possible.
  • Locality is a Goldilocks game: Ablations on cluster count $K$ show that too few clusters ($K=10$) blur distinct physics together, while too many ($K=100$) starve local classifiers of target data. A moderate $K$ (30–50) hits the sweet spot.
  • Coverage beats perfection: Aggressively throwing away 100% of high-KL clusters actually hurts performance—even slightly mismatched physics help the agentstitch together a map of the broader state space.

Key Results

LoDADA consistently outperforms state-of-the-art baselines—including reward-augmentation (DARA), diffusion-based generation (DmC), and Optimal Transport filtering (OTDF):

  • Global Shifts: Across 32 MuJoCo gravity and friction tasks, LoDADA scores 1207.05 total normalized points—a 15.5% improvement over the runner-up (DmC at 1045.00), 19.9% over OTDF, and 34.9% over vanilla IQL. On morphology shifts, it beats the second-best method by 32.7%.
  • Localized Perturbations: When dynamics vary across regions, global methods stumble while LoDADA shines, achieving a 29.3% aggregate gain over OTDF and 55.1% over IQL.
Table 2: Performance on localized perturbation tasks for Hopper. We report normalized target-domain scores over five seeds.
  • Complex Tasks & Speed: LoDADA takes the top spot in both AntMaze navigation and Adroit hand manipulation, while running substantially faster than Optimal Transport methods during pre-optimization filtering.

Limitations and Future Work

Because LoDADA relies on target data to anchor clusters and train local classifiers, its performance naturally degrades in extreme-scarcity regimes (e.g., when 80–90% of the 5,000 target samples are removed), when target data comes from a purely random policy, or when source and target state spaces barely overlap. Looking ahead, the authors suggest testing LoDADA on physical robots, exploring more sophisticated clustering beyond K-means in raw state space, and combining LoDADA's filtering with generative diffusion models to get the best of both data-selection and data-synthesis worlds.

Summary updated

BibTeX
@inproceedings{xia2026localized,
  author = {Zhangjie Xia and Yu Yang and Pan Xu},
  title = {{Localized Dynamics-Aware Domain Adaptation for Off-Dynamics Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WPPtcvFivw},
}
Figure