DRIV-EX: Counterfactual Explanations for Driving LLMs

Amaia Cardiel, Eloi Zablocki, Elias Ramzi, Eric Gaussier


Abstract
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 the textual 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".
Anthology ID:
2026.findings-acl.1152
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
22994–23017
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1152/
DOI:
Bibkey:
Cite (ACL):
Amaia Cardiel, Eloi Zablocki, Elias Ramzi, and Eric Gaussier. 2026. DRIV-EX: Counterfactual Explanations for Driving LLMs. In Findings of the Association for Computational Linguistics: ACL 2026, pages 22994–23017, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
DRIV-EX: Counterfactual Explanations for Driving LLMs (Cardiel et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1152.pdf
Checklist:
 2026.findings-acl.1152.checklist.pdf