Embedding Hybrid Systems into Continuous Latent Vector Fields

Sangli Teng, Hang Liu, Koushil Sreenath

Introduction

Hybrid systems model processes that combine continuous-time evolution with discrete, instantaneous resets. A classic example is a bipedal robot: its movement is continuous until a foot strikes the ground, triggering a sudden jump in the system's state dynamics. While highly expressive, these systems are notoriously difficult to optimize using modern machine learning techniques. Standard gradient-based optimization—the engine behind deep learning—relies on smoothness. Because hybrid systems are mathematically discontinuous at reset points, they often cause standard algorithms to fail.

Existing methods typically attempt to partition data into different "modes" or use complex event functions to trigger resets. However, these approaches are frequently combinatorially explosive or numerically unstable. This paper asks a fundamental question: Can we represent an intrinsically discontinuous system as a globally continuous one by embedding it in a higher-dimensional space?

The authors answer this affirmatively, proving that any $n$-dimensional hybrid system can be embedded into a continuous $m$-dimensional latent space (where $m > 2n$). Building on this theory, they introduce CHyLL++, a latent Neural ODE framework that learns complex, discontinuous dynamics from raw time-series data by "gluing" them into a smooth manifold.

Theoretical Foundation: The "Hybrifold" Embedding

The theoretical backbone of this work relies on differential topology, specifically Transversality Theory and the Whitney Embedding Theorem. The authors prove that if an $n$-dimensional hybrid system is embedded into a Euclidean space of dimension $m > 2n$, one can generically find a continuous vector field that describes its dynamics.

Essentially, the discontinuous edges of the state space can be "glued" together in this higher-dimensional space to create a smooth, continuous manifold, which the authors term a "Hybrifold." This $2n+1$ rule is not merely a heuristic; it is a strict theoretical bound ensuring there is enough geometric "room" in the latent space to resolve discontinuities without creating self-intersections.

The CHyLL++ Framework

Translating this theory into a practical algorithm, the authors propose CHyLL++ (Continuous Hybrid System Learning in Latent Space ++). The architecture is designed to map discontinuous observations into a smooth latent space where standard differential equation solvers can operate. It consists of three main components:

  1. Encoder ($f_\theta$): Maps the discontinuous state space into a continuous latent space.
  2. Latent Vector Field ($V_\theta$): A Neural ODE that evolves the state smoothly over time within the latent space.
  3. Decoder ($f^{-1}_\theta$): Maps the latent state back to the original observation space.

To train this architecture effectively, CHyLL++ introduces specialized loss functions:

  • Gluing Loss ($L_g$): Explicitly forces the pre-reset and post-reset points to map to the exact same location in the latent space, effectively closing the discontinuous gap.
  • Latent Consistency Loss ($L_z$): Ensures the predicted latent trajectory matches the encoded observations.
  • Velocity Compatibility Loss ($L_v$): Encourages matching the "incoming" and "outgoing" velocities at reset points to ensure $C^1$ continuity in time.

Experiments and Key Results

The authors evaluated CHyLL++ on several systems with challenging geometries, ranging from analytical manifolds to complex physical simulations. Datasets included an analytical 1D system, 2D manifolds (a Torus and a non-orientable Klein Bottle), and physical simulations like a 3D Bouncing Ball and a 6-dimensional Three-Link Walker.

Performance and Robustness: CHyLL++ significantly outperformed existing baselines, including standard Neural ODEs, Latent ODEs with RNN encoders, and the original CHyLL algorithm. On the Torus and Klein Bottle datasets, CHyLL++ achieved Mean Squared Errors (MSE) nearly an order of magnitude lower than previous state-of-the-art methods.

In the highly challenging 3D Bouncing Ball experiment, all baseline methods either diverged, suffered from ill-conditioning, or collapsed the latent space entirely. CHyLL++ was the only method capable of accurately reconstructing the square-wave velocity patterns and complex impact trajectories. Furthermore, the model successfully learned the topology of the underlying manifolds purely from time-series data.

Key Insights

  • Consistency is Critical: Ablation studies revealed that the Latent Consistency Loss ($L_z$) is the single most important factor for the model's success. Without it, the model fails to accurately recover the underlying flow.
  • Extrinsic Smoothness: While the system remains intrinsically discontinuous in its original state space, its extrinsic representation in the latent space is smooth. This allows the Neural ODE to "see" a continuous path where a jump previously existed.
  • Implicit Velocity Matching: The authors found that the velocity compatibility loss ($L_v$) was often redundant. The finite Lipschitz constant of the neural network naturally encourages smooth velocity transitions, implicitly handling $C^1$ continuity.

Limitations and Future Directions

While CHyLL++ presents a significant step forward, the authors note a few limitations. First, the current mathematical proof assumes the "guard" (the surface where resets occur) is smooth. Real-world systems often feature "corners" or piecewise smooth guards, which will require further theoretical expansion.

Second, while the latent flow is continuous, the decoder must still map back to a discontinuous state space. The authors suggest that "atlas learning"—using multiple local coordinate charts—could make the decoder more robust to these jumps. Finally, while $m > 2n$ provides a safe theoretical bound, many systems might be embeddable in fewer dimensions. Discovering the minimal latent dimension for any given hybrid system remains an open and exciting challenge for future research.

Summary updated

BibTeX
@inproceedings{teng2026embedding,
  author = {Sangli Teng and Hang Liu and Koushil Sreenath},
  title = {{Embedding Hybrid Systems into Continuous Latent Vector Fields}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=jk66MtkUS1},
}
Figure