arXiv:2608.30581cs.AIcs.LG2026-08

用模型检验法自动测试大模型解释的可信度

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

  • 用概率模型检验做测试基准,自动判断解释对错
  • 在7个环境中测试,推理模型通过率85%
  • 发现小模型解释更不可靠,适合研究可解释性的人看

大型语言模型(LLMs)被用于解释序列决策策略的行为,生成自然语言说明为何选择某动作。然而,这些模型常产生看似合理却错误的陈述,且目前缺乏系统方法验证解释是否忠实于底层环境。两个经典软件测试难题阻碍进展:解释正确性无判定标准,且关于策略行为的自然语言查询缺乏结构化,难以生成系统性测试用例。本文提出解决方案:利用概率模型检查作为测试基准,计算精确参考结果以自动评估LLM输出;构建后验查询分类体系,围绕环境级事实组织输入空间,并基于问题特定诊断难度评分优先生成测试用例。在七个MDP环境中,测试区分出三类开源大模型:推理模型通过85%测试用例,中等规模模型通过70%,10亿参数模型低于随机基线;优先级机制显著识别出比随机选择更困难的案例。结果揭示了在无验证基准的模型自由设置下,相同模型生成解释的可信度水平。

原文摘要 · Abstract (English)

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.

可解释性大模型测试形式化验证

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。