A systematic comparison of hard- and soft-constrained physics-informed molecular machine learning with the Clapeyron equation
Jan Pavšek, Jan G. Rittig, Alexander Mitsos
Key points
From the paper's conclusion- Hard- and soft-constrained physics-informed molecular machine learning approaches are systematically compared on the prediction of vapor pressure, saturated liquid and vapor molar volumes, and enthalpy of vaporization as functions of temperature for single-species vapor-liquid equilibrium related by the Clapeyron equation.
- For the soft-constrained approach, the augmented Lagrangian method (ALM) improves constraint satisfaction by factor 2 and reduces training epochs compared to using a fixed penalty.
- The hard-constrained approach can reach on par accuracy with the soft-constrained approach at even higher thermodynamic consistency, making it most promising when thermodynamic consistency is critical, yet requiring tailoring the ML model architecture to the respective thermodynamic relation.
Abstract
In molecular machine learning (ML), significant progress has been made on integrating fundamental thermodynamic relations into ML models. Such physics-informed approaches can be categorized as hard-constrained, where the thermodynamic relations are embedded in the model architecture, and soft-constrained, where relations are included in the training loss. While both approaches have been applied to various property prediction tasks, a systematic comparison on experimental data is lacking. We herein compare hard- and soft-constrained approaches on a numerically challenging case study: the prediction of vapor pressure, saturated liquid and vapor molar volumes, and enthalpy of vaporization as functions of temperature for single-species vapor-liquid equilibrium, related by the exact Clapeyron equation. Furthermore, soft-constrained approaches in molecular ML typically balance data and physics losses with a fixed weighting factor, requiring careful tuning. To overcome this, we investigate the augmented Lagrangian method (ALM), well established in constrained optimization. We find that for the soft-constrained approach, using the ALM improves prediction performance in terms of constraint satisfaction by factor 2 and reduces training epochs compared to using a fixed penalty by 30%. Hence, in the soft-constrained approach, the use of the ALM is always recommended. The hard-constrained approach, which entails additional architectural design choices, can reach on par accuracy with the soft-constrained approach, at even higher thermodynamic consistency, reaching 12 orders of magnitude closer approximation of the Clapeyron equation. Overall, the hard-constrained approach is most promising when thermodynamic consistency is critical, yet requires tailoring the ML model architecture to the respective thermodynamic relation.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Hard- and soft-constrained physics-informed molecular machine learning approaches are systematically compared on the prediction of vapor pressure, saturated liquid and vapor molar volumes, and enthalpy of vaporization as functions of temperature for single-species vapor-liquid equilibrium related by the Clapeyron equation.
- For the soft-constrained approach, the augmented Lagrangian method (ALM) improves constraint satisfaction by factor 2 and reduces training epochs compared to using a fixed penalty.
- The hard-constrained approach can reach on par accuracy with the soft-constrained approach at even higher thermodynamic consistency, making it most promising when thermodynamic consistency is critical, yet requiring tailoring the ML model architecture to the respective thermodynamic relation.
Readers' thoughts
No reader thoughts yet.
Related papers
- Recent progress in prediction of vapor pressure: Addressing the trade-off between accuracy and generalizability.Journal of physics. Condensed matter : an Institute of Physics journal · 2026
- Thermodynamically consistent machine learning model for excess Gibbs energyNature Communications · 2026
- Binary interaction parameters of a million mixtures for PCP-SAFT using deep learning.Digital discovery · 2026
- Differentiable Thermodynamic Phase-Equilibria for Machine Learning.Journal of chemical information and modeling · 2026
- Prediction of Pure-Component Thermodynamic Properties Using the Peng–Robinson Equation of State with Machine Learning-Derived Input ParametersIndustrial & Engineering Chemistry Research · 2026
- Thermodynamically Constrained Deep Learning for Hydrogen Sorption Prediction: Overcoming Classical Isotherm Generalization Failure through Physics-Informed Cross-Lithology Transferability.ACS omega · 2026