Physics-Informed Guided Disentanglement in Generative Networks

Fabio Pizzati, Pietro Cerri, Raoul de Charette

TL;DR

This paper introduces a framework that combines the learning power of GANs with the explicit control of physics-based rendering. By using physics models to "guide" the image-to-image translation process, the authors successfully disentangle specific visual traits (like raindrops or fog) from general scene changes, resulting in more realistic, controllable, and versatile image generation.

What Problem Does This Paper Address?

Image-to-image (i2i) translation networks, such as CycleGAN or MUNIT, are excellent at learning complex style mappings (e.g., turning a clear day into a rainy one). However, they often suffer from entanglement.

When a naive GAN learns to generate rain, it often "bakes" unrealistic raindrops directly into the texture of the road or buildings. This happens because the network doesn't understand the underlying physics; it just tries to match the statistics of the target domain. This leads to three main issues:

  1. Low Realism: Raindrops look like static artifacts rather than optical phenomena.
  2. Poor Controllability: You can't easily change the size, focus, or density of the raindrops.
  3. Limited Variability: The GAN is stuck mimicking the specific types of rain seen in its training data.

Methods

The authors propose a "Guided Disentanglement" strategy. Instead of asking a GAN to generate a rainy scene all at once, they decompose the target domain into two parts: modeled traits (things we have physics equations for, like raindrops) and learned traits (complex scene changes like wet pavement).

Key Components:

  • Model-Guided Training: During training, a physical model ($W_{Mod}$) renders specific traits onto the GAN’s output. This forces the GAN to focus only on learning the remaining un-modeled characteristics.
  • Adversarial & Genetic Parameter Estimation: To make the physics model match the target data, the authors estimate its parameters ($\tilde{w}$). They use backpropagation for differentiable parameters (like blur/focus) and a genetic algorithm (CMA-ES) for non-differentiable ones (like raindrop shape or count).
  • Disentanglement Guidance (DG): To prevent the GAN from "fighting" the physics model, they use GradCAM to identify areas of high domain shift. They then inject the physics model primarily into areas where the GAN hasn't already made significant changes, guiding the network toward a cleaner separation of features.
  • Neural-Guided Disentanglement: In cases where a physics model isn't available, the framework can use a specialized, frozen generative network as a guide instead.

Datasets

The researchers evaluated their method across several challenging real-world and synthetic datasets:

  • nuScenes: Used for clear-to-rain translation.
  • WoodScape: Used for a "dirty lens" (soiling) task.
  • Synthia & Weather Cityscapes: Used for synthetic-to-real fog and snow translation.
  • RobotCar: Used specifically to evaluate the realism of rendered raindrops against real-world samples.

Key Insights and Ideas

  • The Independence Assumption: The method relies on the intuition that certain physical effects (like raindrops on a camera lens) are independent of the scene behind them. By enforcing this separation through a physics model, the GAN is freed from trying to "learn" physics it isn't built to handle.
  • Controllability at Inference: Because the raindrops are rendered by a physics model with explicit parameters, a user can change the "style" of the rain (e.g., making it look like a dashcam vs. a professional camera) without retraining the network.
  • Learning from Entangled Data: Crucially, the system learns this disentanglement using only "entangled" data (standard rainy images). It doesn't require perfectly paired "clean" and "rainy" versions of the same scene.

Key Results

  • Quantitative Superiority: The method outperformed state-of-the-art baselines (MUNIT, DRIT, CycleGAN) in Inception Score (IS) and Conditional Inception Score (CIS), indicating higher quality and diversity.
  • Improved Downstream Performance: Rainy images generated by this method were used to train a semantic segmentation network (PSPNet). This led to a 9% increase in mAP compared to training on clear images, outperforming existing physics-based augmentation methods.
  • User Preference: In a study with 56 users, the proposed method was significantly preferred for its realism and the "cleanliness" of its disentanglement compared to standard GANs.

Limitations and Future Work

  • Partial Entanglement: The authors noted that in some scenarios, like heavy fog in the distance (the sky region), the physics dictates that the feature is always entangled. In these "far-field" cases, the GAN struggles to get useful discriminative feedback.
  • Optimization Complexity: The genetic algorithm used for non-differentiable parameters is computationally expensive and requires a well-defined search space.
  • Model Accuracy: The quality of the disentanglement is still tethered to the quality of the underlying physics model. If the model is too simplistic, the GAN may still attempt to "fix" the output by introducing artifacts.

Future work may involve exploring more complex, multi-layered physics models or finding ways to make the genetic optimization process more efficient.

Summary updated

BibTeX
@article{pizzati2023physics,
  author = {Fabio Pizzati and Pietro Cerri and Raoul de Charette},
  title = {{Physics-Informed Guided Disentanglement in Generative Networks}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=bO9WaB5d9v},
}
Figure