Sparsity-Guided Holistic Explanation for LLMs with Interpretable Inference-Time Intervention

Zhen Tan, Tianlong Chen, Zhenyu Zhang, Huan Liu
12/22/2023
cs.CLcs.AI

No official code found. Best implementation: Zhen-Tan-dmml/SparseCBM (8 stars, last commit 2024-03-13).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Pytorch Implementation of AAAI 2024 -- Sparsity-guided Holistic Explanation for LLMs with Interpretable Inference-time Intervention

82Shell, PythonJul 14, 20232 years ago

Similar Papers

Cite this paper

@article{tan2023sparsityguided,
  title  = {Sparsity-Guided Holistic Explanation for LLMs with Interpretable Inference-Time Intervention},
  author = {Zhen Tan and Tianlong Chen and Zhenyu Zhang and Huan Liu},
  year   = {2023},
  eprint = {2312.15033},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.15033v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.15033.svg)](https://codeofpaper.com/paper/2312.15033)

Discussion