In-Context Learning for Multi-Fidelity Multiscale Model Closure and Cross-Operator Out-Of-Distribution Generalization
Organizations: Department of Applied and Computational Mathematics and Statistics, University of Notre Dame, Notre Dame, IN 46556, USA. · Department of Aerospace and Mechanical Engineering, University of Notre Dame, Notre Dame, IN 46556, United States. · Advanced Computing, Mathematics, and Data Division, Pacific Northwest National Laboratory, Richland, WA 99354, USA.
Abstract
Multi-fidelity learning uses low-fidelity information (coarse-scale PDE models) together with limited high-fidelity data (fine-scale solutions) to obtain high-accuracy PDE solutions. It is a data-driven approach to downscale reduced-order models to solve PDEs efficiently and accurately. Standard multi-fidelity learning focuses on one operator or PDE; given a new PDE, retraining using additional coarse-fine solution pairs may be required, which is costly. In this work, we propose an in-context multi-fidelity learning framework for learning multiple multi-fidelity operators with one shared model. The model is trained using paired low- and high-fidelity examples as demonstrations from multiple operators, together with a new coarse-scale solution query, to predict the corresponding fine-scale solution. Once trained, given a new PDE operator, a few (fewer than five) coarse-fine demonstration pairs, and a low-cost coarse query, the model predicts the corresponding fine-scale solution without fine-tuning. When the target operator appears in the training dataset but has a different prediction goal, such as predicting beyond the training time interval, no additional demonstrations are needed. Instead, the model uses training coarse-fine pairs from that PDE and information from other training operators. Testing then only requires generating a low-cost coarse-scale solution query, without fine-tuning. Notably, our smallest model contains only 255,364 trainable parameters, corresponding to approximately 456 parameters per training operator for 560 operators.
Figures & tables
| Flux | Regime | Test cases | (%) | (%) | |
|---|---|---|---|---|---|
| Overall | — | 1024 | |||
| Viscous | 111 | ||||
| Inviscid | 120 | ||||
| Viscous | 132 | ||||
| Inviscid | 114 | ||||
| Viscous | 139 |
| Setting | range | Test cases | (%) | (%) | |
|---|---|---|---|---|---|
| Base range | 1024 | ||||
| Lower OOD | 498 | ||||
| Upper OOD | 526 | ||||
| Overall OOD | 1024 |
| Training | Evaluation | |||
| Group A | Group B | Group A | Group B | |
| Base amplitude | – | – | ||
| Near-OOD amplitude | – | – | ||
| Farther-OOD amplitude | – | – | ||
| Query regime | range | Test cases | Relative error (%) | ||||
|---|---|---|---|---|---|---|---|
| LF baseline | Base-amplitude-only model | Mixed-amplitude model | Base-amplitude-only model | Mixed-amplitude model | |||
| Near OOD | 80,000 | ||||||
| Farther OOD | 80,000 | ||||||
| Setting | Test cases | (%) | (%) | |
|---|---|---|---|---|
| Unseen operators | 960 |
| Setting | range | Test cases | (%) | (%) | |
|---|---|---|---|---|---|
| Base range | 960 | ||||
| OOD | 512 |
| Training | Evaluation | |||
|---|---|---|---|---|
| Group A | Group B | Group A | Group B | |
| Base time | – | – | ||
| Temporal OOD or | – | – | ||
| Query regime | range | Test cases | Relative error (%) | ||||
|---|---|---|---|---|---|---|---|
| LF baseline | Base-time-only model | Mixed-time model | Base-time-only model | Mixed-time model | |||
| Temporal OOD | 100,000 | ||||||
| Temporal OOD | 100,000 | ||||||
| Setting | Test cases | (%) | (%) | |
|---|---|---|---|---|
| Unseen operators | 960 |
| Method | Test cases | (%) | MSE | ||
|---|---|---|---|---|---|
| Mean | Median | P90 | |||
| LF baseline | 50 | 27.35 | 27.60 | 29.84 | 14.302 |
| Method | Test cases | (%) | MSE | ||
| Mean | Median | P90 | |||
| Non-composite MF | 50 | 7.70 | 7.03 | 12.15 | 2.171 |
| Composite MF | 50 | 7.14 | 6.84 | 10.95 | 1.787 |
| Evaluation | Test cases | (%) | ||
|---|---|---|---|---|
| Mean | Median | P90 | ||
| LF baseline | 1350 | 30.62 | 30.85 | 33.27 |
| Evaluation | Test cases | (%) | ||
| Mean | Median | P90 | ||
| ICL, correct context | 1350 | 1.15 | 0.95 | 1.86 |
| ICL, wrong-operator context | 1350 | 1.49 | 1.06 | 2.63 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Application | Auxiliary-row quantities | Max. length | ||
|---|---|---|---|---|
| Scalar conservation laws | 1 | 17 | ||
| KS | 2 | 23 | ||
| KdV | 1 | 17 | ||
| Ice sheet, reference | 3 | 29 | ||
| Ice sheet, multi-operator | 2 | 23 |
Multifidelity Modeling
Multifidelity modeling combines inexpensive approximate models with costly accurate simulations or measurements to improve prediction and decision-making.
See all 37 papers