The Sim-to-Real Challenge
Deep Reinforcement Learning (DRL) agents can master incredibly complex control tasks in simulation. However, deploying these policies on physical hardware introduces the Sim-to-Real gap. Simulators cannot perfectly model real-world physics—factors like friction, gravity, sensor noise, and latency always differ.
Traditionally, bridging this gap requires resource-intensive solutions: massive domain randomization, costly online system identification, or heavy retraining of the policy network in the target environment. Worse, if you want the robot to perform a new task, you have to repeat this expensive adaptation process.
The authors draw inspiration from human locomotion: if you step onto an icy sidewalk, you don't relearn the fundamental skill of walking from scratch; you simply adjust your gait. This paper asks: Can we build RL agents that reuse a foundational set of skills and adapt to new physics simply by tweaking a lightweight "prompt", rather than retraining the whole brain?
To answer this, the authors introduce Latent Adaptation of Foundation Policies (Found-adapt), a framework that bridges the sim-to-real gap by freezing a pre-trained foundation policy and adapting only its latent representation using a tiny amount of real-world data. This approach achieves robust transfer across varying dynamics in seconds rather than hours, without needing task-specific retraining.
Methods: Decoupling Skill Acquisition and Adaptation
The Found-adapt framework fundamentally decouples skill acquisition from environment adaptation through a two-phase process.
1. Foundation Policy Pre-training
First, the system trains a state encoder and a latent-conditioned policy $\pi(a|s, z)$ on offline, unlabeled simulator data. The policy learns a diverse repertoire of reusable skills indexed by a latent vector $z$, which acts much like a prompt in large language models.
2. Latent Adaptation
At deployment, the main policy network is completely frozen. To adapt to real-world dynamics, the system only updates the latent vector $z$ using a small batch of target-domain data. This adaptation occurs in three steps:
- Cross-Domain Initial Alignment: A joint least-squares regression uses both simulator and real-world data to find an initial, mathematically closed-form guess for the latent vector ($z_{src}$).
- MetaDynamic Network: A frozen, permutation-invariant network (similar to DeepSets) processes a handful of real-world states to extract a "dynamics signature" ($\eta$)—a compact descriptor of the new environment's physics.
- Signature-Guided Latent Adaptation: A tiny adapter network takes the initial guess ($z_{src}$) and the dynamics signature ($\eta$) and refines them into a final latent vector ($z_{final}$) using just a few gradient steps.
Experimental Setup
The method is evaluated on 7 environments from a standard offline RL benchmark, including Walker, Cheetah, Quadruped, AntMaze, and Kitchen. To rigorously test sim-to-real transfer, the authors use a standard sim-to-sim protocol. They treat the default simulator as the "source" and create high-fidelity "real" environments by systematically altering physics parameters:
- Gravity variations: 4 levels of increasing difficulty (G1 to G4).
- Friction variations: 6 levels of increasing difficulty (F1 to F6).
Key Insights
- Latent-only adaptation is highly effective: You do not need to update millions of policy parameters to adapt to new physics. Adjusting a low-dimensional latent vector is sufficient to correct for significant dynamic shifts.
- First-order alignment isn't enough: Simply aligning transition features (the initial least-squares step) works for easy tasks like standing, but fails on complex tasks. Injecting the "dynamics signature" allows the model to understand higher-order distributional shifts, which is critical for dynamic skills like running or flipping.
- Task-agnostic reuse: Traditional deployment adaptation methods (like PAD) adapt a policy for one specific task.
Found-adaptoperates on a shared foundation representation, meaning the inferred dynamics shift can be shared across multiple different behaviors. - Robustness to sparse data: The method degrades gracefully even if up to 50% of the target domain data is dropped. It can infer the necessary physics corrections from very sparse evidence, though it remains sensitive to bad data imputation (e.g., masking missing data with zeros).
Key Results
- Speed: Because it only updates a lightweight adapter and freezes the main policy,
Found-adapttakes only ~6 seconds to adapt. Competing deployment adaptation baselines take hours. - Performance:
Found-adaptconsistently outperforms Direct-Transfer and Grounded Action Transformation (GAT/UGAT) baselines across almost all gravity and friction variations. - Gap Mitigation: On the Walker "Stand" task under altered gravity (G1), Direct-Transfer scored 494.24, while
Found-adaptachieved 586.63, significantly closing the gap to the simulator baseline (894.83). - Predictable Optimization: The authors found a strong statistical correlation ($r = 0.73$) between the adapter network's loss decreasing and the actual real-world return improving, meaning the adaptation process is stable and reliable.
Limitations and Future Work
While highly effective, the degree to which the sim-to-real gap is mitigated varies depending on the specific environment and task difficulty. Furthermore, the method requires careful tuning of hyperparameters for different tasks to achieve optimal adaptation.
Looking ahead, the authors plan to deploy the framework on actual physical hardware (moving beyond the sim-to-sim proxy) and extend the state encoder to handle raw image observations (pixels). This would make Found-adapt highly applicable to realistic robotic vision systems, paving the way for more general and efficient real-world RL deployment.
Summary updated