HCRMP: A LLM-Hinted Contextual Reinforcement Learning Framework for Autonomous Driving

Zhiwen Chen, Bo Leng, Zhuoren Li, Haishun Deng, Gang Jin, Ran Yu, Huiying Wen · DOI

Abstract

Integrating Large Language Models (LLMs) with Reinforcement Learning (RL) can enhance autonomous driving (AD) performance in complex scenarios. However, current LLM-Dominated RL methods over-rely on LLM outputs, which are prone to hallucinations. Evaluations show that state-of-the-art LLMs indicate a non-hallucination rate of only approximately 57.95% when assessed on essential driving-related tasks. Thus, in these methods, hallucinations from the LLM can directly jeopardize the performance of driving policies. This paper argues that maintaining relative independence between the LLM and the RL is vital for solving the hallucinations problem. Consequently, this paper is devoted to proposing a novel LLM-Hinted RL paradigm. The LLM is used to generate semantic hints for state augmentation and policy optimization to assist the RL agent in motion planning, while the RL agent counteracts potential erroneous semantic indications through policy learning to achieve excellent driving performance. Based on this paradigm, we propose the HCRMP (LLM-Hinted Contextual Reinforcement Learning Motion Planner) architecture, which includes an Augmented Semantic Representation Module, a Contextual Stability Anchor Module, and a Semantic Cache Module. Extensive experiments in CARLA validate HCRMP's strong overall driving performance, achieving a task success rate of up to 80.3% and reducing collision rates by 11.4% in safety-critical conditions.

Introduction: The Hallucination Challenge in Autonomous Driving

Large Language Models (LLMs) are brilliant at reasoning but notorious for "hallucinating"—generating incorrect information with total confidence. In the context of autonomous driving (AD), a hallucination is not merely a conversational error; it is a potential safety hazard. Current research often employs "LLM-Dominated" methods where the LLM directly dictates driving policies or provides decisive instructions to Reinforcement Learning (RL) agents.

The fatal flaw in these approaches is the inherent unreliability of LLM outputs. An evaluation of a state-of-the-art LLM (Gemini-1.5-Pro) revealed a non-hallucination rate of only ~58% across essential driving tasks, such as road sign comprehension and hazard identification. When an LLM acts as the primary decision-maker, a single hallucinated instruction can distort the RL agent's Q-value evaluation, leading to unfeasible actions and collisions.

Performance of state-of-the-art LLMs on essential driving tasks, highlighting significant hallucination rates.

Furthermore, LLMs operate at a low frequency (high latency), while driving requires high-frequency, millisecond-level reactions. To address these issues, this paper introduces HCRMP (LLM-Hinted Contextual Reinforcement Learning Motion Planner), a framework that shifts from "LLM-dominated" driving to an "LLM-hinted" approach where the LLM acts as a high-level advisor rather than a dictator.

The HCRMP Framework: Moving from Domination to Guidance

HCRMP maintains relative independence between the LLM and the RL agent. The LLM acts as a high-level advisor providing "semantic hints," while the RL agent maintains control, learning to trust or ignore these hints based on environmental feedback.

The HCRMP architecture utilizes LLM hints for state augmentation and policy optimization while maintaining RL independence.

The architecture consists of three primary modules designed to "weakly couple" the LLM and RL:

  1. Augmented Semantic Representation (ASR): The LLM performs hierarchical reasoning to categorize global scenarios and identify critical objects. These insights are encoded into compact vectors that augment the RL agent's state space, providing it with "common sense" awareness beyond raw pixel data.
  2. Contextual Stability Anchor (CSA): To mitigate erratic advice, HCRMP uses Retrieval-Augmented Generation (RAG). The LLM queries a knowledge base of traffic regulations to generate stable weights for a multi-critic RL setup, balancing safety, efficiency, and comfort.
  3. Semantic Cache Module (SCM): To bridge the latency gap, HCRMP operates asynchronously. If the LLM is too slow to provide a hint for the current frame, the SCM retrieves the most relevant historical hint from a memory bank using a rapid nearest-neighbor search.

Experimental Evaluation and Results

The framework was evaluated in the CARLA simulator across various traffic densities and scenarios, including safety-critical "trilemma" conditions and occluded pedestrians. HCRMP demonstrated superior performance compared to vanilla PPO and other LLM-integrated baselines (like VLM-RL and AutoReward):

  • Success Rate: Achieved a task success rate of up to 80.3% in diverse conditions.
  • Safety: In safety-critical scenarios, HCRMP reduced the collision rate by 11.4%.
  • Efficiency & Comfort: In medium-density tests, HCRMP maintained higher average speeds (~10 m/s) with lower acceleration variance, indicating a smoother, more human-like driving style.

The RL agent effectively acts as a "buffer," learning to counteract erroneous semantic indications from the LLM if they lead to poor rewards. This synergy allows high-frequency control to be guided by low-frequency reasoning without being bottlenecked by inference latency.

Conclusion and Future Work

HCRMP successfully integrates LLM reasoning into autonomous driving while mitigating the risks of hallucinations. By treating the LLM as a source of auxiliary context rather than a direct controller, the system achieves a balance between high-level common sense and low-level reactive safety.

While HCRMP excels in reactive safety, its Total Distance (TD) traveled was sometimes lower than models like VLM-RL, suggesting a highly cautious approach. Future work will focus on better integrating static map features into semantic hints to improve long-range global navigation without sacrificing the local safety gains provided by the LLM-hinted paradigm.

Summary updated

Abstract

Integrating Large Language Models (LLMs) with Reinforcement Learning (RL) can enhance autonomous driving (AD) performance in complex scenarios. However, current LLM-Dominated RL methods over-rely on LLM outputs, which are prone to hallucinations. Evaluations show that state-of-the-art LLM indicates a non-hallucination rate of only approximately 57.95% when assessed on essential driving-related tasks. Thus, in these methods, hallucinations from the LLM can directly jeopardize the performance of driving policies. This paper argues that maintaining relative independence between the LLM and the RL is vital for solving the hallucinations problem. Consequently, this paper is devoted to propose a novel LLM-Hinted RL paradigm. The LLM is used to generate semantic hints for state augmentation and policy optimization to assist RL agent in motion planning, while the RL agent counteracts potential erroneous semantic indications through policy learning to achieve excellent driving performance. Based on this paradigm, we propose the HCRMP (LLM-Hinted Contextual Reinforcement Learning Motion Planner) architecture, which is designed that includes Augmented Semantic Representation Module to extend state space. Contextual Stability Anchor Module enhances the reliability of multi-critic weight hints by utilizing information from the knowledge base. Semantic Cache Module is employed to seamlessly integrate LLM low-frequency guidance with RL high-frequency control. Extensive experiments in CARLA validate HCRMP's strong overall driving performance. HCRMP achieves a task success rate of up to 80.3% under diverse driving conditions with different traffic densities. Under safety-critical driving conditions, HCRMP significantly reduces the collision rate by 11.4%, which effectively improves the driving performance in complex scenarios.
BibTeX
@misc{chen2025hcrmp,
  author = {Zhiwen Chen and Bo Leng and Zhuoren Li and Haishun Deng and Gang Jin and Ran Yu and Huiying Wen},
  title = {{HCRMP: A LLM-Hinted Contextual Reinforcement Learning Framework for Autonomous Driving}},
  year = {2025},
  eprint = {2505.15793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.15793},
}
Figure