Integrating Legal and Logical Specifications in Perception, Prediction, and Planning for Automated Driving: A Survey of Methods

Kumar Manas, Mert Keser, Alois Knoll

Introduction

As autonomous vehicles (AVs) transition from controlled testing environments to complex urban landscapes, the industry faces a critical hurdle: the "black-box" nature of modern AI. While deep learning excels at pattern recognition and trajectory optimization, it often lacks the transparency and rule-based reasoning required for legal accountability. This survey provides a comprehensive roadmap for integrating legal and logical specifications into the AV "brain," moving toward hybrid systems that are not only efficient but also legally compliant and interpretable.

The Problem: Translating Law into Logic

Traffic laws are fundamentally written for humans. They are often characterized by ambiguity, context-dependency, and necessary exceptions—phrases like "maintain a safe distance" or "cross a solid line only if necessary" are common. Standard deep learning models struggle to navigate these nuances. Furthermore, from a liability perspective, a neural network's prediction is not a valid legal defense in the event of an accident. The core challenge lies in translating these fuzzy natural language laws into rigid mathematical constraints that can be embedded into perception, prediction, and planning modules without compromising real-time performance.

Methodological Taxonomy

The survey categorizes emerging techniques into a new taxonomy focused on three primary pillars of integration:

1. Neural-Symbolic Integration

This approach involves "infusing" logic directly into neural architectures. Notable examples include:

  • Neural-Symbolic Energy-Based Models (NeSy-EBMs): These use energy functions to score how well perception outputs align with logical constraints, such as the laws of physics.
  • Robust Logic-infused Deep Learning (RLDL): This utilizes Inductive Logic Programming to extract rules regarding traffic signs, making perception systems significantly more resilient against adversarial attacks.

2. Formal Logics for Law

Researchers are increasingly employing mathematical frameworks like Linear Temporal Logic (LTL) and Signal Temporal Logic (STL) to encode time-dependent rules. STL is particularly advantageous because it provides a "robustness score"—a quantitative measure of how well a rule is satisfied—rather than a binary true/false value.

3. Hierarchical Rulebooks and LLMs

Because traffic rules often conflict (e.g., the need to swerve into another lane to avoid a pedestrian), the survey discusses the implementation of "rulebooks." These are hierarchies that prioritize safety and ethics over minor infractions. Additionally, a recent trend explores the use of Large Language Models (LLMs) to interpret legal texts dynamically and provide natural language explanations for an AV's planned actions.

Benchmarking and Datasets

To validate these neuro-symbolic systems, the survey references several key benchmarks:

  • GTSRB: Used for testing the robustness of logic-infused traffic sign recognition.
  • ROAD and Waymo/ROAD++: Focused on semantic consistency and uncertainty quantification.
  • PandaSet and NuScenes: Utilized for knowledge-based entity prediction, specifically for objects that may be occluded.
  • IESG: A dataset designed for evaluating hierarchical traffic scene graphs.

Key Insights: The "Lesser Evil" and Semantic Consistency

A pivotal concept identified in the research is the formalization of "necessary violations." By utilizing hierarchical logic, an AV can be programmed to understand that violating a lane marking is legally justifiable if it prevents a higher-priority incident, such as a collision.

Furthermore, the integration of logic enhances semantic consistency. If a perception system detects a vehicle but simultaneously classifies its behavior as physically impossible (e.g., "flying"), a logic-integrated system can flag this as a semantic error. This reduces false positives and increases the overall reliability of the perception stack.

Empirical Results

The survey highlights several quantitative improvements achieved through these methods:

  • Robustness: Logic-infused models like RLDL significantly outperform standard CNNs under adversarial conditions.
  • Uncertainty Reduction: Methods such as Knowledge-Refined Prediction Sets (KRPS) have reduced prediction uncertainty by up to 80% and improved semantic consistency by 30%.
  • Scene Understanding: Hierarchical scene graph models (HKTSG) demonstrated a 14.7% accuracy improvement over standard LSTM-based models.
  • Missing Entity Prediction: Neuro-symbolic approaches (KEP) can predict occluded objects with high precision, achieving a 0.87 Hits@1 score by reasoning about scene context.

Future Challenges

Despite these advancements, several "grand challenges" remain for the field:

  • Scalability: Manually encoding traffic laws for every jurisdiction is an arduous task; semi-automated translation tools are needed.
  • The Socially Acceptable Gap: There is a persistent tension between strict legal adherence and "socially acceptable" driving (e.g., knowing when to nudge into an intersection).
  • LLM Reliability: While LLMs are adept at interpretation, the risk of "hallucinated" rules remains a major hurdle for safety-critical applications.
  • Cross-Jurisdiction Adaptability: Systems must be capable of swapping rule sets seamlessly as they cross borders without requiring a total software overhaul.

Summary updated

Abstract

This survey provides an analysis of current methodologies integrating legal and logical specifications into the perception, prediction, and planning modules of automated driving systems. We systematically explore techniques ranging from logic-based frameworks to computational legal reasoning approaches, emphasizing their capability to ensure regulatory compliance and interpretability in dynamic and uncertain driving environments. A central finding is that significant challenges arise at the intersection of perceptual reliability, legal compliance, and decision-making justifiability. To systematically analyze these challenges, we introduce a taxonomy categorizing existing approaches by their theoretical foundations, architectural implementations, and validation strategies. We particularly focus on methods that address perceptual uncertainty and incorporate explicit legal norms, facilitating decisions that are both technically robust and legally defensible. The review covers neural-symbolic integration methods for perception, logic-driven rule representation, and normaware prediction strategies, all contributing toward transparent and accountable autonomous vehicle operation. We highlight critical open questions and practical trade-offs that must be addressed, offering multidisciplinary insights from engineering, logic, and law to guide future developments in legally compliant autonomous driving systems.
BibTeX
@misc{manas2025integrating,
  author = {Kumar Manas and Mert Keser and Alois Knoll},
  title = {{Integrating Legal and Logical Specifications in Perception, Prediction, and Planning for Automated Driving: A Survey of Methods}},
  year = {2025},
  eprint = {2510.25386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25386},
}
Figure