SafeAuto: Knowledge-Enhanced Safe Autonomous Driving with Multimodal Foundation Models

Jiawei Zhang, Xuan Yang, Taiqi Wang, Yu Yao, Aleksandr Petiushko, Bo Li

Overview

Traditional autonomous driving (AD) systems often suffer from a "modular disconnect." High-level decision-making (e.g., "I should slow down for this pedestrian") and low-level control (e.g., specific steering angles and acceleration) are typically handled by separate components, leading to uncoordinated and sometimes unsafe behavior.

While Multimodal Large Language Models (MLLMs) offer a promising avenue to unify perception and reasoning, they face two major hurdles in autonomous driving:

  1. Numerical Imprecision: MLLMs treat numbers as text tokens. Standard training using Cross-Entropy loss fails to capture numerical proximity—it doesn't understand that predicting "2.68" is much better than predicting "9.99" when the target is "2.69."
  2. Safety Reliability: MLLMs are prone to "hallucinations" and may suggest actions that violate fundamental traffic rules, an unacceptable risk in safety-critical driving scenarios.

To address these challenges, SafeAuto introduces a novel framework that bridges the gap between high-level reasoning and low-level control by integrating MLLMs with structured safety knowledge and a specialized numerical loss function.

The SafeAuto Framework

The SafeAuto architecture introduces three core innovations to ensure both precision and safety in autonomous driving tasks.

The SafeAuto pipeline featuring MLN verification and Multimodal RAG.

1. Position-Dependent Cross-Entropy (PDCE) Loss

To solve the numerical imprecision of standard MLLMs, SafeAuto introduces the PDCE loss function. This approach allows the model to behave more like a regression model for numerical tasks while retaining its language capabilities. It uses a Gaussian distribution to assign higher probabilities to digits numerically closer to the target. Furthermore, it weights digits by their significance—for instance, getting the "tens" place right is weighted more heavily than the "hundredths" place.

The Weighted Target Token Probability distribution for float number speed prediction, illustrating the PDCE loss concept.

2. Knowledge-Enhanced Post-Safety Verification

You cannot rely solely on "prompting" an LLM to be safe. To provide a mathematical guarantee that the output adheres to defined traffic laws, SafeAuto employs Markov Logic Networks (MLNs). The researchers translated traffic rules (e.g., from the California Driver Handbook) into first-order logic, such as SolidRedLight(x) => Stop(x). If the MLLM suggests an action that violates these rules, the MLN acts as a post-verification layer to override it with a safe alternative.

3. Multimodal Retrieval-Augmented Generation (RAG)

SafeAuto learns from past experiences by retrieving similar driving scenarios. It utilizes a joint embedding space that combines video data, historical control signals, and explicit binary environmental predicates (e.g., "Red Light: True"). The researchers found that including these explicit predicates significantly improves retrieval performance compared to using raw video embeddings alone, as it effectively filters out visual noise.

Key Results and Performance

The authors evaluated SafeAuto on two major benchmarks: BDD-X (video QA with control signals) and DriveLM (multi-view image inputs for complex graph-based reasoning). SafeAuto demonstrated significant improvements over state-of-the-art baselines:

  • Precision: On the BDD-X dataset, SafeAuto reduced the Root Mean Square Error (RMSE) for speed and course predictions by 5.8% and 14.1%, respectively.
  • Safety: On the DriveLM dataset, it achieved a massive 44.4% reduction in Average Displacement Error (ADE) for motion prediction.
  • Reasoning: High-level action prediction accuracy improved by approximately 30% on BDD-X compared to base models.
  • Rule Compliance: The MLN component successfully corrected aggressive or illegal behaviors initially suggested by the underlying MLLM, such as attempting to accelerate through a red light.

Limitations and Future Work

While SafeAuto marks a significant step forward, the authors note a few areas for future refinement. The system's safety currently depends heavily on the accuracy of the initial object detectors used to extract environmental predicates. Additionally, future iterations could explore more sophisticated filtering or re-ranking processes for the RAG component, as well as experiment with different probability distributions beyond Gaussian for the PDCE loss to yield even higher numerical precision.

Summary updated

BibTeX
@inproceedings{zhang2025safeauto,
  author = {Jiawei Zhang and Xuan Yang and Taiqi Wang and Yu Yao and Aleksandr Petiushko and Bo Li},
  title = {{SafeAuto: Knowledge-Enhanced Safe Autonomous Driving with Multimodal Foundation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=nKJGjovmZz},
}
Figure