DynaFlow: Dynamics-Embedded Flow Matching for Physically Consistent Motion from State-Only Demonstrations

By Nova Khatri | 2025-09-26_02-04-19

DynaFlow: Dynamics-Embedded Flow Matching for Physically Consistent Motion from State-Only Demonstrations

Imitation learning has shown impressive strides in teaching agents to replicate human-like motion. Yet when demonstrations provide only states—positions and velocities—without explicit actions, maintaining physical plausibility becomes a thorny problem. Traditional flow-matching approaches can produce smooth trajectories, but they risk violating the underlying dynamics of the system: joint limits, inertia, friction, impact forces, and energy constraints. DynaFlow tackles this gap by weaving the physics of motion directly into the flow-matching process, so learned motions are not only smooth but also dynamically credible.

What makes state-only demonstrations challenging?

State trajectories capture “where” and “how fast” things move, but not the “how” behind those moves. Without action labels or torque signals, the learner must infer latent controls or rely on an external dynamics model. If the dynamics are ignored or treated as a black box, the resulting motions can be kinematically feasible yet dynamically inconsistent—think arm motions that violate torque limits, energy conservation, or contact constraints. DynaFlow reframes this by embedding the physics of motion into the core objective, anchoring flow in both observed trajectories and the laws that govern motion.

Core idea: dynamics-embedded flow matching

At its heart, DynaFlow extends flow-based learning with an explicit dynamics constraint. Instead of merely aligning a generated flow field to demonstrated states, it enforces that the generated transitions adhere to known or learned equations of motion. This combination yields trajectories that not only follow the demonstrated path but also respect fundamental physical principles. The result isMotion generation that remains plausible across varied conditions, including unseen tasks or altered dynamics.

How DynaFlow works in practice

Benefits you can expect

The integration of dynamics into flow matching yields several tangible advantages. Generalization improves because the model learns not just how to imitate a path, but how to behave under the forces that would produce that path. Safety and feasibility rise because produced motions respect torque limits, inertial properties, and contact dynamics. In robotics, this translates to policies that are more robust when transferring from simulation to the real world; in animation, it delivers movement that feels believable and physically grounded even when extrapolating beyond observed data.

“DynaFlow doesn’t just imitate motion; it respects the physics that make motion possible.”

A glimpse at applications

Potential use cases span robotics, animation, and biomechanics. In robotics, a manipulator could learn to reach, grasp, and manipulate objects from state-only demonstrations while honoring joint limits and actuator dynamics. For legged robots, gait patterns can be discovered that remain stable and energy-efficient across terrains. In animation, character motion derived from motion-capture data without explicit control signals can be reinterpreted to preserve physical realism during edits and re-timing. In biomechanical modeling, researchers can generate plausible human motion from sensor data that records positions but not the underlying muscular activations.

Practical considerations

Looking ahead

As DynaFlow matures, integrating uncertainty modeling and real-time adaptability will be key. Extending the framework to handle complex contact-rich environments, multi-agent coordination, and varying payloads will broaden its reach. By uniting flow-based learning with the steadfast rules of dynamics, DynaFlow offers a principled path to motion generation that remains faithful to the physics that govern real motion.