arXiv:2611.01432physics.comp-phNov 2026

Manuscript Offprint

arXiv:2611.01432

Variational learning of energy-stable macroscopic flow equations from microscopic laws

Pei Ge, Huan Lei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present a generalized variational approach for constructing energy-stable macroscopic partial differential equations (PDEs) directly from microscopic physical laws. Rather than fitting the PDE evolution for prescribed variables from macroscopic trajectories, we construct an extendable variational structure by adjoining auxiliary variables to seek autonomous reduced dynamics in an enlarged state space. By defining these variables as micro–macro encoders with explicit microscopic counterparts, we cast the learning problem as the sample-wise joint identification of the reduced state representation and the variational ingredients from time-discrete data, enabling systematic law-level transfer across scales. The resulting PDEs preserve frame indifference, physical constraints, and energy stability by construction, and admit a fluctuation–dissipation-consistent stochastic extension. Numerical results for the non-Newtonian hydrodynamics of polymeric fluids show that the learned models capture the viscoelastic responses induced by nonlinear and heterogeneous molecular interactions beyond empirical closures.

1 Introduction

Multiscale modeling seeks tractable macroscopic descriptions of collective behavior emerging from microscopic dynamics [1]. When clear scale separation exists, asymptotic reduction can often guide the choice of resolved variables and derive their effective dynamics. Micro–macro frameworks such as the heterogeneous multiscale method [2] and the equation-free approach [3] exploit such separation by using short microscopic simulations to infer macroscopic dynamics on the fly. However, for systems without clear scale separation, the situation is fundamentally less settled. While macroscopic reduced models are often formulated as autonomous partial differential equations (PDEs) for selected field variables, such as density, velocity, temperature, or other structural variables, the prescribed set of variables may not admit such an autonomous closure. Classical moment approaches [4, 5] enlarge the resolved state with higher-order moments, while the adequacy of the prescribed moment set remains problem dependent. For such systems, an adequate set of resolved variables and closure relations are generally unknown a priori, and transferring the microscopic physical laws to a structurally admissible reduced description remains a central challenge.

Recent data-driven approaches, including sparse-regression [6, 7, 8, 9] and neural network (NN)-based [10] methods, have advanced the inference of reduced dynamics from spatiotemporal observations. Notably, machine learning (ML)-based moment closures have enabled kinetic-to-hydrodynamic reduction while preserving conservation laws [11]. Beyond closure inference, macroscopic models must also preserve the underlying structure, such as frame indifference, thermodynamic admissibility, and energy stability. Rooted in Onsager’s reciprocal relations [12, 13], variational and thermodynamic formulations [14, 15, 16, 17, 18, 19] encode the coupling of reversible transport and irreversible dissipation, yielding macroscopic models with energy stability by construction. Recent ML approaches [20, 21, 22, 23, 24, 25, 26, 27] identify the corresponding variational ingredients from macroscopic evolution data. Despite these advances, two fundamental difficulties remain for multiscale modeling. Existing learning formulations are generally based on pre-selected resolved variables [28]. This assumes that the chosen variables admit autonomous dynamics, which may not be guaranteed. Moreover, the reduced dynamics is often inferred from trajectories generated by microscopic simulations. Such trajectory-based learning accesses microscopic laws only through their projected macroscopic responses, rather than directly exploiting their explicit analytical form. Systematic law-level transfer in data-driven multiscale closure with physical constraints remains largely open.

In this work, we develop a generalized variational learning framework for constructing energy-stable macroscopic PDE models. The central novelty is the joint identification of the reduced state representation and its variational closure by directly exploiting the microscopic laws, rather than fitting the evolution in PDE form for prescribed variables from macroscopic trajectories. The framework generalizes an extendable variational structure [16, 17, 19], adjoining a set of auxiliary field variables with explicit microscopic counterparts, to adaptively seek closed and structurally admissible reduced dynamics in an enlarged state space. Crucially, the auxiliary variables serve as physically interpretable micro–macro encoders, whose macroscopic evolution follows analytically from the microscopic dynamics. This analytical correspondence enables the microscopic laws to be directly transferred to the macroscopic closure. Consequently, the reduced state representation and variational ingredients are identified sample-wise from time-discrete data and parameterized by symmetry-preserving NNs. Upon variation, the learned structure yields autonomous PDEs satisfying physical and symmetry constraints, and enables stable numerical discretization and long-time simulation.

We illustrate the framework through the non-Newtonian hydrodynamics of polymeric fluids, a canonical multiscale problem where macroscopic stress and transport depend on microscopic molecular interactions [29, 30, 31]. The hydrodynamic equations contain an unclosed polymer stress coupled to constitutive equations for suitable structural variables. Classical models [32] typically prescribe low-dimensional moments of the polymer configuration distribution, such as end-to-end conformation tensors, together with empirical forms for stress, objective tensor derivatives, and relaxation dynamics. While these models capture qualitative viscoelastic responses, their molecular fidelity may deteriorate with nonlinear or heterogeneous molecular interactions. Recent data-driven approaches [33, 34] have learned constitutive models from rheological data and scattering-based microstructural trajectories. Within the present framework, we introduce auxiliary variables as generalized conformation tensors, interpreted as nonlinear features of the polymer configuration distribution with explicit microscopic counterparts. These tensors and variational ingredients are identified from time-discrete samples using the microscopic laws. The constructed variational structure generates the polymer stress and constitutive dynamics jointly, rather than fitting them separately at the PDE level as in [35, 36]. The resulting model captures molecular interaction effects beyond empirical closures, while preserving frame indifference, energy stability, and the positive definiteness of the conformation tensors, and further enables a stochastic extension with a consistent fluctuation–dissipation relation. Although demonstrated for polymeric fluids, the framework extends in principle to other multiscale problems, including kinetic-to-hydrodynamic reduction [11].

References (56)