A Robust Foundation Model for Conservation Laws: Injecting Context into Flux Neural Operators via Recurrent Vision Transformers
About
We propose an architecture that augments the Flux Neural Operator (Flux NO), which combines the classical finite volume method (FVM) with neural operators, with ViT-based context injection. Our model is formulated as a hypernetwork: it extracts solution dynamics over a finite temporal window, encodes them with a recurrent Vision Transformer, and generates the parameters of a context-conditioned neural operator. This enables the model to infer and solve conservation laws without explicit access to the governing equation or PDE coefficients. Experimentally, we show that the proposed method preserves the robustness, generalization ability, and long-time prediction advantages of Flux NO over standard neural operators, while delivering reliable numerical solutions across a broad range of conservative systems, including previously unseen fluxes. Our code is available at https://github.com/xx257xx/CONTEXT_FLUX_NO.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| 1D PDE forecasting | Cubic 1D In-distribution 1.0 (test) | Relative L2 Error0.0041 | 6 | |
| 1D PDE forecasting | Shallow water 1D In-distribution 1.0 (test) | Relative L2 Error0.0063 | 6 | |
| 1D PDE forecasting | Viscous Burgers 1D In-distribution 1.0 (test) | Relative L2 Error0.132 | 6 | |
| Conservation-law dynamics prediction | Cubic | Relative L2 Error0.0056 | 6 | |
| Conservation-law dynamics prediction | Sine with GRF | Relative L2 Error0.266 | 6 | |
| Conservation-law dynamics prediction | Sine | Relative L2 Error0.0049 | 6 | |
| Conservation-law dynamics prediction | Viscous Burgers | Relative L2 Error0.0016 | 6 | |
| Conservation-law dynamics prediction | Shallow Water | Relative L2 Error0.125 | 6 |