AirFormer: Predicting Nationwide Air Quality in China with Transformers

Yuxuan Liang, Yutong Xia, Songyu Ke, Yiwei Wang, Qingsong Wen +3 more
11/29/2022
eess.SPcs.LG
transformer-attention

Official code: yoshall/AirFormer (166 stars, Python, last commit 2022-12-29).

Abstract

Air pollution is a crucial issue affecting human health and livelihoods, as well as one of the barriers to economic and social growth. Forecasting air quality has become an increasingly important endeavor with significant social impacts, especially in emerging countries like China.

Show full abstract

In this paper, we present a novel Transformer architecture termed AirFormer to collectively predict nationwide air quality in China, with an unprecedented fine spatial granularity covering thousands of locations. AirFormer decouples the learning process into two stages -- 1) a bottom-up deterministic stage that contains two new types of self-attention mechanisms to efficiently learn spatio-temporal representations; 2) a top-down stochastic stage with latent variables to capture the intrinsic uncertainty of air quality data. We evaluate AirFormer with 4-year data from 1,085 stations in the Chinese Mainland. Compared to the state-of-the-art model, AirFormer reduces prediction errors by 5%~8% on 72-hour future predictions. Our source code is available at https://github.com/yoshall/airformer.

View on arXivView PDF

Code Implementations(1)

yoshall/AirFormerOfficial100%

PyTorch implementation of AirFormer, AAAI-23

16628PythonNov 28, 20223 years ago

Similar Papers

Cite this paper

@article{liang2022airformer,
  title  = {AirFormer: Predicting Nationwide Air Quality in China with Transformers},
  author = {Yuxuan Liang and Yutong Xia and Songyu Ke and Yiwei Wang and Qingsong Wen and Junbo Zhang and Yu Zheng and Roger Zimmermann},
  year   = {2022},
  eprint = {2211.15979},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.15979}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.15979.svg)](https://codeofpaper.com/paper/2211.15979)

Discussion