Forced Variational Integrator Networks for Prediction and Control of Mechanical Systems

Aaron J. Havens, Girish Chowdhary

Abstract

This paper introduces Forced Variational Integrator Networks (FVINs), a novel class of physics-informed neural networks designed to learn the dynamics of non-conservative mechanical systems. By embedding the Discrete Lagrange-d’Alembert Principle into the network architecture, FVINs account for external forces and dissipation while maintaining long-term physical consistency. Experimental results on simulated and real-world systems demonstrate that FVINs exhibit superior data efficiency, interpretability, and generalization compared to standard deep learning models.

Introduction

Deep learning is increasingly applied to robotic control and physical system prediction. However, standard neural networks, such as Residual Networks (ResNNs), often fail to respect fundamental physical laws like energy conservation. This leads to "unphysical" behaviors, such as energy gain in passive systems or violation of constraints. While previous Variational Integrator Networks (VINs) addressed conservative systems, they lacked the ability to model real-world non-conservative effects like friction and motor inputs. FVINs bridge this gap by providing a framework that incorporates external forces while preserving the structural benefits of variational integrators.

Methods

The core of FVIN is the Discrete Lagrange-d’Alembert Principle. Instead of discretizing differential equations of motion, which can lead to numerical drift, FVINs discretize the action integral. This ensures the model respects the underlying geometry of the system's state space.

FVIN Architecture: The model uses an encoder-decoder structure to map raw observations to a configuration space where physics-based transition blocks operate.

The architecture parameterizes two separate neural networks: one for Potential Energy ($V_\theta$) and another for Forcing/Damping ($F_\phi$). This separation allows for high interpretability. Two variants are proposed: Velocity-Verlet (VV-FVIN) for position and velocity data, and Stormer-Verlet (SV-FVIN) for position-only measurements. For high-dimensional inputs like pixels, an autoencoding structure maps data into a latent configuration space.

Results and Key Insights

FVINs were evaluated on a damped pendulum, a damped cartpole, and a real-world Quanser-Qube Servo 2. A striking finding was the model's ability to generalize to unseen control regimes. FVINs trained only on data with random control inputs could accurately predict passive dissipation (zero control), whereas standard ResNNs failed to distinguish between external motor forces and internal friction.

Performance Comparison: FVIN (cyan) accurately tracks ground truth (dashed) across 400 time steps under both random and zero control inputs, while the ResNN baseline (red) diverges significantly.

Key results include:

  • Long-term Prediction: In the damped pendulum test, FVIN almost exactly tracked the ground truth for 400+ time steps, while the ResNN baseline diverged significantly after the training horizon.
  • Control Performance: When used inside a Model Predictive Control (MPC) loop, FVIN achieved a 100% success rate in the pendulum swing-up task using only 5 training trajectories, compared to a 12% success rate for ResNN.
  • Interpretability: Because the model separates potential from forcing, users can "turn off" learned friction or scale learned gravity to simulate different environments.

Conclusion

FVINs provide a data-efficient and physically consistent framework for modeling mechanical systems. While currently tested on low-dimensional systems (1-2 degrees of freedom), they offer a promising path toward interpretable and reliable robotic control. Future work will explore scaling to higher-dimensional systems and integrating FVIN with Discrete Mechanics and Optimal Control (DMOC) pipelines.

Summary updated

BibTeX
@inproceedings{havens2021forced,
  author = {Aaron J. Havens and Girish Chowdhary},
  title = {{Forced Variational Integrator Networks for Prediction and Control of Mechanical Systems}},
  booktitle = {L4DC},
  year = {2021},
}
Figure