Abstract
Connected and Automated Vehicles (CAVs) generate vast quantities of heterogeneous data, yet transforming these streams into actionable, human-understandable insights remains a significant challenge. This paper presents V2X-LLM, a framework that utilizes the reasoning capabilities of Large Language Models (LLMs) to interpret and predict traffic scenarios within connected vehicle corridors. By encoding raw Vehicle-to-Everything (V2X) data into structured textual formats, the system achieves high accuracy in lane identification and signal phase detection. Field tests conducted in Madison, Wisconsin, demonstrate the framework's potential for real-time scenario explanation, state prediction, and navigation advisory.
1. Introduction
The modern "Smart Corridor" is characterized by a continuous stream of data, including Basic Safety Messages (BSMs) from vehicles and Signal Phase and Timing (SPaT) data from infrastructure. While the collection of this data has become standardized, the ability to derive high-level situational awareness in real-time remains a hurdle. Traditional traffic management systems often rely on rigid, rule-based algorithms that lack the flexibility to interpret complex, unstructured environmental factors. V2X-LLM aims to bridge this gap by leveraging the linguistic and reasoning strengths of LLMs to provide a cohesive narrative of the roadway environment.
2. Problem Statement
Existing V2X pipelines are proficient at identifying discrete data points—such as a vehicle's precise latitude and longitude—but struggle to provide contextual reasoning. For instance, a system may know a vehicle's coordinates but fail to articulate that the vehicle is in a specific turn lane and must prepare for a signal change or downstream congestion. The challenge lies in integrating structured packets (GPS, speed) with unstructured contextual factors to create a human-like understanding of traffic dynamics.
3. Methodology
The V2X-LLM framework employs a multi-layered architecture designed to process and interpret V2X data through natural language processing.
3.1 Data Pipeline and Scenario Encoding
The system ingests raw V2X messages, including MAP (intersection geometry), SPaT, and BSM. A specialized Scenario Encoding module extracts essential features and converts them into a standardized textual format. This process transforms spatial coordinates and binary signal states into descriptive language, such as "Southbound Through" or "Stop-And-Remain," allowing the LLM to process spatial-temporal data as text.
3.2 Prompt Engineering and Task Specialization
To guide the LLM (specifically GPT-4), the researchers developed four specialized prompt templates:
- Scenario Explanation: Narrating corridor layout and trip details.
- V2X Data Description: Identifying current vehicle status and signal phases.
- State Prediction: Forecasting vehicle trajectories and signal transitions.
- Navigation Advisory: Providing optimized routing and maneuvering instructions.
3.3 Dual-Processing Logic
The framework distinguishes between "Answering" (simple data retrieval) and "Reasoning" (analysis of contextual relationships). This allows the system to not only report data but also explain the underlying logic behind its navigation advice.
4. Experimental Setup
The framework was validated using real-world field data collected between April and July 2023 on the Park Street Corridor in Madison, Wisconsin. The testbed consisted of six Roadside Units (RSUs) spanning a 1.3-mile stretch. During a 35-minute field test, the system processed 18,340 BSM messages and over 110,000 SPaT messages, integrated with MAP data and coordinated signal plans from the City of Madison.
5. Key Results
The evaluation of V2X-LLM across its core tasks yielded the following quantitative insights:
- Identification Accuracy: The system achieved 98.9% accuracy in lane identification and 98.1% in traffic signal phase detection.
- Scenario Understanding: Lane connection logic was identified with 95% accuracy.
- Predictive Performance: While signal phase estimation showed an average error of 5.7 seconds, the system successfully anticipated transitions between phases (e.g., from "Stop" to "Protected Movement").
- Spatial Precision: Scenario explanations exhibited a minor 0.3-mile distance error, primarily attributed to map data limitations rather than LLM reasoning errors.
6. Discussion and Future Work
V2X-LLM demonstrates that text can serve as a universal interface for complex traffic physics, allowing LLMs to apply general world knowledge to V2X data. However, several limitations remain:
- Latency: The computational overhead of large models like GPT-4 poses challenges for real-time edge deployment. Future research will focus on fine-tuning smaller, more efficient models.
- Prediction Drift: Trajectory forecasting accuracy decreases over longer horizons, with error increasing from 7.4 feet at 1 second to 89.6 feet at 5 seconds.
- Multimodality: Integrating Vision-Language Models (VLMs) to combine camera feeds with V2X data could further enhance situational awareness.
7. Conclusion
V2X-LLM represents a significant step toward human-like reasoning in intelligent transportation systems. By transforming raw sensor data into structured narratives, the framework provides a transparent and explainable approach to vehicle navigation and corridor management, laying the groundwork for more intuitive interaction between automated systems and human operators.
Summary updated