NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Consistent Validation for Predictive Methods in Spatial Settings

David R. Burt, Yunyi Shen, Tamara Broderick

Abstract

Spatial prediction tasks are key to weather forecasting, studying air pollution impacts, and other scientific endeavors. Determining how much to trust predictions made by statistical or physical methods is essential for the credibility of scientific conclusions. Unfortunately, classical approaches for validation fail to handle mismatch between locations available for validation and (test) locations where we want to make predictions. This mismatch is often not an instance of covariate shift (as commonly formalized) because the validation and test locations are fixed (e.g., on a grid or at select points) rather than i.i.d. from two distributions. In the present work, we formalize a check on validation methods: that they become arbitrarily accurate as validation data becomes arbitrarily dense. We show that classical and covariate-shift methods can fail this check. We propose a method that builds from existing ideas in the covariate-shift literature, but adapts them to the validation data at hand. We prove that our proposal passes our check. And we demonstrate its advantages empirically on simulated and real data.

Introduction

In fields such as meteorology and epidemiology, predictive models are frequently deployed to estimate values across geographic regions. A standard practice for assessing these models is "holdout" validation, which calculates the average error on a set of validation sensors. However, spatial data rarely adheres to the independent and identically distributed (i.i.d.) assumption. Sensors are often clustered in urban centers, while predictions may be required for a uniform grid across a state. This geographic mismatch leads to biased validation: if sensors are located primarily in low-pollution areas, a simple average of their errors will provide a misleadingly optimistic view of model performance in high-pollution zones.

Traditional covariate-shift methods attempt to address this by re-weighting data based on probability distributions. Yet, spatial locations are often fixed rather than drawn from a distribution. This paper introduces a framework for validation when both validation and test sites are fixed and mismatched, focusing on the concept of "consistency under infill asymptotics."

Methodology: Spatial Nearest Neighbors (SNN)

The proposed Spatial Nearest Neighbors (SNN) framework adaptively weights validation data based on proximity to test sites. SNN builds upon the $k$-nearest neighbor ($k$NN) regressor with a novel approach to selecting $k$:

  1. Weighted Risk Estimation: SNN assigns weights to validation points based on their frequency as one of the $k$-nearest neighbors to target test sites.
  2. Adaptive $k$ Selection: Rather than using standard cross-validation, SNN minimizes a theoretical upper bound on estimation error. This bound incorporates bias (related to the "fill distance" between validation and test points) and variance (due to observational noise).
  3. Consistency: SNN is the first estimator proven to be consistent in this setting, meaning it becomes perfectly accurate as validation data density increases.

Empirical Evaluation

The authors evaluated SNN against standard holdout and 1-nearest-neighbor (1NN) methods using synthetic grids, US air temperature data, UK property sales, and wind speed records.

Validation performance on grid tasks (left) and point tasks (right). SNN (green) achieves consistency and lower variance than Holdout (blue) and 1NN (orange).

As shown in Figure 2, SNN and 1NN errors in grid prediction tasks decrease rapidly as validation data density increases, while the holdout method's error remains high due to persistent spatial bias. In point prediction tasks, SNN significantly outperforms 1NN by reducing variance; while 1NN estimates fluctuate wildly, SNN remains stable and accurate.

Key Insights: Geometry vs. Distribution

A central finding is that in spatial settings, physical geometry—specifically the "fill distance"—is a more critical driver of validation accuracy than probability distributions.

Error in estimate across four distinct spatial scenarios. SNN consistently maintains near-zero error, while Holdout exhibits significant bias in certain settings (e.g., third panel).

Figure 4 illustrates the bias-variance trade-off. Holdout validation often suffers from high bias because it ignores spatial arrangement. Conversely, 1NN can exhibit high variance as it is overly sensitive to noise from individual sensors. SNN identifies an optimal smoothing level, avoiding both the bias of simple averaging and the noise of single-neighbor approaches. This robustness is crucial for model selection; biased holdout validation can lead researchers to select inferior models by failing to account for validation data clustering.

Conclusion and Future Work

SNN provides a theoretically grounded and empirically robust method for spatial validation. While it excels under "infill" conditions where data density increases, future work is needed to address "extrapolation"—predicting in regions entirely devoid of sensors. Additionally, extending the framework to spatio-temporal data and high-dimensional spaces remains an active area of research.

Summary updated

BibTeX
@inproceedings{burt2025consistent,
  author = {David R. Burt and Yunyi Shen and Tamara Broderick},
  title = {{Consistent Validation for Predictive Methods in Spatial Settings}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=5sELVG7ry3},
}
Figure