Skip to content
RuntimeWarningPublic

About

Official PyTorch implementation of "Learning to Refine: Spectral-Decoupled Iterative Refinement Framework for Precipitation Nowcasting" (ICML 2026).

Resources

Stars

10 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

🌧️ SDIR: Spectral-Decoupled Iterative Refinement for Precipitation Nowcasting

ICML 2026 arXiv PDF License: MIT Python 3.10+ PyTorch

ICML 2026


πŸ“– Introduction

We propose SDIR (Spectral-Decoupled Iterative Refinement), a deterministic framework that resolves this dilemma by reformulating nowcasting as a progressive frequency-decoupled refinement process. Starting from a stable low-frequency synoptic skeleton, SDIR iteratively refines high-frequency textures under physical constraints β€” eliminating both blurring and hallucinations.

Paradigm comparison in precipitation nowcasting. (a) Regression: suffers from spectral decay and loss of peak intensity. (b) Diffusion: generates realistic high-frequency details but produces stochastic hallucinations. (c) SDIR (Ours): reformulates nowcasting as deterministic spectral evolution, progressively restoring high-frequency details from a low-frequency synoptic skeleton.


✨ Key Features

  • Dual-Path Architecture: Synergizes the global structural modeling of the SFG-Former (Synoptic Frequency-Guided Former with Scale-Adaptive Transformers) and the high-frequency synthesis of the FR-Refiner (Fourier Residual Refiner with Scale-Conditioned Fourier Neural Operators).
  • Spectral Training Curriculum: Samples frequency scale signals from a Beta distribution, biasing training toward stable synoptic structures before tackling complex convective textures.
  • PCPSD Loss: A Physically Consistent Power Spectral Density loss with dynamic frequency masking enforces adherence to atmospheric turbulence power laws (Kolmogorov energy cascade).
  • Frequency-Unlocking Inference: A coarse-to-fine multi-step inference schedule that progressively expands frequency bandwidth, suppressing hallucinations and preserving high-intensity convective cells.

Architecture

Overall architecture of SDIR. (a) Architecture Overview: the SFG-Former extracts the synoptic skeleton and the FR-Refiner synthesizes high-frequency residuals. (b) Scale-Adaptive Transformer. (c) Fourier Residual Refiner. (d) Frequency-Unlocking Inference: starting from a zero state (s=0), SDIR iteratively increases s to progressively synthesize high-resolution details.


πŸ”§ Installation

git clone https://github.com/RuntimeWarning/SDIR.git
cd SDIR
pip install -r requirements.txt

πŸ“¦ Pre-trained Models

Pre-trained SDIR model weights are available on Google Drive.

Please download the required checkpoint from the Google Drive folder and place it in the checkpoints/ directory:

mkdir -p checkpoints

After downloading, your project structure should look like:

SDIR/
β”œβ”€β”€ checkpoints/
β”‚   └── sevir.pth
β”œβ”€β”€ imgs/
β”œβ”€β”€ main.py
└── requirements.txt

πŸš€ Training

Single GPU

python main.py --is_train True --datasets shanghai --img_size 256 --patch_size 8 --output_length 20

Multi-GPU Training with πŸ€— Accelerate

SDIR supports multi-GPU distributed training via Hugging Face Accelerate.

Step 1: Configure Accelerate

accelerate config

Follow the prompts to set up your distributed training environment, including the number of GPUs and mixed-precision configuration.

Step 2: Launch distributed training

accelerate launch main.py --is_train True --datasets shanghai --img_size 256 --patch_size 8 --output_length 20

Tip: We trained SDIR on 4Γ— NVIDIA RTX 4090D GPUs using AdamW with an initial learning rate of 3e-4.


πŸ” Inference

Single GPU

Download the pre-trained checkpoint from Google Drive and place it at checkpoints/sdir_shanghai.pth.

python main.py --is_train False --datasets shanghai --img_size 256 --patch_size 8 --output_length 20 --pretrained_model checkpoints/sdir_shanghai.pth

Multi-GPU Inference with πŸ€— Accelerate

SDIR also supports distributed multi-GPU inference, enabling fast evaluation on large test sets.

accelerate launch main.py --is_train False --datasets shanghai --img_size 256 --patch_size 8 --output_length 20 --pretrained_model checkpoints/sdir_shanghai.pth

πŸ“‹ Citation

If you find this work useful, please consider citing our paper:

@inproceedings{zhou2026sdir,
  title     = {Learning to Refine: Spectral-Decoupled Iterative Refinement Framework for Precipitation Nowcasting},
  author    = {Zhou, Yunlong and Zhao, Chen and Peng, Danyang and Ji, Fanfan and Yuan, Xiao-Tong},
  booktitle = {International Conference on Machine Learning (ICML)},
  year      = {2026}
}

πŸ“„ License

This project is released under the MIT License.

About

Official PyTorch implementation of "Learning to Refine: Spectral-Decoupled Iterative Refinement Framework for Precipitation Nowcasting" (ICML 2026).

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages