SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.23115 · NeurIPS · 2025

RHYTHM: Reasoning with Hierarchical Temporal Tokenization for Human Mobility

Yan Chen, Qi Wang, Haoyu He, Haozheng Luo

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 7 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
he-h/rhythm — 4 of 7
FunctionStatusWhere it lives
AttentionBlock Ran he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("f95ba2851cbeb021")
MultiLayerAttentionEncoder Ran he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("228c0ce8b888dcea")
ProjectionLayer Ran he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("df1709a38824bdec")
ResidualMLPBlock Ran he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("759550dcf9a0b255")
HierarchicalAttention Not yet run he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("b8833e463e4c1497")
Model Not yet run he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("e736873c7aab8477")
PoolingModule Not yet run he-h/rhythm/models/rhythm.py
code served (permissive licence) · get_code("5730ff5508813762")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.23115")
get_code_for_paper("2509.23115")
have("2509.23115")

Connect an agent — have() is free.