Few-shot Learning for Spatial Regression

Tomoharu Iwata, Yusuke Tanaka

Abstract

We propose a few-shot learning method for spatial regression. Although Gaussian processes (GPs) have been successfully used for spatial regression, they require many observations in the target task to achieve a high predictive performance. Our model is trained using spatial datasets on various attributes in various regions, and predicts values on unseen attributes in unseen regions given a few observed data. With our model, a task representation is inferred from given small data using a neural network. Then, spatial values are predicted by neural networks with a GP framework, in which task-specific properties are controlled by the task representations. The GP framework allows us to analytically obtain predictions that are adapted to small data. By using the adapted predictions in the objective function, we can train our model efficiently and effectively so that the test predictive performance improves when adapted to newly given small data. In our experiments, we demonstrate that the proposed method achieves better predictive performance than existing meta-learning methods using spatial datasets.

The Challenge of Spatial Regression

Spatial regression—predicting values like temperature, humidity, or traffic density across a geographic area—is essential for environmental science and urban planning. Traditionally, Gaussian Processes (GPs), or Kriging, are the gold standard due to their ability to interpolate between known data points and provide uncertainty estimates.

However, GPs suffer from a "cold start" problem: they require significant local data to achieve high accuracy. In remote or newly monitored regions with only a few sensors, standard GPs lack the prior information needed to model local spatial patterns effectively. While meta-learning has addressed similar "few-shot" challenges in computer vision, its application to spatial regression is complicated by the high variability of spatial patterns across different attributes and geographic regions.

A Hybrid Meta-Learning Framework

To address these limitations, we propose a hybrid model that integrates Meta-Learning with Gaussian Processes. The framework operates through three primary stages:

  1. Task Embedding: A neural network $f_z$ processes a small "support set" of labeled data points from the target task to generate a task representation vector ($z$). This vector encodes the specific characteristics of the region and attribute.
  2. Neural-Augmented GP: The model employs neural networks to define the GP’s mean function ($f_m$) and kernel function ($f_k, f_b$), both conditioned on the task vector $z$. The mean function allows for global trend prediction in unobserved areas, while the kernel function captures complex, non-linear spatial correlations.
  3. Analytical Adaptation: By maintaining the GP structure, the model can adapt to new data using a closed-form posterior solution. This allows for instantaneous adaptation at test time without the need for iterative gradient descent, which is common in other meta-learning methods like MAML.
Proposed model architecture for few-shot spatial regression.

Experimental Evaluation

We evaluated the model on three climate-related spatial datasets:

  • NAE (North America + Elevation): Climate data across North America, incorporating elevation as an auxiliary feature.
  • NA (North America): Climate data using only geographic coordinates.
  • JA (Japan): Climate data from Japan, including variables like precipitation and maximum temperature.

The datasets were partitioned by region and attribute to ensure the model was tested on "unseen" scenarios, rigorously proving its generalization capabilities.

Key Results and Insights

The proposed method consistently outperformed established baselines, including Conditional Neural Processes (NP) and Model-Agnostic Meta-Learning (MAML).

  • Superior Accuracy: Our model achieved the lowest Mean Squared Error (MSE) and highest Log-Likelihood across all datasets.
  • Knowledge Pooling: Performance improved as the number of training regions increased, demonstrating the model's ability to effectively pool knowledge from diverse spatial sources.
  • Efficiency: Test-time prediction is extremely fast (approx. 0.142 seconds per region), making it suitable for real-time applications.
Comparison of prediction error across different numbers of training regions.

Conclusion and Future Work

By combining the global pattern-matching of neural networks with the local precision of Gaussian Processes, we have developed a robust framework for few-shot spatial regression. While the model scales at $O(N^3)$ with respect to the support set size, it remains highly efficient for the few-shot regime. Future work will explore extending this framework to spatio-temporal regression and investigating its utility in non-spatial regression and classification tasks.

Summary updated

BibTeX
@article{iwata2022few,
  author = {Tomoharu Iwata and Yusuke Tanaka},
  title = {{Few-shot Learning for Spatial Regression}},
  journal = {Machine Learning},
  year = {2022},
  doi = {10.1007/s10994-021-06118-z},
}
Figure