                              Geometric Contact Flows: Contactomorphisms for Dynamics and Control

Each transformation φ(t) : (M, η) → (M, η ′ ) is smooth,              fixing this value (Udrişte, 2000). In symplectic geometry
invertible, and preserves the contact structure up to a               for conservative systems, s remains constant and is not a
conformal factor, i.e., φ∗ η = aη ′ , a ∈ R (Zadra, 2023).            dynamic variable. In contrast, contact geometry captures
So, φ(t) constitutes a one-parameter family of contact-               energy dissipation or external input through the evolution
preserving diffeomorphisms, a.k.a. contactomorphisms.                 of s. Our proposed Geometric Contact Flows build on this
More generally, a contactomorphism maps between distinct              dual perspective , modeling the dynamics by harnessing
contact manifolds φ : (M, η) → (M, η ′ ). In GCFs,                    the contact interpretation while generalizing it through the
contactomorphisms are employed both to represent integral             Riemannian perspective. Further details on these concepts,
dynamic contact flows x(t) within a single manifold and               along with a broader comparison between contact and
as a mapping between ambient and latent spaces.                       symplectic structures, are provided in App. A.
Contact Flows as Riemannian Geodesics. Notably, the
dynamic contact flow x(t) on the contact manifold (M, η)              4. Contactomorphisms Learning
can be interpreted as a reparametrization of a geodesic on
                                                                      Latent Contact Hamiltonian Dynamics. Let (N , η ′ )
an augmented space–time Riemannian manifold (R × R, g),
                                                                      be a (2d + 1)-dimensional contact manifold, locally de-
where M = T ∗ R × R (Abraham & Marsden, 2008). In this
                                                                      fined by a set of canonical coordinates z = {q, p, s}, with
setting, we denote the state variables as q ∈ R, q̇ ∈ Tq R,
                                                                      q = {q1 , . . . qd }, p = {p1 , . . . pd }. In classical mechan-
p ∈ Tq∗ R, and s ∈ R, with x = {q, p, s}. This means
                                                                      ics, the conjugate variables qi and pi respectively represent
that the augmented Riemannian manifold is equipped with
                                                                      position and momentum, while s is the Lagrangian action.
a cotangent bundle T ∗ R endowed with a contact struc-
                                                                      As detailed in Sec. 3, the contact manifold can be inter-
ture. This connection between the contact and the Rieman-
                                                                      preted as the augmented cotangent bundle of a Riemannian
nian geometries arises from Maupertuis’ principle (López
                                                                      manifold RN , i.e., N := T ∗ RN × R, with q ∈ RN ,
& Martı́nez, 2000), which first adopts a variational perspec-
                                                                      {q, p} ∈ T ∗ RN and s ∈ R. A contact Hamiltonian dy-
tive by expressing the contact flow x(t) as the solution of a
                                                                      namics on the latent space (N , η ′ ) is defined via a contact
dynamic optimization problem,
                                                                      Hamiltonian function Hg (z), generating a flow φg such that,
            Z t1
        min      p(t) · q̇(t) − H(q(t), p(t), s(t)) dt.   (4)                      z(t) = φg (t)(z(0)),     t ∈ [0, t1 ].         (6)
       q,p,s   t0
                                                                      The choice of Hg (z) induces a metric ĝ on RN , making
This formulation, defined on T ∗ R × R, can be trans-                 φg follow its geodesics.
ferred to T R × R by mapping the 1-form p to vector
q̇ via Rthe Riemannian connection in Eq. (1), resulting in            We propose to preserve the properties of the dynamical
         t                                                            system Hg in the ambient space through a suitable coordi-
minq̇ t01 L(q(t), q̇(t)) dt, where L is the transformed cost
functional, i.e., the Lagrangian. This dynamic optimization           nates change, i.e., via a contactomorphism. The choice of
can be reparametrized    using s as the independent variable,         the latent dynamics does not affect the reconstruction of
                                                                      the target dynamics on the data support, but instead serves
            p
with ds = H(q, p, s) − HV (q) dt, where HV denotes the
potential energy component of the Hamiltonian (Abraham                as an inductive bias to guide the generalization. Possible
& Marsden, 2008; Udrişte, 2000). In this setting, s plays            choices for Hg are,
the role of arc-length to be minimized on the Riemannian                                 1 ⊤     1
manifold and corresponds to the action associated with the                        HgA =    p p + q⊤ q,                           (7a)
                                                                                         2       2
Lagrangian L. The problem then reduces to a geodesic                                     1       1
computation on R × R,                                                             HgB = p⊤ p + q⊤ q + s,                         (7b)
                                                                                         2
                                                                                                2        
                     Z s1 p                                                                1 ⊤     1 ⊤
                                                                                  Hg C =     p p + q q + s s2 .                  (7c)
               min          ĝ(q̇(s), q̇(s), s) ds.       (5)                              2       2
                    q̇   s0
                                                                      For instance, to ensure periodic orbits in the target dynamics,
The modified Riemannian metric ĝ is induced by the Hamil-
                                                                      we can use the simple harmonic oscillator (7a), as our
tonian H and depends on the variable s. This dependence
                                                                      latent dynamics. Other dynamical systems, such as the
reflects how the shape of trajectories is affected by their
                                                                      example shown in Fig. 1, naturally converge to an attractor.
own length, capturing the influence of non-conservative
                                                                      This behavior can be induced in the latent dynamics by
forces on the system’s evolution. By modifying the metric ĝ,
                                                                      incorporating a damping term. We use the dependence
one can alter the system’s dynamics, providing a geometric
                                                                      of the contact Hamiltonian on the Lagrangian action s,
approach for controlling or shaping its trajectories (Udrişte,
                                                                      to govern the variation of the system’s total energy. This
2003; López & Martı́nez, 2000). The resulting geodesics
                                                                      relationship is expressed as follows (Bravetti et al., 2017),
lie on R × R, as they depend on the reference level of s.                                              Rt
They can be projected onto the configuration space R by                               H(t) = H(0) e 0 ∂H/∂s dτ ,                  (8)

                                                                  4
