mlsanityData to 7 Oct 2026

Trajectory Anomaly Detection with Language Models

arXiv 2409.15366 ↗First posted 18 Sep 2024cs.LG cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

This paper presents a novel approach for trajectory anomaly detection using an autoregressive causal-attention model, termed LM-TAD. This method leverages the similarities between language statements and trajectories, both of which consist of ordered elements requiring coherence through external rules and contextual variations. By treating trajectories as sequences of tokens, our model learns the probability distributions over trajectories, enabling the identification of anomalous locations with high precision. We incorporate user-specific tokens to account for individual behavior patterns, enhancing anomaly detection tailored to user context. Our experiments demonstrate the effectiveness of LM-TAD on both synthetic and real-world datasets. In particular, the model outperforms existing methods on the Pattern of Life (PoL) dataset by detecting user-contextual anomalies and achieves competitive results on the Porto taxi dataset, highlighting its adaptability and robustness. Additionally, we introduce the use of perplexity and surprisal rate metrics for detecting outliers and pinpointing specific anomalous locations within trajectories. The LM-TAD framework supports various trajectory representations, including GPS coordinates, staypoints, and activity types, proving its versatility in handling diverse trajectory data. Moreover, our approach is well-suited for online trajectory anomaly detection, significantly reducing computational latency by caching key-value states of the attention mechanism, thereby avoiding repeated computations.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 14 of its 44 references that are in the map. First posted on arXiv 18 Sep 2024.

Builds on

14 of 44 references.

References · 14

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,853
  7. 2018Deep contextualized word representationscited by 2,285
  8. 2021Learning to Prompt for Vision-Language Modelscited by 2,269
  9. 2016LSTM-based Encoder-Decoder for Multi-sensor Anomaly Detectioncited by 213
  10. 2022Leveraging Language Foundation Models for Human Mobility Forecastingcited by 50
  11. 2018Sequential Variational Autoencoders for Collaborative Filteringcited by 31
  12. 2022How do you go where? Improving next location prediction by learning travel mode information using transformerscited by 12
2 more
  1. 2022Online Anomalous Subtrajectory Detection on Road Networks with Deep Reinforcement Learningcited by 7
  2. 2022Online Trajectory Prediction for Metropolitan Scale Mobility Digital Twincited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.