Continuity-Preserving Convolutional Autoencoders for Learning Continuous Latent Dynamical Models from Images

Aiqing Zhu, Yuting Pan, Qianxiao Li

Abstract

Modeling continuous physical processes from discrete visual observations remains a significant challenge in the intersection of computer vision and dynamical systems. While standard convolutional autoencoders (CNN-AEs) are effective at dimensionality reduction, they often produce discontinuous latent trajectories due to the discrete nature of pixel-based representations. This "discretization gap" hinders the ability of latent dynamical models, such as Neural Ordinary Differential Equations (ODEs), to accurately capture underlying physics. We present Continuity-Preserving Convolutional Autoencoders (CpAEs), a framework that enforces smoothness in convolutional filters to ensure continuous latent representations. Our approach demonstrates superior stability and predictive accuracy across simulated and real-world datasets, including complex pendulum systems.

Introduction

In scientific computing and robotics, physical systems are frequently observed through high-dimensional image sequences. To model these systems, a common pipeline involves compressing images into a low-dimensional latent space using an autoencoder and subsequently learning the evolution of these states using differential equations. However, a fundamental conflict exists: physical motion is continuous, but image data is inherently discrete. As an object moves across a sensor, pixel values change abruptly. Standard CNN encoders often map these discrete "pixel jumps" to jagged, discontinuous paths in the latent space. Because Neural ODEs and other physics-informed models assume smooth, continuous trajectories, they struggle to fit these irregular mappings, leading to poor long-term forecasting and a failure to recover the true system dynamics.

The Discretization Gap and $\delta$-Continuity

The core issue identified in this research is that standard CNNs are not designed for temporal continuity relative to the physical state. To address this, the authors introduce the concept of $\delta$-continuity—a relaxation of Lipschitz continuity specifically tailored for discrete image grids. This framework provides the mathematical basis for ensuring that small changes in the physical state of an object result in bounded, small changes in the latent representation.

Continuity Regularization

The primary methodological contribution is a novel continuity regularizer applied to the convolutional filters. Based on nonlocal operators, this penalty (referenced as Eq. 6 in the original work) discourages sharp gradients in the filter weights. By smoothing the "receptive fields" of the encoder, the network becomes less sensitive to the exact alignment of an object on the pixel grid, effectively smoothing the transition as an object moves from one pixel to the next.

The Role of Filter Size

Contrary to the modern trend in computer vision which favors small $3 \times 3$ filters, this research proves (Theorem 3.1) that larger filter sizes are mathematically necessary to preserve continuity when mapping from discrete pixels to a continuous manifold. Larger filters allow the encoder to integrate information over a wider spatial area, preventing the latent state from "jumping" when an object crosses a pixel boundary.

Experimental Framework

The efficacy of CpAEs was evaluated using a two-stage training process: first, the CpAE is trained to establish a stable latent manifold; second, a latent dynamical model (such as a Neural ODE or a Volume-Preserving Network) is trained on the resulting trajectories. Testing was conducted on a variety of systems:

  • Simulated Environments: Circular motion, a Damped Pendulum, and an Elastic Pendulum (testing non-rigid motion).
  • Real-World Data: High-speed video of a Double Pendulum and a Swing Stick, characterized by chaotic motion and complex visual patterns.

Performance was quantified using Valid Prediction Time (VPT)—the duration for which the model's predictions remain within a specific error tolerance—and Valid Prediction Frequency (VPF).

Results and Discussion

CpAEs significantly outperformed standard CNN-AE baselines across all metrics. On the Damped Pendulum task, the CpAE achieved a VPT of 99.2, nearly doubling the 50.7 VPT achieved by a standard CNN-AE paired with a Neural ODE.

In real-world scenarios like the Double Pendulum, CpAEs proved more robust than specialized physics-informed models like Hamiltonian Neural Networks (HNNs) and SympNets. These baselines often failed because their standard encoders provided "noisy" or discontinuous latent inputs that violated the underlying physical assumptions of the models. Qualitatively, visualizations of the latent space revealed that CpAEs produce clean, oscillatory trajectories that mirror the true physical manifold, whereas standard AEs produce fragmented and overlapping clusters.

Conclusion and Future Work

This work demonstrates that the bottleneck in learning latent dynamics from video is often the encoder's lack of spatial smoothness. By regularizing convolutional filters and optimizing filter scale, CpAEs bridge the gap between discrete observations and continuous physical modeling. While the current theory focuses on rigid body motion, future research may extend these continuity priors to fluid dynamics and highly deformable bodies. Additionally, the principles of continuity-preserving mappings could be adapted for Vision Transformers (ViTs), where patch-based operations present similar discretization challenges.

Summary updated

BibTeX
@inproceedings{zhu2025continuity,
  author = {Aiqing Zhu and Yuting Pan and Qianxiao Li},
  title = {{Continuity-Preserving Convolutional Autoencoders for Learning Continuous Latent Dynamical Models from Images}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=MxALfOAnXv},
}
Figure