                           Geometric Contact Flows: Contactomorphisms for Dynamics and Control

 symplectic structure by doubling the manifold’s dimension
 to represent non-conservative dynamics, at the cost of
                                                                      f                                  f
 introducing physically–meaningless variables. We approach
 this problem by leveraging contact Hamiltonian dynamics.
 Contact Hamiltonian Learning. Contact Hamiltonian                           q2                 q1             q2                 q1
 theory (Kholodenko, 2013) extends the symplectic manifold
 by introducing a single, physically meaningful variable, to
 account for energy dissipation and generation. This makes           Figure 3. The same scalar function f , via its 1-form df , yields two
 contact geometry particularly well-suited for modeling non-         distinct vector fields (shown as streamlines) under different geo-
 conservative systems (Bravetti et al., 2017). The term con-         metric structures. In Riemannian geometry (left), the streamlines
 tact refers to the geometric relationship between the dynam-        correspond to the gradient flow, following the direction of steepest
                                                                     ascent or descent of f , acting as a potential. In contrast, in contact
 ical solutions and the energy constraints, where solutions
                                                                     geometry (right), the function f describes an energy, and the angle
“touch” the constraints but do not violate them (Geiges,
                                                                     between the streamlines and the level curves of f , depends on the
 2001). Zadra (2023) proposes to parametrize the contact             energy dissipation in the dynamics, governed by Eq. (8).
 Hamiltonian with a neural network to model a broad class
 of dynamical systems, but this is unstable beyond the
 training data, hindering its generalization capabilities. Our       such cases, it defines a Finslerian structure, generalizing
 approach overcomes these limitations using the contact              the Riemannian structure (Chern, 1996). The Riemannian
 Hamiltonian framework as an inductive bias to design con-           metric g establishes a correspondence between a differential
 tact diffeomorphisms. These are later employed to design            1-form df and a vector field Xf through the relation,
 uncertainty-aware geodesics for robust generalization.
                                                                                    df (X) = g(Xf , X),        ∀X ∈ T M.                (1)

 3. Preliminaries                                                    The vector field Xf is orthogonal to the level sets of f ,
                                                                     which can be interpreted as a potential function (Fig. 3).
Vector Fields and 1-Forms. Let M be a smooth compact
                                                                     Contact Geometry. A 1-form η on a (2d+1)-dimensional
manifold. The tangent space at x ∈ M, denoted Tx M,
                                                                     manifold M is called a contact form if it satisfies the maxi-
consists of all tangent vectors v to M at x. The tangent
                                                                     mal non-integrability condition (Geiges, 2008). This means
bundle T M is the union of all tangent spaces. An element
                                                                     that the wedge product of η with the d-times repeated wedge
of T M is a pair (x, v). The assignment of a specific tangent
                                                                     product of its exterior derivative dη, is non-zero everywhere
vector to every point in the manifold is described by a
                                                                     on M: η ∧ (dη)d ̸= 0. A contact manifold is then the pair
vector field X : M → T M. Given a function f : M → R,
                                                                     (M, η). Given the 1-form df , the contact form η uniquely
the 1-form df : T M → R generalizes the gradient from
                                                                     determines a vector field Xf through the relation,
Euclidean spaces by measuring the variation of f in x
along a direction identified by v. The set of all the 1-forms                df = dη(Xf , X) − LXf η(X), ∀ X in T M,                    (2)
df ∀ (x, v) is the cotangent bundle T ∗ M, the union of all
the cotangent spaces Tx∗ M. The contact and Riemannian               where LXf denotes the Lie derivative along Xf (Geiges,
geometries provide two distinct mechanisms to associate              2001). The non-integrability condition ensures that η
a 1-form to a vector field, thereby establishing different           imposes nonholonomic constraints, restricting the allowable
connections between the tangent and cotangent bundles. In            directions of motion without confining the dynamics to a
simpler terms, these geometries link the same function f             submanifold. Consequently, unlike the symplectic case,
to different vector fields X, as illustrated in Fig. 3.              motion is not constrained to the level sets of f (Cruz,
                                                                     2018). In both symplectic and contact geometry, f is
Riemannian Geometry. A Riemannian metric g : T M ×                   typically referred to as the Hamiltonian H and interpreted
T M → R is a smooth, symmetric, and positive-definite                as energy, with the associated vector field written as
bilinear map that defines an inner product on the tangent            XH . Consequently, while symplectic geometry is limited
spaces. The length of a smooth curve    x(t) : [t0 , t1 ] → M        to describing conservative dynamical systems, contact
                             R t1 p
w.r.t. the metric g is l = t0 g(ẋ(t), ẋ(t))dt, where               geometry offers a more general framework for modeling a
ẋ(t) ∈ Tx(t) M is the vector tangent to the curve at x(t).          broader range of dynamical behaviors (Bravetti et al., 2017).
The curve minimizing this length between two points x(t0 )
                                                                     The integral flow x(t), generated by the vector field XH
and x(t1 ) on M is called a geodesic. Geodesics generalize
                                                                     from an initial point x0 , defines a one-parameter family
straight lines in Euclidean space to curved spaces, repre-
                                                                     of transformations φ(t), mapping x0 → x(t) within the
senting the shortest paths in the geometry induced by g.
                                                                     contact manifold (M, η):
The geometric structure g(ẋ(t), ẋ(t)) does not need to be
symmetric with respect to ẋ to measure curve lengths. In                         x(t) = φ(t)(x0 ) : [0, T ] ⊂ R → (M, η).              (3)

                                                                 3
