Transformer-Based Spatial-Temporal Counterfactual Outcomes Estimation

Abstract

The real world naturally has dimensions of time and space. Therefore, estimating the counterfactual outcomes with spatial-temporal attributes is a crucial problem. However, previous methods are based on classical statistical models, which still have limitations in performance and generalization. This paper proposes a novel framework for estimating counterfactual outcomes with spatial-temporal attributes using the Transformer, exhibiting stronger estimation ability. Under mild assumptions, the proposed estimator within this framework is consistent and asymptotically normal. To validate the effectiveness of our approach, we conduct simulation experiments and real data experiments. Simulation experiments show that our estimator has a stronger estimation capability than baseline methods. Real data experiments provide a valuable conclusion to the causal effect of conflicts on forest loss in Colombia. The source code is available at this URL.

Cite

Text

Li et al. "Transformer-Based Spatial-Temporal Counterfactual Outcomes Estimation." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Li et al. "Transformer-Based Spatial-Temporal Counterfactual Outcomes Estimation." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/li2025icml-transformerbased/)

BibTeX

@inproceedings{li2025icml-transformerbased,
  title     = {{Transformer-Based Spatial-Temporal Counterfactual Outcomes Estimation}},
  author    = {Li, He and Chi, Haoang and Liu, Mingyu and Huang, Wanrong and Xu, Liyang and Yang, Wenjing},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {34185-34208},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/li2025icml-transformerbased/}
}