Energy Loss Functions for Physical Systems
Oumar Kaba, Kusha Sareen, Daniel Levy, Siamak Ravanbakhsh
Abstract
Effectively leveraging prior knowledge of a system's physics is crucial for applications of machine learning to scientific domains. Previous approaches mostly focused on incorporating physical insights at the architectural level. In this paper, we propose a framework to leverage physical information directly into the loss function for prediction and generative modeling tasks on systems like molecules and spins. We derive energy loss functions assuming that each data sample is in thermal equilibrium with respect to an approximate energy landscape. By using the reverse KL divergence with a Boltzmann distribution around the data, we obtain the loss as an energy difference between the data and the model predictions. This perspective also recasts traditional objectives like MSE as energybased, but with a physically meaningless energy. In contrast, our formulation yields physically grounded loss functions with gradients that better align with valid configurations, while being architecture-agnostic and computationally efficient. The energy loss functions also inherently respect physical symmetries. We demonstrate our approach on molecular generation and spin ground-state prediction and report significant improvements over baselines. Code is available at https://github.com/kushasareen/energy_loss .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on21
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
- Your classifier is secretly an energy based model and you should treat it like oneWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICLR 2020 · 643 citations
- Understanding Diffusion Objectives as the ELBO with Simple Data AugmentationDiederik P. Kingma, Ruiqi GaoNeurIPS 2023 · 358 citations
- Equivariant Flows: Exact Likelihood Generative Learning for Symmetric DensitiesJonas Köhler, Leon Klein, Frank NoéICML 2020 · 330 citations
Related papers
- Physics-Informed Regularization for Domain-Agnostic Dynamical System ModelingZijie Huang, Wanjia Zhao, Jingdong Gao, Ziniu Hu et al.NeurIPS 2024 · 12 citations
- Efficient Training of Energy-Based Models Using Jarzynski EqualityDavide Carbone, Mengjian Hua, Simon Coste, Eric Vanden-EijndenNeurIPS 2023 · 21 citations
- Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative ModelingMichal Balcerak, Tamaz Amiranashvili, Antonio Terpin, Suprosanna Shit et al.NeurIPS 2025 · 33 citations
- Learning Smooth and Expressive Interatomic Potentials for Physical Property PredictionXiang Fu, Brandon M. Wood, Luis Barroso-Luque, Daniel S. Levine et al.ICML 2025
- Time-Reversal Symmetric ODE NetworkIn Huh, Eunho Yang, Sung Ju Hwang, Jinwoo ShinNeurIPS 2020 · 29 citations
