RHYTHM: Reasoning with Hierarchical Temporal Tokenization for Human Mobility

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: He, Haoyu, Luo, Haozheng, Chen, Yan, Wang, Qi R.
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917289849257984
author He, Haoyu
Luo, Haozheng
Chen, Yan
Wang, Qi R.
author_facet He, Haoyu
Luo, Haozheng
Chen, Yan
Wang, Qi R.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_23115
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RHYTHM: Reasoning with Hierarchical Temporal Tokenization for Human Mobility
He, Haoyu
Luo, Haozheng
Chen, Yan
Wang, Qi R.
Machine Learning
Artificial Intelligence
Computation and Language
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.
title RHYTHM: Reasoning with Hierarchical Temporal Tokenization for Human Mobility
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2509.23115