mlsanityData to 14 Oct 2026

STRAP: Spatio-Temporal Pattern Retrieval for Out-of-Distribution Generalization

arXiv 2505.19547 ↗First posted 26 May 2025cs.LG cs.AIcited by 4

On the map: Retrieval-augmented generation → Knowledge-graph and structured-knowledge RAG

Abstract (arXiv)

Spatio-Temporal Graph Neural Networks (STGNNs) have emerged as a powerful tool for modeling dynamic graph-structured data across diverse domains. However, they often fail to generalize in Spatio-Temporal Out-of-Distribution (STOOD) scenarios, where both temporal dynamics and spatial structures evolve beyond the training distribution. To address this problem, we propose an innovative Spatio-Temporal Retrieval-Augmented Pattern Learning framework,STRAP, which enhances model generalization by integrating retrieval-augmented learning into the STGNN continue learning pipeline. The core of STRAP is a compact and expressive pattern library that stores representative spatio-temporal patterns enriched with historical, structural, and semantic information, which is obtained and optimized during the training phase. During inference, STRAP retrieves relevant patterns from this library based on similarity to the current input and injects them into the model via a plug-and-play prompting mechanism. This not only strengthens spatio-temporal representations but also mitigates catastrophic forgetting. Moreover, STRAP introduces a knowledge-balancing objective to harmonize new information with retrieved knowledge. Extensive experiments across multiple real-world streaming graph datasets show that STRAP consistently outperforms state-of-the-art STGNN baselines on STOOD tasks, demonstrating its robustness, adaptability, and strong generalization capability without task-specific fine-tuning.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Knowledge-graph and structured-knowledge RAG, one of 15 directions in Retrieval-augmented generation. First posted on arXiv 26 May 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Learning Long Range Spatio-Temporal Representations over Continuous Time Dynamic Graphs with State Space Models
  2. 2024State Space Models on Temporal Graphs: A First-Principles Study
  3. 2024STG-Mamba: Spatial-Temporal Graph Learning via Selective State Space Model
  4. 2026Unlearning on Spatio-Temporal Graphs through Subgraph Virtual Edge Reconstruction
  5. 2026MP3: Multi-Period Pattern Pre-training for Spatio-Temporal Forecasting
  6. 2025T-GRAB: A Synthetic Diagnostic Benchmark for Learning on Temporal Graphs
  7. 2025RGL: A Graph-Centric, Modular Framework for Efficient Retrieval-Augmented Generation on Graphs
  8. 2024Retrieval Augmented Generation for Dynamic Graph Modeling