Manuscript Offprint
arXiv:2609.08217Drive by Hindsight and Foresight: Tool-Grounded Synergistic Reasoning over Hierarchical Memory for Autonomous Driving
Abstract
Vision-language models (VLMs) have shown promise for autonomous driving tasks, yet still suffer from hallucination, weak spatio-temporal perception, and limited generalization. Recent methods improve reasoning and decision-making capabilities through chain-of-thought explanations, retrieval-augmented generation or the static incorporation of external tool outputs. Although these mechanisms enrich the initial context, the model neither proactively perceives scene information nor accumulates experience after answering. To overcome these limitations, we present, to our knowledge, the first synergistic framework that tightly couples hierarchical memory with proactive tool invocation in a closed reasoning loop. Our contributions are threefold. (i) Hierarchical Driving Memory: a scene-level short-term memory maintains the dynamic scene state, and an evolving long-term memory retrieves reusable experience and tool strategies by similarity. (ii) Memory-Tool Synergistic Reasoning Framework: guided by the scene state and retrieved experience, the model adaptively invokes tools to refine its reasoning at inference time and consolidates reusable experience into a long-term memory pool offline. (iii) Data Generation and Two-stage Training Pipeline: verified memory-tool trajectories built by multi-step teacher rollout are used to train with stepwise supervised fine-tuning (SFT) and group relative policy optimization (GRPO). Our 7B model reaches an overall reasoning score of 80.03 and MCQ accuracy of 79.09% on DriveLMM-o1 benchmark, surpassing the strongest baseline by 7.74 MCQ points and generalizes strongly across DriveM-LLM and STRIDE-QA benchmarks. Notably, ablation and analysis studies validate the effectiveness of each component and further reveal the complementary roles of hierarchical memory. Short-term memory strengthens spatiotemporal understanding, improving STSBench accuracy by 24.2 points, while offline long-term memory consolidation yields an additional 3.57-point MCQ gain with all model parameters frozen, demonstrating continual self-evolution through accumulated driving experience.
1 Introduction
Pretrained vision-language models have enabled their growing adoption in autonomous driving (Tian et al. 2024; Hwang et al. 2025; Jiang et al. 2024; Fu et al. 2025; Wang et al. 2025b), and are increasingly used for driving scene understanding, high-level behavior decisions, and decision explanation (Jiang et al. 2024; Mao et al. 2024). Among these ap-

Figure 1: Comparison of reasoning paradigms for autonomous driving: (a) A base VLM directly maps visual inputs to answers; (b) CoT unfolds direct prediction into guided intermediate reasoning steps; (c) RAG augments reasoning with retrieved external context; (d) Previous tool-augmented methods inject pre-computed tool outputs into single-pass reasoning; and (e) Our framework couples hierarchical memory with online tool interaction and offline experience consolidation.
plications, autonomous driving reasoning benchmarks provide a natural testbed for evaluating whether VLMs can transform visual observations into interpretable scene understanding and driving decisions. (Marcu et al. 2024; Xie et al. 2025; Ishaq et al. 2025).
Existing efforts proceed largely along three routes: unfolding the observation into step-by-step explanations via chain-of-thought (CoT) for better transparency and interpretability (Ishaq et al. 2025; Zeng et al. 2025); splicing the outputs of driving tools into the prompt or context to supplement external observations (Qian et al. 2025; Zheng et al. 2025); or injecting knowledge via retrieval-augmented generation (RAG) (Yuan et al. 2024; Ye et al. 2025; Wang et al. 2025a). In all three, the model is either made to produce more elaborate explanations from templates or to passively receive more information, the answers it produces and the information it receives keep growing, while its understanding does not evolve accordingly. Human driving follows a different pattern: a driving decision is not a one-shot recog-
Corresponding author.
nition of a static frame but a unified process of active perception, spatio-temporal understanding, and experience accumulation. A driver relies on foresight to keep track of the motion trends of the ego vehicle and key objects over time, and on hindsight to draw on transferable experience accumulated through long-term driving, judging which risks to prioritize and which actions to take in the current situation. Against this reference, what current methods lack becomes clear: no dynamic scene state that evolves with observations, no driving experience consolidated across scenes, and no active evidence-seeking driven by evidence gaps. This gap motivates the central question of this paper: Can a reasoning model for autonomous driving capture the key characteristics of human driving foresight and hindsight by integrating spatio-temporal awareness, proactive perception, and experience accumulation within a unified closed-loop reasoning framework?
To this end, we propose a tool-grounded synergistic reasoning framework over hierarchical memory. Scene-level short-term memory maintains the current spatio-temporal state, while cross-scene long-term memory retrieves experience as transferable priors. Conditioned on hierarchical memory, the model proactively invokes tools to acquire information. Across three driving benchmarks, our 7B model outperforms the strongest baseline and generalizes robustly without further training. Controlled studies further show that short-term memory improves STSBench accuracy by 24.2 points, while offline long-term memory consolidation provides an additional 3.57-point MCQ gain without updating model parameters. More broadly, these results point to a shift in autonomous-driving VLM research: from scaling static perception and isolated reasoning toward persistent, interactive driving intelligence that can evolve with evidence and experience. Our contributions are summarized as follows:
-
(1) We develop a hierarchical driving memory combing scene-level short-term memory for maintaining spatio-temporal states with cross-scene long-term memory for retrieving reusable driving experience and strategies.
-
(2) We propose a memory-tool synergistic reasoning (MTSR) framework which unifies foresight and hindsight by coupling adaptive tool use with hierarchical memory at inference time and consolidates verified experience into long-term memory offline.
-
(3) We build a data-generation and two-stage post-training pipeline that produces verified memory-tool trajectories through multi-step teacher rollouts and trains the model with stepwise supervised fine-tuning (SFT) and group relative policy optimization (GRPO).
2.1 VLMs and Benchmarks for Autonomous Driving
Vision-language models (VLMs) increasingly connect visual perception with language-based reasoning and planning in autonomous driving, with systems such as Senna, ORION, and NaviDriveVLM exploring different interfaces between high-level reasoning and motion planning (Jiang et al. 2024; Fu et al. 2025; Tao et al. 2026). In parallel, the benchmarks have progressed from perception-oriented and free-form question answering to risk assessment, explicit reasoning, and spatial-temporal understanding as well (Sima et al. 2024; Qian et al. 2024; Marcu et al. 2024; Gao et al. 2025; Ishihara et al. 2025; Gholami et al. 2025). DriveM-LLM evaluates spatial understanding (Guo et al. 2024), and STSBench emphasizes spatio-temporal scenario understanding (Fruhwirth-Reisinger et al. 2025). These benchmarks, together with reliability studies (Xie et al. 2025; Yu et al. 2025), show persistent weaknesses in motion trends, object interactions, grounding, and safety-critical reasoning.
2.2 External Augmentation in Reasoning for Autonomous Driving
Chain-of-thought (CoT) methods make intermediate driving judgments more explicit. DriveLMM-o1 supervises step-by-step reasoning for scene understanding (Ishaq et al. 2025), FutureSightDrive introduces spatio-temporal visual CoT (Zeng et al. 2025), and reinforcement- and critic-based approaches improve reasoning for planning and safety assessment (Zhang et al. 2026; Yang et al. 2026; Liu et al. 2026). External augmentation provides complementary information: SafeDriveRAG, RAG-Driver, and RAD retrieve knowledge or driving cases for safety reasoning, explanation, and decision making (Ye et al. 2025; Yuan et al. 2024; Wang et al. 2025a). AgentThink takes a step further through adding tool-outputs into context to improve performance and alleviate hallucinations (Qian et al. 2025). However, all the methods above still rely on a one-way, passive intake process rather than understanding that evolves with evidence, which motivates us to propose our framework.
3 Methodology
3.1 Overview
As shown in Figure 2, given a question and the current six-view observation , our framework conditions the vision-language policy on scene-level short-term memory , the top- entries retrieved from cross-scene long-term memory , and the driving tool set :
Here, represents the current spatio-temporal state, whereas provides reusable experience. The policy iteratively identifies missing evidence, invokes tools, accumulates the returned observations in its reasoning context, until it judges the evidence sufficient and answers.
3.2 Hierarchical Driving Memory
Our framework maintains a hierarchical driving memory consisting of and . The former provides a compact spatio-temporal representation of the current scene, whereas the latter supplies reusable reasoning and tool-use experience from past scenes.
Scene-Level Short-Term Memory. A single-timestamp multi-view observation provides rich appearance information but cannot explicitly reveal how the ego vehicle and

Figure 2: Overview of our framework. Given a question and a multi-view image, the model conditions on a scene-level short-term memory and experience retrieved from a cross-scene long-term memory , then performs Memory-Tool Synergistic Reasoning: it identifies the current evidence gap, invokes a driving tool, grounds the observation, and updates the scene belief, looping until it answers.
nearby traffic participants evolve over time. Directly feeding multiple six-view frames into the VLM would substantially increase the visual context and require the language model to perform cross-view alignment and temporal correspondence implicitly. We therefore construct from two adjacent six-view observations and .
For each timestamp , a pretrained bird's-eye view (BEV) perception model (Zhou et al. 2025) encodes the surround-view images into an ego-centric BEV representation and predicts both a structured semantic description and scene attributes:
where describes traffic participants, road elements, contains locations, qualitative relations and motion trends. Then we organize them into a scene graph:
where contains the ego vehicle, traffic participants, and relevant road elements; represents their spatial, temporal, and interaction relations. Notably, the short-term memory is refreshed only when the input scene advances and remains a read-only scene prior within a trajectory.
Cross-Scene Long-Term Memory. Reliable reasoning also requires hindsight. To maintain a persistent long-term memory containing driving commonsense, traffic rules and reusable experience distilled from verified successful trajectories, we define each entry as , where describes the applicable scene and task conditions, summarizes relevant risk factors, denotes a reusable successful reasoning pattern, records an effective tool-use strategy, and denotes its retrieval utility. For a question , we jointly encode the question and into a query representation, ranking each entry by semantic relevance and normalized utility:
(4)
where is the normalized utility and controls its contribution. After filtering and deduplication, provides transferable reasoning and tool-use priors rather than direct answer hints.
Offline consolidation. The long-term memory remains read-only during online reasoning. Let denote a completed memory-tool trajectory, formally defined in Sec. 3.3, and let denote the LTM before the -th consolidation round. We first extract reusable experience from trajectories that pass verification and then consolidate the resulting experience buffer:
Ext(·) maps a completed trajectory to the experience schema defined above, while Vrf(·) verifies final-answer correctness, tool-call validity, and reasoning–observation consis-

Figure 3: Data generation and two-stage post-training. A teacher VLM generates verified memory-tool trajectories via tool executors; stepwise SFT provides a tool-use cold start, followed by GRPO.
tency. The resulting verified experiences are filtered, abstracted, deduplicated, and merged by the offline consolidation operator . For an existing entry , we assign a utility credit to each verified trajectory and update its retrieval utility as
where is the utility-update rate, and only when and the verifier determines that it provided useful guidance to ; otherwise, . The complete offline consolidation procedure is summarized in Appendix A.2.
3.3 Memory-Tool Synergistic Reasoning
Conditioned on and , the model evolves a transient scene belief through tool interaction. Starting from , a complete trajectory is
where , , , and denote the reasoning state, action, tool observation, and revised scene belief, respectively, with .
At step , the policy generates the next reasoning state and action from the interaction history:
where . Both memories remain fixed within a query; only the transient scene belief evolves as observations are incorporated. Once sufficient evidence has been collected, the model emits finish and generates
Thus, reasoning follows a Think–Action–Observation–Update loop without a predefined tool sequence: describes the current scene, suggests relevant risks and
strategies, and each observation narrows the remaining uncertainty. Tool interfaces are detailed in Appendix A.3.
3.4 Data Generation and Two-Stage Post-Training
We construct verified memory-tool trajectories and train the policy using stepwise SFT followed by trajectory-level GRPO, as shown in Fig. 3.
Multi-Step Teacher Rollout and Validation. To expose the student to the same memory-conditioned tool-use process, a teacher policy starts from the initial context , retrieves relevant entries from an initialized long-term memory , and generates multi-step trajectories through the MTSR loop. Each trajectory is validated for final-answer correctness, tool-call validity, and reasoning-observation consistency. Verified ones form the training set , which is also consolidated into (Algorithm 1) to yield the student's initial long-term memory.
Stepwise Supervised Fine-Tuning Warm-up. We perform stepwise SFT in two phases to progressively establish memory-tool interaction. Phase 1 removes executor-returned observations and trains the model to select tools and generate arguments. Phase 2 continues from the Phase-1 checkpoint with complete memory and tool feedback to learn observation-grounded reasoning. Let and denote the training data and supervised token positions for phase . The unified SFT objective is
Here, contains tool-call tokens, whereas contains model-generated reasoning, actions, belief updates, and final answers. Executor-returned observations are provided as context but excluded from the training loss. The two-phase SFT warm-up prepares the model for memory-conditioned reasoning and effective tool integration prior to GRPO.
Trajectory-Level GRPO. Starting from the Phase-2 checkpoint, GRPO samples G trajectories per input. A correctness-gated reward jointly evaluates final-answer correctness, relevant memory use, valid tool interaction, and output format; auxiliary rewards activate only for correct answers. We optimize
where uses the trajectory-level group-relative advantage and is initialized from the Phase-2 policy. Reward tiers and full optimization details are provided in Appendix B.3.
4 Experiments
We conduct experiments to answer the following four questions:
Q1. Can our framework improve both answer accuracy and reasoning quality over strong general-purpose and reasoning-enhanced VLM baselines? ( )
Q2. How well does our framework generalize across benchmarks and challenge other tasks without further training? ( )
Q3. How do hierarchical driving memory, two-stage posttraining, and memory-guided proactive tool invocation contribute to model performance? ( )
Q4. Can offline consolidation of LTM yield cumulative improvements without updating model parameters? ( )
4.1 Experimental Setup
Benchmarks and Evaluation Metrics. DriveLMM-o1 (Ishaq et al. 2025) is the primary benchmark; we report its overall reasoning score, five driving-specific dimensions, and MCQ accuracy. DriveMLLM (Guo et al. 2024) evaluates zero-/one-shot generalization over eight fine-grained tasks using their mean accuracy (AccS). STRIDE-QA (Ishihara et al. 2025) reports localization success at 0–3 s, its mean (MLSR), and temporal localization consistency (TLC). STS-Bench (Fruhwirth-Reisinger et al. 2025) evaluates spatiotemporal understanding over 971 questions using category accuracy and a question-weighted micro average. Full protocols are provided in Appendix C.
Training, Inference and Implementation. We adapt Qwen2.5-VL-7B-Instruct (Bai et al. 2025) using LoRA (r = 16, ) while freezing the vision encoder. Qwen3.6-Plus generates 7,000 tool-executing trajectories, of which 6,383 pass answer verification and trajectory-quality filtering. Two-phase stepwise SFT first learns valid tool selection and argument generation for 3 epochs, and then observation-grounded reasoning for 20 epochs, followed by trajectory-level GRPO which samples G = 8 responses per prompt. At inference, the model retrieves the top-4 LTM entries and performs at most eight Think-Action-Observation-Update turns with tool execution. All experiments are conducted on 4×NVIDIA RTX PRO 6000 Blackwell GPUs (96GB memory), data construction and implementation details are given in Appendix B.
4.2 Main Results
Results on DriveLMM-o1. Table 1 answers Q1. Our framework achieves the best reasoning score of 80.03 and MCQ accuracy of 79.09%, improving the Qwen2.5-VL-7B backbone by 28.26 and 41.28 points, respectively. It also exceeds the same-scale AgentThink (Qian et al. 2025) by 7.74 MCQ points and ranks first on Rule Adherence and Scene Awareness. DriveAgent-R1 (Zheng et al. 2025) is the closest concurrent method in active perception. However, its checkpoints and evaluation assets have not been fully released, preventing a faithful comparison under the same protocol. Among reproducible tool-augmented baselines, AgentThink injects pre-computed tool outputs into single-pass generation, whereas our framework selects and executes tools online within a memory-conditioned interaction loop. This comparison demonstrates a favorable accuracy-reasoning trade-off, while the effects of components are examined in §4.3.
Cross-Benchmark Generalization. Turning to Q2, we evaluate all models without additional training or memory updates. On DriveMLLM, Table 2 shows that our framework obtains zero-/one-shot AccS scores of 74.36/80.59 on DriveMLLM, versus 56.96/61.21 for AgentThink and 57.18/60.52 for direct tool injection (Table 2). Gains concentrate on grounding and metric-geometry tasks. On unseen STRIDE-QA, it achieves the best open-model MLSR of 3.9 and the strongest longer-horizon results, reaching 5.6/4.4 LSR at 2/3 s (Table 3). These results support the transfer of STM scene states and LTM tool-use experience.
Qualitative Analysis. We additionally test our framework on DriveBench (Xie et al. 2025) solely to examine robustness under visual corruption. As shown in Figure 4, on long-range distance estimation, future-state prediction, adverse-weather decision making, and ego-object spatial reasoning, including degraded low-visibility scenes, our model actively grounds its answer in tool evidence and reuses retrieved experience, rather than guessing from appearance as Qwen3-VL-32B does (e.g., 41.0 m vs. 12.5 m against a 45.22 m ground truth).
4.3 Ablation Study
Turning to Q3, we examine how post-training, hierarchical memory, and structured temporal context contribute to the final performance.
Post-training stages. Turning to Q3, Table 5 shows two-stage SFT raises reasoning/MCQ from 51.77/37.81 to 73.91/67.06, and adding GRPO yields our full model at 80.03/79.09. GRPO on the base alone reaches only 73.85/64.49, even below SFT in MCQ, showing the SFT cold start is a necessary prerequisite. SFT establishes valid interaction, while GRPO refines complete trajectories once that foundation is in place.

Figure 4: Qualitative Comparison with Qwen3-VL-32B on DriveMLLM, DriveLMM-o1, DriveBench and STRIDE-QA. All results are zero-shot except for DriveLMM.
| Vision-Language Models | Driving Metrics (%) ↑ | Scene Detail (%) ↑ | Overall (%) ↑ | ||||
|---|---|---|---|---|---|---|---|
| Risk Assess. | Rule Adh. | Scene Aware. | Relevance | Missing | Reason. | MCQ | |
| GPT-4o | 71.32 | 80.72 | 72.96 | 76.65 | 71.43 | 72.52 | 57.84 |
| Ovis1.5-Gemma2-9B | 51.34 | 66.36 | 54.74 | 55.72 | 55.74 | 55.62 | 48.85 |
| LLaVA-CoT | 57.62 | 69.01 | 60.84 | 62.72 | 60.67 | 61.41 | 49.27 |
| InternVL2.5-8B | 69.02 | 78.43 | 71.52 | 75.80 | 70.54 | 71.62 | 54.87 |
| Qwen2.5-VL-72B | 64.40 | 72.81 | 60.29 | 65.13 | 62.81 | 65.73 | 61.27 |
| Qwen3-VL-8B | 79.50 | 84.32 | 80.41 | 84.43 | 75.32 | 77.76 | 55.54 |
| Qwen2.5-VL-7B (base) | 46.44 | 60.45 | 51.02 | 50.15 | 52.19 | 51.77 | 37.81 |
| DriveLMM-o1 | 73.01 | 81.56 | 75.39 | 79.42 | 74.49 | 75.24 | 62.36 |
| AgentThink | 80.51 | 84.98 | 82.11 | 84.99 | 79.56 | 79.68 | 71.35 |
| Ours | 76.95 | 86.28 | 84.05 | 77.38 | 76.39 | 80.03 | 79.09 |
Table 1: Performance comparison on the DriveLMM-o1 benchmark. Bold is best, underline is second best.
Hierarchical memory. We isolate the two memory levels while retaining the trained model and tool executor. As shown in Table 5, the no-memory variant reaches 72.16% MCQ; adding LTM alone improves it to 75.20%, STM alone to 76.91%, and combining both yields the best 79.09%. STM contributes more, as most DriveLMM-o1 questions depend on the current scene state, while LTM adds a smaller but consistent gain from reusable experience; their combination confirms the complementary roles of the two memories.
Temporal Representation Ablation. Table 4 compares temporal representations on STSbench. Raw six-frame input provides a modest gain over the base model (35.64% vs. 31.38%), whereas static and temporal STM reach 50.36% and 55.61%, respectively. Explicit temporal-state organization is therefore more effective than increasing visual context.
4.4 Behavioral and Evolutionary Analysis
Online tool behavior. Figures 5a and 5b characterize online evidence acquisition using benchmark-balanced macro averages. Overall, 97.4% of queries use one to three tools, with an average of 2.10 calls, while no-tool answering occurs in only 0.5% of cases. Within the admissible tool sets, metric-distance, motion-forecasting, and driving-decision questions predominantly invoke 3D geometry, trajectory, and ego/map
| Model | Zero-shot | One-shot | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| L/R | F/B | RHD | RD | PPos | BBox | CVD | CD | AccS | L/R | F/B | RHD | RD | PPos | BBox | CVD | CD | AccS | |
| GPT-4o | 91.72 | 67.60 | 9.58 | 14.69 | 40.90 | 4.07 | 46.11 | 70.65 | 43.16 | 91.08 | 69.37 | 36.51 | 71.17 | 42.44 | 5.10 | 0.00 | 63.88 | 47.44 |
| GPT-4o-mini | 67.67 | 50.13 | 70.44 | 0.00 | 29.28 | 3.78 | 0.00 | 46.40 | 33.46 | 66.00 | 48.95 | 83.02 | 58.47 | 25.71 | 3.97 | 52.73 | 55.23 | 49.26 |
| LLaVA-ov-72B | 85.42 | 49.48 | 13.76 | 45.27 | 16.46 | 0.00 | 42.97 | 27.09 | 35.06 | 79.12 | 62.97 | 49.26 | 68.04 | 28.57 | 2.20 | 53.12 | 60.90 | 50.52 |
| Qwen2.5-VL-7B | 76.55 | 55.24 | 7.14 | 17.11 | 55.97 | 38.31 | 55.94 | 51.52 | 44.72 | 80.30 | 53.14 | 36.96 | 39.13 | 62.69 | 22.63 | 49.88 | 48.32 | 49.13 |
| Qwen + CoT | 87.06 | 63.09 | 16.69 | 22.56 | 52.51 | 38.87 | 76.90 | 38.71 | 49.55 | 86.35 | 59.95 | 43.29 | 31.81 | 53.64 | 26.93 | 51.02 | 42.30 | 49.41 |
| Qwen + DirectTool | 78.95 | 48.96 | 58.43 | 67.57 | 58.20 | 42.22 | 51.76 | 51.38 | 57.18 | 84.57 | 55.50 | 67.32 | 59.54 | 85.58 | 26.07 | 52.34 | 53.25 | 60.52 |
| AgentThink | 82.33 | 54.40 | 56.14 | 61.45 | 70.45 | 56.23 | 23.09 | 51.60 | 56.96 | 78.71 | 48.46 | 60.64 | 60.71 | 72.36 | 64.46 | 52.26 | 52.04 | 61.21 |
| Ours | 89.28 | 78.02 | 73.94 | 70.50 | 67.15 | 63.27 | 77.47 | 75.26 | 74.36 | 87.16 | 83.12 | 80.89 | 74.29 | 76.27 | 67.92 | 87.86 | 87.19 | 80.59 |
Table 2: Zero-shot and one-shot results on DriveMLLM (%). Bold best, underline second best, within each setting.
| Model | LSR0s | LSR1s | LSR2s | LSR3s | MLSR | TLC |
|---|---|---|---|---|---|---|
| GPT-4o | 18.1 | 6.6 | 6.1 | 7.6 | 9.6 | 0.7 |
| InternVL2.5-8B | 2.4 | 1.0 | 1.7 | 0.7 | 1.5 | 0.0 |
| Qwen3-VL-8B | 1.0 | 3.2 | 4.4 | 1.0 | 2.4 | 0.0 |
| SpatialRGPT-VILA-1.5-8B | 0.5 | 0.2 | 0.2 | 0.0 | 0.2 | 0.0 |
| Cosmos-Reason1-7B | 1.5 | 3.2 | 2.0 | 1.5 | 2.0 | 0.0 |
| Ours | 2.0 | 3.4 | 5.6 | 4.4 | 3.9 | 0.2 |
Table 3: Zero-shot cross-dataset results on STRIDE-QA. GPT-4o is included as a proprietary reference; bold denotes the best result among the remaining models.

(a) Tool-call depth.
(b) Conditional tool selection.

(c) Long-term memory self-evolution.
Figure 5: Behavioral and evolutionary analysis. (a) Distribution of interaction depth. (b) Task-conditioned tool selection. (c) Test MCQ over sleep-time LTM consolidation rounds (frozen model).
tools, respectively. Tool execution succeeds in 99.74% of calls, with only 0.45% exact duplicates. Moreover, 98.94% of trajectories terminate normally; 0.65% stop without a further action, 0.39% terminate after a tool error, and only 0.02% reach the maximum-turn limit. These results show task-dependent, variable-length, and reliable interaction rather
| Method | Overall | Ego | Ego-Ag. | Ag. | Ag.-Ag. |
|---|---|---|---|---|---|
| GPT-4o | 50.25 | 63.63 | 75.75 | 45.59 | 43.38 |
| InternVL3-8B | 42.85 | 34.36 | 51.41 | 46.69 | 39.52 |
| Qwen2.5-VL 7B | 31.38 | 26.47 | 34.17 | 32.74 | 30.73 |
| + 6 frames input | 35.64 | 35.62 | 26.64 | 36.58 | 37.47 |
| + static STM | 50.36 | 81.37 | 37.50 | 52.17 | 45.16 |
| + STM | 55.61 | 84.31 | 45.00 | 61.23 | 47.41 |
Table 4: Zero-shot effect of the short-term memory (STM) on STSBench temporal-dynamic perception (%). Bold best, underline second best. Rel. = Relation, Ag. = Agent.
| Variant | Reason. | MCQ |
|---|---|---|
| Base | 51.77 | 37.81 |
| + SFT | 73.91 | 67.06 |
| + GRPO | 73.85 | 64.49 |
| Ours | 80.03 | 79.09 |
(a) Post-training stages.
| Memory | MCQ |
|---|---|
| w/o memory | 72.16 |
| + LTM | 75.20 |
| + STM | 76.91 |
| + STM + LTM | 79.09 |
(b) Memory components.
Table 5: Ablations on DriveLMM-o1 (%, ↑). Bold best. Memory components are added on the trained, tool-equipped no-memory model.
than a fixed invocation schedule.
Offline LTM evolution. To answer Q4, we consolidate successful trajectories while freezing all model parameters. Only training-split and additional non-benchmark scenes are used; no test information enters. Figure 5c shows MCQ increasing from 79.09% to 82.66% by generation 9, a 3.57-point gain without parameter updates. The slight generation-10 decline indicates saturation, demonstrating non-parametric improvement through accumulated experience.
5 Conclusion
We presented a hierarchical memory-tool framework that combines foresight with hindsight, and adaptive evidence acquisition for autonomous driving reasoning. The experimental results highlight the importance of moving autonomous driving VLMs toward adaptive systems that can accumulate experience and interact with external evidence. Future work will explore more scalable consolidation and extension toward open-world closed-loop driving.
References
Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; et al. 2025. Qwen2.5-VL Technical Report. arXiv:2502.13923.
Fruhwirth-Reisinger, C.; Malić, D.; Lin, W.; Schinagl, D.; Schulter, S.; and Possegger, H. 2025. STSBench: A Spatio-Temporal Scenario Benchmark for Multi-Modal Large Language Models in Autonomous Driving. In Advances in Neural Information Processing Systems 38 (NeurIPS), Datasets and Benchmarks Track.
Fu, H.; Zhang, D.; Zhao, Z.; Cui, J.; Liang, D.; Zhang, C.; Zhang, D.; Xie, H.; Wang, B.; and Bai, X. 2025. ORION: A Holistic End-to-End Autonomous Driving Framework by Vision-Language Instructed Action Generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV).
Gao, Y.; Piccinini, M.; Brusnicki, R.; Zhang, Y.; and Betz, J. 2025. NuRisk: A Visual Question Answering Dataset for Agent-Level Risk Assessment in Autonomous Driving. arXiv:2509.25944.
Gholami, M.; Rezaei, A.; Weimin, Z.; Mao, S.; Zhou, S.; Zhang, Y.; and Akbari, M. 2025. Spatial Reasoning with Vision-Language Models in Ego-Centric Multi-View Scenes. arXiv:2509.06266.
Guo, X.; Zhang, R.; Duan, Y.; He, Y.; Zhang, C.; Liu, S.; and Chen, L. 2024. DriveMLLM: A Benchmark for Spatial Understanding with Multimodal Large Language Models in Autonomous Driving. arXiv:2411.13112.
Hwang, J.-J.; Xu, R.; Lin, H.; Hung, W.-C.; Ji, J.; Choi, K.; Huang, D.; He, T.; Covington, P.; Sapp, B.; Zhou, Y.; Guo, J.; Anguelov, D.; and Tan, M. 2025. EMMA: End-to-End Multimodal Model for Autonomous Driving. Transactions on Machine Learning Research.
Ishaq, A.; Lahoud, J.; More, K.; Thawakar, O.; Thawkar, R.; Dissanayake, D.; Ahsan, N.; Li, Y.; Khan, F. S.; Cholakkal, H.; Laptev, I.; Anwer, R. M.; and Khan, S. 2025. DriveLMM-o1: A Step-by-Step Reasoning Dataset and Large Multimodal Model for Driving Scenario Understanding. arXiv:2503.10621.
Ishihara, K.; Sasaki, K.; Takahashi, T.; Shiono, D.; and Yamaguchi, Y. 2025. STRIDE-QA: Visual Question Answering Dataset for Spatiotemporal Reasoning in Urban Driving Scenes. arXiv:2508.10427.
Jiang, B.; Chen, S.; Liao, B.; Zhang, X.; Yin, W.; Zhang, Q.; Huang, C.; Liu, W.; and Wang, X. 2024. Senna: Bridging Large Vision-Language Models and End-to-End Autonomous Driving. arXiv:2410.22313.
Liu, Z.; Ye, H.; Zhang, X.; and Qi, M. 2026. CritiqueDriveVLM: From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Driving. arXiv:2607.04179.
Mao, J.; Ye, J.; Qian, Y.; Pavone, M.; and Wang, Y. 2024. A Language Agent for Autonomous Driving. arXiv:2311.10813.
Marcu, A.-M.; Chen, L.; Hünermann, J.; Karnsund, A.; Hanotte, B.; Chidananda, P.; Nair, S.; Badrinarayanan, V.;
Kendall, A.; Shotton, J.; Arani, E.; and Sinavski, O. 2024. LingoQA: Visual Question Answering for Autonomous Driving. In Proceedings of the European Conference on Computer Vision (ECCV). Cham: Springer.
Qian, K.; Jiang, S.; Zhong, Y.; Luo, Z.; Huang, Z.; Zhu, T.; Jiang, K.; Yang, M.; Fu, Z.; Miao, J.; Shi, Y.; Lim, H. Z.; Liu, L.; Zhou, T.; Yu, H.; Hu, Y.; Li, G.; Chen, G.; Ye, H.; Sun, L.; and Yang, D. 2025. AgentThink: A Unified Framework for Tool-Augmented Chain-of-Thought Reasoning in Vision-Language Models for Autonomous Driving. arXiv:2505.15298.
Qian, T.; Chen, J.; Zhuo, L.; Jiao, Y.; and Jiang, Y.-G. 2024. NuScenes-QA: A Multi-Modal Visual Question Answering Benchmark for Autonomous Driving Scenario. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence, 4542–4550. Washington, DC: AAAI Press.
Sima, C.; Renz, K.; Chitta, K.; Chen, L.; Zhang, H.; Xie, C.; Beißwenger, J.; Luo, P.; Geiger, A.; and Li, H. 2024. DriveLM: Driving with Graph Visual Question Answering. In Proceedings of the European Conference on Computer Vision (ECCV). Cham: Springer.
Tao, X.; Taghavi, P.; Filev, D.; Langari, R.; and Pandey, G. 2026. NaviDriveVLM: Decoupling High-Level Reasoning and Motion Planning for Autonomous Driving. arXiv:2603.07901.
Tian, X.; Gu, J.; Li, B.; Liu, Y.; Wang, Y.; Zhao, Z.; Zhan, K.; Jia, P.; Lang, X.; and Zhao, H. 2024. DriveVLM: The Convergence of Autonomous Driving and Large Vision-Language Models. In Proceedings of the 8th Conference on Robot Learning (CoRL).
Wang, Y.; Liu, Q.; Jiang, Z.; Wang, T.; Jiao, J.; Chu, H.; Gao, B.; and Chen, H. 2025a. RAD: Retrieval-Augmented Decision-Making of Meta-Actions with Vision-Language Models in Autonomous Driving. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops.
Wang, Y.; Luo, W.; Bai, J.; Cao, Y.; Che, T.; Chen, K.; Chen, Y.; Diamond, J.; Ding, Y.; Ding, W.; et al. 2025b. Alpamayo-R1: Bridging Reasoning and Action Prediction for Generalizable Autonomous Driving in the Long Tail. arXiv:2511.00088.
Xie, S.; Kong, L.; Dong, Y.; Sima, C.; Zhang, W.; Chen, Q. A.; Liu, Z.; and Pan, L. 2025. Are VLMs Ready for Autonomous Driving? An Empirical Study from the Reliability, Data, and Metric Perspectives. arXiv:2501.04003.
Yang, L.; Huang, J.; Huang, Z.; Liu, S.; and Yang, H. 2026. Judge, Then Drive: A Critic-Centric Vision Language Action Framework for Autonomous Driving. arXiv:2604.27366.
Ye, H.; Qi, M.; Liu, Z.; Liu, L.; and Ma, H. 2025. SafeDriveRAG: Towards Safe Autonomous Driving with Knowledge Graph-Based Retrieval-Augmented Generation. arXiv:2507.21585.
Yu, S.; Lee, S.; Kim, N.; Shin, J.; Park, J.; Ryu, W.; Jung, R.; and Shim, H. 2025. WaymoQA: A Multi-View Visual Question Answering Dataset for Safety-Critical Reasoning in Autonomous Driving. arXiv:2511.20022.
Yuan, J.; Sun, S.; Omeiza, D.; Zhao, B.; Newman, P.; Kunze, L.; and Gadd, M. 2024. RAG-Driver: Generalisable Driving Explanations with Retrieval-Augmented In-Context Learning in Multi-Modal Large Language Model. In Proceedings of Robotics: Science and Systems (RSS).
Zeng, S.; Chang, X.; Xie, M.; Liu, X.; Bai, Y.; Pan, Z.; Xu, M.; Wei, X.; and Guo, N. 2025. FutureSightDrive: Thinking Visually with Spatio-Temporal CoT for Autonomous Driving. In Advances in Neural Information Processing Systems 38 (NeurIPS). Spotlight.
Zhang, Z.; Zheng, H.; Wang, Y.; Xu, L.; Deng, T.; Chen, X.; Chen, Q.; Zhang, B.; and Huang, W. 2026. OmniDrive-R1: Reinforcement-Driven Interleaved Multi-Modal Chain-of-Thought for Trustworthy Vision-Language Autonomous Driving. arXiv:2512.14044.
Zheng, W.; Mao, X.; Ye, N.; Li, P.; Zhan, K.; Lang, X.; and Zhao, H. 2025. DriveAgent-R1: Advancing VLM-Based Autonomous Driving with Active Perception and Hybrid Thinking. arXiv:2507.20879.
Zhou, X.; Liang, D.; Tu, S.; Chen, X.; Ding, Y.; Zhang, D.; Tan, F.; Zhao, H.; and Bai, X. 2025. HERMES: A Unified Self-Driving World Model for Simultaneous 3D Scene Understanding and Generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 27817–27827.
A Additional Method Details
A.1 Scene-Level Short-Term Memory Construction
The scene-level short-term memory represents the current driving scene as a compact graph containing the ego state, key objects, spatial sectors, distance bands, motion states, risks, and inter-object relations. Adjacent-timestamp multi-view images are passed through a pretrained HERMES-style BEV encoder and an LLM decoder to obtain scene descriptions that initialize the graph-structured state; The short-term memory is provided as a read-only scene prior during each reasoning episode and is refreshed only when a new pair of adjacent observations becomes available.
A.2 Cross-Scene Long-Term Memory
Algorithm 1: Offline Long-Term Memory Consolidation
Require: Current memory , pending trajectory buffer , utility-update rate
Ensure: Updated memory
1: ← VERIFIEDTRAJS() 2: ← QUALITYFILTER(EXTRACTBUFFER()) 3: ← COLLECTUSEFULENTRIES() 4: ← REINFORCE() 5: ← SEMANTICCLUSTER() 6: for each cluster do 7: ← DEDUPLICATE() 8: ← RESOLVECONFLICTS() 9: ← ABSTRACT() 10: end for 11: ← MERGE() 12: return
The cross-scene long-term memory is built in two stages. It is first initialized with 23,388 experience entries of traffic rules and general driving knowledge abstracted from the OmniDrive dataset. After multi-step teacher rollout (Appendix B.1), we further abstract reusable success patterns and tool strategies from the verified trajectories and append them to the store.
Both the query and the stored entries are encoded into normalized 384-dimensional representations using sentence-transformers/all-MiniLM-L6-v2. The retrieval query is composed from the current question together with the scene-level short-term memory, so that a single semantic query expresses both what the task asks and what the current scene looks like; entries whose task and scene context both resemble the query therefore rank highest. Retrieval computes cosine similarity between the query and every entry, and the top-4 entries are returned.
Two safeguards apply at retrieval time. First, entries originating from the query's own scene are excluded, which prevents a sample from retrieving the roughly forty temporally adjacent frames of its own scene as trivially similar evidence. Second, the returned view is inference-safe: internal
identity fields and the teacher's decision are stripped, so no raw training question or ground-truth answer is ever exposed to the model. The store remains read-only during benchmark evaluation and is updated only in the offline-consolidation experiment (Algorithm 1).
A.3 Driving Tool Library
The complete driving tool library contains 27 callable functions covering visual grounding, metric geometry, object perception, ego-state estimation, trajectory forecasting, occupancy reasoning, and map querying. Below, we describe the 20 core tools used in the reported experiments. Each tool returns structured observations that can be incorporated into the transient scene belief during memory-conditioned reasoning.
Open-Vocabulary Grounding Functions.
- detect_objects_2d_open_vocab: Given a list of object words and one named camera view, this function runs an open-vocabulary 2D detector and returns bounding boxes, centers, and confidences. An empty detection result is treated as inconclusive rather than as evidence that the queried object is absent.
- select_referred_instance: Selects and confirms the referred instance when multiple same-class candidates are detected. It takes the camera view, textual object description, and selected bounding box as input, and returns the confirmed pixel center and box for subsequent metric estimation.
3D Geometry Functions.
- estimate_object_3d_location_camera: Given a camera view and either a text query or an explicit box, this function returns the metric camera-frame of the target in meters from multi-view BEV-3D perception, together with the straight-line camera distance. The returned coordinates share a common metric BEV frame, enabling cross-view spatial comparison.
- estimate_object_depth: Returns the metric forward distance to a target on one camera view, its straight-line camera distance, and a coarse distance band. Used for "how far" questions.
- measure_pairwise_distance_3d: Given two targets on one camera view, returns the absolute lateral gap and the straight-line 3D distance between them in meters.
- compare_object_depth_order: Given two targets on one camera view, reports which is closer to the ego, their metric depths, and a confidence level. Used for "which is closer" and front/behind questions.
- estimate_object_depth_monocular: Provides a monocular-depth estimation. The result is treated as an approximate pixel-anchored estimate and is considered less reliable for long-range targets. For pairwise measurement, both targets are estimated within the same image to preserve relative scale consistency.
Detection Functions.
-
get_leading_object_detection: Detects the leading object in the same lane within 10 m ahead, returning its ID, position, and size. Returns None if no leading object exists. -
get_surrounding_object_detections: Detects objects within a 20 m × 20 m box around the ego, returning IDs, positions, and sizes. -
get_front_object_detections: Identifies objects in a 10 m × 20 m region in front of the ego, returning IDs, positions, and sizes. -
get_object_detections_in_range: Detects objects whose center falls within a specified BEV rectangle in meters.
Ego-State Estimation Function.
get_ego_states: Returns the ego vehicle's current kinematic state and short history: velocity , heading angular velocity, acceleration, can-bus position, heading speed, steering angle, the last two seconds of trajectory, and the mission goal (LEFT / RIGHT / FORWARD).
Trajectory Forecasting Functions.
-
get_future_trajectories_for_specific_objects: Given a list of object IDs obtained from a prior detection call, returns their predicted future waypoints over the next 3 s. -
get_future_trajectories_in_range: Returns predicted future trajectories for any object whose current center lies in a specified BEV rectangle.
Occupancy and Map Query Functions.
-
get_occupancy_at_locations_for_timestep: Given a list of locations and a future timestep (corresponding to 0, 0.5, 1, 1.5, 2 s), returns whether each location is occupied. -
get_drivable_at_locations: Returns whether each location lies in a drivable region. -
get_lane_category_at_locations: Returns the lane-element category at each location, one or more of {divider, ped_crossing, boundary}, with optional probability scores. -
get_current_shoulder: Returns the distance from the ego to the left and right road shoulders at the current location. -
get_current_lane_divider: Returns the distance from the ego to the left and right lane dividers at the current location. -
get_nearest_footestrian_crossing: Returns the location of the nearest pedestrian crossing in front of the ego, or None if none exists.
B Data Generation and Post-Training Details
B.1 Multi-Step Teacher Rollout and Validation
We construct gold-conditioned, tool-executing teacher trajectories. The gold answer is provided to the teacher to anchor trajectory synthesis, while real tool observations are obtained only through execution. Validation therefore focuses
| Item | Value |
| API provider | Alibaba Cloud DashScope |
| Model identifier | qwen3.6-plus (alias) |
| Dated snapshot | not exposed by the API |
| Extended thinking | disabled |
| Call window | 2026-05-09 to 2026-05-13 |
| Logged calls | 6,395 |
| Temperature | 0.1 |
| Top-p / top-k | provider defaults (not set) |
| Max output tokens | 2,048 |
| Response format | JSON object mode |
| Request timeout | 180 s |
| Retries per question | 2 (3 attempts max) |
Table 6: Teacher generation configuration for Phase-1 trajectory synthesis.
on action validity, observation provenance, grounding quality, and observation-reasoning consistency rather than independently re-evaluating answer correctness. Each rollout follows the flow:
with real tool execution at each step. Validation applies action-syntax and tool-argument checks, object-grounding and observation-provenance checks, observation-reasoning consistency, final-answer correctness, and maximum-step / redundancy filtering; failed rollouts are regenerated.
Table 6 records the exact teacher setup, so that the generation run is documented even though it cannot be replayed bit-exactly. The model identifier is a provider-side alias rather than a dated snapshot: the API returns no finer build string, so the alias may resolve to a different underlying build after our call window. We therefore treat the released trajectories as the frozen record of this run rather than as an artifact that a reader can regenerate. Extended-thinking mode was not enabled; the teacher emits its trace directly under a JSON response-format constraint. Nucleus and top-k sampling parameters were left at provider defaults and are not part of the recorded configuration.
The teacher system prompt and the tool-call JSON schema it must satisfy are reproduced in Appendix D.1; the schema is the same registry-validated contract used at inference (Appendix A.3), so a trajectory that passes validation is executable by the student without translation.
B.2 Stepwise Conversion and Two-Phase SFT
The verified trajectory pool is decomposed into step-level supervision rather than used as whole traces, which are too open-ended for supervised fine-tuning. Each trajectory yields several next-step prediction examples: from the question plus compact memory context to and ; from the previous observation to the next and ; and from the final observation to , reasoning, and the final answer. Environment-returned observations appear as user-side turns and are masked from the loss, so supervision applies only to model-generated reasoning, actions, belief up-
| Parameter | Phase-1 SFT | Phase-2 SFT |
|---|---|---|
| Training Configuration | ||
| Objective | tool-call init | obs.-grounded reason. |
| Epochs | 3 | 20 |
| Per-device batch size | 1 | 1 |
| Gradient accumulation | 16 | 16 |
| Data-parallel size | 1 | 1 |
| Effective batch size | 16 | 16 |
| Max sequence length | 12,288 | 12,288 |
| Precision | bfloat16 | bfloat16 |
| Attention | SDPA | SDPA |
| Gradient checkpointing | enabled | enabled |
| Loss scope | last round | last round |
| Optimizer (AdamW, fused) | ||
| Learning rate | 5e-5 | 2e-5 |
| Betas () | (0.9, 0.95) | (0.9, 0.95) |
| Epsilon | 1e-8 | 1e-8 |
| Weight decay | 0.01 | 0.01 |
| Gradient clipping | 1.0 | 1.0 |
| Scheduler | ||
| Type | Cosine | Cosine |
| Warmup ratio | 0.05 | 0.05 |
| LoRA Configuration | ||
| Rank | 16 | 16 |
| Alpha | 32 | 32 |
| Dropout | 0.05 | 0.05 |
| Bias | none | none |
| Target modules | all linear layers | |
| Frozen | vision encoder, aligner | |
| Data and Selection | ||
| Training records | 13,679 | 20,062 |
| Validation split ratio | 0.01 | 0.005 |
| Data-loader workers | 4 | 4 |
| Save / eval interval | 200 / 300 | 1000 / 1000 |
| Selection criterion | validation loss | |
| Seed | 42 | 42 |
Table 7: Supervised fine-tuning hyperparameters. Both phases train a single LoRA adapter on one GPU; the effective batch size is sequences.
dates, and final answers. Phase 1 yields 13,679 tool-decision records and Phase 2 yields 20,062 records with complete memory-conditioned reasoning contexts and executed tool observations.
We adapt Qwen2.5-VL-7B-Instruct with LoRA (rank 16, , dropout 0.05) on all linear layers of the language backbone, freezing the vision encoder and multimodal aligner; all stages use bfloat16 and AdamW. Phase 1 learns valid tool selection and argument generation, with tool observations removed from the context except candidate detections needed by the instance-selection action. Phase 2 continues from the Phase 1 adapter and learns observation-grounded reasoning. The complete training, optimization, LoRA, and data-selection hyperparameters for both SFT phases are summarized in Table 7.
| Tier | Condition | Reward |
|---|---|---|
| 1 | correct tool memory cited | +0.7 |
| 2 | correct tool no memory citation | +0.5 |
| 3 | correct no tool | 0.0 |
| 4 | incorrect tool | +0.2 |
| 5 | incorrect no tool | 0.0 |
| 6 | malformed output | 0.0 |
Table 8: Tiered outcome reward for trajectory-level GRPO. Tiers are mutually exclusive; each trajectory is scored once.
B.3 GRPO and Reward Design
Starting from the Phase 2 checkpoint, we run trajectory-level GRPO with , warmup ratio 0.25, KL coefficient , and sampled trajectories per prompt; the maximum completion length is 1,536 tokens and training uses DeepSpeed ZeRO-3. A single rule-based outcome reward model assigns each sampled trajectory to exactly one tier (Table 8). Correctness is evaluated on the multiple-choice letter of the last parseable final answer; tool denotes at least one action passing the schema legality check; memory cited requires at least two concrete scene-state or experience phrases surfaced in the reasoning. Three properties of the reward deserve explicit statement:
First, the memory-citation bonus is fully correctness-gated: the +0.2 gap between Tier 1 and Tier 2 is available only on correct answers.
Second, tool use is deliberately not fully correctness-gated. Tier 4 assigns a small positive reward to incorrect trajectories that issued at least one legal tool call, which makes . This ordering is intentional and serves two purposes. It is a bootstrapping term: at the start of reinforcement training the policy must first learn that the tool interface is executable at all, and a purely correctness-gated reward gives no gradient on the prompts the model cannot yet answer, which are exactly the prompts tool use is meant to address. It is also an anti-shortcut term: the supervised warm-up already leaves the model able to answer many questions directly, so rewarding correct-but-toolless trajectories would make direct answering the dominant strategy and discard the interaction behaviour that the warm-up established.
The shaping term cannot be exploited, for three reasons that are structural rather than empirical. (i) Tiers are mutually exclusive and each trajectory is scored exactly once, so a trajectory that issues seven tool calls receives the same +0.2 as one that issues a single call; the reward is therefore flat in the number of calls and exerts no pressure toward deeper or repeated invocation. (ii) The tier is strictly dominated: any trajectory that converts a tool call into a correct answer moves to Tier 2 or Tier 1 and more than doubles its reward, so the shaping term is never the best available outcome for a prompt the model can solve. (iii) Advantages are standardized within each group of samples of the same prompt, so Tier 4 only produces a positive advantage when no sample in the group is correct; whenever the group contains a correct trajectory, the tool-using-but-incorrect samples receive negative advantage.
| Parameter | Value |
|---|---|
| Objective | |
| Loss / advantage estimator | GRPO |
| Clipping parameter | 0.2 (symmetric) |
| KL coefficient | 0.001 |
| KL placement | in loss, not in reward |
| KL estimator | sampled-token () |
| Importance sampling | token level |
| Policy update epochs | 1 (on-policy) |
| Entropy bonus | none |
| Sampling | |
| Group size | 8 |
| Generation batch size | 16 |
| Prompts per gen. batch | 2 |
| Steps per generation | 8 |
| Temp. / top- / top- | 1.0 / 0.95 / 50 |
| Max prompt / completion | 512 / 1,536 |
| Max tool-interaction turns | 7 |
| Rollout engine | vLLM (server mode) |
| Reward | |
| Reward function | answer_or_tool |
| Reward weight | 1.0 |
| Standardization | per group |
| Reward whitening | disabled |
| Overlong / dyn. filtering | disabled |
| Reference policy | |
| Source | Phase-2 SFT adapter |
| Synchronization | none (frozen) |
| Optimization | |
| Per-device batch size | 2 |
| Gradient accumulation | 8 (4 in final phase) |
| Effective batch size | 16 |
| Optimizer | AdamW (fused) |
| Betas / / wd | (0.9, 0.95) / 1e-8 / 0.01 |
| Gradient clipping | 1.0 |
| Scheduler | Cosine |
| Parallelism | ZeRO-3; 1 trainer + 1 rollout GPU |
| Save interval | every 50 steps |
| Seed / data seed | 42 / 42 |
Table 9: GRPO implementation parameters shared across the four continued-training phases. Per-phase learning rate, warmup ratio, and step budget are listed in Table 10.
The shaping term is thus active precisely on the prompts where the policy has not yet learned to succeed, and inactive elsewhere.
Third, open-ended items are treated as incorrect by the multiple-choice correctness test and can therefore only reach Tiers 4–6, so the reinforcement stage applies pressure on multiple-choice correctness and tool discipline but no direct pressure on open-ended reasoning quality. We return to this asymmetry in Appendix E.2.
B.4 Training and Compute Configuration
GRPO uses a separate subset of training questions disjoint from SFT. At inference the model follows a Think–Action–Observation–Update loop with real tool execution: each re-
| Phase | LTM | LR | Warmup | Steps |
|---|---|---|---|---|
| v0 (fresh) | — | 0.25 | 800 | |
| v1 | — | 0.05 | 500 | |
| v2 | enabled | 0.10 | 500 | |
| v3 (final) | enabled | 0.10 | 500 |
Table 10: GRPO continued-training chain. Each phase resumes strictly from the preceding phase's checkpoint; long-term memory is injected into the prompt set from v2 onward. The reported model is the final v3 checkpoint.
turned observation is appended to the reasoning context and informs the next step, but does not modify the explicit short-term memory. We use greedy decoding (temperature 0), bfloat16, SDPA attention, an image-pixel budget of , and we allow at most seven tool-execution turns followed by one terminal answer turn, yielding at most eight model turns per query. Unless otherwise stated, all model parameters and both memory channels are frozen during evaluation. All experiments run on 4 NVIDIA RTX PRO 6000 Blackwell GPUs (96 GB each) distributed across two servers.
Software environment. Ubuntu 24.04.2 LTS (kernel 6.8.0), NVIDIA driver 590.48.01, CUDA 12.8 with cuDNN 9.10.2, Python 3.10. Key packages: torch 2.8.0 (cu128), transformers 4.57.6, peft 0.18.1, trl 0.24.0, deepspeed 0.17.6, accelerate 1.13.0, vllm 0.11.0, sentence-transformers 5.4.1, numpy 2.2.6. flash-attn is deliberately not installed and attention runs through SDPA; environments that do install it may produce slightly different numerics. A complete pip freeze of this environment is included in the supplement.
Random seeds. Trainer-side randomness is seeded at 42 and propagated to Python, NumPy, and PyTorch, fixing adapter initialization, data shuffling, and dataloader order for both supervised stages and the reinforcement stage. Dataset partitions used for analysis are drawn under separately recorded seeds. Inference is deterministic given a fixed checkpoint. The teacher model and the evaluation judge are hosted third-party APIs that accept no seed argument, so the released trajectories and judge outputs are frozen records of the actual runs; and reinforcement rollouts are sampled at temperature 1 without a per-sample seed threaded through the rollout server, so the sampled groups are not bit-reproducible across reruns, as is expected for on-policy reinforcement learning.
Hyperparameter selection. Optimizer, adapter, and reinforcement hyperparameters were fixed by compute budget rather than searched: they follow the defaults of the training toolkit and of prior stepwise tool-use recipes. We ran no grid or random search over learning rate, adapter rank, retrieval depth, group size, or interaction budget, and we state this plainly rather than present a post-hoc search space. Checkpoints are selected by accuracy on a validation partition held out from the training file by the trainer, never on any benchmark test split.
C Benchmarks and Evaluation Protocols
C.1 DriveLMM-o1 Protocol
DriveLMM-o1 (Ishaq et al. 2025) is our primary benchmark for reasoning quality and answer accuracy. It is built on nuScenes keyframes and contains over 18K training and over 4K test VQA examples spanning perception, prediction, and planning; unlike earlier driving VQA sets it supplies manually curated intermediate reasoning steps for every question rather than only a final answer. The test split contains 4,634 questions (2,391 multiple-choice and 2,243 open-ended), drawn from 539 multi-view keyframes across 115 nuScenes scenes; each sample provides six surround-view images.
Input configuration. We follow the official inference format. The six views are supplied in the canonical order (FRONT_LEFT, FRONT, FRONT_RIGHT, BACK_RIGHT, BACK, BACK_LEFT), stitched into a grid, and the layout is declared in the system prompt so that answers referring to, for example, “top row, second image” resolve correctly. We reuse the official reasoning instruction verbatim so that the fine-tuned model and the evaluation harness see the same template.
Reasoning score. An LLM judge scores each response against the human-verified reasoning steps on a 1–10 scale along twelve dimensions: Faithfulness-Step, Informativeness-Step, Risk Assessment Accuracy, Traffic Rule Adherence, Scene Awareness & Object Understanding, Repetition-Token, Hallucination, Semantic Coverage-Step, Commonsense Reasoning, Missing Step, Relevance, and Missing Details. The judge receives the question, the concatenated ground-truth reasoning steps and final answer, and the model response, and returns a structured JSON object under a fixed schema with no free text. The full prompts given to the judge is presented in D.2. We use GPT-4o-mini at temperature 0, matching the reference implementation's default. The reported reasoning score is
where is dimension k for question i and D is the full 4,634-question split. Table 1 reports five of the twelve dimensions individually; the “Missing” column is Missing Details.
Answer accuracy. A question is multiple-choice when the trailing index of its identifier lies in , the official partition, which yields exactly 2,391 items. The predicted option is extracted by splitting the response at the first final-answer marker and taking the first option pattern in the remainder; a response with no parseable marker is scored incorrect. MCQ accuracy is the mean over the 2,391 items.
C.2 Cross-Benchmark Evaluation
DriveMLLM (Guo et al. 2024) evaluates fine-grained spatial understanding on nuScenes front-facing images, pairing each image with programmatically generated questions whose ground truth is derived from calibrated 3D boxes and camera intrinsics. It covers both absolute (camera-to-object) and relative (object-to-object) relations, and each question is answered from a single view with no temporal context. Following the zero- and one-shot protocols of prior tool-augmented work, we evaluate eight tasks: left/right (L/R), front/behind (F/B), relative horizontal distance (RHD), relative distance (RD), pixel localization (PPos), bounding-box localization (BBox), camera vertical distance (CVD), and camera distance (CD). Binary relational tasks are scored by exact match, . Metric-regression tasks use a bounded penalty on the absolute error,
covering RHD, RD, CVD, and CD. Pixel localization uses the Euclidean form
and bounding-box localization is scored by intersection-over-union. The aggregate score is the unweighted mean over the eight tasks, . All scaling constants are the published values. Parameters and long-term memory stay frozen; the one-shot setting adds a single in-context demonstration.
STSBench (Fruhwirth-Reisinger et al. 2025) targets spatio-temporal reasoning over both ego and non-ego agents, which distinguishes it from benchmarks that test ego-centric action recognition on single images or monocular video. Its nuScenes instantiation mines 43 pre-defined traffic scenarios from ground-truth annotations, passes them through human verification, and converts them into 971 five-way multiple-choice questions, each grounded in six temporal frames at 2 Hz from six surround-view cameras. We report accuracy for ego motion, ego-agent relations, agent motion, and agent-agent relations, plus a micro-average over all 971 questions.
STRIDE-QA (Ishihara et al. 2025) is built from an urban driving corpus disjoint from nuScenes, which makes it a genuine cross-dataset test: neither our training data nor our memory contains any STRIDE-QA scene, sensor configuration, or city. We evaluate on the benchmark split, built from held-out recording dates and comprising 5,317 QA pairs over 409 scene groups, filtered to dynamic interactions and categorized into six scenario types. The model observes four context frames from a front-facing camera with a field of view at s, with a single target agent identified by its segmentation mask, and predicts at s the target's distance, velocity, and heading angle together with the ego velocity. Heading is expressed in the ego frame with forward and positive counter-clockwise; targets may leave the field of view at . A localization succeeds only if distance and heading are simultaneously within tolerance,
where the distance margin follows prior spatial-reasoning work and the heading margin is set so that at 10 m the lateral deviation equals a standard 3.5 m lane width. We report LSR at the 0/1/2/3 s timesteps, its mean MLSR = , and Temporal Localization Consistency TLC = with , the strict fraction of sequences localized correctly at all four timesteps.
C.3 Leakage Control
Training data. All supervised trajectories and all reinforcement prompts are generated from the DriveLMM-o1 training split only. No test question, image, or reference answer is used at any training stage.
Memory initialization. The initial long-term store is abstracted from the OmniDrive dataset, which supplies scene-level driving knowledge, traffic rules, and counterfactual driving rationales over nuScenes scenes. Because OmniDrive shares its underlying corpus with three of our benchmarks, extraction is restricted to nuScenes training scenes: no entry in the store originates from a scene that appears in any evaluation split. Entries added later, during the abstraction of reusable success and failure patterns from verified teacher rollouts, inherit the same restriction because those rollouts are themselves generated only from training-split questions.
Memory access at evaluation time. During benchmark evaluation the store is read-only and frozen. Retrieval applies two safeguards. First, an anti-leak filter excludes every entry whose scene identifier matches the query's own scene, which prevents a sample from retrieving the roughly forty temporally adjacent frames of its own scene as trivially similar evidence. Second, the returned view is inference-safe: teacher decisions and dataset identity tokens are stripped, so no reference answer or scene identifier is ever exposed to the model.
Model selection. Checkpoints are selected on a validation partition held out from the training file by the trainer, never on any benchmark test split.
Offline consolidation. Consolidation uses only training-split rollouts and additional non-benchmark scenes; correctness is verified against training labels alone, and the memory is frozen before evaluation, so the self-evolution protocol is strictly inductive.
D Prompt and Serialization Templates
D.1 Teacher Rollout Prompts
Teacher trajectories are produced by a three-stage prompted pipeline rather than a single generation call. Stage 1 plans a short action skeleton without access to any tool output. Stage 2 is invoked once per interaction round: it observes the tool results executed so far and either emits the next action or declares the evidence sufficient. Stage 3 receives the completed trace together with the real observations, then updates current belief and step by step reasoning. All three stages are conditioned on the gold answer, so a trajectory is an explanation of a known answer rather than an independent attempt at it; the filtering described in Appendix B.1 therefore rejects malformed or ungrounded traces rather than incorrect
ones. The three system prompts are reproduced verbatim below.
Stage 1 — action planning. You are a Memory-Tool Synergistic Reasoning policy teacher. Your job is to produce a skeleton for autonomous driving VQA. The skeleton must decide which external actions should be executed before the student answers. You see the image grid, question, gold answer, memory and reasoning seed, but you DO NOT see real tool observations. Do not fabricate observations.
Output strict JSON only:
{ "steps": [{"think": {"goal": "...", "evidence_gap": "..."}}, "action": {"type": "...", "arguments": {...}}}}
Rules:
- Use 1–3 actions only.
- action.type must be one of the allowed action types.
- Use sample_token="CURRENT_SAMPLE" when an action needs the current sample.
- Look up in short-term memory before calling tools.
- No observation_summary, final_answer, or tool result text in this phase.
Stage 2 — next-step decision. You are a Memory-Tool Synergistic Reasoning policy teacher. Decide the next action after reading the image, question, gold answer, reasoning seed, and any already executed observations. Use a memory-tool synergistic style: first use scene-level short-term memory when scene continuity is relevant, retrieve long-term experience when planning or safety judgment benefits from similar past driving cases, then use tools as needed.
Output strict JSON only:
{ "decision_type": "action", "scene_state": "<brief reusable scene-local state>", "experience": "<brief retrieved cross-scene experience>", "think": {"goal": "...", "evidence_gap": "...", "decision": "<why this action is the next best evidence source>", "action": {"type": "...", "arguments": {...}}}}
If enough evidence has already been gathered and at least one action has been executed, output strict JSON only:
{ "decision_type": "finish", "scene_state": "...", "experience": "...", "think": {"goal": "finish with the benchmark-compatible answer", "evidence_gap": "none", "decision": "<why the evidence is sufficient>", "final_answer": "<exact gold final answer>"}}
Rules:
-
Use at most one action in this response.
-
action.type must be one of the available actions.
-
Use sample_token="CURRENT_SAMPLE" when an action needs the current sample.
-
For planning, safety, behavior prediction, relative motion, and ambiguous temporal questions, consider looking up in short-term memory first to get a full view of the scene.
-
Avoid template collapse: do not repeat a fixed route just because the question type is familiar. Compare the current observations, memory availability, action history, tool costs, and unresolved evidence gap.
-
decision_type=finish is allowed only after at least one useful action has been executed.
-
final_answer in a finish response must exactly match the gold final answer.
Stage 3 — summary. You are a Memory-Tool Synergistic Reasoning policy teacher. You will receive a think-action-trace with real observations from tools and memory. Produce compact memory sections, observation-aware private updates, and DriveLMM-o1-style public step-by-step reasoning that turns private evidence into benchmark-friendly reasoning.
Output strict JSON only:
{ "scene_state": "<compact structured scene state>" "experience": "<brief historical driving experience>" "updates": [{"observation_summary": "..."}, "belief_update": "...", "decision": "..."}], "reasoning": "<step-by-step reasoning>" "final_answer": "<exact gold final answer>" }
Rules:
-
final_answer must exactly equal the provided gold final answer.
-
updates length must equal the number of observations.
-
observation_summary must accurately reflect the given observation; do not add unsupported facts.
-
experience must only use retrieved long-term experience context.
-
belief_update must be grounded in the corresponding observation.
-
reasoning must be step-by-step style. Step 1 must point to key evidence in the image grid or a camera view or spatial region, and include the real visual or observation evidence that supports it, without evidence source tags. Step 2 must explain how that evidence affects the ego vehicle's safety, maneuver feasibility, collision risk, lane-change feasibility, speed choice, or future behavior. Step 3 must first name compact evidence sources, translate their support into natural driving language; for multiple-choice questions it must explain why the selected option is safer, more likely, or more relevant than the alternatives. Step 4, give a final answer.
D.2 LLM-Judge Prompt for DriveLMM-o1
We use the official DriveLMM-o1 evaluation script without modification. The judge is gpt-4o-mini at temperature 0, constrained to a strict JSON schema, with a 500-token output budget. For each question the judge receives a single user message of the form
Question: {question} Ground Truth: {ground_truth} LLM Response: {llm_response}
where ground_truth concatenates the human-written reasoning steps and the reference final answer. The system prompt is reproduced verbatim below.
System prompt. You are an autonomous driving reasoning evaluator. Your task is to assess the alignment, coherence, and quality of reasoning steps in text responses for safety-critical driving scenarios.
You will evaluate the model-generated reasoning using the following metrics:
-
Faithfulness-Step (1–10): Measures how well the model's reasoning steps align with the ground truth. 9–10: All steps correctly match or closely reflect the reference. 7–8: Most steps align, with minor deviations. 5–6: Some steps align, but several are incorrect or missing. 3–4: Few steps align; most are inaccurate or missing. 1–2: Majority of steps are incorrect.
-
Informativeness-Step (1–10): Measures completeness of reasoning. 9–10: Captures almost all critical information. 7–8: Covers most key points, with minor omissions. 5–6: Missing significant details. 3–4: Only partial reasoning present. 1–2: Poor extraction of relevant reasoning.
-
Risk Assessment Accuracy (1–10): Evaluates if the model correctly prioritizes high-risk objects or scenarios. 9–10: Correctly identifies and prioritizes key dangers. 7–8: Mostly accurate, with minor misprioritizations. 5–6: Some important risks are overlooked. 3–4: Significant misjudgments in risk prioritization. 1–2: Misidentifies key risks or misses them entirely.
-
Traffic Rule Adherence (1–10): Evaluates whether the response follows traffic laws and driving best practices. 9–10: Fully compliant with legal and safe driving practices. 7–8: Minor deviations, but mostly correct. 5–6: Some inaccuracies in legal/safe driving recommendations. 3–4: Several rule violations or unsafe suggestions. 1–2: Promotes highly unsafe driving behavior.
-
Scene Awareness & Object Understanding (1–10): Measures how well the response interprets objects, their positions, and actions. 9–10: Clearly understands all relevant objects and their relationships. 7–8: Minor misinterpretations but mostly correct. 5–6: Some key objects misunderstood or ignored. 3–4: Many errors in object recognition and reasoning. 1–2: Misidentifies or ignores key objects.
-
Repetition-Token (1–10): Identifies unnecessary repetition in reasoning. 9–10: No redundancy, very concise. 7–8: Minor repetition but still clear. 5–6: Noticeable redundancy. 3–4: Frequent repetition that disrupts reasoning. 1–2: Excessive redundancy, making reasoning unclear.
-
Hallucination (1–10): Detects irrelevant or invented reasoning steps not aligned with ground truth. 9–10: No hallucinations, all reasoning is grounded. 7–8: One or two minor hallucinations. 5–6: Some fabricated details. 3–4: Frequent hallucinations. 1–2: Majority of reasoning is hallucinated.
-
Semantic Coverage-Step (1–10): Checks if the response fully covers the critical reasoning elements. 9–10: Nearly complete semantic coverage. 7–8: Good coverage, some minor omissions. 5–6: Partial coverage with key gaps. 3–4: Major gaps in reasoning. 1–2: Very poor semantic coverage.
-
Commonsense Reasoning (1–10): Assesses the use of intuitive driving logic in reasoning. 9–10: Displays strong commonsense understanding. 7–8: Mostly correct, with minor gaps. 5–6: Some commonsense errors. 3–4: Frequent commonsense mistakes. 1–2: Lacks basic driving commonsense.
-
Missing Step (1–10): Evaluates if any necessary reasoning steps are missing. 9–10: No critical steps missing. 7–8: Minor missing steps, but answer is mostly intact. 5–6: Some important steps missing. 3–4: Many critical reasoning gaps. 1–2: Response is highly incomplete.
-
Relevance (1–10): Measures how well the response is specific to the given scenario and ground truth. 9–10: Highly specific and directly relevant to the driving scenario. 7–8: Mostly relevant, but some minor parts may be overly generic. 5–6: Somewhat relevant but lacks precision; contains vague or general reasoning. 3–4: Mostly generic or off-topic reasoning, with significant irrelevant content. 1–2: Largely irrelevant, missing key aspects of the scenario.
-
Missing Details (1–10): Evaluates the extent to which critical information is missing from the response, impacting the reasoning quality. 9–10: No significant details are missing; response is comprehensive. 7–8: Covers most important details, with minor omissions. 5–6: Some essential details are missing. 3–4: Many critical reasoning steps or contextual details are absent. 1–2: Response is highly lacking in necessary details.
Final Evaluation: Compute the Overall Score as the average of all metric scores. Avoid subjective interpretation and adhere to the given thresholds. Always strictly follow these scoring guidelines. Do not add any additional explanations beyond the structured JSON output.
Output format. The judge returns a flat JSON object with one numeric field per metric plus an Overall Score, enforced by a strict json_schema response format so that unparseable or partial responses are rejected at the API level:
{ "Faithfulness-Step": 6.0, "Informativeness-Step": 6.5, "Risk Assessment Accuracy": 7.0, "Traffic Rule Adherence": 7.5, "Scene Awareness & Object Understanding": 8.0, "Repetition-Token": 7.0, "Hallucination": 8.5, "Semantic Coverage-Step": 7.5, "Commonsense Reasoning": 7.0, "Missing Step": 8.5, "Relevance": 8.5, "Missing Details": 7.0, "Overall Score": 7.42}
Two notes on the reference implementation. First, the reference script contains a naming inconsistency: the enforced JSON schema declares the ninth field as Commonsense, whereas the system prompt and the in-prompt example both name it Commonsense Reasoning. We preserve the prompt's naming in all released per-question outputs. Second, as stated in Appendix C.3, we compute the reported reasoning score as the mean of the twelve dimensions rather than reading the judge's self-reported Overall Score field, because the latter is
| Component | Median | p90 | Max |
|---|---|---|---|
| LLM generation | 34.96 s | 50.66 s | 82.60 s |
| Tool execution | 5.4 ms | 84.1 ms | 35.70 s |
| Parsing | 0.13 ms | 0.22 ms | 0.46 ms |
| Other (decode, tokenize) | 49.1 ms | 91.7 ms | 2.08 s |
| End-to-end | 35.04 s | 50.73 s | 96.75 s |
Table 11: Per-query latency breakdown. aggregated over all tool calls in a query.
| Benchmark | Calls | Median | p90 | Peak mem. |
|---|---|---|---|---|
| DriveLLM-o1 | 1295 | 0.20 ms | 1.49 ms | ~19 GB |
| DriveMLLM | 1956 | 2.12 ms | 74.15 ms | ~24 GB |
Table 12: Per-benchmark tool-call latency (median/p90) and inference peak GPU memory. The rare 35.70s max (one cold-start monocular-depth call) is reported in Table 11.
| Tool | N | Median | p90 |
|---|---|---|---|
| Instance filter (Python) | 419 | 0.05 ms | 0.06 ms |
| 2D detection (YOLO-World) | 960 | 2.08 ms | 80.8 ms |
| 3D localization (camera) | 390 | 2.92 ms | 5.04 ms |
| 3D localization (monocular) | 26 | 99.6 ms | 241 ms |
| Geometry / distance / depth | 119 | ~5 ms | ~9 ms |
Table 13: Per-tool latency. Only monocular depth (UniDepth) is costly, and it is invoked rarely (N=26); 2D detection uses per-image caching.
occasionally inconsistent with the dimensions returned in the same call.
E Additional Experimental Results
E.1 Tool-Use Behavior and Efficiency
Table 11 shows that end-to-end latency is dominated by LLM decoding (median 34.96 s), while tool execution adds only 5.4 ms at the median per query. Per-call tool latency stays in the millisecond range on both benchmarks (Table 12); the lone 35.70 s maximum comes from a single cold-start monocular-depth call, invoked in only 26 of all queries (Table 13). Inference peaks at ~19 GB on DriveLLM-o1 and ~24 GB on DriveMLLM, so the full system runs on a single consumer GPU. Overall, adding a hierarchical memory and a tool-use loop introduces negligible runtime overhead relative to the backbone VLM's own decoding cost.
E.2 Confidence Intervals
The main results are single deterministic evaluation runs: inference uses greedy decoding at temperature 0, so repeated evaluation of a fixed checkpoint is bit-identical and run-to-run variance is zero by construction. Sampling variability nonetheless remains because the test split is finite. We therefore report non-parametric confidence intervals obtained by bootstrapping over test questions (10,000 resamples with replacement, per-question scores held fixed).
| Metric | Value | 95% CI |
|---|---|---|
| MCQ | 79.09 | [77.46, 80.72] |
| Reasoning score | 80.03 | [79.46, 80.57] |
| Risk Assessment | 76.95 | [76.27, 77.59] |
| Traffic Rule Adherence | 86.29 | [85.75, 86.82] |
| Scene Awareness | 84.06 | [83.55, 84.56] |
| Relevance | 77.38 | [76.66, 78.08] |
| Missing Details | 76.39 | [75.67, 77.11] |
| Faithfulness-Step | 74.56 | [73.99, 75.13] |
| Informativeness-Step | 85.53 | [85.13, 85.94] |
| Repetition-Token | 96.71 | [96.49, 96.92] |
| Hallucination | 76.72 | [75.99, 77.42] |
| Semantic Coverage-Step | 61.26 | [60.50, 62.06] |
| Commonsense Reasoning | 85.46 | [84.97, 85.97] |
| Missing Step | 79.13 | [78.51, 79.77] |
Table 14: Bootstrap 95% confidence intervals on DriveLMM-o1 (10,000 resamples over the 2,391 MCQ or 4,634 full-split questions).
The advantage in answer accuracy is robust: the strongest published baseline reaches 71.35 MCQ, far outside the interval under convention. The advantage in reasoning score is not: the strongest baseline reaches 79.68, which falls inside our interval [79.46, 80.57]. We therefore claim a clear improvement in answer accuracy and parity in overall reasoning score. This is consistent with the shape of Table 1, where our model leads on Rule Adherence and Scene Awareness while conceding the descriptive dimensions, and with the reward design of Appendix B.3: the reinforcement stage optimizes answer correctness on multiple-choice items and does not directly reward descriptive completeness. Semantic Coverage-Step (61.26) is our lowest dimension by over 13 points, reflecting that the reasoning loop stops as soon as the evidence needed to discriminate among options has been gathered, which is efficient for answer accuracy but leaves reference reasoning steps uncovered.
E.3 Other Qualitative Results
Figures 6 and 7 extend this comparison with six further cases. On STRIDE-QA, the baseline estimates metric distances from image perspective and returns 5 m and 18 m for references of 13.26 m and 7.57 m, whereas grounding the referent and querying camera-frame 3D localization gives 13.9 m and 8.8 m. The DriveMLLM cases show that the retrieved entry constrains which evidence is admissible rather than merely whether a tool is called: a pairwise-distance question retrieves a ground-then-measure procedure and recovers 22.3 m against a 27.05 m reference, while a relative-position question retrieves a strategy that explicitly rules out depth reasoning, and comparing horizontal image coordinates (1412.7 against 997.3) identifies the correct object where the baseline's depth-based reasoning inverts it. Under the corrupted DriveBench scenes the baseline reacts to degraded imagery alone, recommending deceleration under watersplash and pulling over under fog, whereas our method verifies the ego state (2.89 m/s, no collision prior) and the forward corridor before maintaining speed, and in the fog
case tempers that decision after detecting a pedestrian at (-3.78, 6.45) m. Each trace closes with an offline consolidation step: five cases reinforce the utility weight of the retrieved strategy, while the fog case abstracts a new entry stating that fog alone should not trigger deceleration before ego speed and nearby hazards are verified. Together these cases show retrieved experience selecting task-appropriate evidence and tool observations grounding the answer in geometric and state evidence rather than appearance-based guesses, although the metric estimates remain approximate.
F Limitations
End-to-end median latency is approximately 35 s per query, dominated by language-model decoding rather than tool execution; the framework is therefore suited to offline scene understanding, data annotation, and simulation-based evaluation rather than to a real-time driving stack, and we use driving benchmarks as a demanding testbed for grounded multi-step reasoning rather than as a claim of vehicle readiness. As analysed in Appendix B.3, the reinforcement stage optimizes multiple-choice correctness, so descriptive quality improves through supervised fine-tuning but receives no direct reinforcement signal. Inference is deterministic, but the pipeline was trained once: the intervals in Table 14 capture test-set sampling variability, not variability across independent training runs, and the reinforcement stage is not bit-reproducible even under a fixed trainer seed. Finally, offline consolidation improves accuracy for nine generations and then declines, indicating saturation of the store; we observe this on a single consolidation trajectory and do not characterize its variance or asymptote. Improving retrieval reliability and belief-conflict resolution are the natural next steps.
STRIDE-QA

Question: Can you give me an estimation of the distance between Region [1] and Region [2]?
Ground Truth: They are 7.57 meters apart.
Qwen-3-VL-32B
Recognizes the truck and car regions, estimates their distance through visual intuition and road-width assumptions. The model approximates the distance as 18 meters.
Final Answer: 18 m
Ours
Step1
Query Hierarchical Memory
STM: Truck travels ahead in the middle lane. The black taxi is positioned to the rear of the truck. A sedan lies further to the right within the roadside median area.
Retrieved LTM: For pairwise-distance questions, first ground the queried objects with OVD tool and then measure depth with MDE tool.
Step2
Open-Vocabulary Grounding
Open-vocab detector tool returns truck in the center lane bbox([1545.4, 642.2, 1851.5, 965.0], car on the right bbox([2453.2, 841.3, 2830.6, 994.0])
Step3
3D Distance Measurement
Truck: xyr=[2.54, 4.67, 22.64] m. Car xyr=[8.61, 0.23, 16.33] m. Horizontal distance = 6.1 m. Straight-line 3D distance = 8.8 m. Final Answer: 8.8 m
Step4
Sleep-Time Consolidation
Increases the utility weight of the retrieved strategy that combines open-vocabulary grounding with monocular metric estimation for far-range pairwise distance tasks.
DriveBench

Question: In this foggy scenario, what are safe actions to take for the ego vehicle?
Ground Truth: Keep going at the same speed.
Qwen-3-VL-32B
Recommend reducing speed, using low-beam headlights and pulling over if visibility worsens.
Final Answer: Reduce speed, use low beams, pull over if visibility worsens.
Ours
Step1
Query Hierarchical Memory
STM: The ego vehicle is moving straight through a foggy urban road with a speed increase and only a small heading change, indicating an accelerating but nearly straight trajectory. A pedestrian moves toward the ego vehicle. Retrieved LTM: Querying nearby object detections to verify whether an immediate hazard requires braking or yielding.
Step2
Ego State Estimation
Ego-state tool reports forward motion at about 5.06 m/s with near-zero acceleration and small steering.
Step3
Pedestrian Detection
Front detection identifies a pedestrian at relative position (-3.78, 6.45) m. Final Answer: Maintain current speed but he prepared to reduce speed since the foggy conditions and pedestrian presence.
Step4
Sleep-Time Consolidation
Add a new experience: do not decelerate solely because of fog. First verify ego speed and nearby hazards; if the path remains clear, maintain a moderate speed while preparing to slow down.
DriveMLLM

Question: Object A = the red car; Object B = the white truck. Which object is positioned farther to the right?
Ground Truth: A — the red car.
Qwen-3-VL-32B
Recognizes the red car in the right foreground and the white truck farther down the road. Despite the white truck being farther away, it is still positioned farther to the right compared to the red car when considering their relative positions in the image.
Final Answer: B
Ours
Step1
Query Hierarchical Memory
STM: The ego vehicle is traveling along a narrow urban road. The red car occupies the immediate right foreground near the curb, while the white truck remains farther ahead near the center-right portion of the roadway.
Retrieved LTM: For relative left-right position questions, first ground each referred object and select the correct instances among same-class candidates. Then compare their horizontal image coordinates rather than relying on depth or apparent object scale.
Step2
Open-Vocabulary Grounding
Open-vocab detector tool returns Red car bbox: [1225.7, 486.7, 1599.6, 729.6]. White truck: bbox = [952.6, 465.6, 1042.1, 521.4].
Step3
Relative Position Comparison
The red car has horizontal center coordinate x=1412.7, the white truck has x=952.6. Since 1412.7>997.3, the red car is farther to the right.
Final Answer: Object A is farther to the right.
Step4
Sleep-Time Consolidation
Increases the utility weight of the retrieved object-grounding and horizontal-coordinate comparison strategy for relative-position tasks.
Figure 6: Additional qualitative comparison with Qwen-3-VL-32B on STRIDE-QA, DriveBench, and DriveMLLM. Each case shows the retrieved short- and long-term memory, the executed tool actions with their returned observations, the final answer, and the offline consolidation update.
STRIDE-QA

Question: Can you tell me the vertical distance between the ego vehicle and Region [0]?
Ground Truth: The ego vehicle and Region [0] are 13.26 meters apart vertically.
Qwen-3-VL-32B
The model infers the ego vehicle position from the camera viewpoint and estimates the vertical distance to Region [0] using relative image location and scene perspective. Without explicit spatial measurements, it approximates the distance as 5 meters.
Final Answer: 5 m
Ours
Step1
Query Hierarchical Memory
STM: The ego is heading into an intersection, a light truck travels on the opposite side of the intersection, on the ego vehicle's right front.
Retrieved LTM: Retrieves the strategy for camera-distance estimation first localize the queried object, then obtain metric 3D location with spatial tools.
Step2
Open-Vocabulary Grounding
Open-vocab detector tool returns Truck bbox: [1516.2, 749.3, 2112.8, 1077.5]
Step3
3D Distance Measurement
Estimates the metric camera-frame location of the truck: Box truck: (x=2.8, y=8, x=13.9) m. Forward depth: 13.9 m. (straight-line distance = 14.1m)
Final Answer: 13.9 m
Step4
Sleep-Time Consolidation
Increases the utility weight of the retrieved metric distance estimation strategy for ego-agent distance measurement task.
DriveBench

Question: What actions could the ego vehicle take based on <1, CAM BACK RIGHT, 0.4146, 0.7509—considering the watersplash complaint? Why take this action and what's the probability?
Ground Truth: The action is to keep going at the same speed. The reason is to avoid a collision, which has a high probability.
Qwen-3-VL-32B
The road is wet, and another vehicle is visible behind the ego vehicle. Reduced visibility and longer braking distances require a defensive response. So ego should slow down.
Final Answer: Slow down, with a high probability of approximately 80%.
Ours
Step1
Query Hierarchical Memory
STM: The ego vehicle moves nearly straight through a rainy construction zone and accelerates. No dynamic agent directly enters the forward path.
Retrieved LTM: Check the current ego state and future collision prior before changing speed or direction.
Step2
Ego State Estimation
Ego-state tool reports forward speed = 2.89 m/s, mild acceleration, small steering, and a FORWARD mission. The future-prior tool returns no available collision prediction.
Step3
Conclude
Avoid abrupt braking or lane changes; maintain a steady speed while monitoring possible hidden hazards.
Final Answer: Maintain current speed with high probability.
Step4
Sleep-Time Consolidation
Increases the utility weight of the retrieved far-range distance-estimation strategy for pair-wise 3D measurement tasks.
DriveMLLM

Question: Object A: the white truck; Object B: the yellow rigid bus. What is the horizontal distance, in meters, between Object A and Object B?
Ground Truth: 27.05 m
Qwen-3-VL-32B
White truck is located on the left side of the image, near the edge of the road. Yellow rigid bus is located further back in the image, closer to the center. The horizontal distance is approximately 12.5m.
Final Answer: 12.5 m
Ours
Step1
Query Hierarchical Memory
STM: The ego vehicle is approaching an urban intersection. The white truck remains near the construction barriers on the far left with little displacement, while the yellow rigid bus continues further ahead along the right side of the road.
Retrieved LTM: For pairwise horizontal-distance questions, first ground both queried objects with OVD and then measure depth with MDE tool.
Step2
Open-Vocabulary Grounding
Open-vocab detector tool returns White truckbbox: [133.3, 522.7, 342.4, 580]
Yellow rigid busbbox: [927.3, 522.7, 1000, 580]
Step3
3D Distance Measurement
White truck:xyr = [-14.94, 2.29, 34.74] m. Yellow rigid bus: y=7.39, 2.74, 47.59 m. Horizontal distance: [7.39, -14.94] = 22.3 m
Final Answer: 22.3 m
Step4
Sleep-Time Consolidation
Increases the utility weight of the retrieved strategy that combines open-vocabulary grounding with monocular metric estimation for far-range pairwise distance tasks.
Figure 7: Further qualitative comparison in the same format.