Transfer Learning for Spatial Autoregressive Models

Hao Zeng, Wei Zhong, Xingbai XuarXiv 2024

Abstract

It is important to incorporate spatial geographic information into U.S. presidential election analysis, especially for swing states. The state-level analysis also faces significant challenges of limited spatial data availability. To address the challenges of spatial dependence and small sample sizes in predicting U.S. presidential election results using spatially dependent data, we propose a novel transfer learning framework within the SAR model, called as tranSAR. Classical SAR model estimation often loses accuracy with small target data samples. Our framework enhances estimation and prediction by leveraging information from similar source data. We introduce a two-stage algorithm, consisting of a transferring stage and a debiasing stage, to estimate parameters and establish theoretical convergence rates for the estimators. Additionally, if the informative source data are unknown, we propose a transferable source detection algorithm using spatial residual bootstrap to maintain spatial dependence and derive its detection consistency. Simulation studies show our algorithm substantially improves the classical two-stage least squares estimator. We demonstrate our method's effectiveness in predicting outcomes in U.S. presidential swing states, where it outperforms traditional methods. In addition, our tranSAR model predicts that the Democratic party will win the 2024 U.S. presidential election.

Introduction

Predicting U.S. presidential elections is a high-stakes game of "small data." While historical data at the national level is abundant, the real battle occurs in a handful of swing states. Analyzing these states at the county level introduces two major statistical headaches: counties are geographically dependent on one another (spatial correlation), and each state only has a few dozen counties, leading to small sample sizes that challenge traditional models.

County-level U.S. presidential election results illustrating spatial dependence.

A new study by Hao Zeng, Wei Zhong, and Xingbai Xu introduces tranSAR, a framework that applies transfer learning to Spatial Autoregressive (SAR) models to solve exactly this problem. By "borrowing" information from similar states, the model overcomes the limitations of small datasets while accounting for the geographic "clustering" of political leanings.

The tranSAR Framework

Traditional statistical models often assume that data points are independent. In politics, this is rarely true—if a county in rural Pennsylvania leans heavily Republican, its neighbor likely does too. To account for this, researchers use SAR models. However, SAR models struggle when the sample size is small; for instance, the ~60 counties in a single swing state may not provide enough data for precise estimates.

The authors propose a two-stage algorithm called $\mathcal{A}$-TranSAR:

  1. The Transferring Stage: The model pools data from a set of "informative" source states—those with similar political and demographic profiles to the target swing state—to create a preliminary, high-strength estimator.
  2. The Debiasing Stage: Because even similar states aren't identical, this stage uses specific data from the target swing state to "correct" the bias in the first-stage estimator using regularization techniques (similar to Lasso).

Overcoming the "Negative Transfer" Risk

A major hurdle in transfer learning is identifying which source states are actually "informative." Learning from a fundamentally different state (e.g., using California to predict Ohio) can lead to "negative transfer," worsening the prediction. The authors solve this with a spatial residual bootstrap algorithm. This method generates "bootstrap" samples that preserve the spatial structure, allowing the model to consistently detect which states are safe to learn from without breaking the geographic network that makes the data useful.

Data and Spatial Insights

The study utilizes a comprehensive dataset including:

  • Election Results: County-level support rates from the 2016 and 2020 elections.
  • Demographics: 142 county-level predictors from the U.S. Census Bureau, such as population density, housing units, and poverty rates.
  • Geographic Boundaries: TIGER/Line shapefiles used to build a "spatial weight matrix" defining county neighborhoods.

The research highlights that geography serves as a powerful proxy for socio-economics. Voting patterns align with neighbors due to shared industrial structures and the urban-rural divide. Interestingly, "informative" states for a target like Florida are not always its immediate neighbors; latent economic and political affiliations can make a distant state a better source for transfer learning.

Key Results and 2024 Forecast

The tranSAR model consistently achieved lower Root Mean Squared Error (RMSE) than traditional SAR models and non-spatial transfer learning methods in both simulations and real-world 2020 data.

  • 2020 Validation: The model correctly predicted the winner in 100% of the test cases for Florida, Michigan, Minnesota, North Carolina, and Ohio when using 2016 data as the training set. (Georgia remained an outlier due to its unique historical shift in 2020).
  • 2024 Prediction: Applying the model to current demographic data, the authors forecast a Democratic victory in the 2024 U.S. Presidential Election, predicting 309 electoral votes for the Democratic party.

Conclusion

While tranSAR represents a significant advancement, the authors acknowledge limitations, such as the assumption of linearity within the SAR framework. Future work may explore "high-dimensional" transfer learning where the number of potential source states is very large, and further refine the statistical tests used to detect informative datasets. By bridging spatial economics and machine learning, tranSAR provides a robust tool for navigating the complexities of modern political forecasting.

Summary updated

BibTeX
@misc{zeng2024transfer,
  author = {Hao Zeng and Wei Zhong and Xingbai Xu},
  title = {{Transfer Learning for Spatial Autoregressive Models}},
  year = {2024},
  eprint = {2405.15600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.15600},
}
Figure