scieee AI-readable full text Open interactive document viewer

Autonomous Driving Systems with Large Language Models : A Comparative Study of Interpretability and Motion Planning

Yan, Shengheng

Full text

Shengheng Yan Autonomous Driving Systems with Large Language Models: A Comparative Study of Interpretability and Motion Planning Master’s Thesis in Information Technology May 16, 2024 University of Jyväskylä Faculty of Information Technology Author: Shengheng Yan Contact information: [email protected] Supervisors: Tsvetomila Mihaylova, and Terziyan Vagan Title: Autonomous Driving Systems with Large Language Models: A Comparative Study of Interpretability and Motion Planning Työn nimi: Autonomiset ajoneuvojärjestelmät suurilla kielimalleilla: Vertailututkimus tulkittavuudesta ja liikkeen suunnittelusta Project: Master’s Thesis Study line: Artificial Intelligence Page count: 73+3 Abstract: In this master’s thesis, we investigate the integration of large language models into autonomous driving systems, with a particular emphasis on their potential to enhance interpretability, decision-making, and planning capabilities. We implement both data-driven and knowledge-driven models within the CARLA simulator across diverse scenarios, focusing specifically on the TransFuser and LMDrive frameworks. This study provides a comparative analysis of these models utilizing a range of metrics. The results indicate that while LM- Drive exhibits certain limitations in motion planning, it demonstrates significant competence in interpretability, particularly in recognizing traffic light signals and detecting bumpy road conditions. Keywords: Autonomous Driving, Large Language Models, Interpretability, Deep Learning Suomenkielinen tiivistelmä: Tässä pro gradu -tutkielmassa tutkimme suurten kielimallien integrointia autonomisiin ajoneuvojärjestelmiin, erityisesti niiden potentiaalia parantaa tulkittavuutta, päätöksentekoa ja suunnittelukyvykkyyttä. Toteutamme sekä datalähtöisiä että tietämyslähtöisiä malleja CARLA-simulaattorissa erilaisissa skenaarioissa keskittyen erityisesti TransFuser- ja LMDrive-kehyksiin. Tämä tutkimus tarjoaa vertailevan analyysin näistä malleista käyttäen useita mittareita. Tulokset osoittavat, että vaikka LMDrive osoittaa tiet- i tyjä rajoituksia liikkeen suunnittelussa, se osoittaa merkittävää osaamista tulkittavuudessa, erityisesti liikennevalojen tunnistamisessa ja epätasaisen tien havaitsemisessa. Avainsanat: Autonominen ajaminen, suuret kielimallit, tulkittavuus, syväoppiminen ii Glossary FC Fully Connected Layer. 13 GRU Gated Recurrent Unit. 16 LMDrive Closed-Loop End-to-End Driving with Large Language Models. 3 MLP Multilayer Perceptron. 14 MMFT Multi-modal Fusion Transformer. 25 TD Transformer Decoder. 20 TE Transformer Encoder. 20 TransFuser Imitation with Transformer-Based Sensor Fusion for Autonomous Driving. 3 VE Vision Encoder. 26 ViT Vision Transformer. 21 iii List of Figures Figure1.FullyConnectedLayer ..............................................................14 Figure 2. Multilayer Perceptron with 2 fully connected layers...............................15 Figure 3. The Architecture of GRU(N. Li et al. May 2021)..................................16 Figure 4. Transformer(Vaswani et al. 2023)...................................................18 Figure5.ViT(Dosovitskiyetal.2021)........................................................21 Figure 6. Architecture of TransFuser(Chitta et al. 2022) .....................................24 Figure 7. Architecture of LMDrive(Shao et al. 2023) ........................................26 Figure 8. A typical simulation process(Law and Kelton 1991) ..............................29 Figure 9. Ego-vehicle start at yellow point, end at orange point follow pre-designed routesalongwithwhiteline.............................................................34 Figure 10. The view of 3 conditions of weather ..............................................35 Figure 11. The T-intersection is ahead of the agent and the system instructs to turn right..45 Figure 12. The system instructs the agent to change course to the other lane ...............46 Figure 13. The system instructs the agent to drive straight...................................47 Figure 14. The system gives a notification about the yellow light ahead ....................49 Figure 15. The system asks for attention to the rugged road ahead ..........................49 Figure 16. Notice: Attention is required for the rugged road surface head ..................50 List of Tables Table1.PromptEngineeringApproaches..................................................... 9 Table2.Fine-tuningPre-trainedModels......................................................12 Table 3. Classification of different testing scenarios (Gold et al. June 2017) ...............34 Table 4. Configurations of Conflict Scenarios ................................................36 Table 5. Configurations of TransFuser and LMDrive.........................................38 Table 6. Results of TransFuser on 3 routes with 3 times evaluation .........................40 Table 7. Results of LMDrive on 3 routes with 3 times evaluation ...........................41 Table 8. Results of different models in default weather ......................................42 Table 9. Results of different models in conflict scenarios ....................................43 Table 10. Samples of failure of instructions...................................................44 Table 11. Notifications collected from 3 routes both on default and extreme conflict. ..... 48 Table 12. Samples of Notification for Bumpy Road ..........................................50 iv Contents 1 INTRODUCTION ....................................................................... 1 2 AUTONOMOUSDRIVING............................................................ 4 2.1 Rule-based Methods to Data-driven Models ..................................... 5 2.2 Knowledge-drivenModels........................................................ 6 2.2.1 PromptEngineering ........................................................ 6 2.2.2 Fine-tuning Pre-trained Models ............................................ 9 2.3 Summary...........................................................................12 3 DEEPLEARNING ......................................................................13 3.1 Traditional Neural Network Architectures .......................................13 3.1.1 FullyConnectedLayer .....................................................13 3.1.2 MultilayerPerceptron ......................................................14 3.1.3 TheGRUNetwork..........................................................16 3.2 Transformer........................................................................17 3.2.1 Self-AttentionMechanism .................................................18 3.2.2 Multi-HeadAttention.......................................................19 3.2.3 Transformer Encoder and Decoder ........................................20 3.3 VisionTransformer................................................................21 3.3.1 InputEmbedding ...........................................................21 3.3.2 PositionalEncoding ........................................................22 3.3.3 TransformerEncoder .......................................................22 3.3.4 ClassificationHead .........................................................23 3.4 Summary...........................................................................23 4 DEEP LEARNING MODELS IN AUTONOMOUS DRIVING ......................24 4.1 TransFuser.........................................................................24 4.1.1 Multi-Modal Fusion Transformer ..........................................25 4.1.2 Auto-Regressive Waypoint Prediction Network...........................25 4.2 LMDrive...........................................................................26 4.2.1 VisionEncoder..............................................................26 4.2.2 LargeLanguageModel.....................................................27 4.3 Summary...........................................................................28 5 METHODOLOGY ......................................................................29 6 EXPERIMENTS.........................................................................32 6.1 CARLASimulation ...............................................................32 6.1.1 Scenarios....................................................................33 6.1.2 ConflictScenarios ..........................................................34 6.2 AutonomousAgents...............................................................36 6.3 Metrics.............................................................................38 7 RESULTS ................................................................................39 v 7.1 Comparison of TransFuser and LMDrive ........................................39 7.1.1 NoConflictsScenarios .....................................................39 7.1.2 ConflictScenarios ..........................................................42 7.2 InterpretabilityofLMDrive ......................................................43 7.2.1 FailureofInstructions ......................................................43 7.2.2 TrafficLightsNotifications.................................................47 7.2.3 BumpyRoadDetection.....................................................50 7.3 Summary...........................................................................51 8 CONCLUSIONS.........................................................................52 BIBLIOGRAPHY..............................................................................53 APPENDICES..................................................................................67 vi 1 Introduction The market trend in electric vehicles (EVs) is increasing rapidly and is predicted to reach 145 million sales by the year 2030 (Patil 2020). In the meantime, autonomous driving(AD) technology could enhance the convenience and efficiency of EVs even further. Such technology has seen significant progress, mainly driven by ongoing improvements in sensor technology such as millimeter-wave radar, light detection and ranging(LiDAR), cameras, etc. (Li and Ibanez-Guzman 2020; Xiang et al. 2023), and its integration of artificial intelligence (AI) (Chen, Li, et al. 2023). Despite significant progress of AI in autonomous driving, ongoing challenges persist. A heavy dependence on data-driven methods leaves systems vulnerable to data bias, often leading to overfitting training data (Cao et al. 2023; Huang et al. 2023). This challenge hinders the capability of current autonomous driving systems to effectively tackle long-tail and crossdomain issues (Xiang et al. 2023; J. Wang et al. 2022), which restricts their adaptability in unfamiliar environments. Additionally, these systems suffer from a lack of interpretability (Zablocki et al. 2022; Zhang et al. 2023). Overall, data-driven methods rely on large datasets to train models for pattern recognition and prediction but can suffer from overfitting, lack generalization, and limited interpretability, while knowledge-driven methods integrate knowledge, common sense, and reasoning of human to enhance handling complex scenarios, improve interpretability, and enable more adaptive decision-making (Wang, Yang, and Wu 2023). Notably, the term explainability is frequently associated with the concept of interpretability(Zablocki et al. 2022). Interpretability refers to the extent to which a human can comprehend the rationale behind a decision made by an AI system, with an emphasis on the clarity of the explanation (Miller 2018), while explainability includes interpretability and completeness, ensuring the explanation is both understandable and thoroughly covers all relevant aspects of the decision-making process. In this study, we concentrate on the interpretability. 1 Therefore, the need to explain the behaviors of autonomous driving is multifaceted (Zablocki et al. 2022). For example, 1. Debugging: Explanations can aid engineers and researchers in enhancing future iterations by offering insights into edge cases, pitfalls, and possible failure points (Y. Tian et al. 2018; Hecker et al. 2020). 2. Trusting: Explanations become essential for building user trust and facilitating the implementation of the technology when the system’s performance matches human performance (Lee and Moray 1992; Choi and Ji July 2015; Shen et al. 2022; Zhang, Yang, and Robert 2020). 3. Improving: If autonomous driving models significantly surpass human abilities in the future, explanations could help educate humans on improved driving techniques and better decision-making through machine teaching (Aodha et al. 2018). Recent works, LM-Nav (Shah et al. 2022) and CLIP-MC (Jain et al. 2022) harness largescale vision language pre-training to acquire linguistic knowledge from textual instructions and visual features from images by leveraging CLIP (Radford et al. 2021). These studies demonstrate the efficacy of this pre-trained model, presenting a compelling framework for addressing intricate navigation challenges using multimodal models (Chen, Wu, et al. 2023). Although large language models (LLMs) like GPT-3 (Brown et al. 2020) show the ability to handle complex linguistic instructions, the integration of LLMs and the field of autonomous driving remains unclear (Chen, Wu, et al. 2023). While the majority of studies prioritize enhancing trajectory planning ability and developing new models, there is less emphasis on evaluating existing models and their potential to improve interpretability. Without thorough evaluation, the field may continue to advance technologically without addressing these crucial aspects. This could result in the development of autonomous systems that are less transparent, harder to trust, and potentially more error-prone. Moreover, the opportunity to refine and perfect existing technologies might be lost, leading to continual reinvention rather than focused improvement and optimization. Therefore, we propose four research questions to address this research gap: 1. What existing approaches and large language models are available for developing knowledge-driven autonomous driving systems? This question aims to survey and review existing resources and techniques in the field 2 experiences obtained from the lane-4-density-2 environment, and conducted experiments in the lane-5-density-3 setting, testing the closed-loop performance of 3-shot and 5-shot respectively. Also, they use CitySim to test the ability to use real-world datasets. The limitation they mention is 5-10 seconds of latency in the process of decision-making. Name LVM Evaluation Simulator “A Safety Perspective”(Y. Wang et al. 2024) GPT-4 1 scenario HighwayEnv “ChatGPT as Your Vehicle Co-Pilot”(S. Wang et al. 2023) GPT-3.5 2 tasks Simulink, CarSim Talk2Drive(Cui et al. 2024) GPT-4 3 scenarios Real-world test “Receive, Reason, and React”(Cui et al. 2023) GPT-4 2 scenarios HighwayEnv Talk2BEV(Choudhary et al. 2023) BLIP-2, MiniGPT-4 Talk2BEV-Bench - SurrealDriver(Jin et al. 2023) GPT-4 Town10 CARLA "Drive a Like Human"(Fu et al. 2023) GPT3.5 2 scenarios HighwayEnv LanguageMPC(Sha et al. 2023) GPT3.5 25 scenarios IdSim DriveVLM(X. Tian et al. 2024) Qwen-VL SUP-AD,nuScenes - DiLu(Wen et al. 2024) GPT3.5 3 lane settings HighwayEnv,CitySim Table 1: Prompt Engineering Approaches 2.2.2 Fine-tuning Pre-trained Models Compared to prompt engineering, a fine-tuning technique performs better in specific domains with targeted training data. The implementation of fine-tuning requires more computational resources than prompting. DriveMLM(W. Wang et al. 2023) employs a multi-modal LLM like LLaMA-7B(Touvron, Lavril, et al. 2023) integrated with a Vision Transformer (ViT)(Dosovitskiy et al. 2021) from EVA-CLIP(Fang et al. 2022) for visual processing and a Sparse Pyramid Transformer (SPT)(H. Yang et al. 2023) for LiDAR data. They use CARLA to evaluate the model in different driving scenarios with varying weather, lighting, and environments. The result shows that DriveMLM achieves an overall decision prediction accuracy of 75.23%, significantly outperforming other models like LLaVA 1.5(Liu, Li, Li, et al. 2023) (22.92%) and Instruct- BLIP (17.92%) in Open-Loop Evaluation. The model obtains a Driving Score (DS) of 76.1 on the CARLA Town05 Long benchmark, surpassing the Apollo baseline by 4.7 points in 9 Closed-Loop Driving. GPT-Driver (Mao, Qian, et al. 2023) introduces an approach to motion planning for autonomous vehicles using the OpenAI’s GPT-3.5 model which reinterprets motion planning as a language modeling task by translating the inputs and outputs of the planner into linguistic tokens. It allows for describing trajectory coordinates and its reasoning process in natural language. The approach is evaluated on the nuScenes dataset. The approach has its limitations, for example, the model size and inference time, which could hinder its application in real-time autonomous driving situations. They suggest exploring the techniques of the smaller large language model. The other limitation is concerned with their evaluation, which addresses open-loop motion planning and does not fully account for error accumulation during the driving process. The closed-loop motion planning is mentioned for evaluating the performance of motion planners. "Driving with LLMs" (Chen, Sinavski, et al. 2023) proposes an Object-Level Multimodal LLM framework, which aligns quantitative vector modalities with static large language model representations using vector captioning language data. They present a new dataset containing 160k question-answer (QA) pairs produced by GPT-3.5 derived from 10k driving scenarios collected by a reinforcement learning agent. GPT Grading and human grading are used for analyzing the performance of the model. DriveGPT4 (Xu et al. 2024) is built upon the LLaMA architecture, and trained using a mixfinetuning strategy, which pre-training and fintuning with visual instruction tuning dataset created by the author’s team. The dataset contains 56K video-text instruction-following samples and comprises 16K BDD-X(Kim et al. 2018) question-answering pairs and 40K QAs generated by ChatGPT. Their evaluation is focused on speed and turning angle, utilizing various metrics from the NLP community, such as CIDEr(Vedantam, Zitnick, and Parikh 2015), BLEU4(Papineni et al. 2002), and ROUGE-L(Lin July 2004). Moreover, LMDrive (Shao et al. 2023) deals with the limitations of current autonomous driving systems when encountering long-tail unforeseen events. They introduce a dataset with about 64K data in 2 to 20-second clips which include navigation and notice instructions, multi-view sensor data from multiple modalities, and control signals. Their evaluation uses 10 closed-loop experiments, which demonstrate LMDrive’s effectiveness. Agent-Driver (Mao, Ye, et al. 2023) uses GPT-3.5 as the primary LLM. The method utilizes chain-of-thought reasoning, including the identification of key objects and events, the formulation of high-level task plans, the generation of motion trajectories, and the performance of collision checks for self-assessment. Agent-Driver was evaluated using the large-scale nuScenes benchmark dataset. The results show strong few-shot learning by achieving superior performance with only a fraction of the training data, showing rapid adaptability. It also offers a transparent and understandable decision-making process by providing textual justifications. DriveLM (Sima et al. 2023) fine-tuned BLIP-2 (J. Li et al. 2023) using the DriveLM- nuScene dataset, which is derived from nuScenes. The DriveLM-CARLA dataset was gathered utilizing CARLA version 0.9.14 as part of the Leaderboard 2.0 framework. They evaluated their model, DriveLM-Agent, on DriveLM-Data, which comprises DriveLM-nuScene and DriveLM-CARLA, using custom metrics: DriveLM-Metric. This is a standard metric from the nuScenes and Waymo(Sun et al. 2020) benchmarks MTD-GPT(Liu, Hang, et al. 2023) uses GPT-2 architecture for multi-task decision-making. The model is trained in a custom-built simulation to forecast the next action by utilizing historical state-action-reward sequences and future rewards. The MTD-GPT model is tested in simulation scenarios on various tasks at unsignalized intersections and achieves comparable or superior performance compared to single-task RL models. 11 Name LVM Evaluation Simulator DriveMLM(W. Wang et al. 2023) LLaMA-7B nuScenes - GPT-Driver(Mao, Qian, et al. 2023) GPT3.5 nuScenes - "Driving with LLMs"(Chen, Sinavski, et al. 2023) LLaMA-7b DataQA Custom DriveGPT4(Xu et al. 2024) LLaMA-2 BDD-X - LMDrive(Shao et al. 2023) LLaMa-2 LangAuto Benchmark CARLA Agent-Driver(Mao, Ye, et al. 2023) GPT-3.5 nuScenes - DriveLM(Sima et al. 2023) BLIP-2 DriveLM-Data - MTD-GPT(Liu, Hang, et al. 2023) GPT-2 3 cases Custom Table 2: Fine-tuning Pre-trained Models 2.3 Summary We conduct a review on the development and evolution of autonomous driving technologies, particularly focusing on how LLMs and data-driven approaches are improving the performance and reliability of these systems. Overview of Autonomous Vehicles: Autonomous vehicles (AVs) are designed to navigate with minimal human intervention. According to the National Highway Traffic Safety Administration’s findings, human error causes 94% of road accidents. Autonomous vehicles are expected to reduce accidents, improve accessibility, and decrease emissions. AVs operate across six levels of automation, from Level 0 (manual driving) to Level 5 (fully automated). Data-Driven Approaches: Early rule-based path planning has evolved into data-driven models like reinforcement learning. Newer architectures integrate sensor data and use deep learning to optimize decision-making. Knowledge-Driven Models: The integration of LLMs into autonomous driving models is a recent development. These models analyze data, predict vehicle actions, and generate explanations for decision-making processes. Recent research leverages LLMs to align visionlanguage models with driving scenarios, such as GPT-Driver, DriveGPT4, and LMDrive. 12 3 Deep Learning Before we begin to implement any models, it is essential to establish a solid foundational knowledge of deep learning. Deep learning enables computational models, which consist of several processing layers, to acquire data representations across various levels of abstraction(LeCun, Bengio, and Hinton 2015). Understanding these fundamental concepts, such as traditional neural networks, is essential before advancing to its complex applications. 3.1 Traditional Neural Network Architectures 3.1.1 Fully Connected Layer A fully connected layer (FC), also known as a dense layer, is a fundamental type of neural network layer in which each neuron is linked to all neurons in the preceding layer as shown in Figure 1. This setup ensures that the input features are combined in every possible way to pass information through the network. Its application, such as CNN architecture (Raitoharju 2022), contains one or several fully connected layers, depending on the depth of the architecture (Basha et al. 2020). 13 . . . . . . . . . Input layer Fully Connected layer Ouput layer Figure 1: Fully Connected Layer The mathematical operations performed by such a layer can be described as follows: FC(x;W) = σ(Wx +b)(3.1) Where Wx represents the matrix multiplication between the weights Wand the input vector x. Moreover, Wx +badds the bias bto the result of Wx. It represents the input layer to the fully connected layer(also called the hidden layer). Finally, the activate function σis applied element-wise to the result of Wx+band is responsible for introducing non-linearity into the model, which allows the network to learn and model more complex functions. 3.1.2 Multilayer Perceptron A multilayer perceptron (MLP) is a type of artificial neural network that is widely used in machine learning for a variety of tasks, such as classification, regression, and feature learning. Most researchers preferred MLP as their neural network topology (Bose 2007). Such a network usually includes fully connected layers and is equipped with nonlinear activation functions. It is structured into at least three layers (input layer, hidden layer, and output 14 layer). . . . . . .. . .. . . Input layer Hidden1 layer Hidden2 layer Ouput layer Figure 2: Multilayer Perceptron with 2 fully connected layers However, if the MLP has only 1 fully connected layer, it is equivalent to a single fully connected layer: MLP(1)(x;W) = FC(x;W)(3.2) If the MLP has 2 fully connected layers, as shown in Figure 2, the equations should be changed to: h(1)(x;W(1)) = σ(1)(W(1)x+b(1)) h(2)(h(1);W(2)) = σ(2)(W(2)h(1)+b(2)) MLP(2)(x;W) = h(2)(h(1)(x;W(1));W(2)) Where h(1)is the output of the first fully connected layer, with σ(1)as its activation function, same as h(2)but with h(1)as input. W(1)is the weight matrices of first layers, while W(2) is the matrices of second layers. Similarly b(1)and b(2)is the bias vectors of the first and second layers. Note that the notation MLP(n)(x;W)generally refers to an MLP with nlayers, where n indicates the number of fully connected layers in the network. 15 3.1.3 The GRU Network Efforts in the simplification of Long Short-Term Memory(LSTM)(Hochreiter and Schmidhuber December 1997a) networks have given rise to the Gated Recurrent Unit (GRU)(Cho et al. 2014) as shown in Figure 3, a model predicated on two multiplicative gates. Figure 3: The Architecture of GRU(N. Li et al. May 2021) Although this model features a reduced gating mechanism, empirical studies suggest that GRUs exhibit performance on par with LSTMs across various machine-learning applications such as GRNN(Chung et al. 2014). The standard GRU Network Equations is defined as (Ravanelli et al. April 2018): zt=σ(Wzxt+Uzht−1+bz),(3.3a) rt=σ(Wrxt+Urht−1+br),(3.3b) e ht=tanh(Whxt+Uh(ht−1⊙rt)+bh),(3.3c) ht=zt⊙ht−1+ (1−zt)⊙e ht.(3.3d) In these expressions, ztis the update gates, and rtsignifies the reset gates. htdenotes the state vector at time t. The operator ⊙indicates element-wise multiplication. The gates are activated by logistic sigmoid functions σ, limiting update gates and reset gates values between 0 and 1. The candidate state e htundergoes transformation via a hyperbolic tangent function. 16 The network inputs are represented by the vector xt, such as speech feature vectors, and the parameters encompass feed-forward matrices Wz,Wr,Wh, alongside recurrent matrices Uz, Ur,Uh. Additionally, bz,br, and bhare bias vectors, integrated before the application of non-linear functions. As delineated in Eq. 3.3d, htis computed as a linear blend of the prior activation ht−1and the candidate state e ht, with proportions determined by the update gate zt. This mechanism is crucial for encoding long-term dependencies within the network. A high value of ztmaintains the previous state substantially unchanged, facilitating the preservation of information over prolonged periods. Conversely, a lower value of ztallows for greater influence from the candidate state e ht, reflecting more immediate inputs and recent hidden states. The influence of the reset gate rtis also notable, enabling the model to potentially discard past information by forgetting earlier computed states. Noteworthily, both the TransFuser (Chitta et al. 2022) and LMDrive (Shao et al. 2023) models employ GRU neural networks to predict waypoints. 3.2 Transformer The Transformer (Vaswani et al. 2023) is a deep learning model. It has become the foundation for many advanced models in natural language processing (NLP). For example, a language model based on the Transformer architecture BERT, known as Bidirectional Encoder Representations from Transformers (Devlin et al. 2019b), has achieved remarkable performance in NLP. Unlike the recurrent neural network (RNN) suffers from the vanishing or exploding gradient problem(Pascanu, Mikolov, and Bengio 2013), where gradients diminish or grow exponentially over time during training. This limitation led to the development of more advanced architectures like gated recurrent neural networks (GRNNs)(Chung et al. 2014), Long Short-Term Memory (LSTM)(Hochreiter and Schmidhuber November 1997b) which have solidified their status as leading methodologies in sequence modeling and transduction tasks, notably in language modeling and machine translation (Bahdanau, Cho, and Bengio 2016; Cho et al. 2014). However, GRNNs and LSTM still have their own shortcomings, such as complexity and computational cost, difficulty in capturing global dependencies, and sequential processing. 17 Transformer resolved many of these issues by relying on attention mechanisms, bypassing the need for recurrence entirely in the architecture. The key innovation in Transformer is the self-attention mechanism (The architecture on the right in Figure 4), which enables the model to assess the significance of different words within the input data, regardless of their order. This breakthrough enabled more efficient training by leveraging parallel computing, thereby drastically reducing training times and improving performance on tasks requiring an understanding of long-range dependencies in text. Figure 4: Transformer(Vaswani et al. 2023) 3.2.1 Self-Attention Mechanism As we mentioned before the self-attention mechanism (also Scaled Dot-Product Attention) is the core of the Transformer architecture. In this section, we try to simplify the mechanism with mathematical equations. The self-attention mechanism takes 3 vectors as input Query (Q), Key(K), and Value(V), which extracted for each word. It outputs a weighted sum of the value vectors, where the weights assigned to each value depend on the compatibility of the 18 4.1.1 Multi-Modal Fusion Transformer Similar to Vision Transformer(in Section 3.3), the Multi-Modal Fusion Transformer(MMFT) uses Transformer (Vaswani et al. 2023) to extract features from the image and LiDAR data streams. It processes these features at multiple scales within the network, ensuring that the fusion captures both high-level and low-level details relevant to driving decisions. Ft=ResNet(X) Q,K,V=FtMq,FtMk,FtMv At=MultiHead(Q,K,V) Ft+1=MLP(At)+Ft Where Ft∈RN×Dfis the input sequence and here Ndenotes the total number of tokens within the sequence, with each token being characterized by a feature vector of dimensionality Df. In this context, Xwill be image data or LiDAR data and apply the ResNet (He et al. 2015) operation. The Query (Q), Key(K), and Value(V) apply linear projections to Ft and weight matrices (Mq∈RDf×Dq,Mk∈RDf×Dkand Mv∈RDf×Dv). Then, we get the output features Ft+1by using Multi-Head Attention Eq.3.5 and Multilayer Perception Eq.3.2. Finally, we model the MMFT by applying fully connected layer Eq.3.1 and average pooling layer(AvgPool). MMFT(X) = FC(AvgPool(Ft+1)(4.2) 4.1.2 Auto-Regressive Waypoint Prediction Network As depicted in Figure 6, the 512-dimensional feature vector undergoes dimensionality reduction to 64 via a Multilayer Perceptron (MLP) with two hidden layers of 256 and 128 units each, aimed at enhancing computational efficiency. Subsequently, the transformed vector is fed into the auto-regressive waypoint network, which is realized using GRUs (Cho et al. 2014). Lastly, we complete the TransFuser model as Eq.4.3. TransFuser(I,L) = GRU(MLP(MMFT(I)+MMFT(L)) (4.3) 25 4.2 LMDrive LMDrive(Shao et al. 2023) is a pioneering framework designed to interpret and execute high-level driving instructions using LLM. This innovative model consists of two primary components which are integrated to process sensory data and linguistic commands for vehicle control. Figure 7: Architecture of LMDrive(Shao et al. 2023) similar to TransFuser, LMDrive takes RGB images(I), LiDAR (L)and natural language navigation instructions(S)as inputs, and outputs waypoints(wt)as control signals for driving actions in real-time. wt=LMDrive(I,L,S;W)(4.4) 4.2.1 Vision Encoder Similar to the Multi-Modal Fusion Transformer of TransFuser, LMDrive uses the vision encoder for processing the visual and spatial data obtained from RGB image cameras and LiDAR. Vision Encoder(VE) takes RGB images(I)and LiDAR (L)as inputs and outputs visual 26 tokens (Vtokens) which include BEV tokens, waypoint tokens, and traffic light tokens. VE can be defined as: VE(I,L) = Vtokens (4.5) Where the image date I∈R3×H×Ware applied CNN backbone ResNet(He et al. 2016), and it produces a feature map f∈Rd×H×Wwith lower-resolution. For the LiDAR input L, the 3D backbone PointPillars(Lang et al. 2019) are used to process the raw point cloud data into ego-centered LiDAR features, where each pillar contains points within a 0.25m × 0.25m area. PointNet(Qi et al. 2018) is then employed to aggregate these features and downsample the feature map to dimensions C×H×W, which are then utilized as BEV queries. Q=PointNet(PointPillars(L)) V,K=TE(Flatten(ResNet(I))) Vtokens =TD(Q,K,V) 4.2.2 Large Language Model After processing the visual data, LMDrive utilizes a sophisticated large language model (LLM) to understand and execute driving instructions provided in natural language. This integration allows the system to interpret instructions contextually and make informed driving decisions. Large Language model (LLM) takes language instructions sentence (S) and vision tokens Vtokens as inputs, and outputs waypoints((wt)) as control signals for driving actions in realtime. LLM in LMDrive can be defined as: Ttokens =Tokenizer(S) V′ tokens =MLP(2)(QFormer(Vtokens)) LLM(S,Vtokens) = Ttokens +V′ tokens (4.6) Finally the LMDrive: LMDrive(I,L,S) = MLP(2)(LLM(S,VE(I,L))) (4.7) 27 4.3 Summary We provide an overview of two models used in autonomous driving, TransFuser and LM- Drive. These two models offer different but complementary ways to enhance motion planning for autonomous vehicles TransFuser integrates images and LiDAR data through a Transformer architecture for accurate navigation. It consists of two main components: the Multi-Modal Fusion Transformer (MMFT) and the Auto-Regressive Waypoint Prediction Network. LMDrive is a framework that combines sensory data and natural language instructions for driving control. the inputs include RGB images, LiDAR data, and high-level language instructions. It has a vision encoder that processes RGB and LiDAR data to generate tokens for use in decision-making. Also, It employs a large language model (LLM) to interpret navigation instructions and integrates it with sensory data to generate control signals in real time 28 5 Methodology We use the core methodology of simulation (Paul and Balmer 1993) to address our research questions 2, 3, and 4. The main goal of simulation modeling is to assist the final decisionmaker in resolving an issue (Shannon 1998). For example, we use CARLA (Dosovitskiy et al. 2017) to help us solve evaluation problems that are too perilous for conducting realworld experiments. Consequently, the method has gained recognition as an effective tool for problem-solving within the research community, with widespread agreement on its adoption for modeling purposes (Eldabi, Irani, and Paul February 2002). A typical process of simulation is illustrated in Figure 8. 1. Formulate problem and plan study 2. Collect data and define model 3. Valid? 4. Construct a program and define model 5. Make a pilot run 6. Valid? 7. Design experiments, 8 Make production run 9. Analyze Output data, 10. present results yes yes no no Figure 8: A typical simulation process(Law and Kelton 1991) 29 Importantly, a methodology should not dominate the research process under any circumstances confirmed by Quinn, Mintzberg, and James 1988. Therefore, we categorize the simulation process into 3 steps. 1. formulate problems. 2. implement the selected model and simulate the program as elaborated in Chapter 6. 3. evaluate the results in Chapter 7. The first step of the simulation process (Law and Kelton 1991) is to formulate the problems by establishing our objectives and identifying the particular matters that warrant consideration. Research Question 1: Let Abe the set of all approaches, Mthe set of large language models applicable to autonomous driving, and Sthe simulation environments. We define a function f:A×M×S→Rthat measures the suitability of each combination of approaches, models, and simulators for autonomous driving tasks. The objective is to find: max a∈A,m∈M,s∈Sf(a,m,s)(5.1) So far we have conducted a systematic literature review on Chapter 2. We explored different approaches(A) and open source simulators(S) and custom simulators with language models(M). First of all, we decided CARLA should be our simulator(s=Carla) for 3 compelling reasons. 1. CARLA offers 3D maps and dynamic weather systems that are more realistic than the other simulators. 2. CARLA includes a wide range of sensor types, such as LIDAR, radar, cameras, and GPS, which accurately replicate the inputs an autonomous vehicle would use. 3. CARLA has strong community support and frequent updates. Secondly, we have strong justifications for taking LMDrive as our focusing approach(a= LMDrive). We run experiments with a prompting approach from GPT-driver(Mao, Qian, et al. 2023) (see in Appendix8) on the Carla simulator, which fails steps 5 and 6( see in Figure8). The hindrance of prompting approaches run on the Carla simulator due to the reason that they are designed to 2 dimension simulators such as HighEnv(Leurent 2018), and the prompts need to describe very specific details about the environment. Moreover, there is a notable lack of a comprehensive benchmark consisting of substantial linguistic 30 prompts(Chen, Wu, et al. 2023). Ultimately, the LMDrive(Shao et al. 2023) model was chosen for further evaluation due to its open-source nature, allowing a thorough understanding of its architecture. It also has credible explanations in their experiments that LLaVA-v1.5(Liu, Li, Li, et al. 2023) outperforms the other LLM models. Therefore m=LLaVA1.5. Research Question 2: Given a simulation environment (s=Carla), approach(a=LMDrive), and large language model (m=LLaVA1.5). Let g:X→Tbe a development function within s,a,mto its performance on Twhere Tis a set of motion planning tasks and Xis necessary sensor data such as RBG image and LiDAR cloud points. Our gold can be formulated as: g(X;s,a,m)(5.2) The full implementation of our goal function is described in Section 6.2. Research Question 3: Let a=LMDrive and b=TransFuser represent the knowledge-driven and data-driven model respectively. Define p(x;θ)as a performance output that evaluates a set of metrics( θdefined in Section 6.3). The objective is to evaluate: Compare({p(k;θ)},{p(b;θ)})(5.3) This formulation aims to quantify and compare the effectiveness and efficiency across model types. The detailed comparison is shown in Section 7.1. Research Question 4: For a set of predefined routes (Rshown in Section 6.1.1) where decisions are made by a large language model m=LLaVA1.5 from the knowledge-driven approaches a=LMDrive, define the interpretability function E:a×R→{0,1}, where the output represents whether the interpretability successed(1) or fail(0) to describe a scenario. The objective is to asses: Assess(E)(5.4) The analysis of the interpretability results is shown in Section 7.2. 31 6 Experiments In the chapter, we answer the research question 2, formulated in Eq.(5.2). We elaborate on the simulator and scenarios we used for the experiments and then demonstrate the implementation of deep learning models integrated into the CARLA simulation environment. Lastly, we define our metric to evaluate the models. 6.1 CARLA Simulation For the experiments, we utilize version 0.9.10.1 of the open-source CARLA simulator (Dosovitskiy et al. 2017). It is famous for its realistic driving environments and flexible testing capabilities. CARLA provides a rich set of built-in maps, such as the 3D model of Town01, derived from an OpenDRIVE file (ASAM e.V. 2023). This map provides road layouts, lanes, and junctions, etc., which are ideal for complex simulation scenarios. The core component of CARLA is to manage basic vehicle dynamics, sensor simulation, and environmental conditions such as weather. But it is not enough, we need extra 2 components 1. Carla Leaderboard (Leaderboard 2024) and 2. ScenarioRunner (ScenarioRunner 2024). The first component is a platform designed to benchmark the performance of autonomous driving systems in a simulated environment. It utilizes the scenarios created and managed by the ScenarioRunner to conduct standardized tests. It automates the process of running autonomous agents through various scenarios to evaluate their performance based on specified metrics. The second component is a tool used within the CARLA simulator to define, execute, and manage different traffic scenarios. Inspired by the Longest6 Benchmark (Chitta et al. 2022), we have simplified this benchmark to suit our specific research interests, such as the time-consuming of the models. This adjustment allows for a more focused evaluation of critical aspects of autonomous driving relevant to our study without the redundant time complexity for the test environments. 32 6.1.1 Scenarios The main evaluation focuses on navigating a vehicle on predefined routes in the Town01 environment, with 3 scenarios(or routes) designed to test the ability of each model to handle different driving situations. These scenarios include navigating through traffic jams, making left and right turns, responding to vehicles running red lights, and obstacle avoidance. The routes, marked by sparse GPS coordinates provided by a global planner, challenge the agents to adhere to traffic laws while managing interactions with numerous dynamic agents within a set timeframe. Each route starts from a specific position (marked in yellow) and follows a designated path (white line) to a goal location (orange point), as exemplified in Figure 9. This setup not only tests the navigational accuracy and decision-making capabilities of models but also their ability to integrate sensor inputs with dynamic traffic elements in a realistic virtual setting. Each route varies in the number of traffic lights and turns. These elements are critical in testing how well the model handles decision-making at intersections and during lane changes or turns. Route01 Fig.(9a): With 6 traffic lights and 8 turns over a distance of 1130.24 meters, this route is designed to test the capability of the model to handle a moderate number of decision points (traffic lights and turns) over a longer distance. Route02 Fig.(9b): This route has 9 traffic lights but the same number of turns as Route 01 packed into a slightly shorter distance (1014.57 meters). The increased number of traffic lights could test the response of the model to frequent stop-and-go scenarios and prioritization at intersections. Route03 Fig.(9c): The shortest route at 731.50 meters with 5 traffic lights and only 5 turns. This setup is intended to evaluate the model’s efficiency and decision-making in a less complex but more streamlined path, focusing on the efficiency of navigation with fewer interruptions. 33 (a) Route 1 (b) Route 2 (c) Route 3 Figure 9: Ego-vehicle start at yellow point, end at orange point follow pre-designed routes along with white line 6.1.2 Conflict Scenarios In addition to testing the performance of autonomous driving agents in conflict scenarios, we exploit the weather system that the simulator provided. Gold et al. June 2017 proposes a Classification for level-3 conflict scenarios based on a scale of 1 to 3 of 4 factors such as Urgency, Predictability, Criticality, and Driver response. However, we are interested in the conflicts that are shown in the table 3. No. Name Urgency Predictability Criticality Driver Response 2 Sensor failure 3 1 2-3 1-2 9 Danger zone/obstacle ahead(detected by onboard sensors) 3 1 1-3 1-3 10 Loss of reference signals (e.g. lane markings missing) 3 1 2-3 1 Table 3: Classification of different testing scenarios (Gold et al. June 2017) In order to test the performances of the models in such conflicts, we use the weather system indirectly to represent the conflicts. For example, our extreme condition is shown in Figure 10c failed to see the landmark of the speed limit compared to other conditions. The Town01 has already included the Danger zone such as a bumpy route condition. The configuration 34 Routes Eval RC NOC ST GT IT 1 1 38 2 2290.53 154.95 0.067 2 5.05 1 377.49 39.85 0.105 3 16.75 2 5230.78 371.1 0.070 avg. 19.933 1.66 2632.93 188.63 0.071 2 1 27.27 1 2044.3 135.85 0.066 2 3.2 1 705.75 44.9 0.063 3 4.78 3 3448.73 213.35 0.0618 avg. 11.75 1.66 2066.26 131.36 0.0635 3 1 19.46 1 3356.01 232 0.0691 2 15.64 0 1839.4 116.05 0.0630 3 19.2 1 4238.54 292.85 0.0690 avg. 18.1 0.66 3144.65 213.63 0.0679 Table 7: Results of LMDrive on 3 routes with 3 times evaluation Finally, we conducted the same experiment using a rule-based model as a baseline to assess how deep learning models impact inference time, as shown in Table 8. The efficiency of the rule-based agent in inference time is attributed to its use of fewer computational resources than deep learning models. In comparison, the TransFuser model not only demonstrates faster processing times but also greater consistency across various testing scenarios compared to LMDrive. The longer inference times of LMDrive suggest potential inefficiencies in its architecture, possibly due to the complex decision-making processes involving large language models (LLMs) or the less optimized Vision Transformer (ViT). Manual observations revealed that LMDrive frequently repeated errors, such as collisions with non-player characters (NPCs) across different lanes. This behavior indicates that the model is overfitting, being too trained to specific scenarios and thus failing to generalize across diverse situations. 41 Models RC NOC ST GT IT Rule-based Agent 53.33 1.33 604.53 309.86 0.512 TransFuser 98.08 0.55 3661.08 658.94 0.179 LMDrive 16.59 1.32 2614.61 177.87 0.068 Table 8: Results of different models in default weather 7.1.2 Conflict Scenarios Furthermore, we conducted experiments involving conflict scenarios (as defined in Section 6.1.2) for each model. Table 9 presents the average values of the metrics. The results indicate that although TransFuser experienced an increased number of collisions, it still maintained high-performance levels. In contrast, LMDrive maintained a consistent NOC due to its low route completion rate. The rule-based agent remained unaffected by conflicts because it relies solely on simulator back-end information, without using sensory inputs like cameras or LiDAR. These conflict scenarios demonstrate that extreme conditions significantly impact the sensor data received. The comprehensive analysis reveals that TransFuser not only outperforms LMDrive across metrics but also shows stability in varied and challenging environments. These findings suggest that the Multi-Modal Fusion Transformer in TransFuser provides substantial advantages in efficiency and adaptability, which are critical for real-time applications in autonomous driving. Additionally, the inefficiencies in LMDrive are due to its poor architecture of Vision Encoder and integration of LLM. 42 Models Conflicts RC NOC ST GT Rule-based Agent medium 91.58 0 895.57 623.05 extreme 97.03 1 916.27 623.05 TransFuser medium 100 6 2949.83 576.35 extreme 98.84 12 3103.19 623.0 LMDrive medium 19.04 1 3992.65 287.35 extreme 15.31 0 1428.86 98.8 Table 9: Results of different models in conflict scenarios 7.2 Interpretability of LMDrive In this section, we answer the research question 4, formulated in Eq.5.4. We focus on a deeper analysis of its interpretation abilities and the specific functional aspects where the model shows failure, and how these insights could inform improvements in autonomous driving technology. Although we collect data by screenshots of every change of the instructions and notifications, we choose the most representative cases to elaborate on the interpretability of LMDrive. 7.2.1 Failure of Instructions The LMDrive model has shown some shortcomings in its ability to follow instructions that are correctly aligned with the planned route, leading to critical errors such as collisions with obstacles and mis-navigation. These errors can be attributed to differences between the model’s interpretation and the route planning modules(as shown in Figures 13). We identify three types of failure: (1) The instruction is correct, but the agent fails to execute the action; (2) The instruction is incorrect, but the agent does not follow it; and (3) The instruction is incorrect, and the agent follows it. These instructions were observed in the simulation, as illustrated in Figure 10. Failures of type 1 commonly occur when the agent completes a turn. The system categorizes type 2 failures with a [Misleading] label. Type 3 represents a critical error, but it occurs infrequently Fig.13. 43 Failure Type Instructions 1 Continue driving straight on this particular road Do not derive from this road Keep on rolling straight till you get to the next junction 2 [Misleading] Please adjust your course to the left-most lane In another 16 meters, you’ll be turning left at the T- junction, alright? [Misleading] Just keep on rolling down the highway 3 keep going on this road, you’re doing great Table 10: Samples of failure of instructions Type 1: failure occurred when the agent could not turn right at the first T-intersection, straying from the planned route despite having received accurate instructions. Figure 11 illustrates this scenario, which was tested on Route 2(see in Fig. 9b) in extreme weather conditions. However, under normal conditions, the agent successfully follows the instructions. This suggests that the model is impacted by conflicts No.2 and No.10 (see in Table 3) because road landmarks are obscured and sensors are unable to receive data due to weather interference. 44 Figure 11: The T-intersection is ahead of the agent and the system instructs to turn right Type 2: The system provided incorrect instructions, even though the route to proceed straight was evident. This case, illustrated in Figure 12, was tested on Route 1(see in Fig.9a) under normal weather conditions. The [Misleading] label is derived from the visual feature buffer and the remaining misleading frames, suggesting that the model is capable of detecting system errors. 45 Figure 12: The system instructs the agent to change course to the other lane Type 3: The agent clearly followed incorrect instructions, resulting in a collision with a rock on the sidewalk. This case, presented in Figure 13, was tested on Route 1(see in Fig.9a) and failed at the third turn. This indicates a lack of coherence between the system’s motion planning and vehicle control. The failure likely stems from the model’s inability to accurately interpret spatial instructions within the context of the vehicle’s current trajectory and environmental conditions. 46 Figure 13: The system instructs the agent to drive straight 7.2.2 Traffic Lights Notifications Despite its limitations in route adherence, the LMDrive model demonstrates a notable competence in traffic light recognition and notification. The model effectively identifies and communicates the status of traffic lights (green, yellow, and red), which indicates a wellfunctioning component within its broader architecture. This functionality is essential for ensuring compliance with traffic regulations and enhancing road safety. The notification samples presented in Table 11 successfully provide accurate information regarding traffic light statuses. Each route features different scenarios. For instance, Route 1 begins with a red light, transitions to a green light, and does not encounter a yellow light in a single traversal. Route 2 starts with a green light, turns right, and encounters three traffic lights. Route 3 initially faces a red light at the back of traffic, followed by another red light after leaving the lane. Similarly, it passes through a green light but only encounters a single yellow light. We use Figure 14 as a representative example because immediately after the yellow light, the notification detects a bumpy road ahead, as shown in Figure 15. This indicates that the 47 Traffic Light Route Notification Red 1 Just a heads up, there’s a red light ahead 2 Please be alert of the red traffic signal ahead 3 Watch for the red light front 3 Just a heads up, there’s a red light ahead Green 1 Just a heads up, there’s a green light ahead 2 Please be alert of the green traffic signal ahead 3 Attention is required the green light ahead. 3 Just a heads up, there’s a green light ahead Yellow 1 - 2 Watch for the yellow light front 3 - 3 Just a heads up, there’s a yellow light ahead. Table 11: Notifications collected from 3 routes both on default and extreme conflict. interpretability of LMDrive integrates well with the sensor system. 48 Figure 14: The system gives a notification about the yellow light ahead Figure 15: The system asks for attention to the rugged road ahead 49 7.2.3 Bumpy Road Detection We collected samples of the notifications triggered when the agent encountered a bumpy road, as shown in Figure 12. One example, presented in Figure 16, was selected to illustrate the No.9 testing scenarios. The results of this study indicate that the knowledge-driven model is capable of detecting bumpy roads during driving. Notification for Bumpy Road Attention is required for the rugged road surface head Bumpy Road Head Just a heads up, the road’s a bit bumpy ahead Please be alert of the uneven road surface in the vicinity ahead Table 12: Samples of Notification for Bumpy Road In spite of lacking lights in extreme conditions, the vehicle is able to detect a bumpy road. As Figure 16 shows the vehicle is driving in an extreme weather condition in route 1. Figure 16: Notice: Attention is required for the rugged road surface head 50 Fitzgibbons, J.B., R.M. Fujimoto, D. Fellig, S.D. Kleban, and A.J. Scholand. 2004. “IDSim: an extensible framework for Interoperable Distributed Simulation”. In Proceedings. IEEE International Conference on Web Services, 2004. 532–539. https://doi.org/10.1109/ICWS. 2004.1314779. Fu, Daocheng, Xin Li, Licheng Wen, Min Dou, Pinlong Cai, Botian Shi, and Yu Qiao. 2023. Drive Like a Human: Rethinking Autonomous Driving with Large Language Models. arXiv: 2307.07162 [cs.RO]. Gold, Christian, Frederik Naujoks, Jonas Radlmayr, Hanna Otto, and Oliver Jarosch. June 2017. “Testing Scenarios for Human Factors Research in Level 3 Automated Vehicles”, 551– 559. ISBN: 978-3-319-60440-4. https://doi.org/10.1007/978-3-319-60441-1_54. Grigorescu, Sorin, Bogdan Trasnea, Tiberiu Cocias, and Gigel Macesanu. 2020. “A survey of deep learning techniques for autonomous driving”. Journal of field robotics 37 (3): 362– 386. He, Kaiming, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2015. Deep Residual Learning for Image Recognition. arXiv: 1512.03385 [cs.CV]. . 2016. “Deep residual learning for image recognition”. In Proceedings of the IEEE conference on computer vision and pattern recognition, 770–778. Hecker, Simon, Dengxin Dai, Alexander Liniger, and Luc Van Gool. 2020. Learning Accurate and Human-Like Driving using Semantic Maps and Attention. arXiv: 2007.07218 [cs.CV]. Hochreiter, Sepp, and Jürgen Schmidhuber. December 1997a. “Long Short-term Memory”. Neural computation 9 (): 1735–80. https://doi.org/10.1162/neco.1997.9.8.1735. . November 1997b. “Long Short-Term Memory”. Neural Computation 9, number 8 (): 1735–1780. ISSN: 0899-7667. https://doi.org/10.1162/neco.1997.9.8.1735. eprint: https://direct.mit.edu/neco/articlepdf/9/8/1735/813796/neco.1997.9.8.1735.pdf. https://doi.org/10.1162/neco.1997.9.8.1735. 57 Hu, Anthony, Lloyd Russell, Hudson Yeo, Zak Murez, George Fedoseev, Alex Kendall, Jamie Shotton, and Gianluca Corrado. 2023. GAIA-1: A Generative World Model for Autonomous Driving. arXiv: 2309.17080 [cs.CV]. Huang, Siyuan, Bo Zhang, Botian Shi, Peng Gao, Yikang Li, and Hongsheng Li. 2023. SUG: Single-dataset Unified Generalization for 3D Point Cloud Classification. arXiv: 2305.09160 [cs.CV]. Innovator, I., and J. Thinker. 2024. ShareGPT: Sharing Large-Scale Generative Models. https://sharegpt.example.com. Jain, Kanishk, Varun Chhangani, Amogh Tiwari, K. Madhava Krishna, and Vineet Gandhi. 2022. Ground then Navigate: Language-guided Navigation in Dynamic Scenes. arXiv: 2209. 11972 [cs.CV]. Jin, Ye, Xiaoxi Shen, Huiling Peng, Xiaoan Liu, Jingli Qin, Jiayang Li, Jintao Xie, Peizhong Gao, Guyue Zhou, and Jiangtao Gong. 2023. SurrealDriver: Designing Generative Driver Agent Simulation Framework in Urban Contexts based on Large Language Model. arXiv: 2309.13193 [cs.HC]. Johansson, Richard, David Williams, Anders Berglund, and Pierre Nugues. 2004. “Carsim: a system to visualize written road accident reports as animated 3D scenes”. In Proceedings of the 2nd Workshop on Text Meaning and Interpretation, 57–64. TextMean ’04. Barcelona, Spain: Association for Computational Linguistics. Kim, Jinkyu, Anna Rohrbach, Trevor Darrell, John Canny, and Zeynep Akata. 2018. Textual Explanations for Self-Driving Vehicles. arXiv: 1807.11546 [cs.CV]. Kolesnikov, Alexander, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, and Neil Houlsby. 2020. Big Transfer (BiT): General Visual Representation Learning. arXiv: 1912.11370 [cs.CV]. Lang, Alex H, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. 2019. “PointPillars: Fast encoders for object detection from point clouds”. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 12697–12705. 58 Law, Averill M., and W. David Kelton. 1991. Simulation Modeling and Analysis. 2nd edition. McGraw-Hill. Leaderboard, CARLA. 2024. CARLA Leaderboard. https://github.com/carlasimulator/ leaderboard. Accessed: 2024-05-06. LeCun, Yann, Yoshua Bengio, and Geoffrey Hinton. 2015. “Deep learning”. nature 521 (7553): 436–444. Lee, John, and Neville Moray. 1992. “Trust, control strategies and allocation of function in human-machine systems”. Ergonomics 35 (10): 1243–1270. https://doi.org/10.1080/ 00140139208967392. Leurent, Edouard. 2018. An Environment for Autonomous Driving Decision-Making. https: //github.com/eleurent/highway-env. Li, Junnan, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. BLIP-2: Bootstrapping Language- Image Pre-training with Frozen Image Encoders and Large Language Models. arXiv: 2301. 12597 [cs.CV]. Li, Ning, Lang Hu, Zhong-Liang Deng, Tong Su, and Jiang-Wang Liu. May 2021. “Research on GRU Neural Network Satellite Traffic Prediction Based on Transfer Learning”. Wireless Personal Communications 118, number 1 (): 815–827. https://doi.org/10.1007/s11277-020- 08045-z. https://doi.org/10.1007/s11277-020-08045-z. Li, You, and Javier Ibanez-Guzman. 2020. “Lidar for Autonomous Driving: The Principles, Challenges, and Trends for Automotive Lidar and Perception Systems”. IEEE Signal Processing Magazine 37 (4): 50–61. https://doi.org/10.1109/MSP.2020.2973615. Lin, Chin-Yew. July 2004. “ROUGE: A Package for Automatic Evaluation of Summaries”. In Text Summarization Branches Out, 74–81. Barcelona, Spain: Association for Computational Linguistics. https://aclanthology.org/W04-1013. Liu, Hao Tian. 2023. llava-v1.5-7b. https://huggingface.co/liuhaotian/llava-v1.5-7b. Liu, Haotian, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2023. Improved Baselines with Visual Instruction Tuning. arXiv: 2310.03744 [cs.CV]. 59 Liu, Haotian, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual Instruction Tuning. arXiv: 2304.08485 [cs.CV]. Liu, Jiaqi, Peng Hang, Xiao qi, Jianqiang Wang, and Jian Sun. 2023. MTD-GPT: A Multi- Task Decision-Making GPT Model for Autonomous Driving at Unsignalized Intersections. arXiv: 2307.16118 [cs.RO]. Mao, Jiageng, Yuxi Qian, Junjie Ye, Hang Zhao, and Yue Wang. 2023. GPT-Driver: Learning to Drive with GPT. arXiv: 2310.01415 [cs.CV]. Mao, Jiageng, Junjie Ye, Yuxi Qian, Marco Pavone, and Yue Wang. 2023. A Language Agent for Autonomous Driving. arXiv: 2311.10813 [cs.CV]. Miller, Tim. 2018. Explanation in Artificial Intelligence: Insights from the Social Sciences. arXiv: 1706.07269 [cs.AI]. OpenAI. 2023. Introducing ChatGPT. https://openai.com/blog/chatgpt/. OpenDILab Community. 2023. LMDrive LLaMA-v1.5-7b v1.0. https:/ /huggingface. co/ OpenDILabCommunity/LMDrive-llava-v1.5-7b-v1.0. Ordonez, Vicente, Girish Kulkarni, and Tamara L. Berg. 2011. “The SBU Captioned Photo Dataset”. In Proceedings of the 2011 IEEE International Conference on Computer Vision, 2537–2544. IEEE. Papineni, Kishore, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. “Bleu: a method for automatic evaluation of machine translation”. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, 311–318. Pascanu, Razvan, Tomas Mikolov, and Yoshua Bengio. 2013. On the difficulty of training Recurrent Neural Networks. arXiv: 1211.5063 [cs.LG]. Patil, Priyadarshan. 2020. “The Future of Electric Vehicles: A Comprehensive Review of Technological Advancements, Market Trends, and Environmental Impacts”. Journal of Artificial Intelligence and Machine Learning in Management 4 (1): 56–68. Paul, Ray J, and David W Balmer. 1993. Simulation modelling. Chartwell-Bratt. 60 Prakash, Aditya, Kashyap Chitta, and Andreas Geiger. 2021. Multi-Modal Fusion Transformer for End-to-End Autonomous Driving. arXiv: 2104.09224 [cs.CV]. Qi, Charles R, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. 2018. “Frustum Pointnets for 3d object detection from RGB-D data”. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 918–927. Quinn, J.B., I.Y. Mintzberg, and R.M. James. 1988. “The Strategic Process, Concepts, Context and Cases”. In The Strategic Process, Concepts, Context and Cases, edited by J.B. Quinn, I.Y. Mintzberg, and R.M. James. Englewood Cliffs, NJ: Prentice-Hall. Radford, Alec, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, et al. 2021. Learning Transferable Visual Models From Natural Language Supervision. arXiv: 2103.00020 [cs.CV]. Raitoharju, Jenni. 2022. “Chapter 3 - Convolutional neural networks”. In Deep Learning for Robot Perception and Cognition, edited by Alexandros Iosifidis and Anastasios Tefas, 35– 69. Academic Press. ISBN: 978-0-323-85787-1. https://doi.org/https://doi.org/10.1016/ B978- 0- 32- 385787- 1.00008- 7. https://www.sciencedirect.com/science/article/pii/ B9780323857871000087. Ravanelli, Mirco, Philemon Brakel, Maurizio Omologo, and Yoshua Bengio. April 2018. “Light Gated Recurrent Units for Speech Recognition”. IEEE Transactions on Emerging Topics in Computational Intelligence 2, number 2 (): 92–102. ISSN: 2471-285X. https://doi. org/10.1109/tetci.2017.2762739. http://dx.doi.org/10.1109/TETCI.2017.2762739. S.O.-R.A.V.S. Committee. 2021. “Taxonomy and definitions for terms related to on-road motor vehicle automated driving systems”, https://www.sae.org/standards/content/j3016_ 202104/. ScenarioRunner, CARLA. 2024. CARLA ScenarioRunner. https://github.com/carla-simulat or/scenario_runner. Accessed: 2024-05-06. Schuhmann, Christoph, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, et al. 2022. LAION-5B: An open large-scale dataset for training next generation image-text models. arXiv: 2210.08402 [cs.CV]. 61 Scientist, G., and H. Analyst. 2017. “Visual Question Answering: A Survey of Methods and Datasets”. Computer Vision and Image Understanding 163:21–40. Sha, Hao, Yao Mu, Yuxuan Jiang, Li Chen, Chenfeng Xu, Ping Luo, Shengbo Eben Li, Masayoshi Tomizuka, Wei Zhan, and Mingyu Ding. 2023. LanguageMPC: Large Language Models as Decision Makers for Autonomous Driving. arXiv: 2310.03026 [cs.RO]. Shah, Dhruv, Blazej Osinski, Brian Ichter, and Sergey Levine. 2022. LM-Nav: Robotic Navigation with Large Pre-Trained Models of Language, Vision, and Action. arXiv: 2207.04429 [cs.RO]. Shannon, R.E. 1998. “Introduction to the art and science of simulation”. In 1998 Winter Simulation Conference. Proceedings (Cat. No.98CH36274), volume 1, 7–14 vol.1. https: //doi.org/10.1109/WSC.1998.744892. Shao, Hao, Yuxuan Hu, Letian Wang, Steven L. Waslander, Yu Liu, and Hongsheng Li. 2023. LMDrive: Closed-Loop End-to-End Driving with Large Language Models. arXiv: 2312.074 88 [cs.CV]. Sharma, Sagar, Simone Sharma, and Anidhya Athaiya. 2017. “Activation functions in neural networks”. Towards Data Sci 6 (12): 310–316. Shen, Yuan, Shanduojiao Jiang, Yanlin Chen, and Katie Driggs Campbell. 2022. To Explain or Not to Explain: A Study on the Necessity of Explanations for Autonomous Vehicles. arXiv: 2006.11684 [cs.AI]. Sima, Chonghao, Katrin Renz, Kashyap Chitta, Li Chen, Hanxue Zhang, Chengen Xie, Ping Luo, Andreas Geiger, and Hongyang Li. 2023. DriveLM: Driving with Graph Visual Question Answering. arXiv: 2312.14150 [cs.CV]. Singh, Santokh. 2015. Critical reasons for crashes investigated in the national motor vehicle crash causation survey. Technical report. Sun, Pei, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, et al. 2020. Scalability in Perception for Autonomous Driving: Waymo Open Dataset. arXiv: 1912.04838 [cs.CV]. 62 Taeihagh, Araz, and Hazel Si Min Lim. July 2018. “Governing autonomous vehicles: emerging responses for safety, liability, privacy, cybersecurity, and industry risks”. Transport Reviews 39, number 1 (): 103–128. ISSN: 1464-5327. https://doi.org/10.1080/01441647.2018. 1494640. http://dx.doi.org/10.1080/01441647.2018.1494640. Tammewar, Akshaj, Nikita Chaudhari, Bunny Saini, Divya Venkatesh, Ganpathiraju Dharahas, Deepali Vora, Shruti Patil, Ketan Kotecha, and Sultan Alfarhood. 2023. “Improving the Performance of Autonomous Driving through Deep Reinforcement Learning”. Sustainability 15 (18). ISSN: 2071-1050. https://doi.org/10.3390/su151813799. https://www.mdpi.com/ 2071-1050/15/18/13799. Techie, C., and D. Designer. 2022. “BLIP: Blogging Language Image Processor”. In Proceedings of the International Conference on Multimedia Retrieval. New York, NY, USA: ACM. Thrun, Sebastian. April 2010. “Toward robotic cars”. Commun. ACM (New York, NY, USA) 53, number 4 (): 99–106. ISSN: 0001-0782. https://doi.org/10.1145/1721654.1721679. https://doi.org/10.1145/1721654.1721679. Tian, Xiaoyu, Junru Gu, Bailin Li, Yicheng Liu, Chenxu Hu, Yang Wang, Kun Zhan, Peng Jia, Xianpeng Lang, and Hang Zhao. 2024. DriveVLM: The Convergence of Autonomous Driving and Large Vision-Language Models. arXiv: 2402.12289 [cs.CV]. Tian, Yuchi, Kexin Pei, Suman Jana, and Baishakhi Ray. 2018. DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Cars. arXiv: 1708.08559 [cs.SE]. Tom M. Gasser, Daniel Westhoff. August 2012. BASt-study: Definitions of Automation and Legal Issues in Germany. https://onlinepubs.trb.org/onlinepubs/conferences/2012/Automati on/presentations/Gasser.pdf. Touvron, Hugo, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, et al. 2023. LLaMA: Open and Efficient Foundation Language Models. arXiv: 2302.13971 [cs.CL]. 63 Touvron, Hugo, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. “Llama 2: Open foundation and fine-tuned chat models”. arXiv preprint arXiv:2307.09288. Udugama, B. 2023. Review of Deep Reinforcement Learning for Autonomous Driving. arXiv: 2302.06370 [cs.RO]. Vaswani, Ashish, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2023. Attention Is All You Need. arXiv: 1706.03762 [cs.CL]. Vedantam, Ramakrishna, C. Lawrence Zitnick, and Devi Parikh. 2015. CIDEr: Consensusbased Image Description Evaluation. arXiv: 1411.5726 [cs.CV]. Wang, Huiyu, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. 2020. Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentation. arXiv: 2003.07853 [cs.CV]. Wang, Jiangong, Xiao Wang, Tianyu Shen, Yutong Wang, Li Li, Yonglin Tian, Hui Yu, et al. 2022. “Parallel Vision for Long-Tail Regularization: Initial Results From IVFC Autonomous Driving Testing”. IEEE Transactions on Intelligent Vehicles 7 (2): 286–299. https://doi.org/ 10.1109/TIV.2022.3145035. Wang, Shiyi, Yuxuan Zhu, Zhiheng Li, Yutong Wang, Li Li, and Zhengbing He. 2023. “Chat- GPT as Your Vehicle Co-Pilot: An Initial Attempt”. IEEE Transactions on Intelligent Vehicles 8 (12): 4706–4721. https://doi.org/10.1109/TIV.2023.3325300. Wang, Wenguan, Yi Yang, and Fei Wu. 2023. Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computing. arXiv: 2210.15889 [cs.AI]. Wang, Wenhai, Jiangwei Xie, ChuanYang Hu, Haoming Zou, Jianan Fan, Wenwen Tong, Yang Wen, et al. 2023. DriveMLM: Aligning Multi-Modal Large Language Models with Behavioral Planning States for Autonomous Driving. arXiv: 2312.09245 [cs.CV]. Wang, Xiaolong, Ross Girshick, Abhinav Gupta, and Kaiming He. 2018. Non-local Neural Networks. arXiv: 1711.07971 [cs.CV]. 64 Wang, Yixuan, Ruochen Jiao, Sinong Simon Zhan, Chengtian Lang, Chao Huang, Zhaoran Wang, Zhuoran Yang, and Qi Zhu. 2024. Empowering Autonomous Driving with Large Language Models: A Safety Perspective. arXiv: 2312.00812 [cs.AI]. Wei, Jason, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian ichter brian, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. 2022. “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models”. In Advances in Neural Information Processing Systems, edited by S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, 35:24824–24837. Curran Associates, Inc. https://proceedings.neurips.cc/paper_files/paper/2022/file/9d 5609613524ecf4f15af0f7b31abca4-Paper-Conference.pdf. Wen, Licheng, Daocheng Fu, Xin Li, Xinyu Cai, Tao Ma, Pinlong Cai, Min Dou, Botian Shi, Liang He, and Yu Qiao. 2024. DiLu: A Knowledge-Driven Approach to Autonomous Driving with Large Language Models. arXiv: 2309.16292 [cs.RO]. Xiang, Chao, Chen Feng, Xiaopo Xie, Botian Shi, Hao Lu, Yisheng Lv, Mingchuan Yang, and Zhendong Niu. 2023. “Multi-Sensor Fusion and Cooperative Perception for Autonomous Driving: A Review”. IEEE Intelligent Transportation Systems Magazine 15 (5): 36–58. https: //doi.org/10.1109/MITS.2023.3283864. Xie, Qizhe, Minh-Thang Luong, Eduard Hovy, and Quoc V. Le. 2020. Self-training with Noisy Student improves ImageNet classification. arXiv: 1911.04252 [cs.LG]. Xie, Songtao, Junyan Hu, Parijat Bhowmick, Zhengtao Ding, and Farshad Arvin. 2022. “Distributed Motion Planning for Safe Autonomous Vehicle Overtaking via Artificial Potential Field”. IEEE Transactions on Intelligent Transportation Systems 23 (11): 21531–21547. https://doi.org/10.1109/TITS.2022.3189741. Xie, Songtao, Junyan Hu, Zhengtao Ding, and Farshad Arvin. 2023. “Cooperative Adaptive Cruise Control for Connected Autonomous Vehicles Using Spring Damping Energy Model”. IEEE Transactions on Vehicular Technology 72 (3): 2974–2987. https://doi.org/10.1109/ TVT.2022.3218575. Xu, Zhenhua, Yujia Zhang, Enze Xie, Zhen Zhao, Yong Guo, Kwan-Yee. K. Wong, Zhenguo Li, and Hengshuang Zhao. 2024. DriveGPT4: Interpretable End-to-end Autonomous Driving via Large Language Model. arXiv: 2310.01412 [cs.CV]. 65 Yang, Honghui, Tong He, Jiaheng Liu, Hua Chen, Boxi Wu, Binbin Lin, Xiaofei He, and Wanli Ouyang. 2023. GD-MAE: Generative Decoder for MAE Pre-training on LiDAR Point Clouds. arXiv: 2212.03010 [cs.CV]. Yang, Zhenjie, Xiaosong Jia, Hongyang Li, and Junchi Yan. 2023. LLM4Drive: A Survey of Large Language Models for Autonomous Driving. arXiv: 2311.01043 [cs.AI]. Zablocki, Éloi, Hédi Ben-Younes, Patrick Pérez, and Matthieu Cord. 2022. Explainability of deep vision-based autonomous driving systems: Review and challenges. arXiv: 2101.05307 [cs.CV]. Zhang, Junping, Jian Pu, Jie Chen, Haolin Fu, Yongzhi Tao, Shihmin Wang, Qi Chen, et al. 2023. “DSiV: Data Science for Intelligent Vehicles”. IEEE Transactions on Intelligent Vehicles 8 (4): 2628–2634. https://doi.org/10.1109/TIV.2023.3264601. Zhang, Qiaoning, X. Jessie Yang, and Lionel Peter Robert. 2020. “Expectations and Trust in Automated Vehicles”. In Extended Abstracts of the 2020 CHI Conference on Human Factors in Computing Systems, 1–9. CHI EA ’20. , Honolulu, HI, USA, Association for Computing Machinery. ISBN: 9781450368193. https :/ /doi. org/ 10.1145 /3334480. 3382986. https: //doi.org/10.1145/3334480.3382986. Zhu, Deyao, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. 2023. MiniGPT- 4: Enhancing Vision-Language Understanding with Advanced Large Language Models. arXiv: 2304.10592 [cs.CV]. 66