SIR-Transformer is a language-guided semantic interaction reasoning framework that uses offline LLM-generated motion and social relation priors to enhance pedestrian trajectory prediction.

Stars

5

7-day growth

No data

Forks

0

Open issues

0

License

GPL-3.0

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It innovatively integrates structured semantic priors from a frozen large language model into a numerical trajectory predictor, enabling explicit reasoning about motion states and social interactions without online LLM cost.

Who it is for

  • Researchers in pedestrian trajectory prediction and behavior modeling
  • Engineers working on autonomous driving systems
  • Developers of social robot navigation algorithms
  • Academics studying human-robot interaction and crowd analysis

Use cases

  • Improving pedestrian trajectory prediction accuracy for autonomous vehicles
  • Enabling socially-aware navigation for mobile robots in crowded environments
  • Simulating realistic pedestrian movements for virtual environments or games
  • Analyzing group dynamics and interaction patterns in sports (e.g., NBA)

Strengths

  • Target-centered candidate neighborhood reduces interaction search space
  • Offline LLM priors capture explicit motion semantics (speed, direction) and social relations (parallel, following, collision risk)
  • Relation Adapter and ISMT/RSMT jointly model individual and social interactions
  • Cached priors preserve online inference efficiency comparable to traditional numerical predictors

Considerations

  • Source code is not yet released (repository currently under preparation)
  • Dependence on a frozen LLM for offline prior generation may introduce biases or require careful prompt engineering
  • Evaluation only on three datasets; generalizability to other environments is not yet demonstrated

README quick start

SIR-Transformer

Language-Guided Semantic Interaction Reasoning for Pedestrian Trajectory Prediction

🚧 Code coming soon.

Overview

SIR-Transformer is a language-guided semantic interaction reasoning framework for pedestrian trajectory prediction. It introduces structured semantic priors into a numerical trajectory predictor to jointly model individual motion patterns and socially meaningful interactions.

The framework first constructs a target-centered candidate neighborhood from observed trajectories. A frozen large language model is then used offline to transform trajectory-derived evidence into per-agent motion priors and pairwise social relation priors with confidence scores. These semantic priors are cached and integrated with continuous trajectory representations through the Individual Semantic Motion Transformer (ISMT), Relation Adapter, and Relation-aware Social Motion Transformer (RSMT).

The language model is not used to decode future coordinates and is not invoked during online inference.

Highlights

  • Target-centered interaction reasoning: Candidate neighborhoods provide a compact interaction space for semantic reasoning.
  • Offline language priors: A frozen LLM generates structured motion and social relation priors before model training and inference.
  • Explicit motion semantics: Motion priors describe speed state, speed trend, and direction state.
  • Explicit social relations: Relation priors cover none, parallel, following, approaching, and collision risk.
  • Relation-aware prediction: ISMT, the Relation Adapter, and RSMT combine semantic priors with continuous trajectory and geometric representations.
  • Efficient deployment: Cached priors preserve the online efficiency of a numerical trajectory predictor.

Framework

The SIR-Transformer pipeline consists of four main stages:

  1. Trajectory and kinematic cue encoding
  2. Target-centered candidate neighborhood construction
  3. Offline language-guided semantic prior generation
  4. Relation-aware trajectory prediction

The prediction module follows:

Observed trajectories
        ↓
Candidate neighborhood
        ↓
Offline motion and relation priors
        ↓
ISMT → Relation Adapter → RSMT
        ↓
Future pedestrian trajectories

Benchmarks

The framework is evaluated on:

  • ETH-UCY
  • Stanford Drone Dataset (SDD)
  • N

Description

Official repository for SIR-Transformer: offline LLM-guided semantic interaction reasoning for pedestrian trajectory prediction. Code coming soon.

Related repositories

Similar projects matched by category, topics, and programming language.

slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660
makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958