Contrast & Compress: Learning Lightweight Embeddings for Short Trajectories
Not on the map. Why?
Abstract (arXiv)
The ability to retrieve semantically and directionally similar short-range trajectories with both accuracy and efficiency is foundational for downstream applications such as motion forecasting and autonomous navigation. However, prevailing approaches often depend on computationally intensive heuristics or latent anchor representations that lack interpretability and controllability. In this work, we propose a novel framework for learning fixed-dimensional embeddings for short trajectories by leveraging a Transformer encoder trained with a contrastive triplet loss that emphasize the importance of discriminative feature spaces for trajectory data. We analyze the influence of Cosine and FFT-based similarity metrics within the contrastive learning paradigm, with a focus on capturing the nuanced directional intent that characterizes short-term maneuvers. Our empirical evaluation on the Argoverse 2 dataset demonstrates that embeddings shaped by Cosine similarity objectives yield superior clustering of trajectories by both semantic and directional attributes, outperforming FFT-based baselines in retrieval tasks. Notably, we show that compact Transformer architectures, even with low-dimensional embeddings (e.g., 16 dimensions, but qualitatively down to 4), achieve a compelling balance between retrieval performance (minADE, minFDE) and computational overhead, aligning with the growing demand for scalable and interpretable motion priors in real-time systems. The resulting embeddings provide a compact, semantically meaningful, and efficient representation of trajectory data, offering a robust alternative to heuristic similarity measures and paving the way for more transparent and controllable motion forecasting pipelines.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 23 of its 36 references that are in the map. First posted on arXiv 3 Jun 2025.
Builds on
23 of 36 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,169
- 2017Mixed Precision Trainingcited by 1,156
- 2023Argoverse 2: Next Generation Datasets for Self-Driving Perception and Forecastingcited by 707
- 2020Debiased Contrastive Learningcited by 356
- 2022Wayformer: Motion Forecasting via Simple & Efficient Attention Networkscited by 280
- 2022Motion Transformer with Global Intention Localization and Local Movement Refinementcited by 270
- 2019CoverNet: Multimodal Behavior Prediction using Trajectory Setscited by 259
11 more
- 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 199
- 2022Contrastive Trajectory Similarity Learning with Dual-Feature Attentioncited by 44
- 2020PRANK: motion Prediction based on RANKingcited by 22
- 2023Trajectory Similarity Measurement: An Efficiency Perspectivecited by 16
- 2022Action-based Contrastive Learning for Trajectory Predictioncited by 15
- 2024ControlMTR: Control-Guided Motion Transformer with Scene-Compliant Intention Points for Feasible Motion Predictioncited by 13
- 2023Spatio-Temporal Trajectory Similarity Measures: A Comprehensive Survey and Quantitative Studycited by 9
- 2024Words in Motion: Extracting Interpretable Control Vectors for Motion Transformerscited by 9
- 2023KI-PMF: Knowledge Integrated Plausible Motion Forecastingcited by 5
- 2024A Survey of Distance-Based Vessel Trajectory Clustering: Data Pre-processing, Methodologies, Applications, and Experimental Evaluationcited by 3
- 2024Efficient Data Representation for Motion Forecasting: A Scene-Specific Trajectory Set Approachcited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.