arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.13870cs.LGcs.AIcs.CLcs.ITmath.IT
收藏

SPEX:扩展面向 LLM 的特征交互解释

SPEX: Scaling Feature Interaction Explanations for LLMs

UC Berkeley(加州大学伯克利分校);UC Santa Barbara(加州大学圣巴巴拉分校)

Justin Singh Kang, Landon Butler, Abhineet Agarwal, Yigit Efe Erginbas, Ramtin Pedarsani, Kannan Ramchandran, Bin Yu

AI总结:

本文提出模型无关的 SPEX 交互归因算法,利用交互稀疏性和稀疏 Fourier 变换将 LLM 特征交互解释扩展到约 1000 个输入,并在长上下文任务中提升输出重构忠实度。

摘要:

大型语言模型(LLM)凭借其捕捉输入特征之间复杂交互的能力,已经彻底改变了机器学习。诸如 SHAP 之类流行的事后解释方法提供边际特征归因,而它们向交互重要性的扩展只能扩展到较短的输入长度(约 20)。我们提出 Spectral Explainer(SPEX),这是一种模型无关的交互归因算法,能够高效扩展到较大的输入长度(约 1000)。SPEX 利用交互中潜在的自然稀疏性——这在真实世界数据中很常见——并采用基于信道译码算法的稀疏 Fourier 变换来高效识别重要交互。我们在三个困难的长上下文数据集上进行实验,这些数据集要求 LLM 利用输入之间的交互来完成任务。对于大型输入,SPEX 在忠实地重构 LLM 输出方面比边际归因方法最高高出 20%。此外,SPEX 成功识别了对模型输出有强烈影响的关键特征和交互。对于我们的数据集之一 HotpotQA,SPEX 提供了与人工标注相一致的交互。最后,我们使用这种模型无关方法生成解释,以展示闭源 LLM(GPT-4o mini)中的抽象推理,以及视觉语言模型中的组合推理。

英文摘要:

Large language models (LLMs) have revolutionized machine learning due to their ability to capture complex interactions between input features. Popular post-hoc explanation methods like SHAP provide marginal feature attributions, while their extensions to interaction importances only scale to small input lengths ($\approx 20$). We propose Spectral Explainer (SPEX), a model-agnostic interaction attribution algorithm that efficiently scales to large input lengths ($\approx 1000)$. SPEX exploits underlying natural sparsity among interactions -- common in real-world data -- and applies a sparse Fourier transform using a channel decoding algorithm to efficiently identify important interactions. We perform experiments across three difficult long-context datasets that require LLMs to utilize interactions between inputs to complete the task. For large inputs, SPEX outperforms marginal attribution methods by up to 20% in terms of faithfully reconstructing LLM outputs. Further, SPEX successfully identifies key features and interactions that strongly influence model output. For one of our datasets, HotpotQA, SPEX provides interactions that align with human annotations. Finally, we use our model-agnostic approach to generate explanations to demonstrate abstract reasoning in closed-source LLMs (GPT-4o mini) and compositional reasoning in vision-language models.

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

↑