Skip to content
Robotics.world

Research

Physics-Informed Causal Reasoning for Nonstationary Robot Dynamics

Robots that carry objects must predict how their motion will respond to the torques they apply, but the payload's mass and center of mass are invisible in a single snapshot of joint states.

arXiv
2611.19251 · Preprint · not peer-reviewed
Published
2026-11-14
Authors
Jungjin Lee, Se Jin Kim, Sung Kwon On, Insoon Yang

In plain words

Robots that carry objects must predict how their motion will respond to the torques they apply, but the payload's mass and center of mass are invisible in a single snapshot of joint states.

AI summary

Physics-Informed Causal Reasoning for Nonstationary Robot Dynamics

Overview

  • Research area: Robotics — learning-based robot dynamics, physics-informed machine learning, and causal/context-based adaptation for manipulation.
  • Technical level: Advanced. The paper assumes familiarity with Lagrangian rigid-body mechanics, Deep Lagrangian Networks, variational context encoders, and contrastive learning.
  • Scope: The paper introduces PICR, a framework in which a four-dimensional context inferred from recent interaction history modulates a shared Lagrangian network via Feature-wise Linear Modulation, and evaluates it on a simulated Franka Panda arm under changing and unseen payloads.

What This Paper Is About

Robots that carry objects must predict how their motion will respond to the torques they apply, but the payload's mass and center of mass are invisible in a single snapshot of joint states. The authors target nonstationary dynamics, where these hidden physical conditions change during operation — including within a single episode — so the model must adapt from a handful of recent interactions rather than being retrained. Their goal is a predictor that combines the adaptivity of context-based models with the physical structure of Lagrangian networks, and that can moreover answer counterfactual questions about what would happen under a different torque.

Key Contributions

  1. A physics-informed causal reasoning framework (PICR) in which a context vector, re-inferred from recent interaction history, modulates a shared Lagrangian model through FiLM, so adaptation changes only the context while the mechanical structure of the torque–motion relationship is preserved.
  2. Adaptation without retraining or a hand-specified robot model — the network parameters are learned offline, and payload mass, center of mass, object observations, inertial parameters, and a URDF-style nominal model are all withheld from the model's inputs.
  3. An empirical evaluation on a torque-controlled Franka Panda arm in NVIDIA Isaac Sim covering within-episode adaptation, generalization to unseen payloads, and action-effect prediction under paired torque interventions.
  4. A gray-box analysis connecting inferred contexts, learned mechanical terms, and motion predictions through context substitution and comparison against simulator-derived references, showing that the induced gravity and inertia terms agree with the simulator at the level of individual Lagrangian components.

Main Findings

  • Best accuracy under seen and unseen payloads. On a figure-eight tracking task with the payload ramping from 0.1 to 4.0 kg, PICR recorded the lowest cube ADD in both mass ranges: 4.93 cm on the seen range (0.1–2 kg) versus 6.06–8.75 cm for the five baselines, and 6.76 cm on the unseen range (2–4 kg) versus 11.15–25.78 cm. The abstract summarizes this as a 1.6–3.8× error reduction on unseen payloads.

  • Degradation is far gentler off the training distribution. Moving from the seen to the unseen mass range, PICR's ADD grew by only 1.8 cm, whereas CaDeLaC, DeLaN, and Neural-Fly grew by 12.7–18.8 cm.

  • More faithful counterfactual response to torque interventions. Under ±10, 20, 30, or 40 N·m offsets applied for 15 steps to one of the first three joints, PICR's joint-averaged projected gain was 0.90 (where 1.0 means matched projected magnitude), compared with 0.84 for Neural-Fly, 0.75 for RWM, 0.65 for CaDM, 0.35 for DeLaN, and 0.17 for CaDeLaC. Neural-Fly and RWM lost gain as the offset magnitude grew, while PICR's remained stable.

  • Closer agreement on individual Lagrangian torque components. On a 3 kg carry (unseen), joint-2 gravity RMSE was 2.15 N·m for PICR versus 11.29 for CaDeLaC and 9.99 for DeLaN; inertial RMSE was 2.31 versus 12.49 and 5.83; Coriolis RMSE was 1.59 versus 2.15 and 1.67 — the one term where all three models performed similarly.

  • The context encodes payload mass. PCA of the four-dimensional context showed PC1 and PC2 capturing 80% of the variance and organizing primarily by mass; contexts from unseen heavier payloads extended along the same direction. Coloring the same projection by center-of-mass coordinate revealed no visible ordering, consistent with the training data where CoM offsets produced only about 5% of the mass-induced torque.

  • The context is actually used by the dynamics model. Holding the initial state and future torques fixed on a 3 kg window and substituting the mean context from 0.1 kg episodes made the prediction drift upward "as if the object were lighter," raising error to 25.8 cm — evidence that mass-related information in the context drives the rollout.

  • The context tracks changes online. Before a lift, contexts for different masses largely overlapped; after the lift they separated by mass in real time. During the figure-eight ramp, PC1 moved into the heavier-payload region as mass rose to 4.0 kg and returned as it decreased.

  • Learned terms follow payload jumps. When the payload switched from 0.1 to 2.0 kg with the robot state held fixed, PICR's g₂ and H₂₂ reached 90% of the reference change within 200 ms, whereas CaDeLaC and DeLaN barely moved. Across a fixed posture bank PICR followed the simulator's linear mass dependence of g₂ and H₂₂ and extended it into the unseen range, though the response was attenuated beyond the training range, making the agreement approximate rather than exact.

  • Training labels are needed only offline. Payload mass and CoM labels define which histories should share similar contexts during contrastive training; the context itself is never regressed onto mass or CoM, and labels are not required at inference. Neural-Fly, by contrast, used mass labels during training.

Methodology in Plain English

The core idea. Instead of learning a black-box map from states and torques to accelerations, the authors learn the ingredients of the robot's equations of motion — an inertia matrix and a potential energy function — and let a small learned "context" vector reshape those ingredients. Because inertia and potential energy fully determine the Coriolis, centrifugal, and gravity terms, the model never has to learn those terms separately.

How adaptation works. A small neural network reads the most recent 12 control steps (240 ms) of joint positions, velocities, and the torques that produced them, flattened into a 252-dimensional vector, and compresses them into a 4-dimensional context. At inference this context is the encoder's mean output; during training it is sampled from a Gaussian with a soft bound of 10·tanh(x/10). The context then generates per-layer scales and shifts that modulate the hidden features of the inertia-factor and potential networks (the FiLM mechanism), while the backbone weights stay shared across all contexts. At initialization all modulation maps are zero, so each conditioned network is exactly an unconditioned Deep Lagrangian Network.

Why the mechanics stay valid. The inertia matrix is built as A·Aᵀ (with A lower-triangular and positive on the diagonal via softplus plus 10⁻³, and a 10⁻⁴·I term added for numerical stability), guaranteeing symmetry and positive definiteness for every context. All derivatives with respect to joint configuration are taken with the context held fixed, so the Coriolis and gravity terms remain legitimate derived quantities rather than free parameters. Configuration Jacobians are propagated alongside the forward pass, avoiding nested automatic differentiation.

How it is trained. Two dynamics losses measure the same equation-of-motion discrepancy in different units — one on predicted versus recorded acceleration, one on the inverse-dynamics residual — plus a contrastive loss that uses payload mass and CoM labels only to decide which history pairs should have similar contexts (a Gaussian weighting on mass and CoM differences, with a temperature of 0.1), and a KL term pulling the encoder's Gaussian toward a standard normal with weight 10⁻⁴. Training uses 40 epochs with an 8-step teacher-forced horizon, batches of 256, and the Adam optimizer at 3×10⁻⁴ with a cosine schedule.

How it is tested. All experiments run in Isaac Lab with PhysX at 2 kHz simulation and 50 Hz control. Training data are joint-wise cosine sweeps under PID control with Ornstein–Uhlenbeck torque perturbations, with payload mass randomized over eight levels in 0.1–2.0 kg and CoM over a 5³ lattice, giving 318 training and 40 validation episodes. Evaluation uses PPO-generated figure-eight and carry trajectories. Prediction is a 15-step (300 ms) open-loop rollout with the context frozen, and accuracy is scored by cube ADD computed over 2,000 corresponding surface points.

Why This Matters

Impact on research. The paper occupies a specific gap: context-based adaptation methods (CaDM, RWM) adapt but leave the mechanism to a generic learned model, while physics-structured methods (DeLaN) encode the mechanism but are bound to a single system. The notable move is showing that these can be combined so that only the context changes at test time, and then validating the combination not just on prediction error but on whether the induced individual torque components match simulator references. The counterfactual intervention protocol — paired runs sharing a pre-intervention history but differing in applied torque — is a reusable evaluation idea for any dynamics model whose stated purpose is action-effect reasoning. The result that PICR's gravity error on joint 2 was 2.15 N·m versus 11.29 for CaDeLaC and 12.49 for its inertial error versus 5.83 for DeLaN suggests that structure and adaptivity are complementary rather than redundant.

Real-world applications:

  • Warehouse pick-and-place and logistics, where a robot grasps parcels of unknown and varying mass many times per shift and must adjust feedforward torques without re-identifying its own model.
  • Food handling and packaging, where contents shift or are consumed, changing the payload mid-task.
  • Tool use and assembly, where the effective end-effector inertia changes when a tool is picked up, put down, or swapped.
  • Agricultural harvesting, where fruit mass varies widely and can fall outside anything seen during data collection — the regime where the unseen-payload gap between PICR (6.76 cm) and DeLaN (25.78 cm) is largest.

Industry relevance. The approach requires no URDF, no CAD-derived inertial parameters, and no payload sensing — only proprioception and commanded torques. That lowers the commissioning barrier for robots whose payloads are unpredictable at deployment, and the "learn offline, adapt online by updating a 4-dimensional vector" pattern is cheap enough to run in a control loop. The 90%-of-reference convergence within 200 ms after a payload jump is the kind of timescale that matters for grasping pipelines.

Future Directions

  • Real-hardware evaluation. The study is explicitly limited to a single simulated robot; the authors name real-hardware validation as a natural next step, which would introduce friction, unmodeled compliance, and sensor noise absent from PhysX.
  • Closed-loop control. All predictions here are open-loop over a 15-step horizon. Whether the learned Lagrangian terms are accurate enough to serve as a model inside a controller — where errors compound rather than being measured once — is untested.
  • Handling context uncertainty. The authors note that regions for different masses partially overlap because the context is inferred only implicitly from interaction, and it varies with visited states, applied torques, and task. How to handle this uncertainty is left to future work.
  • Richer physical variation and beyond rigid grasps. The paper restricts attention to the post-grasp regime with the cube rigidly attached without slip and the finger joints excluded. Friction, slip, articulated objects, and other hidden parameters beyond mass and CoM are open extensions.

Target Audience

Robotics researchers and graduate students working on learned dynamics models, sim-to-real transfer, and manipulation under uncertainty; practitioners building model-based controllers who need feedforward torque prediction that adapts to unknown payloads without system identification. Readers without a background in Lagrangian mechanics or variational inference will find the method sections demanding, though the problem framing and the experimental results are accessible to a broader robotics audience.

Authors’ abstract

Reasoning about what an action will cause requires internalizing how a system behaves. As conditions seldom stay fixed, this must often happen within a few interactions. Yet systems that look identical in a snapshot can respond differently to the same action, depending on physical conditions the snapshot hides. Context-based models capture this separation by summarizing recent transitions into a latent context, but do not specify how that context should change the equations…

The full abstract on arXiv
Read the original paper

Related papers