Trajectory-User Linking (TUL) is the critical task of identifying the specific user responsible for a given sequence of GPS check-ins. This capability is foundational for personalized location-based services, urban mobility analysis, and public safety. However, TUL is inherently challenging due to data sparsity, where users provide infrequent updates; a lack of contextual integration, where models ignore the semantics of locations; and the difficulty of bridging short-term movements with long-term historical patterns.
To address these issues, this paper introduces MainTUL, a mutual distillation learning network. MainTUL leverages a dual-encoder architecture—combining the sequential processing strengths of Recurrent Neural Networks (RNNs) with the global dependency modeling of Transformers—to capture both immediate and historical behavioral nuances.
The MainTUL Framework
The architecture of MainTUL is built upon three primary innovations designed to overcome the limitations of previous TUL models.
1. Multi-Semantic Embedding
Rather than relying solely on raw geographic coordinates or location IDs, MainTUL constructs a dense representation of each check-in. This embedding incorporates:
- POI ID: The unique identifier for the location.
- POI Category: Semantic information (e.g., "Gym," "Office," "Restaurant") to capture the functional nature of the visit.
- Time-Slice: The specific temporal window of the visit, allowing the model to distinguish between weekday routines and weekend leisure.
2. Dual Trajectory Encoders
The model employs two distinct neural architectures to process trajectory data:
- RNN-based Encoder (LSTM): Optimized for the input trajectory, the LSTM effectively captures the local, sequential dependencies of recent movements.
- Temporal-aware Transformer: Designed for augmented long-term historical data, this encoder uses a specialized position encoding. Unlike standard Transformers that use absolute position, this version calculates the relative time differences between check-ins, which is critical for understanding irregular human mobility patterns.
3. Mutual Distillation Network
The core novelty lies in the "mutual" training strategy. Unlike traditional knowledge distillation where a static "teacher" model guides a "student," MainTUL treats the RNN and Transformer as peer learners. They collaborate through:
- Distillation Loss: Using KL Divergence to align the prediction distributions of both encoders.
- Input Swapping: The RNN is tasked with representing long-term data while the Transformer processes short-term data. This cross-pollination acts as a robust data augmentation technique, forcing each architecture to learn features it might otherwise ignore.
Experimental Evaluation
The performance of MainTUL was evaluated on two large-scale Location-Based Social Network (LBSN) datasets: Foursquare (11 months of data) and Weeplaces (7 years of data). To test scalability, the authors conducted experiments on subsets of the top 400 and top 800 most active users.
Key Results
MainTUL demonstrated superior performance over existing state-of-the-art models, including DeepTUL and TULVAE:
- Accuracy Improvements: The model achieved an average gain of 14.95% in Acc@1 (correctly identifying the user on the first guess) and 14.11% in Macro-F1 score.
- Scalability: While baseline models typically suffer significant performance degradation as the number of candidate users increases (from 400 to 800), MainTUL remained remarkably stable, suggesting high robustness to noise and user competition.
- Ablation Insights: Removing the mutual distillation component (TUL-MUT) led to the most significant performance drop, confirming that the collaborative learning between the RNN and Transformer is the primary driver of the model's success.
Conclusion and Future Work
MainTUL effectively bridges the gap between short-term trajectory sequences and long-term user behavior through a novel mutual distillation framework. By integrating multi-semantic embeddings and temporal-aware encoders, the model overcomes the limitations of data sparsity and contextual neglect.
While the model requires historical data for training and involves higher computational costs during the training phase, its inference is efficient, requiring only the RNN encoder. Future research may explore "cold-start" scenarios for new users and the integration of even richer contextual features to further enhance linking accuracy.
Summary updated