Zebra: In-Context Generative Pretraining for Solving Parametric PDEs

Abstract

Solving time-dependent parametric partial differential equations (PDEs) is challenging for data-driven methods, as these models must adapt to variations in parameters such as coefficients, forcing terms, and initial conditions. State-of-the-art neural surrogates perform adaptation through gradient-based optimization and meta-learning to implicitly encode the variety of dynamics from observations. This often comes with increased inference complexity. Inspired by the in-context learning capabilities of large language models (LLMs), we introduce Zebra, a novel generative auto-regressive transformer designed to solve parametric PDEs without requiring gradient adaptation at inference. By leveraging in-context information during both pre-training and inference, Zebra dynamically adapts to new tasks by conditioning on input sequences that incorporate context example trajectories. As a generative model, Zebra can be used to generate new trajectories and allows quantifying the uncertainty of the predictions. We evaluate Zebra across a variety of challenging PDE scenarios, demonstrating its adaptability, robustness, and superior performance compared to existing approaches.

Cite

Text

Serrano et al. "Zebra: In-Context Generative Pretraining for Solving Parametric PDEs." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Serrano et al. "Zebra: In-Context Generative Pretraining for Solving Parametric PDEs." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/serrano2025icml-zebra/)

BibTeX

@inproceedings{serrano2025icml-zebra,
  title     = {{Zebra: In-Context Generative Pretraining for Solving Parametric PDEs}},
  author    = {Serrano, Louis and Kassaı̈ Koupaı̈, Armand and Wang, Thomas X and Erbacher, Pierre and Gallinari, Patrick},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {53940-53988},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/serrano2025icml-zebra/}
}