DRIV-EX: Counterfactual Explanations for Driving LLMs
On the map: LLM reasoning → Chain-of-thought reasoning for driving
also in 1 more
Abstract (arXiv)
Large language models (LLMs) are increasingly used as reasoning engines in autonomous driving, yet their decision-making remains opaque. We propose to study their decision process through counterfactual explanations, which identify the minimal semantic changes to a scene description required to alter a driving plan. We introduce DRIV-EX, a method that leverages gradient-based optimization on continuous embeddings to identify the input shifts required to flip the model's decision. Crucially, to avoid the incoherent text typical of unconstrained continuous optimization, DRIV-EX uses these optimized embeddings solely as a semantic guide: they are used to bias a controlled decoding process that re-generates the original scene description. This approach effectively steers the generation toward the counterfactual target while guaranteeing the linguistic fluency, domain validity, and proximity to the original input, essential for interpretability. Evaluated using the LC-LLM planner on a textual transcription of the highD dataset, DRIV-EX generates valid, fluent counterfactuals more reliably than existing baselines. It successfully exposes latent biases and provides concrete insights to improve the robustness of LLM-based driving agents. The code is available at "https://github.com/Amaia-CARDIEL/DRIV_EX" .
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Chain-of-thought reasoning for driving, one of 17 directions in LLM reasoning. Builds on 45 of its 69 references that are in the map. First posted on arXiv 28 Feb 2026.
Builds on
45 of 69 references.
Closest ancestors · 3
Same direction, newest first
- 2025Counterfactual VLA: Self-Reflective Vision-Language-Action Model with Adaptive Reasoning30 Dec
- 2025Alpamayo-R1: Bridging Reasoning and Action Prediction for Generalizable Autonomous Driving in the Long Tail30 Oct
- 2025OmniDrive: A Holistic Vision-Language Dataset for Autonomous Driving with Counterfactual Reasoning6 Apr
Other references · 42
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2019nuScenes: A multimodal dataset for autonomous drivingcited by 4,523
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,122
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
30 more
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2023GPT-Driver: Learning to Drive with GPTcited by 347
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2018The highD Dataset: A Drone Dataset of Naturalistic Vehicle Trajectories on German Highways for Validation of Highly Automated Driving Systemscited by 277
- 2024EMMA: End-to-End Multimodal Model for Autonomous Drivingcited by 231
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 222
- 2015Visualizing and Understanding Neural Models in NLPcited by 200
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 175
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
- 2023MotionLM: Multi-Agent Motion Forecasting as Language Modelingcited by 156
- 2025SimLingo: Vision-Only Closed-Loop Autonomous Driving with Language-Action Alignmentcited by 150
- 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2024Fight Back Against Jailbreaking via Prompt Adversarial Tuningcited by 67
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2024CarLLaVA: Vision language models for camera-only closed-loop drivingcited by 57
- 2023Sequential Integrated Gradients: a simple but effective method for explaining language modelscited by 52
- 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 50
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 31
- 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
- 2024SMART: Scalable Multi-agent Real-time Motion Generation via Next-token Predictioncited by 25
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biasescited by 24
- 2023CREST: A Joint Framework for Rationalization and Counterfactual Text Generationcited by 24
- 2021Text Counterfactuals via Latent Optimization and Shapley-Guided Searchcited by 16
- 2025Poutine: Vision-Language-Trajectory Pre-Training and Reinforcement Learning Post-Training Enable Robust End-to-End Autonomous Drivingcited by 11
- 2025Can LLMs Explain Themselves Counterfactually?cited by 10
- 2023TIGTEC : Token Importance Guided TExt Counterfactualscited by 8
- 2025Controlled LLM Decoding via Discrete Auto-regressive Biasingcited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024OmniDrive: A Holistic Vision-Language Dataset for Autonomous Driving with Counterfactual Reasoning
- 2023DriveMLM: Aligning Multi-Modal Large Language Models with Behavioral Planning States for Autonomous Driving
- 2023Driving with LLMs: Fusing Object-Level Vector Modality for Explainable Autonomous Driving
- 2023LLM4Drive: A Survey of Large Language Models for Autonomous Driving
- 2026Rethinking Language's Role in Efficient VLA for Autonomous Vehicles: Toward Smarter, Trustworthy Driving
- 2024Hybrid Reasoning Based on Large Language Models for Autonomous Car Driving
- 2024Making Large Language Models Better Planners with Reasoning-Decision Alignment
- 2023LanguageMPC: Large Language Models as Decision Makers for Autonomous Driving