arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05972cs.LG
收藏

基于反事实链和因果图的LLM可解释性

LLM Explainability with Counterfactual Chains and Causal Graphs

Faculty of Data and Decision Sciences, Technion I IBM Research(数据与决策科学学院,技术离子IBM研究所)

Nirit Nussbaum-Hoffer, Nitay Calderon, Liat Ein-Dor, Roi Reichart

AI总结:

提出一种四阶段方法,利用因果图建模LLM推理过程,通过MCMC启发的反事实增强发现类判别性概念并生成可解释图,用于疾病诊断、情感分析等任务。

摘要:

因果图为使机制透明提供了高级语言。近期工作使用大型语言模型(LLMs)恢复外部世界过程的因果图。相反,在本文中,我们使用因果图对LLM推理本身进行建模,为利益相关者提供模型如何感知和组织高层概念以产生预测的透明视图。我们提出了一种四阶段方法来构建此类图。给定目标LLM和一组文本示例,我们的方法发现类判别性、人类可解释的概念,并将每个输入映射到LLM感知的概念状态。然后,我们引入一种受MCMC启发的反事实增强过程,通过反事实链扩展稀疏的观测数据。这使得使用$σ$-CG进行稳定的因果发现成为可能,从而产生信息丰富且可解释的图。我们将我们的方法应用于三个LLM,涵盖疾病诊断、情感分析和LLM作为评判者的分类任务。我们评估了学习到的图的预测保真度和结构稳定性,以及受MCMC启发的增强的收敛性和下游效用。我们的结果表明,发现的因果图捕获了与LLM推理一致的有意义的依赖关系。总之,本文为LLM的概念级可解释性提供了基础。

英文摘要:

Causal graphs provide a high-level language for making mechanisms transparent. Recent work uses Large Language Models (LLMs) to recover causal graphs of external-world processes. Instead, in this paper, we use causal graphs to model LLM inference itself, providing stakeholders with a transparent view of how the model perceives and organizes high-level concepts to produce a prediction. We propose a four-phase method for constructing such graphs. Given a target LLM and a set of textual examples, our method discovers class-discriminative, human-interpretable concepts and maps each input to LLM-perceived concept states. We then introduce an MCMC-inspired counterfactual augmentation procedure that expands the sparse observational data through chains of counterfactuals. This enables stable causal discovery with $σ$-CG, yielding informative, interpretable graphs. We apply our method to three LLMs across disease diagnosis, sentiment analysis, and LLM-as-a-judge classification tasks. We evaluate the learned graphs for predictive fidelity and structural stability, and the MCMC-inspired augmentation for convergence and downstream utility. Our results show that the discovered causal graphs capture meaningful dependencies consistent with LLMs' reasoning. Together, this paper provides a foundation for concept-level explainability of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑