Few-shot Species Range Estimation

Christian Lange, Max Hamilton, Elijah Cole, Alexander Shepard, Samuel Heinrich, Angela Zhu, Subhransu Maji, Grant Van Horn, Oisin Mac Aodha · DOI

Abstract

Accurately mapping species distributions is a cornerstone of biodiversity conservation and ecological research. However, the vast majority of Earth's species are under-observed, with many having fewer than ten recorded sightings. Traditional Species Distribution Models (SDMs) often struggle in these low-data regimes or require computationally expensive retraining for new species. We present FS-SINR (Few-shot Spatial Implicit Neural Representations), a Transformer-based model designed for few-shot species range estimation. By processing sparse observations and optional multimodal metadata in a single forward pass, FS-SINR generates accurate geographic range maps for previously unseen species. Our approach achieves state-of-the-art accuracy, particularly in extreme low-data scenarios, while offering a 50x speedup over existing methods.

Introduction

Understanding where species live is essential for monitoring the impacts of climate change and habitat loss. While common species like the rock pigeon have millions of recorded observations, biodiversity data is characterized by a severe "long tail" where most species lack sufficient data for traditional deep learning models. Existing global-scale mapping techniques, such as standard Spatial Implicit Neural Representations (SINR), typically require large datasets per species and necessitate retraining a new classifier head to accommodate newly discovered or unmodeled species.

This paper addresses the challenge of few-shot species range estimation: the ability to accurately predict a species' entire geographic range using as few as one to ten observations without any gradient updates at inference time. By framing range estimation as a sequence modeling problem, we enable real-time, interactive exploration of species distributions.

Methodology

The core of our approach is the FS-SINR architecture, which replaces static per-species embeddings with a dynamic, Transformer-based generation process. The model operates through four primary stages:

  1. Input Tokenization: The model accepts an unordered set of "context locations" (GPS coordinates of sightings). Each coordinate is transformed into a location token via a multi-layer perceptron (MLP).
  2. Multimodal Integration: To enhance predictions, the model can ingest optional metadata. Text descriptions are encoded using a frozen GritLM, while images are processed through a frozen EVA-02 ViT. These are treated as additional tokens in the sequence.
  3. Transformer Encoder: A Transformer processes the location and metadata tokens alongside a learned [CLS] token. The resulting output at the [CLS] position serves as a latent "species embedding."
  4. Range Prediction: To determine the probability of a species' presence at any query location on Earth, the model computes the inner product between the generated species embedding and the query location's embedding.
The FS-SINR architecture processes context locations and optional metadata through a Transformer to generate a species embedding for zero-shot and few-shot range prediction.

This feedforward mechanism allows the model to generalize to new species instantly, bypassing the need for fine-tuning or logistic regression at test time.

Datasets and Evaluation

FS-SINR was trained on a massive dataset of 35.5 million presence-only records from iNaturalist, covering approximately 44,000 species. This training was augmented with 127,000 Wikipedia text descriptions and 200,000 images to align geographic and semantic features.

To evaluate generalization, we benchmarked the model on two expert-derived range map datasets: IUCN (comprising 2,418 diverse global species) and S&T (comprising 535 North American bird species). Crucially, all species in these evaluation sets were strictly held out during the training phase to ensure a rigorous test of few-shot and zero-shot capabilities.

Results and Discussion

FS-SINR demonstrates superior performance across both evaluation datasets, particularly when data is most scarce. As shown in the performance plots, FS-SINR consistently outperforms baselines like SINR, LE-SINR, and Prototypical Networks.

Mean Average Precision (MAP) comparison on IUCN and S&T datasets shows FS-SINR outperforming baselines, especially in the 1-10 context location range.

Key Findings

  • Efficiency: By eliminating the need for retraining, FS-SINR generates range estimates in just 2% of the time required by previous state-of-the-art models on a CPU.
  • The Power of Text: In zero-shot scenarios (no location data), text descriptions proved significantly more informative than images. Text provides strong ecological and geographic priors, whereas images can sometimes introduce noise or lead to overfitting on background features.
  • Spatial Priors in Language: The model's alignment of text and geography allows it to localize non-species concepts. For instance, querying the model with "The Andes" or "Oktoberfest" results in accurate heatmaps over South America and Germany, respectively.

Limitations

Despite its strengths, the model currently produces deterministic outputs, whereas a set of sparse points might realistically correspond to multiple valid ranges. Future work could incorporate stochasticity to represent this uncertainty. Additionally, the model relies on presence-only data and inherits the geographic biases present in citizen science datasets, which are often skewed toward North America and Europe.

Conclusion

FS-SINR represents a significant step forward in biodiversity mapping. By leveraging the flexibility of Transformers and multimodal metadata, it provides a fast, accurate, and scalable solution for estimating the ranges of the world's most data-poor species. This capability is vital for real-time conservation efforts and for understanding the shifting distributions of life on Earth.

Summary updated

BibTeX
@inproceedings{lange2025few,
  author = {Christian Lange and Max Hamilton and Elijah Cole and Alexander Shepard and Samuel Heinrich and Angela Zhu and Subhransu Maji and Grant Van Horn and Oisin Mac Aodha},
  title = {{Few-shot Species Range Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=u08HAb5WyC},
}
Figure