Driving, Fast or Slow? Neuro-Symbolic Guidance for Motion Prediction in Multi-Modal Ground Mobility

Simon Kohaut, Felix Divo, Julius Hahnewald, Benedict Flade, Julian Eggert, Kristian Kersting, Devendra Singh DhamiarXiv 2026

TL;DR

Trajectory Compliance-Shaping (TraCS) is a plug-and-play neuro-symbolic framework that infuses state-of-the-art, black-box motion predictors with explicit traffic rules. By using an agentic LLM pipeline to translate natural-language traffic regulations into probabilistic first-order logic, TraCS consistently improves forecasting accuracy and acts as a vital safety net against catastrophic tail-risk errors.

What Problem Does This Paper Address?

Modern autonomous vehicles rely heavily on deep learning models (like Transformers or Mamba-based architectures) to predict how surrounding traffic agents—cars, pedestrians, cyclists, and buses—will move. While these models excel at learning statistical patterns from massive datasets, they are fundamentally "blind" to explicit traffic laws, right-of-way conventions, and social contracts.

This lack of structured knowledge becomes dangerous in safety-critical situations or over longer prediction horizons, where compliant and non-compliant behaviors diverge sharply. Furthermore, because standard datasets are heavily dominated by passenger vehicles, neural models struggle to accurately predict the behavior of underrepresented classes like pedestrians or buses.

Methods

The authors introduce TraCS (Trajectory Compliance-Shaping), a modular framework that sits on top of existing motion forecasting backbones without requiring them to be retrained.

Figure 1: Probabilistic motion prediction with TraCS. TraCS encodes natural-language descrip- tions of compliant road behavior via an agentic coding pipeline into probabilistic first-order logic programs. Based on TraCS’ inferred level of compliance and contextual alignment, the backbone’s set of predictions is reweighted to respect the environment’s agreed-upon motion constraints.

The architecture consists of four main pillars:

  1. Transitional Statistical Spatial Relations: The authors extend standard spatial maps (StaR Maps) by incorporating time steps and velocity derivatives. This allows the system to reason not just about static locations, but about dynamic behaviors like speeding, decelerating, or approaching an intersection.
  2. Agentic Traffic Regulation Modeling: To bridge the gap between human laws and formal logic, TraCS uses an iterative multi-agent LLM loop. A Coder Agent translates natural-language rules into a first-order logic program (written in the Resin language). A Verifier Tool checks the syntax, and a Judge Agent ensures semantic alignment, providing feedback until a valid program is compiled.
  3. Neuro-Symbolic Trajectory Scoring: Candidate trajectories proposed by the neural backbone are evaluated against the compiled logic rules using Answer Set Programming (ASP) and runtime-efficient Reactive Circuits, yielding a probabilistic compliance score.
  4. Model Alignment and Trust Gating: Real-world traffic isn't always perfectly compliant, and LLM-generated rules can be imperfect. To prevent the symbolic rules from overriding a correct neural prediction, TraCS trains a small neural "trust network." This network evaluates the context and outputs a trust score ($\hat{w}$), gating the fusion mechanism so that symbolic guidance is only applied when it is highly confident and informative.

Datasets

The framework was evaluated using the Argoverse 2 (AV2) single-agent motion forecasting benchmark, utilizing a test split of 24,984 focal agents to measure performance across diverse mobility modes (vehicles, buses, cyclists, motorcyclists, and pedestrians).

Key Insights and Ideas

  • Tail-Risk Mitigation: TraCS functions primarily as a safety net for the worst-case scenarios. For the easiest 50–60% of driving scenes where the neural backbone is already highly accurate, the trust gate safely abstains. However, in the highest-error percentiles—where the neural model experiences a total failure—TraCS steps in to dramatically correct the trajectory distribution.
  • The Power of Logically-Grounded Fallbacks: Neural networks inherently struggle with rare classes due to data imbalance. TraCS shows that injecting explicit symbolic rules provides the biggest performance boosts precisely for these underrepresented classes (buses, cyclists, pedestrians), where data-driven patterns are weakest.
  • Iterative LLM Codification is Essential: The authors found that one-shot LLM generation of logic programs is too brittle. An agentic loop featuring automated syntax verification and a separate "judge" LLM is required to reliably output executable, semantically accurate traffic rules.

Key Results

The authors tested TraCS on top of three state-of-the-art motion forecasting backbones: DeMo, POLARIS, and QCNet.

Figure 3: TraCS as a tail-risk treatment: Smoothed (LOWESS) conditional mean of ∆bMinADE1 (↓is better) per scenario as a function of backbone-error percentile, for each backbone. Filled regions encode the sign of the smoothed mean: green where fusion improves, red where it regresses. The shape is consistent across backbones; a flat plateau through the lower 60–70% of scenarios and a dip in the upper decile, where the backbone is least reliable.
  • Monotone Improvements: TraCS achieved consistent, balanced improvements across every single backbone-modality combination evaluated on the headline bMinADE_1 metric.
  • Targeted Class Boosts: On the DeMo backbone, TraCS improved the bMinADE_1 metric for buses by 1.6% and pedestrians by 2.1%.
  • Qualitative Rescue: In edge cases where the neural backbone had no clear preference among its proposed trajectories, TraCS successfully reweighted the options, shifting probability mass toward the legally compliant path (e.g., ensuring a bus correctly proceeds straight through an intersection rather than making an unrealistic turn).
Figure 4: TraCS shaping a backbone prediction: Here, a bus proceeds straight through a four-way intersection (red ground-truth trajectory). While the backbone (here, DeMo) has no clear preference on any of its proposal trajectories, TraCS correctly recognizes unlikely or incompliant behavior and shifts the probability mass towards the correct proposal, promoting τ4 from being the lowest to being the highest rated one. Note that the color scale differs between pointwise and per-trajectory scores.

Limitations and Future Work

  • Inference-Time Artifact: Currently, the logic programs are generated post-hoc via LLM prompting rather than being optimized end-to-end during training. This means the conditional probabilities governing individual rule activations are not learned directly from data.
  • Assumed Agent Independence: TraCS treats traffic agents as conditionally independent given the scene context. It does not explicitly model joint maneuvers, multi-agent negotiations, or interactive rule-sharing (e.g., two vehicles negotiating a four-way stop), which is crucial for long-horizon accuracy.

Summary updated

BibTeX
@misc{kohaut2026driving,
  author = {Simon Kohaut and Felix Divo and Julius Hahnewald and Benedict Flade and Julian Eggert and Kristian Kersting and Devendra Singh Dhami},
  title = {{Driving, Fast or Slow? Neuro-Symbolic Guidance for Motion Prediction in Multi-Modal Ground Mobility}},
  year = {2026},
  eprint = {2606.15251},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15251},
}

Loading related content...

Figure