Prompting Multi-Modal Tokens to Enhance End-to-End Autonomous Driving Imitation Learning with LLMs

Yiqun Duan, Qiang Zhang, Renjing Xu

Abstract

Traditional end-to-end (E2E) autonomous driving models often struggle with complex "long-tail" scenarios that require high-level reasoning, while recent Large Language Model (LLM) approaches suffer from information loss due to text-only descriptions. This paper introduces PromptGPT, a hybrid framework that integrates raw camera and LiDAR data directly into an LLM's prompt space as multi-modal tokens. By treating visual patches as semantic "words" and employing a "Think Twice" re-query mechanism, PromptGPT bridges the gap between spatial perception and logical reasoning. Evaluated on the CARLA simulator, the framework achieves a Driving Score of 52.34%, comparable to state-of-the-art specialized models, while demonstrating that LLMs function most effectively as corrective advisors rather than standalone drivers.

Introduction

End-to-end autonomous driving has historically been divided between two paradigms. Traditional imitation learning models excel at waypoint prediction but lack the cognitive depth to navigate rare, complex situations. Conversely, LLM-based planners often rely on "pure-language" strategies, where sensor data is compressed into text descriptions. This translation process introduces significant description bias, stripping away the spatial nuances required for safe maneuvering and leading to model hallucinations.

PromptGPT addresses these challenges by allowing an LLM to "see" raw sensor features directly through learnable tokens. By positioning the LLM as a high-level reasoning engine that corrects a base driving model, the system maintains the precision of geometric planning while leveraging the vast world knowledge inherent in large-scale language models.

Methodology

Multi-Modality Joint Token Encoder

To avoid the pitfalls of text-only descriptions, PromptGPT utilizes a two-branch architecture. Features are extracted from camera images and LiDAR point clouds using CNN and PointPillar backbones, respectively. These features are fused via cross-modality self-attention and mapped into a unified semantic token space using a Swin Transformer. This process transforms 16x16 patches of visual data into multi-modal tokens that the LLM (Vicuna-33B) processes alongside standard text tokens.

Hybrid Prompt Construction and Re-Query Mechanism

The input sequence for the LLM consists of these multi-modal tokens, followed by text-based status updates (e.g., current speed, position) and specific task commands. To ensure safety and reliability, the framework incorporates a "Think Twice" mechanism. A controller monitors the predicted waypoints for uncertainty or conflict with control signals (such as simultaneous acceleration and braking). If a discrepancy is detected, the system triggers a re-query, prompting the LLM to re-evaluate the scene and provide a corrected trajectory.

Reinforcement Guided Tuning

Standard Maximum Likelihood Estimation (MLE) used in LLM training is often insufficient for the precise coordinate regression required in driving. To bridge the gap between language generation and physical geometry, the authors employ Proximal Policy Optimization (PPO). This reinforcement learning stage rewards the model based on how closely its predicted waypoints align with expert driving trajectories, forcing the model to respect physical constraints.

Experimental Results

Performance on LongSet6

The model was evaluated using the CARLA simulator (0.9.14) on the challenging LongSet6 benchmark. PromptGPT achieved a Driving Score (DS) of 52.34% and a Route Completion (RC) rate of 92.37%. These metrics place the framework on par with InterFuser (52.68% DS), a leading specialized non-LLM model, proving that general-purpose reasoning engines can match the performance of dedicated driving architectures when properly prompted.

The Value of Correction

Ablation studies highlighted the importance of the hybrid approach. When the LLM acted as a "Correction Advisor" to a base model, it outperformed a "Pure LLM" driving mode by nearly 10 percentage points. This suggests that LLMs are currently most effective when used to refine and validate decisions rather than generating them from scratch in a vacuum.

Scaling Effects

The research also identified a strong correlation between model capacity and driving competence. Upgrading the backbone from a 7B parameter model to a 33B parameter model resulted in the Driving Score jumping from approximately 16% to 43%. This indicates that the complex logic required for autonomous navigation scales significantly with the size of the underlying LLM.

Discussion and Limitations

While PromptGPT demonstrates the potential of multi-modal LLMs in robotics, several challenges remain. The primary hurdle is inference speed; the computational weight of a 33B parameter model, combined with the re-query mechanism, results in latency that is currently unsuitable for real-time, high-speed deployment. Additionally, visualization data suggests the model still struggles with detecting very small or partially occluded objects compared to specialized perception stacks.

Conclusion

PromptGPT represents a significant step toward integrating high-level reasoning into autonomous vehicle control. By bypassing text-only descriptions in favor of multi-modal tokens and utilizing a reinforcement-guided correction framework, the system achieves state-of-the-art performance. Future work will focus on optimizing inference efficiency and improving small-object perception to make LLM-based driving viable for real-world hardware.

Summary updated

Abstract

The utilization of Large Language Models (LLMs) within the realm of reinforcement learning, particularly as planners, has garnered a significant degree of attention in recent scholarly literature. However, a substantial proportion of existing research predominantly focuses on planning models for robotics that transmute the outputs derived from perception models into linguistic forms, thus adopting a ‘pure-language’ strategy. In this research, we propose a hybrid End-to-End learning framework for autonomous driving by combining basic driving imitation learning with LLMs based on multi-modality prompt tokens. Instead of simply converting perception results from the separated train model into pure language input, our novelty lies in two aspects. 1) The end-to-end integration of visual and LiDAR sensory input into learnable multi-modality tokens, thereby intrinsically alleviating description bias by separated pre-trained perception models. 2) Instead of directly letting LLMs drive, this paper explores a hybrid setting of letting LLMs help the driving model correct mistakes and complicated scenarios. The results of our experiments suggest that the proposed methodology can attain driving scores of 49.21%, coupled with an impressive route completion rate of 91.34% in the offline evaluation conducted via CARLA. These performance metrics are comparable to the most advanced driving models.
BibTeX
@inproceedings{duan2024prompting,
  author = {Yiqun Duan and Qiang Zhang and Renjing Xu},
  title = {{Prompting Multi-Modal Tokens to Enhance End-to-End Autonomous Driving Imitation Learning with LLMs}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=y5MVqpUU1Q},
}
Figure