稀疏引导的大语言模型整体性解释与可解释推理时干预
Sparsity-Guided Holistic Explanation for LLMs with Interpretable Inference-Time Intervention
AI总结:
针对LLM黑箱可解释性难题,提出基于稀疏引导的SparseCBM框架,从输入、子网络和概念三层整体解释模型,并引入可解释推理时干预以动态调整,实证证明其有效提升理解与纠错能力。
摘要:
大语言模型(LLMs)已在各种自然语言处理领域取得了前所未有的突破。然而,LLMs 神秘的“黑箱”性质仍然是可解释性面临的一大挑战,阻碍了透明且负责任的应用。以往的方法,如注意力可视化、关键子网络提取和基于概念的分析,虽然提供了一些见解,但它们往往只关注单一维度内的局部或全局解释,有时无法提供全面的清晰度。为此,我们提出了一种以稀疏引导技术为核心的新方法,旨在为 LLMs 提供整体性解释。我们的框架名为 SparseCBM,创新性地整合了稀疏性,以阐明三个交织的解释层面:输入层面、子网络层面和概念层面。此外,新引入的可解释推理时干预维度,使得在部署期间能够对模型进行动态调整。通过在真实世界数据集上的严格实证评估,我们证明 SparseCBM 能够提供对 LLM 行为的深刻理解,在解释和改善模型错误方面独树一帜。代码在补充材料中提供。
英文摘要:
Large Language Models (LLMs) have achieved unprecedented breakthroughs in various natural language processing domains. However, the enigmatic ``black-box'' nature of LLMs remains a significant challenge for interpretability, hampering transparent and accountable applications. While past approaches, such as attention visualization, pivotal subnetwork extraction, and concept-based analyses, offer some insight, they often focus on either local or global explanations within a single dimension, occasionally falling short in providing comprehensive clarity. In response, we propose a novel methodology anchored in sparsity-guided techniques, aiming to provide a holistic interpretation of LLMs. Our framework, termed SparseCBM, innovatively integrates sparsity to elucidate three intertwined layers of interpretation: input, subnetwork, and concept levels. In addition, the newly introduced dimension of interpretable inference-time intervention facilitates dynamic adjustments to the model during deployment. Through rigorous empirical evaluations on real-world datasets, we demonstrate that SparseCBM delivers a profound understanding of LLM behaviors, setting it apart in both interpreting and ameliorating model inaccuracies. Codes are provided in supplements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。