Abstract
Researchers have developed COSMOS, a novel deep learning framework that extracts high-fidelity life trajectories (person, time, and location) from millions of Wikipedia biographies. By combining contrastive and semi-supervised learning, the team produced a massive, open-source dataset of over a million trajectories, enabling researchers to move beyond simple birth/death records to analyze the complex spatio-temporal networks of human history.
Introduction
Historians and social scientists have long utilized life trajectories to study human dynamics, but large-scale datasets have historically been sparse. Most existing studies rely primarily on birth and death locations, missing the rich intermediate points—such as where individuals studied, worked, or campaigned—that are crucial for understanding cultural evolution and the spread of ideas. Wikipedia, with nearly 2 million biography pages, represents a significant untapped resource for this data.
The Challenge of Context
Automated extraction of trajectories is notoriously difficult because standard Named Entity Recognition (NER) tools often lack the necessary context to distinguish physical presence from symbolic association. For example, a sentence might mention a country that a person represents without them being physically located there at that specific time.
As illustrated in the examples above, distinguishing these nuances requires a model capable of deep contextual understanding to avoid false positives where a location is mentioned but does not constitute a physical trajectory point.
The COSMOS Framework
To address these challenges, the authors introduce COSMOS (COntrastive learning and Semi-supervised learning MOdel). This ensemble framework is designed to handle the heterogeneous nature of biographical text through a hybrid architecture and advanced training techniques.
As shown in the architecture diagram, the model employs a parallel structure:
- CNN Branch: Focuses on local semantic patterns, which is excellent for maintaining high precision.
- BERT Branch: Captures long-range contextual relationships, ensuring high recall.
- Supervised Contrastive Learning: Trains the model to recognize semantic similarities between different event descriptions (e.g., "graduated from" vs. "attended school") while filtering out irrelevant contexts.
- Semi-supervised Learning: Utilizes "pseudo-labeling" on 50,000 unlabeled triplets, allowing the model to learn from its own high-confidence predictions to improve generalization.
Datasets and Results
The study utilized the WikiLifeTrajectory dataset, containing 8,852 ground-truth triplets, and processed the full corpus of nearly 2 million Wikipedia biography pages. COSMOS achieved a state-of-the-art F1 score of 85.95%, outperforming standard BERT and RoBERTa baselines. Ablation studies confirmed that the combination of contrastive and semi-supervised learning provided a 13.14% boost in recall.
Empirical analysis of the resulting million-level dataset revealed that education, work, and travel account for over 81% of trajectory points. This highlights the importance of moving beyond birth/death data to construct dynamic interaction networks. Interestingly, while Large Language Models (LLMs) like GPT-4 show high recall, they often suffer from lower precision due to "hallucinations" of physical presence where the text only implies a symbolic connection.
Conclusion and Future Work
COSMOS provides a powerful tool for large-scale historical analysis, though it still faces challenges with complex geopolitical nuances and Western bias in English Wikipedia. Future research will focus on extending the framework to multiple languages and extracting the specific purpose behind trajectories, such as distinguishing between diplomatic missions and permanent relocations.
Summary updated