atlas

Research map / Probabilistic and scientific modeling / Differential equations and PDEs

Zebra: In-Context Generative Pretraining for Solving Parametric PDEs

ICML 2025 · Probabilistic and scientific modeling › Differential equations and PDEs · approach: Neural PDE solvers · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Zebra is a generative autoregressive transformer over VQ-VAE tokens that solves parametric PDEs via in-context learning from example trajectories, with no gradient adaptation at inference.

Problem

Neural surrogates for time-dependent parametric PDEs must adapt to new coefficients, boundary conditions, and forcing terms; existing adaptation methods rely on gradient-based fine-tuning or meta-learning, which adds inference cost.

Approach

Pretrain a causal generative transformer on token sequences of concatenated trajectories sharing the same dynamics (different initial conditions), so that at inference it adapts in-context from a few example trajectories and unrolls from a new initial condition, without weight updates; a VQ-VAE compresses states into discrete tokens.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use in-context Zebra instead of the strongest listed baselineOne-shot PDE adaptation · Burgers, Wave b, Wave 2D, Vorticity 2Drelative L2: 0.116 -> 0.115; 0.971 -> 0.245; 0.271 -> 0.207; 0.678 -> 0.119Helped
Use in-context Zebra instead of the strongest listed baselineOne-shot PDE adaptation · Heatrelative L2: 0.136 -> 0.154Hurt
Use in-context Zebra instead of the strongest listed baselineOne-shot PDE adaptation · Advection, Combinedrelative L2: 0.00687 -> 0.00794; 0.00857 -> 0.00965Mixed
Use in-context Zebra instead of the strongest listed baselineOne-shot PDE adaptation · Heat Wide, Heat Gaussian, Heat Square, Vorticity 2D close, Vorticity 2D farrelative L2: 0.47 -> 0.15; 0.40 -> 0.32; 0.66 -> 0.36; 0.30 -> 0.24; 0.37 -> 0.32Helped
Use Zebra rather than ViT-in-contextOut-of-distribution one-shot adaptation · Wave 2Drelative L2: 0.68 -> 0.68No clear effect
Replace token-wise autoregressive decoding with a [DYN]-conditioned UNet (ablation)Zebra · Advectionrelative L2: 0.00794 -> 0.0072Helped
Replace token-wise autoregressive decoding with a [DYN]-conditioned UNet (ablation)Zebra · Combinedrelative L2: 0.00965 -> 0.0138Hurt
Replace token-wise autoregressive decoding with a [DYN]-conditioned UNet (ablation)Zebra · Wave 2D, Vorticity 2Drelative L2: 0.207 -> 0.150; 0.119 -> 0.0869Helped
Replace token-wise autoregressive decoding with a [DYN]-conditioned UNet (ablation)Zebra · Advection, Vorticity 2Dinference time: 3s -> 0.10s; 21s -> 0.14sHelped
Train deterministically to predict the conditional expectation of the next token rather than model trajectory distributions (ablation)Zebra · Autoregressive rolloutrelative L2 errorHurt
Increase the number of context examplesZebra · Heat uncertainty quantificationuncertaintyHelped

Surprising findings

Limitations

Experimental setup

Datasets: Advection Heat Burgers Wave boundary Combined equation Wave 2D Vorticity 2D

Benchmarks: Advection Heat Burgers Wave b Combined Wave 2D Vorticity 2D

Metrics: relative L2 error Wasserstein distance inference time

Baselines: CODA CAPE [CLS] ViT ViT-in-context

Builds on: VQ-VAE Llama CODA CAPE VQGAN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy