                                                    Geometric Contact Flows: Contactomorphisms for Dynamics and Control
                                                                                              Table 5. Reproduction error (DTWD) in W RAP - AND -P ULL task.
the data region. Appendix E.3 provides extended results on
                                                                                                  EF      NCDS DHNN GCF Safe GCF Stable
additional characters and an ablation study on replacing the
                                                                                               1.79±0.04 3.37±0.12 4.25±0.68 0.62±0.22 0.61±0.25
contactomorphism ensemble with a single map.
                      ×10 1 ×10 1                                                             Table 6. Energy Consumption (J) in the W RAP - AND -P ULL Task:
                        1.0 3                                     Obstacle Distance 1.0       Comparison of baselines with stable and safe GCF. EF, NCDS and

                                Lagrangian Action
                                                        0.05                                  DHNN values are included despite task failure.
                 Uncertainty
                               0.8                                                  0.5       Scenario EF* NCDS* DHNN* GCF Safe GCF St.
                                                    2
                               0.6                      0.00                                  Unloaded 0.54±.04 1.52±.18 1.01±.42 0.60±.07 0.59±.07
                                                    1       0.0
                               0.4        Data Distance                                        Loaded 0.55±.06 2.73±.43 2.83±.58 0.63±.02 0.81±.09
                           0        0 100 200 300 400                                            ∆     0.01±.07 1.21±.47 1.82±.72 0.03±.07 0.22±.11
                                            Time steps
Figure 7. Obstacle avoidance by L EAF 2 (red dot as obstacle).
                                                                                              handle deviations from training states. We test GCF’s gener-
                                                                                              alization to unseen energy exchanges by adding a load to the
                                                                                              WRAP - AND - PULL task. Table 6 shows energy expenditure
                                                                                              for both loaded and unloaded cases. The GCF implementa-
                                                                                              tion with stable latent dynamics reproduces the trajectory
                                                                                              learned in the unloaded scenario, even in the loaded case,
                                                                                              by consuming more energy. In contrast, the safe GCF vari-
                                                                                              ant halts motion when the Lagrangian action s approaches
                                                                                              zero. As shown in Fig.9, the added load increases energy
                                                                                              demands, causing s to vanish before task completion. This
                                                                                              triggers an early stop, preventing energy use beyond what
                                                                                              was observed during training. This mechanism enables
                                                                                              energy-based task completion and acts as a safety stop in the
                                                                                              presence of unexpected interactions, as further demonstrated
Figure 8. Snapshots of the unloaded (top) and loaded (bottom)                                 in the DISHWASHER LOADING task. For details on that task
W RAP - AND - PULL robotic task, showing rope pickup, wrapping                                and additional analysis of the robot’s robustness to physical
around a drum, and pulling as the robot moves forward.                                        disturbances in this proof-of-concept, see App.E.4. A full
                                                                                              video of the robot experiments, including adaptability to
W RAP - AND -P ULL Robotic Task. In robotics, learning                                        unseen obstacles, and the repository implementing the GCF
interaction tasks from demonstrations is more challenging                                     framework are available at https://sites.google.
than learning free-space motions (Scherzinger et al., 2019;                                   com/view/geometric-contact-flows.
Le et al., 2021). GCF’s ability to model energy behav-
                                                                                                                                                0.5
iors and flexibly generalize to unforeseen states, makes it                                                Unloaded Pull                                    Loaded Pull
                                                                                                                            Lagrangian Action




well-suited for online robot control in interaction tasks. We                                              Loaded Pull                                      Unloaded Pull
                                                                                                           Demonstrations                       0.0
apply GCF to two robotics tasks: A WRAP - AND - PULL task
(detailed below) and a realistic DISHWASHER LOADING                                                                                             0.5
task (Simmoteit et al., 2025) (See App. E.4). The first task,                                                                                               Ambient Space
a proof of concept, showcases all the robot capabilities en-                                                                                    1.0         Latent Space
abled by the framework. Three kinesthetic demonstrations                                                                                              200     400      600   800
were recorded for training, in which the robot grasps a rope,                                                                                                  Time Steps
                                                                                              Figure 9. Position and Lagrangian action trajectories (left and right
wraps it around a drum, and pulls it along a specific tra-                                    plots) of the WRAP - AND - PULL task, for both the unloaded and
jectory (see Fig. 8). The ensemble generates a reference                                      loaded scenarios, using safe GCF.
dynamic trajectory using the measured robot state, which
is tracked by a low-level Cartesian impedance controller.                                     7. Conclusion
Setup details are in App. D.1.
                                                                                              Geometric Contact Flows (GCF) model dynamical systems
Our method is implemented using two different latent dy-                                      leveraging geometric inductive biases. It starts with a latent
namics: The stable (7b) and the safe (7c) formulations. Ta-                                   dynamics and uses contactomorphisms to adapt it while pre-
ble 5 reports the reproduction accuracy for all methods                                       serving its key features. To assess uncertainty, GCF employs
across five trials. The results indicate that the different la-                               an ensemble of contactomorphisms to ensure convergence
tent dynamics do not affect the GCF’s ability to learn and                                    to the data support. GCF has been successfully applied to
reproduce the task. In contrast, EF, NCDS and DHNN fail                                       both dynamics reconstruction and control tasks, covering a
to achieve satisfactory results. EF struggles to model the                                    wide range of problems including spring mesh simulation,
wrapping phase of the task, while DHNN lacks robustness to                                    quantum dynamics and robotic manipulation.

                                                                                          9
