NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Adaptation of Dynamics to Environmental Shifts via Weight-space Diffusion

Ruikun Li, Huandong Wang, Jingtao Ding, Yuan Yuan, Qingmin Liao, Yong Li

TL;DR

This paper introduces DynaDiff, a novel framework that generates entire neural network weights for predicting physical dynamics in new, unseen environments. By treating model weights as a generative task and leveraging diffusion models, DynaDiff achieves significant improvements in cross-environment generalization and deployment efficiency, outperforming existing methods by over 10%.

What Problem Does This Paper Address?

Predicting physical dynamics using data-driven models is crucial across many scientific disciplines. However, these models often struggle when the underlying environmental conditions change, a phenomenon known as environmental shift. Traditional methods for adapting models to new environments, like fine-tuning, are computationally expensive and require significant data, making them impractical for resource-constrained or data-scarce scenarios. The core challenge is to enable models to generalize effectively to unseen environments without prohibitive computational costs or extensive retraining.

Methods

DynaDiff tackles this problem by reframing it as a generative task: instead of fine-tuning existing models, it generates new model weights tailored to a specific environment. The framework has three key components:

  1. Weight Graph Representation: Model weights are organized into a graph structure that preserves the network's inherent connectivity and functional dependencies, avoiding the information loss from simple flattening.
  2. Dynamics-Informed Prompter: This module extracts crucial physical features and temporal dynamics from limited observation sequences of a new environment. This information is then used to create a "prompt" that guides the weight generation process.
  3. Generative Meta-Learning Framework: DynaDiff uses a diffusion model operating in a learned latent space (derived from a Variational Autoencoder or VAE) to generate the complete set of model weights. A novel "functional loss" is employed during VAE training to ensure that generated models behave consistently with expert models, even if their weights aren't identical. This approach amortizes the cost of learning expert models into an offline "model zoo" construction, enabling rapid deployment for new environments.

Datasets

The authors evaluate DynaDiff on four time-dependent Partial Differential Equation (PDE) systems:

  • Cylinder Flow
  • Lambda-Omega
  • Kolmogorov Flow
  • Navier-Stokes Equations

Additionally, they use the ERA5 Dataset for real-world wind speed prediction. For the PDE systems, environmental variables are derived from equation coefficients or external forcing, and multiple trajectories are simulated for training and testing across different environments.

Key Insights and Ideas

  • Weight Generation as a Generative Task: Shifting from gradient-based adaptation to direct weight generation offers a fundamentally new paradigm for cross-environment generalization, especially in data-scarce settings.
  • Structured Weight Representation is Crucial: Organizing weights into graphs that respect network architecture is vital for capturing functional relationships and improving generative model performance, outperforming simple sequence flattening.
  • Functional Consistency Over Weight Identity: The functional loss, which prioritizes similar model behavior over identical weights, is key to learning a robust latent space and generating effective predictors.
  • Offline Model Zoo for Efficient Deployment: Pre-constructing a "model zoo" of expert predictors allows for rapid adaptation to new environments without costly online fine-tuning, significantly boosting deployment efficiency.

Key Results

  • DynaDiff achieves an average prediction accuracy improvement of 10.78% over competitive baselines across various systems.
  • The generated expert models are significantly smaller (around 1M parameters) than foundation models (hundreds of millions of parameters) yet achieve superior performance.
  • DynaDiff demonstrates strong generalization capabilities, even outperforming "one-per-env" models (where a separate model is trained for each environment) in some cases.
  • The framework shows robustness to environmental extrapolation and can generalize to completely unseen physical systems with different governing equations.
  • Test-time adaptation for DynaDiff is approximately 3x faster than meta-learning baselines, requiring no gradient computation.

Limitations and Future Work

  • Fixed Architecture: DynaDiff currently generates expert models of a fixed architecture. The authors suggest extending the framework to synthesize heterogeneous model architectures dynamically tailored to each new environment.
  • Model Zoo Size: While DynaDiff shows stable performance with a zoo size of 50, performance deteriorates with smaller zoos, indicating the importance of a sufficiently diverse set of expert models.
  • Computational Cost: While test-time efficiency is high, the upfront cost of building the model zoo can be substantial, though comparable to training foundation models.

The authors envision future work focusing on synthesizing diverse model architectures and further exploring the interpretability of the learned prompts.

Summary updated

BibTeX
@inproceedings{li2026generative,
  author = {Ruikun Li and Huandong Wang and Jingtao Ding and Yuan Yuan and Qingmin Liao and Yong Li},
  title = {{Generative Adaptation of Dynamics to Environmental Shifts via Weight-space Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VFCf4CSfzw},
}
Figure