mlsanityData to 14 Oct 2026

M-CTX: Exact and Scalable Spatial Context Retrieval for Trajectory Analytics

arXiv 2606.15244 ↗First posted 13 Jun 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Modern trajectory predictors increasingly condition on external spatial context, such as map geometry, signed distance fields (SDFs), and nearby moving agents. While this context improves prediction quality, constructing it for every training anchor has become a hidden systems bottleneck. In a representative maritime AIS pipeline, spatial context construction requires roughly 17 CPU-days for a 5.48M-anchor corpus, dominating the cost of the downstream predictor. We present M-CTX, an exact and scalable spatial context-retrieval framework for trajectory analytics. M-CTX recasts context construction as an ingest-once, query-many spatial database workload and replaces three brute-force stages -- OSM range retrieval, SDF computation, and moving-vessel neighbour lookup -- with composable, index-backed operators. Its learned range-index backend, BR-LZ, provides recall-complete MBR-overlap range retrieval and reduces candidate amplification by 1.1x--2.7x relative to global-expansion one-curve baselines. Across four maritime regions, eight baseline systems, synthetic workloads with up to 40M spatial features, and 10^7-record AIS streams, M-CTX reproduces the reference context exactly. On the 5.48M-anchor corpus, it reduces context construction from about 17 CPU-days to 1.8 hours, a measured 226x end-to-end speed-up. An optional storage mode further compresses SDF context by 64x with only a 0.04 m ADE change. These results establish exact spatial context retrieval as a first-class database problem in modern trajectory analytics. Code and datasets are publicly available at https://github.com/mark000071/M-CTX-Traj.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 48 references that are in the map. First posted on arXiv 13 Jun 2026.

Builds on

16 of 48 references.

References · 16

  1. 2019DeepSDF: Learning Continuous Signed Distance Functions for Shape Representationcited by 2,689
  2. 2021AgentFormer: Agent-Aware Transformers for Socio-Temporal Multi-Agent Forecastingcited by 331
  3. 2022Wayformer: Motion Forecasting via Simple & Efficient Attention Networkscited by 280
  4. 2022Motion Transformer with Global Intention Localization and Local Movement Refinementcited by 270
  5. 2017The Case for Learned Index Structurescited by 188
  6. 2023Forecast-MAE: Self-supervised Pre-training for Motion Forecasting with Masked Autoencoderscited by 73
  7. 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
  8. 2020RadixSpline: A Single-Pass Learned Indexcited by 31
  9. 2018FITing-Tree: A Data-aware Index Structurecited by 30
  10. 2019Learning Multi-dimensional Indexescited by 30
  11. 2020Tsunami: A Learned Multi-dimensional Index for Correlated Data and Skewed Workloadscited by 25
  12. 2021TrAISformer -- A Transformer Network with Sparse Augmented Data Representation and Cross Entropy Loss for AIS-based Vessel Trajectory Predictioncited by 20
4 more
  1. 2020Qd-tree: Learning Data Layouts for Big Data Analyticscited by 18
  2. 2024A Survey of Learned Indexes for the Multi-dimensional Spacecited by 4
  3. 2023LMSFC: A Novel Multidimensional Index based on Learned Monotonic Space Filling Curvescited by 3
  4. 2023SALI: A Scalable Adaptive Learned Index Framework based on Probability Modelscited by 3

Built on by

Not cited yet.