SNAP-FM: Sparse Nonlinear Accelerated Projection for Physics-Constrained Generative Modeling
Alaina Kolli, Theodoros Xenakis, Utkarsh Utkarsh, Pengfei Cai, Rafael Gomez-Bombarelli, Alan Edelman, Christopher Vincent Rackauckas
Abstract
Generative models have emerged as scalable surrogates for physical simulation, yet they offer no guarantee that their outputs respect the conservation laws, boundary conditions, and nonlinear invariants that govern the underlying physics. Constrained sampling closes this gap, enforcing such constraints exactly at inference time without retraining, but at a computational cost: projection, correction and trajectory-optimization steps are repeated during sampling, with these steps becoming expensive for nonlinear constraints. Standard ML frameworks exacerbate this: their dense tensor algebra and limited sparse solver composability obscure the structure that physical constraints naturally induce, making efficient batched nonlinear optimization difficult to realize in practice. We address this bottleneck by exploiting the structure that sample-wise batching and local PDE couplings induce in the projection subproblems -- namely, block-sparse Jacobian and KKT systems -- exposing this structure using ExaModels.jl and solving the resulting sparse nonlinear programs with MadNLP.jl and GPU sparse factorization. Applied to Physics-Constrained Flow Matching (PCFM), on PDE benchmarks with linear, nonlinear, one-dimensional, and two-dimensional constraints, this approach accelerates nonlinear constraint projection while maintaining constraint satisfaction. These results show that sparse GPU nonlinear optimization is a practical foundation for constrained generative sampling in scientific machine learning.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CE
Related papers
Dually Constrained Parameter Projection for Continual Learning
Shared title terminologycs.LGBowyn Tan, Zhilong Zheng, Yang Guan et al.
TDGT: A Tabular Data Generation Toolkit supporting adaptive GPU-accelerated Bayesian mixture models, diffusion-based models, and latent-space generative modeling
Shared title terminologycs.LGVasileios C. Pezoulas, Nikolaos S. Tachos, Eleni Georga et al.
CrysLDM: Latent Diffusion Model for Crystal Material Generation
Shared title terminologycs.LGSubhojyoti Khastagir, Kishalay Das, Pawan Goyal et al.
HKD-ACPA: Heterogeneous Knowledge Distillation Adversarial Cyber-Physical Attacks in Power Grids
Shared title terminologycs.LGJunhao Ren, Honglin Gao, Shuo Feng et al.
Hybrid state-space and attention neural operators for nonlinear structural dynamics under environmental loading
Shared title terminologycs.LGAnastasios Stamou, Rui Teixeira, Maria Nogal et al.
QASparse: Query-Adaptive Sparse Attention with Tailored Budgets and Tokens
Shared title terminologycs.LGZhiyuan Chen, Zihao Yang, Quanjiang Li et al.