Abstract
Deep neural networks, when optimized with sufficient data, provide accurate representations of high-dimensional functions; in contrast, function approximation techniques that have predominated in scientific computing do not scale well with dimensionality. As a result, many high-dimensional sampling and approximation problems once thought intractable are being revisited through the lens of machine learning. While the promise of unparalleled accuracy may suggest a renaissance for applications that require parameterizing representations of complex systems, in many applications gathering sufficient data to develop such a representation remains a significant challenge. Here we introduce an approach that combines rare events sampling techniques with neural network optimization to optimize objective functions that are dominated by rare events. We show that importance sampling reduces the asymptotic variance of the solution to a learning problem, suggesting benefits for generalization. We study our algorithm in the context of learning dynamical transition pathways between two states of a system, a problem with applications in statistical physics and implications in machine learning theory. Our numerical experiments demonstrate that we can successfully learn even with the compounding difficulties of high-dimension and rare data.
Introduction
In scientific computing, solving high-dimensional partial differential equations (PDEs) is a fundamental challenge. While Deep Neural Networks (DNNs) are theoretically capable of overcoming the "curse of dimensionality," they face a significant practical hurdle: Data Acquisition. In physical systems, data is typically generated from a physical measure, such as the Boltzmann distribution. If the most critical features of a solution—such as transition states—occur in regions where the system rarely visits, naive random sampling will fail to capture the necessary physics, leading to models that do not generalize.
The Challenge of Rare Events
Many physical processes, like protein folding or chemical reactions, are defined by transition pathways between stable states. These pathways often pass through regions of extremely low probability density.
As illustrated in the density plot above, the probability of sampling the transition region can be several orders of magnitude lower than the stable states. Without specialized sampling, a neural network training on this data will lack the information required to resolve the transition, effectively "guessing" the path between known regions.
Active Importance Sampling Framework
The authors propose an Active Importance Sampling framework that creates a feedback loop between the model and the data generation process. The method treats the PDE as a variational minimization problem (similar to the Deep Ritz method) and employs several key techniques:
- Umbrella Sampling & Replica Exchange: The space is partitioned into sampling "windows" based on the current value of the neural network's output. Replica exchange allows samples to swap between these windows, ensuring the sampler explores the entire landscape without getting stuck in local minima.
- Active Learning: The sampling windows are defined dynamically by the model. As the network learns the transition path, it automatically directs the sampler to focus on the "transition state" region—the narrow ridge between stable states.
- Variance Reduction: The researchers prove that this importance sampling approach reduces the asymptotic variance of Stochastic Gradient Descent (SGD) updates, which is critical for stable optimization in high dimensions.
Optimization and Generalization
The paper argues that generalization error in these physical problems is often a direct consequence of high-variance gradient estimates. When sampling is poor, the empirical loss landscape becomes "rugged" and physically inaccurate compared to the true population loss.
As shown in the comparison of committor functions, the empirical loss minimizer (yellow) can result in a non-physical step function when data in the transition region is missing. By contrast, the population loss minimizer (red) closely tracks the exact solution. Active importance sampling allows the empirical minimizer to converge toward this ideal population solution.
High-Dimensional Scalability
The algorithm's performance was validated on several complex systems:
- Müller-Brown Potential: A 2D benchmark representing a complex, curved energy landscape where standard sampling failed to resolve the transition path.
- Allen-Cahn System: A 144-dimensional state space discretized on a lattice. The algorithm successfully identified the "hourglass-shaped" nucleation pathway, a feat that would be impossible for traditional grid-based PDE solvers.
Conclusion
By framing the discovery of transition pathways as a high-dimensional classification problem and integrating active sampling, this work demonstrates that DNNs can solve complex physical problems even when the objective is dominated by rare events. This "closed-loop" approach between model training and data generation is essential for the future of scientific machine learning in high-dimensional spaces.
Summary updated