Post-Training Quantization of Autoregressive Weather Models
Organizations: University of Michigan, Ann Arbor, USA · University of Texas at Dallas, Dallas, USA
Abstract
Advancements in high-resolution numerical weather prediction (NWP) and data assimilation (DA) have shaped the developments in deep learning (DL) architectures emulating atmospheric dynamics. Emulators for weather forecasting exhibit forecast quality comparable to physics based models at forecast horizon scaling from few days to subseasonal time scales. The emulators are driven by hardware-accelerated matrix multiplication in autoregressive inferences, significantly reducing the computation time and resources required for NWP. Optimization of the matrix multiplication processes in GPU architectures provides opportunities to scale towards high-resolution domain, and offers implementation of out of the box solutions. Post-training quantization (PTQ) has been demonstrated across multiple DL architectures to accelerate and increase the number of computations in unit time while consuming less power, enabling applications on edge hardware. In this study, we investigate the effect of PTQ on pre-trained AI emulators for global-scale weather forecasting. We implement PTQ algorithms in Deep Learning Weather Prediction (DLWP) and FourCastNet (FCN) models as a proof of concept for geophysical fluid dynamics applications. We systematically investigate the effect of PTQ on emulator inferences over short-range forecast horizons. Evaluation of PTQ configurations using simulated quantization hints at qualitatively meaningful forecasts over short-time horizons. These results provide a first benchmark of PTQ for autoregressive weather emulators and a basis for quantization-based optimization of DL models for dynamical systems.
Figures & tables
| Model Name | Architecture | Input Type | Output Variables |
| DLWP | U-Net (cubed sphere) | ECMWF ERA5 | , , , , , , |
| FCN | AFNO (ViT backbone) | ECMWF ERA5 | , , , , , , |
| Name | Weight | Activation | Notes |
| FP32 | FP32 | FP32 | Full precision baseline |
| W8A8 | INT8 | INT8 | Tensor weight scaling-based quantization |
| W8A32 | INT8 | FP32 | INT8 weights with FP32 activations |
| W4A32 | INT4 | FP32 | INT4 weights with FP32 activations |
| W2A32 | INT2 | FP32 | INT2 weights with FP32 activations |
| INT8 SmoothQuant | INT8 | INT8 | Activation smoothing using SmoothQuant |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Post-Training Quantization
Post-Training Quantization compresses trained neural networks into low-bit weights, activations, or caches to reduce memory use and inference cost.
See all 369 papers