mlsanityData to 7 Oct 2026

Automated Testing of LLM-Based Post Hoc Explainers Using Model Checking as an Oracle

arXiv 2608.30581 ↗First posted 31 Aug 2026cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) are used as post hoc explainers of sequential decision-making policies, producing natural-language explanations of why an action was chosen. However, LLMs often generate plausible but incorrect statements, and no existing approach systematically tests whether such explanations are faithful to the underlying environment. Two classic software testing challenges stand in the way: there is no oracle for the correctness of an explanation, and the test inputs, natural language queries about a policy's behavior, lack the structure needed for systematic test case generation. We address both. Probabilistic model checking provides the test oracle, computing exact reference results against which LLM answers are graded automatically. A taxonomy of post hoc query categories structures the input space around the environment-level facts from which policy explanations are composed; test cases generated from it are prioritized by question-specific diagnostic difficulty scores. Across seven MDP environments, the testing separates three open-weight LLMs: a reasoning model passes 85% of test cases, a mid-size model 70%, and a 1B model falls below the random baseline, while prioritization surfaces significantly harder cases than random selection. Our results indicate how trustworthy LLM-generated explanations are in model-free settings, where the same LLMs are used but no oracle exists to verify them.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 43 references that are in the map. First posted on arXiv 31 Aug 2026.

Builds on

27 of 43 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  3. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  4. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  5. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
  6. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 213
  7. 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methodscited by 114
  8. 2020The Probabilistic Model Checker Stormcited by 64
  9. 2025LLMs for Explainable AI: A Comprehensive Surveycited by 42
  10. 2024Towards Consistent Natural-Language Explanations via Explanation-Consistency Finetuningcited by 26
  11. 2022COOL-MC: A Comprehensive Tool for Reinforcement Learning and Model Checkingcited by 19
  12. 2025On the Fundamental Limits of LLMs at Scalecited by 16
15 more
  1. 2021dtControl 2.0: Explainable Strategy Representation via Decision Tree Learning Steered by Expertscited by 14
  2. 2019Distributional Reward Decomposition for Reinforcement Learningcited by 11
  3. 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policiescited by 8
  4. 2023A Closer Look at Reward Decomposition for High-Level Robotic Explanationscited by 7
  5. 2022Verified Probabilistic Policies for Deep Reinforcement Learningcited by 6
  6. 2024Enhancing RL Safety with Counterfactual LLM Reasoningcited by 6
  7. 2024Probabilistic Model Checking of Stochastic Reinforcement Learning Policiescited by 5
  8. 2025Model-Agnostic Policy Explanations with Large Language Modelscited by 4
  9. 2023Explaining Agent Behavior with Large Language Modelscited by 3
  10. 2025Turn-based Multi-Agent Reinforcement Learning Model Checkingcited by 3
  11. 2025A Survey of Explainable Reinforcement Learning: Targets, Methods and Needscited by 3
  12. 2026Formally Verifying and Explaining Sepsis Treatment Policies with COOL-MCcited by 3
  13. 2025TalkToAgent: A Human-centric Explanation of Reinforcement Learning Agents with Large Language Modelscited by 2
  14. 2025Verifying Memoryless Sequential Decision-making of Large Language Modelscited by 1
  15. 2025Interpret Policies in Deep Reinforcement Learning using SILVER with RL-Guided Labeling: A Model-level Approach to High-dimensional and Multi-action Environmentscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
  2. 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
  3. 2026Reproducing and Stress-Testing Two Approaches to LLM Reasoning Reliability: Test-Time Probability Aggregation and Logic-Representation Editing
  4. 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models
  5. 2025Reasoning on a Budget: A Survey of Adaptive and Controllable Test-Time Compute in LLMs
  6. 2026From Stochastic Answers to Verifiable Reasoning: Interpretable Decision-Making with LLM-Generated Code
  7. 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes
  8. 2026Diagnosing and Improving Probabilistic Reasoning in Large Language Models