arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.20134cs.LG
收藏

TrajTok: 用于轨迹表示学习的自适应空间令牌化

TrajTok: Adaptive Spatial Tokenization for Trajectory Representation Learning

University of Southern California(南加州大学)

Zhen Xiong, Shang-Ling Hsu, Cyrus Shahabi

AI总结:

本文提出TrajTok,一种通过自适应空间令牌化学习通用轨迹表示的方法,通过多分辨率六边形网格划分和预训练策略,实现了在轨迹相似性搜索、分类、预计到达时间和旅行时间回归等任务上的优异表现。

摘要:

从原始GPS轨迹学习通用的轨迹表示仍然具有挑战性,因为数据是连续的、嘈杂的且采样不规则。空间令牌化同样具有挑战性:细网格会产生稀疏单元格,嵌入较弱,而粗网格会将异质运动模式合并为同一个令牌。我们提出了TrajTok,一种具有简单预训练配方的轨迹编码器,用于可转移的轨迹嵌入。TrajTok首先从GPS点的空间分布学习多分辨率六边形网格划分,将嘈杂的GPS序列转换为离散的单元格令牌。为了捕捉几何和运动学,它使用分解的Transformer编码器,带有早期模态自注意力块、跨注意力融合层和时空旋转位置嵌入(ST-RoPE),以编码每个令牌的位置和时间。TrajTok通过掩码令牌建模进行预训练,从部分轨迹观测中恢复几何结构和运动学模式。在Porto数据集上,冻结的TrajTok编码器结合轻量级任务适配器在轨迹相似性搜索、分类、预计到达时间和完整旅行时间回归任务上表现优异,优于多种任务特定方法。相同的冻结编码器支持几何主导和运动学主导任务,表明TrajTok学习了可转移的轨迹结构,而不是任务特定的捷径。这些结果表明,学习多分辨率空间令牌化结合掩码令牌预训练是通用轨迹基础模型的有希望的方向。

英文摘要:

Learning generalizable trajectory representations from raw GPS traces remains difficult because the data is continuous, noisy, and irregularly sampled. Spatial tokenization is also challenging: fine grids yield sparse cells with weak embeddings, while coarse grids merge heterogeneous movement patterns into the same token. We present TrajTok, a trajectory encoder with a simple pretraining recipe for transferable trajectory embeddings. TrajTok first learns a multi-resolution hexagonal cell partition from the spatial distribution of GPS points, converting noisy GPS sequences into discrete cell tokens. To capture both geometry and kinematics, it uses a factorized transformer encoder with early per-modality self-attention blocks, cross-attention fusion layers, and spatiotemporal rotary position embeddings, ST-RoPE, to encode where and when each token occurs. TrajTok is pretrained with masked-token modeling that recovers both geometric structure and kinematic patterns from partial trajectory observations. On the Porto dataset, a frozen TrajTok encoder with lightweight task adapters achieves strong performance across trajectory similarity search, classification, estimated time of arrival, and full travel-time regression, outperforming multiple task-specific methods. The same frozen encoder supports both geometry-dominated and kinematics-dominated tasks, suggesting that TrajTok learns transferable trajectory structure rather than task-specific shortcuts. These results indicate that learned multi-resolution spatial tokenization combined with masked-token pretraining is a promising direction for general-purpose trajectory foundation models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑