arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17898cs.LGcs.AIcs.CL
收藏

评估SHAP作为SAE特征候选归因方法的因果忠实性

Evaluating the Causal Faithfulness of SHAP as a Candidate Attribution Method for SAE Features

Durham University(杜伦大学)

Samuel Xie, Noura Al-Moubayed

AI总结:

本研究以SST-2情感分类为测试平台,对比SHAP等归因方法与直接因果干预,发现方法间一致性不代表因果忠实性,且归因方法检测特征影响存在比缺失更可靠,提出需单独评估两类忠实性。

摘要:

稀疏自编码器(Sparse Autoencoders, SAE)将语言模型表示分解为可解释特征,但该领域的特征解释仍以相关性分析为主。归因方法能更直接地估计特征影响,但其在SAE场景下对实际因果效应的忠实性尚未得到系统评估。本研究以SST-2情感分类任务为测试平台,采用GPT-2 Small和具有32768个特征的第7层SAE,将基于SHAP的归因方法应用于SAE潜在特征,并与直接因果干预进行对比评估。我们在线性和多层感知机(MLP)探测分支中,将SHAP与集成梯度(Integrated Gradients)、梯度×输入(Gradient×Input)及探测权重基线进行比较,通过语言模型自身的logit差测量特征消融和激活引导,对各方法进行评分。我们测量的大多数忠实性关联在多重比较校正后不再显著,且相互间一致性较高的归因方法(ρ=0.42至0.80)与测量到的因果效应一致性较差,表明方法间的一致性并非因果忠实性的证据。两项效应在控制条件下成立:其一,逐例局部归因相比全局平均归因保留了方向优势,但其表观重要性优势由特征活跃度而非更优的因果排序解释;其二,在已知真实值的最小对中,归因方法恢复插入情感信号的表现远优于随机水平(AUROC=0.792),但无法定位删除内容(AUROC=0.520),表明这些方法检测特征影响的存在比检测其缺失更可靠。我们认为,重要性忠实性和方向忠实性是需单独评估的可分离属性,且归因一致性不应替代因果验证。

英文摘要:

Sparse autoencoders decompose language model representations into interpretable features, but feature interpretation in this literature remains predominantly correlational. Attribution methods offer more direct estimates of feature influence, yet their faithfulness to actual causal effects has not been systematically evaluated in the SAE setting. We apply SHAP-based attribution to SAE latent features and evaluate it against direct causal intervention, using sentiment classification on SST-2 with GPT-2 Small and a 32,768-feature layer-7 SAE as a testbed. We compare SHAP to Integrated Gradients, Gradient$\times$Input, and probe-weight baselines across linear and MLP probe arms, scoring each against feature ablation and activation steering measured through the language model's own logit difference. Most faithfulness associations we measure do not survive multiple-comparison correction, and attribution methods that agree strongly with one another ($ρ= 0.42$--$0.80$) agree poorly with measured causal effects, indicating that inter-method agreement is not evidence of causal faithfulness. Two effects hold under control. First, local per-example attribution retains a directional advantage over global averaged attribution, while its apparent importance advantage is explained by feature activity rather than superior causal ranking. Second, under known-ground-truth minimal pairs, attribution recovers inserted sentiment signal well above chance (AUROC $0.792$) but fails to localize deletions (AUROC $0.520$), suggesting that these methods detect the presence of a feature's influence more reliably than its absence. We argue that importance faithfulness and directional faithfulness are separable properties requiring separate evaluation, and that attribution agreement should not substitute for causal validation.

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

↑