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

Zhiwen Chen, Bo Leng, Zhuoren Li, Hanming Deng, Guizhe Jin, Ran Yu, Huanxi Wen

TL;DR

Integrating Large Language Models (LLMs) with Reinforcement Learning (RL) for autonomous driving sounds promising, but over-relying on LLMs exposes driving policies to dangerous "hallucinations." This paper introduces HCRMP, a framework that treats the LLM as an advisory guide rather than a dictator, using semantic hints to augment a multi-critic RL agent. By maintaining this independence, the system achieves up to an 80.3% task success rate and slashes collision rates in safety-critical scenarios by 11.4%.

What Problem Does This Paper Address?

Current state-of-the-art autonomous driving (AD) systems often attempt to combine the common-sense reasoning of LLMs with the self-learning optimization of RL. However, most existing architectures are "LLM-Dominated"—meaning the LLM either directly generates driving policies or dictates the reward functions.

The glaring issue here is LLM hallucination. The authors evaluated Gemini-2.5-Pro on essential driving tasks (like hazard identification and road sign comprehension) and found a non-hallucination rate of only 57.95%. This means over 40% of the outputs contained errors. In a tightly coupled system, these hallucinations distort the RL agent's Q-value evaluations, leading to catastrophic, unfeasible driving actions. Furthermore, there is a severe temporal mismatch between the low-frequency reasoning of an LLM and the high-frequency control loop required for safe vehicle actuation.

Figure 1: LLM performance evaluation and hallucination impact on LLM-RL methods. Figure (a) shows the SOTA LLM’s non-hallucination rates across five driving tasks. Figure (b) illustrates the LLM-Dominated RL methods. LLM hallucinations directly distort the RL agent’s Q-value estimation and degrade policy efficiency, leading to unfeasible driving actions. Figure (c) presents the LLM-Hinted RL method. LLM provides semantic hints to the RL agent instead of directly dictating decisions. The RL agent, through its own policy learning process, effectively buffers the negative impact of these hallucinations, thereby preventing unfeasible actions.

Methods

To solve this, the authors propose the HCRMP (LLM-Hinted Contextual Reinforcement Learning Motion Planner) framework. Instead of letting the LLM drive, HCRMP uses a weakly coupled architecture where the LLM provides auxiliary "hints," allowing the RL agent's policy learning process to buffer against potential hallucinations.

The architecture consists of three core modules:

  1. Augmented Semantic Representation (ASR) Module: The LLM performs hierarchical scenario reasoning (global scene abstraction and fine-grained object analysis). This understanding is encoded into compact vectors (4D for scenario, 9D for object-level) to extend the RL agent's state space, enhancing its situational awareness.
  2. Contextual Stability Anchor (CSA) Module: To prevent the LLM from outputting erratic weights for the multi-critic RL framework (which decouples safety, efficiency, and comfort), the authors use Retrieval-Augmented Generation (RAG). The system queries a structured knowledge base of traffic regulations and industry standards, anchoring the LLM's outputs and stabilizing Q-value evaluations.
  3. Semantic Cache Module (SCM): To bridge the frequency gap and handle potential LLM latency or dropouts, the SCM acts as a fallback. It stores a history of driving contexts and their corresponding multi-critic weights. If the LLM fails to respond in time, a rapid nearest-neighbor search retrieves the most semantically similar historical entry to keep the control loop running smoothly.
Figure 2: The framework of our proposed HCRMP. LLM acts in the Augmented Semantic Representation module to fetch information at the scenario level and object level, extending the state space. Meanwhile, LLM acts in the Contextual Stability Anchor module to generate reliable weights between multi critics, utilizing the knowledge base to mitigate the output fluctuations. When LLM fails to provide timely guidance, the Semantic Cache module replaces the missing weights by retrieving the most similar historical driving conditions. Hints from LLM are ultimately input to the RL agent’s actor and multi-critic networks for optimal policy learning.

Datasets

The framework was implemented and evaluated within Town 2 of the CARLA simulator. The testing suite included:

  • Conventional Conditions: Overtaking and merging maneuvers.
  • Safety-Critical Conditions: Complex "trilemma" scenarios and occluded pedestrians.
  • Traffic Densities: Evaluated across low, medium, and high traffic flow densities to test scalability.

Key Insights and Ideas

  • The Power of Weak Coupling: Giving the RL agent decision autonomy is the ultimate defense against LLM errors. If the LLM hallucinates that "the road is clear" when it isn't, the RL agent's underlying state encoding and policy learning can override the hint to prevent an accident.
  • RAG as a Stabilizer for RL: Using RAG to ground an LLM in actual traffic laws before it suggests reward/critic weights significantly reduces training fluctuations, leading to faster and more stable policy convergence.
  • Asynchronous Harmony: Caching historical context allows high-frequency control loops to benefit from low-frequency cognitive models without being bottlenecked by inference latency.

Key Results

HCRMP was compared against several baselines, including Vanilla PPO, E2ECLA, AutoReward, and VLM-RL.

  • Conventional Scenarios: HCRMP achieved an average success rate of 89.5% in medium- and high-density traffic, vastly outperforming LLM-dominated methods like VLM-RL (which hovered around 50-53%).
  • Safety-Critical Scenarios: Under high-density trilemma and occluded pedestrian conditions, HCRMP maintained a task success rate of up to 75%, while significantly reducing the collision rate by 11.4% compared to the best-performing baselines.
  • Comfort Metrics: HCRMP maintained significantly lower acceleration variance (AV) compared to baselines like AutoReward, ensuring a smoother, more human-like passenger experience.

Limitations and Future Work

The authors note that because HCRMP heavily prioritizes immediate safety and local risk mitigation in complex environments, its global adaptation to static map path features is less developed. As a result, it occasionally recorded a lower total traveled distance compared to frameworks like VLM-RL. Future work will likely focus on improving long-range global path planning integration without sacrificing the local safety benefits of 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 Hanming Deng and Guizhe Jin and Ran Yu and Huanxi 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