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

Context is Everything: Implicit Identification for Dynamics Adaptation

Ben Evans, Abitha Thankaraj, Lerrel Pinto · DOI

Abstract

Adapting to non-stationary dynamics is a fundamental challenge in robotics, particularly when transitioning from controlled laboratory settings to unpredictable real-world environments. Traditional approaches rely on explicit system identification or broad domain randomization, both of which have significant drawbacks. This paper presents Implicit Identification for Dynamics Adaptation (IIDA), a framework that enables robots to adapt to novel physical environments by implicitly inferring dynamics from a small set of interactions. By learning a latent representation of the environment's "context," IIDA achieves a 63% reduction in prediction error over state-of-the-art baselines and demonstrates superior performance in real-world object manipulation tasks.

Introduction

When a robot moves from a laboratory to a real-world kitchen, the underlying physics of its environment change. Variations in surface friction, object mass, or center-of-gravity—collectively known as non-stationary dynamics—can render a pre-trained controller ineffective. Historically, engineers have addressed this through two primary methods: System Identification (SysID), which attempts to measure exact physical parameters, and Domain Randomization (DR), which trains a robot across a wide range of simulated scenarios to create a robust, albeit often conservative, policy.

However, SysID is frequently impractical because many physical variables are difficult to measure directly. Conversely, DR often results in sub-optimal performance because the robot never specializes its behavior for the specific environment at hand. IIDA proposes a middle ground: robots do not need to know the exact numerical value of friction to operate; they simply need to "feel" the behavioral consequences of physics through a few trial interactions.

Methodology: The IIDA Framework

The core of IIDA is a two-part neural network architecture designed to map short-term history into future predictions without explicit physical labels.

The Context Encoder ($g_\phi$)

This module processes a small set of "context points"—previous observations consisting of state, action, and the resulting next state. The encoder compresses these interactions into a latent vector ($z_e$), which serves as an implicit identity of the current environment. The researchers evaluated three architectural variants for this encoder: Average Pooling, Recurrent Neural Networks (LSTMs), and Transformers.

The Dynamics Predictor ($f_\theta$)

The dynamics predictor takes the current state, the intended action, and the latent vector ($z_e$) to predict the subsequent state. Crucially, the system is trained end-to-end. There is no separate loss function requiring the robot to identify specific masses or friction coefficients. Instead, the encoder is incentivized to find the most useful representation of the environment solely to minimize prediction error in the dynamics model.

Experimental Evaluation

The researchers evaluated IIDA across three distinct domains to test its versatility and scaling properties:

  1. Simulated Single-Step Tasks: Using the MuJoCo physics engine, the team created "Push Box" and "Slide Puck" environments where mass, friction, and center-of-mass were randomized.
  2. Modified OpenAI Gym Benchmarks: Classic tasks such as Hopper, Swimmer, and Humanoid were modified with randomized physical links and masses to evaluate multi-step prediction capabilities.
  3. Real-World Robot Sliding: A UR10 robotic arm was tasked with sliding diverse household objects (e.g., sponges, Tupperware) across various surfaces, including tablecloths and foam.

Key Insights

Behavioral Properties vs. Physical Parameters

One of the most significant findings was that IIDA occasionally outperformed "Explicit ID" models that had access to ground-truth physics. This suggests that learning the behavioral consequences of an environment is more robust than mapping interactions back to exact physical units, particularly when the robot encounters novel objects or surfaces.

Latent Space Organization

Visualization of the latent vectors ($z_e$) using t-SNE revealed that the model naturally clusters environments with similar dynamics. For instance, objects slid on a cloth surface formed a distinct cluster from those on foam, despite the model never being explicitly informed of the surface material. This indicates that the latent space successfully captures the underlying structure of physical interactions.

Scaling with Transformers

While simple average pooling was effective for small datasets, Transformer-based encoders demonstrated monotonic improvement as more context was added. Transformers proved particularly adept at filtering out uninformative interactions, allowing the model to focus on the most relevant data points for dynamics adaptation.

Results

  • Simulation Performance: IIDA achieved an average 63% reduction in Mean Squared Error (MSE) compared to state-of-the-art baselines in MuJoCo tasks. In the "Slide Puck" environment, error reduction reached as high as 84%.
  • Real-World Success: In the UR10 sliding task, IIDA achieved a 57.1% success rate (landing objects within 5cm of a target). This significantly outperformed Domain Randomization (42.6%) and Meta-Learning (20.8%).
  • Human Comparison: In a benchmark against human performance, IIDA achieved a lower average error (8.5cm) compared to human volunteers (14cm) who were given 30 seconds of practice with the same objects.

Limitations and Future Work

While IIDA represents a significant step forward, several challenges remain. The model still faces difficulties with Out-of-Distribution (OOD) scenarios, such as objects with geometries vastly different from the training set. Additionally, the current implementation relies on a sampling-based optimizer (CEM) for action selection; integrating IIDA directly into a reinforcement learning policy could improve computational efficiency. Finally, future iterations could incorporate "active exploration," where the robot intentionally chooses actions to probe and identify environmental dynamics more rapidly.

Summary updated

BibTeX
@inproceedings{evans2022context,
  author = {Ben Evans and Abitha Thankaraj and Lerrel Pinto},
  title = {{Context is Everything: Implicit Identification for Dynamics Adaptation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=cBu3K1KzQnh},
}
Figure