SpatCode: Rotary-based Unified Encoding Framework for Efficient Spatiotemporal Vector Retrieval
Bingde Hu, Enhao Pan, Wanjing Zhou, Yang Gao, Zunlei Feng, Hao Zhong
TL;DR
SpatCode introduces a unified spatiotemporal vector retrieval framework that cohesively encodes semantic, temporal, and geographic cues into a single embedding space. It leverages a Rotary-based Unified Encoding to map time and location into unit-norm vectors, a Circular Incremental Update mechanism for efficient streaming updates, and a Weighted Interest-based Retrieval algorithm to enable context-aware, per-query modality weighting. Extensive experiments on diverse datasets show that SpatCode achieves higher recall with lower latency than state-of-the-art baselines and maintains robustness under dynamic data evolution. The approach provides a practical, scalable solution for real-time, multimodal spatiotemporal retrieval in intelligent systems.
Abstract
Spatiotemporal vector retrieval has emerged as a critical paradigm in modern information retrieval, enabling efficient access to massive, heterogeneous data that evolve over both time and space. However, existing spatiotemporal retrieval methods are often extensions of conventional vector search systems that rely on external filters or specialized indices to incorporate temporal and spatial constraints, leading to inefficiency, architectural complexity, and limited flexibility in handling heterogeneous modalities. To overcome these challenges, we present a unified spatiotemporal vector retrieval framework that integrates temporal, spatial, and semantic cues within a coherent similarity space while maintaining scalability and adaptability to continuous data streams. Specifically, we propose (1) a Rotary-based Unified Encoding Method that embeds time and location into rotational position vectors for consistent spatiotemporal representation; (2) a Circular Incremental Update Mechanism that supports efficient sliding-window updates without global re-encoding or index reconstruction; and (3) a Weighted Interest-based Retrieval Algorithm that adaptively balances modality weights for context-aware and personalized retrieval. Extensive experiments across multiple real-world datasets demonstrate that our framework substantially outperforms state-of-the-art baselines in both retrieval accuracy and efficiency, while maintaining robustness under dynamic data evolution. These results highlight the effectiveness and practicality of the proposed approach for scalable spatiotemporal information retrieval in intelligent systems.
