Abstract
Reliable training of generative adversarial networks (GANs) typically require massive datasets in order to model complicated distributions. However, in several applications, training samples obey invariances that are a priori known; for example, in complex physics simulations, the training data obey universal laws encoded as well-defined mathematical equations. In this paper, we propose a new generative modeling approach, InvNet, that can efficiently model data spaces with known invariances. We devise an adversarial training algorithm to encode them into data distribution. We validate our framework in three experimental settings: generating images with fixed motifs; solving nonlinear partial differential equations (PDEs); and reconstructing two-phase microstructures with desired statistical properties. We complement our experiments with several theoretical results.
Introduction
Generative Adversarial Networks (GANs) have achieved remarkable success in synthesizing realistic data. However, they suffer from high sample complexity, often requiring millions of examples to learn a distribution from scratch. This "blank slate" approach is inefficient in scientific and engineering domains where the underlying physical or mathematical "rules of the game"—such as fluid dynamics equations or material properties—are already known.
The authors propose InvNet (Invariance Network), a framework designed to bake these known invariances directly into the generative process. By incorporating prior knowledge, InvNet aims to make training faster, more stable, and physically accurate, even in scenarios with limited or no training data.
The InvNet Framework
InvNet modifies the standard GAN minimax game by introducing an invariance loss term ($L_I$) into the objective function. This term penalizes the generator if its outputs violate pre-specified, analytically defined constraints.
Optimization and Architecture
Training involves a three-step alternating update rule:
- Generator Update: Standard adversarial loss to fool the discriminator.
- Discriminator Update: Standard adversarial loss to distinguish real from fake.
- Invariance Update: Generator is updated specifically to minimize the invariance loss.
A critical technical challenge is the "Discriminator Conflict": if a generator is forced to produce a feature (like a watermark) not present in the training data, a standard discriminator will reject it. InvNet addresses this by using projection operators to "blind" the discriminator to specific invariant regions. Additionally, the authors employ Extra-Gradient Descent (EGD) to ensure stable convergence to a Nash equilibrium.
Experimental Validation
The framework was tested across three distinct domains:
- MNIST Motifs: Learning to overlay specific patterns (e.g., '+' or 'x') onto handwritten digits.
- Burgers' Equation: Solving a fundamental non-linear PDE from fluid mechanics for both viscid and inviscid cases.
- 2D Microstructures: Generating polymer phase separation images governed by the Cahn-Hilliard equation.
Key Results and Insights
- Data-Free Learning: In cases where invariances perfectly define the target distribution (e.g., certain physical systems), InvNet can be trained without any external dataset, using the PDE itself as the supervisor.
- Performance and Speed: For the Burgers' equation, InvNet achieved relative $\ell_2$ errors comparable to numerical solvers while generalizing to unseen boundary conditions. In microstructure generation, InvNet was 3x faster than traditional methods (including training time) and orders of magnitude faster during inference (0.01s per image).
- Amortized Inference: Unlike traditional numerical solvers that require expensive re-simulation for new conditions, a trained InvNet provides near-instantaneous generation.
Conclusion
InvNet demonstrates that integrating domain-specific invariances into deep generative models significantly reduces sample complexity and improves physical consistency. While current work focuses on 2D grids and linear stability theory, future research will explore extending these principles to 3D volumes, non-Euclidean domains, and more complex, non-differentiable invariances.
Summary updated