Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

RHYTHM: Reasoning with Hierarchical Temporal Tokenization for Human Mobility

About

Predicting human mobility is inherently challenging due to complex long-range dependencies and multi-scale periodic behaviors. To address this, we introduce RHYTHM (Reasoning with Hierarchical Temporal Tokenization for Human Mobility), a unified framework that leverages large language models (LLMs) as general-purpose spatio-temporal predictors and trajectory reasoners. Methodologically, RHYTHM employs temporal tokenization to partition each trajectory into daily segments and encode them as discrete tokens with hierarchical attention that captures both daily and weekly dependencies, thereby quadratically reducing the sequence length while preserving cyclical information. Additionally, we enrich token representations by adding pre-computed prompt embeddings for trajectory segments and prediction targets via a frozen LLM, and feeding these combined embeddings back into the LLM backbone to capture complex interdependencies. Computationally, RHYTHM keeps the pretrained LLM backbone frozen, yielding faster training and lower memory usage. We evaluate our model against state-of-the-art methods using three real-world datasets. Notably, RHYTHM achieves a 2.4% improvement in overall accuracy, a 5.0% increase on weekends, and a 24.6% reduction in training time. Code is publicly available at https://github.com/he-h/rhythm.

Haoyu He, Haozheng Luo, Yan Chen, Qi R. Wang• 2025

Related benchmarks

TaskDatasetResultRank
Event PredictionStackOverflow
RMSE0.569
42
Event sequence modelingNYC Taxi
Accuracy92.2
13
Human mobility predictionKumamoto
Acc@129.41
13
Human mobility predictionSapporo
Acc@129.43
13
Human mobility predictionHiroshima
Acc@129.53
13
Mobility PredictionKumamoto
DTW4.42e+3
13
Mobility PredictionSapporo
DTW3.75e+3
13
Event sequence modelingUS Earthquake
Accuracy64.3
13
Event sequence modelingAmazon Review
Accuracy (%)70
13
Event sequence modelingChicago Crime
Accuracy27.2
13
Showing 10 of 11 rows

Other info

Follow for update