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

Unsupervised embedding of trajectories captures the latent structure of scientific migration

Dakota Murray, Jisung Yoon, Sadamori Kojaku, Rodrigo Costas, Woo‐Sung Jung, Staša Milojević, Yong‐Yeol Ahn

TL;DR

This paper introduces a novel approach to understanding human migration by using the word2vec neural embedding model to represent migration trajectories as "sentences" and locations as "words." This method creates a rich, multi-dimensional "digital double" of migration patterns that goes beyond traditional geographic distance, revealing underlying cultural, linguistic, and prestige relationships.

What Problem Does This Paper Address?

Human migration is a complex phenomenon influenced by a multitude of factors beyond just geographic distance, including culture, language, and economic opportunities. While traditional models like the gravity model have been useful, they often provide a low-resolution view and struggle to capture the nuanced, multi-faceted nature of real-world migration. Existing network-based approaches also have limitations in representing these complex relationships. The authors aim to bridge this gap by leveraging the power of neural embeddings, originally developed for natural language processing, to create a more comprehensive and functional representation of migration.

Methods

The core of the paper lies in applying the word2vec model, specifically the Skip-Gram Negative Sampling (SGNS) variant, to migration trajectory data. The authors demonstrate that SGNS word2vec is mathematically equivalent to the gravity model of mobility. This equivalence is key, as it allows word2vec to learn a "functional distance" between locations that reflects migration patterns.

Here's a breakdown of the methodology:

  • Trajectory Representation: Migration events are treated as sequences (trajectories). For example, a scientist's career path, marked by changes in institutional affiliations, becomes a "sentence" where each affiliation is a "word."
  • Word2vec Embedding: The word2vec model learns vector representations for each location (e.g., university, airport, accommodation). The proximity of these vectors in the embedding space reflects the likelihood of those locations appearing together in migration trajectories.
  • Functional Distance: The cosine distance between these learned vectors is used as a measure of "functional distance," which is shown to be a better predictor of migration flux than geographic distance.
  • SemAxis: To interpret the learned embeddings, the authors employ a technique called SemAxis, which allows them to define "semantic axes" within the embedding space. This enables the quantification of abstract relationships like academic prestige and geographic location.
  • Hierarchical Clustering: Country-level embeddings are clustered to reveal macro-level patterns in migration, showing how geography, language, and culture influence these global flows.

Datasets

The study utilizes three primary datasets:

  • Scientific Migration Data: Over three million migration trajectories of scientists, derived from their publication records (Web of Science database) between 2008 and 2019. This dataset represents affiliations with organizations.
  • U.S. Passenger Flight Itinerary Records: Data from the U.S. Bureau of Transportation Statistics (Origin and Destination Survey, DB1B) covering 1993-2020, representing movement between U.S. airports.
  • Korean Accommodation Reservation Data: Trajectories of accommodation bookings from Goodchoice Company Ltd. in Seoul, South Korea, spanning August 2018 to July 2020.

Key Insights and Ideas

  • Word2vec as a Gravity Model: The mathematical equivalence between word2vec and the gravity model is a significant theoretical contribution, providing a strong justification for using neural embeddings in migration studies.
  • Functional Distance Outperforms Geographic Distance: The learned embedding distance consistently provides a more accurate representation of migration flux than traditional geographic distance across diverse datasets. This highlights the limitations of purely spatial models.
  • Capturing Latent Hierarchies: The embedding space implicitly encodes complex, non-geographic relationships like academic prestige and cultural/linguistic ties, which are crucial drivers of migration but difficult to quantify with traditional methods.
  • Multi-Scale Insights: The approach allows for analysis at various granularities, from individual organizations to country-level clusters, revealing both fine-grained and broad patterns of migration.
  • "Digital Double" for Migration: The learned embeddings act as a reusable, interpretable "digital double" of migration phenomena, enabling further analysis and comparison across different contexts.

Key Results

  • Predictive Power: For scientific migration, the embedding distance explained over twice the expected flux (R² = 0.48) compared to geographic distance (R² = 0.22). Similar improvements were observed for U.S. flight itineraries (R² = 0.51 vs. 0.22) and Korean accommodation reservations (R² = 0.57 vs. 0.25).
  • Prestige Hierarchy: The embedding-based ranking of U.S. universities showed a strong correlation (Spearman's ρ = 0.73) with the Times Higher Education rankings, demonstrating the model's ability to capture academic prestige without explicit input.
  • Geographic and Cultural Clustering: Global clustering of countries revealed that migration patterns are influenced by both geographic proximity and shared language/culture. For instance, Spanish-speaking Latin American countries clustered together, distinct from Portuguese-speaking Brazil.
  • Organization Size and Prestige: The size (L2 norm) of organization embedding vectors showed a concave relationship with the number of researchers, suggesting that prestigious, research-intensive universities tend to have smaller vector norms, possibly indicating broader connectivity.

Limitations and Future Work

  • Symmetry Assumption: The skip-gram word2vec model assumes symmetric migration flows, which is not always true in reality. Future work could explore directional embeddings.
  • Discrete Units: The approach is best suited for migration between discrete units (cities, organizations) and less so for continuous geographic coordinates.
  • Stochasticity: Neural embeddings are inherently stochastic, though the authors found their results to be robust across iterations due to large datasets. Caution is advised for smaller datasets.
  • Domain-Specific Limitations: The scientific migration data relies on bibliometric metadata, potentially missing short-term mobility and being biased by publication rates.
  • Ignoring Specialties: The current model does not account for scientific specialties, which could be a future avenue for more nuanced embeddings.
  • Temporal Scope: The data is limited to 2008-2019, and recent events like the COVID-19 pandemic might have altered migration patterns.

The authors suggest that this framework can be extended to other domains of migration (animal migration, immigration, transit networks) and that future research should explore directional embeddings, incorporate specialties, and investigate the universal patterns observed in organization vector norms.

Summary updated

BibTeX
@inproceedings{murray2023unsupervised,
  author = {Dakota Murray and Jisung Yoon and Sadamori Kojaku and Rodrigo Costas and Woo‐Sung Jung and Staša Milojević and Yong‐Yeol Ahn},
  title = {{Unsupervised embedding of trajectories captures the latent structure of scientific migration}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2023},
  doi = {10.1073/pnas.2305414120},
}
Figure